Browse Source

1st

dependabot/npm_and_yarn/acorn-5.7.4
Rob Drew 6 years ago
commit
46a83046b6
  1. 67
      css/style.css
  2. 58
      gulpfile.js
  3. 0
      js/js.js
  4. 51
      lmmi_journal.info.yml
  5. 5
      lmmi_journal.libraries.yml
  6. 22
      package.json

67
css/style.css

@ -0,0 +1,67 @@
/*change header title fontsize*/
.col-md-12 .site-name a {
font-size: 60px;
}
.header-top__container {
padding: 60px 0 55px;
}
/*change padding above content*/
.main-content__section, .sidebar__section {
padding: 60px 0 70px;
}
/*modify issue info on landing page*/
.path-frontpage .layout.layout--twocol-bricks {
display: block;
}
.path-frontpage .block-region-second-above {
display: flex;
justify-content: flex-start;
font-size: 1.8rem;
}
.path-frontpage .block-region-second-above > * {
margin-right: 1rem;
display:flex;
}
.path-frontpage .block-region-second-above > .block-entity-fieldnodetitle::after{
content: ",";
}
.path-frontpage .block-region-second-above > .block-entity-fieldnodefield-issue-year::after{
content: ",";
}
.path-frontpage .block-region-second-above .field--name-field-issue-number {
display:flex;
}
/*tweak images added to articles*/
details#journal-article-text-tab img,
.path-frontpage .node--view-mode-teaser img {
border: 1px solid #ccc;
padding: 4px;
width: 200px;
float: left;
margin-right: 1rem;
margin-top: 1rem;
}
.field__label {
font-family: 'Merriweather', Georgia, Times New Roman, Serif;
}
.field--name-field-issue-number .field__label {
font-family: inherit;
font-weight: initial;
}
.path-frontpage .node--view-mode-teaser {
padding: 0 0 30px 0;
margin-bottom: 30px;
}
.logo {
width:110px;
}

58
gulpfile.js

@ -0,0 +1,58 @@
var gulp = require('gulp'),
plumber = require('gulp-plumber'),
rename = require('gulp-rename');
var autoprefixer = require('gulp-autoprefixer');
var concat = require('gulp-concat');
var imagemin = require('gulp-imagemin'),
cache = require('gulp-cache');
var sass = require('gulp-sass');
var browserSync = require('browser-sync');
gulp.task('browser-sync', function() {
browserSync({
server: {
baseDir: "./"
}
});
});
gulp.task('bs-reload', function () {
browserSync.reload();
});
gulp.task('images', function(){
gulp.src('src/img/**/*')
.pipe(cache(imagemin({ optimizationLevel: 3, progressive: true, interlaced: true })))
.pipe(gulp.dest('img/'));
});
gulp.task('styles', function(){
gulp.src(['src/scss/**/*.scss'])
.pipe(plumber({
errorHandler: function (error) {
console.log(error.message);
this.emit('end');
}}))
.pipe(sass())
.pipe(autoprefixer('last 2 versions'))
.pipe(gulp.dest('css/'))
.pipe(browserSync.reload({stream:true}))
});
gulp.task('scripts', function(){
return gulp.src('src/js/**/*.js')
.pipe(plumber({
errorHandler: function (error) {
console.log(error.message);
this.emit('end');
}}))
.pipe(concat('main.js'))
.pipe(gulp.dest('js/'))
.pipe(browserSync.reload({stream:true}))
});
gulp.task('default', ['browser-sync'], function(){
gulp.watch("src/scss/**/*.scss", ['styles']);
gulp.watch("src/js/**/*.js", ['scripts']);
gulp.watch("*.html", ['bs-reload']);
});

51
lmmi_journal.info.yml

@ -0,0 +1,51 @@
name: LMMI Journal
type: theme
description: Subtheme of Magazine Plus
core: 8.x
# Defines the base theme
base theme: magazineplus
# Defines libraries group in which we can add css/js.
libraries:
- lmmi_journal/global-styling
# Regions
regions:
slideout: 'Slideout'
pre_header: 'Pre Header'
header_top_highlighted_first: 'Header Top Highlighted First'
header_top_highlighted_second: 'Header Top Highlighted Second'
header_top_first: 'Header Top First'
header_top_second: 'Header Top Second'
header_first: 'Header First'
header: 'Header Second'
header_third: 'Header Third'
banner: 'Banner'
system_messages: 'System Messages'
highlighted_top: 'Highlighted Top'
highlighted: 'Highlighted'
content_top: 'Content Top'
content_top_highlighted: 'Content Top Highlighted'
pre_content_first: 'Pre Content First'
pre_content_second: 'Pre Content Second'
media_background_first: 'Media Background First'
media_background_second: 'Media Background Second'
content: 'Content'
sidebar_first: 'Sidebar First'
sidebar_second: 'Sidebar Second'
content_bottom_first: 'Content Bottom First'
content_bottom_second: 'Content Bottom Second'
featured_top: 'Featured Top'
featured: 'Featured'
featured_bottom: 'Featured Bottom'
sub_featured: 'Sub Featured'
footer_top_first: 'Footer Top First'
footer_top_second: 'Footer Top Second'
footer_first: 'Footer First'
footer_second: 'Footer Second'
footer_third: 'Footer Third'
footer_fourth: 'Footer Fourth'
footer_fifth: 'Footer Fifth'
footer_bottom_first: 'Footer Bottom First'
footer_bottom_second: 'Footer Bottom Second'
sub_footer_first: 'Subfooter First'
footer: 'Subfooter Second'
hidden_blocks_collection: 'Hidden blocks collection'

5
lmmi_journal.libraries.yml

@ -0,0 +1,5 @@
global-styling:
css:
theme:
css/color-lime.css: {}
css/style.css: {}

22
package.json

@ -0,0 +1,22 @@
{
"name": "Quench",
"version": "1.0.0",
"description": "A Gulp file and project generator.",
"main": "gulpfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Quench",
"license": "ISC",
"devDependencies": {
"browser-sync": "2.6.5",
"gulp-autoprefixer": "2.1.0",
"gulp-cache": "0.2.8",
"gulp-concat": "2.5.2",
"gulp-imagemin": "2.2.1",
"gulp-plumber": "1.0.0",
"gulp-rename": "1.2.2",
"gulp-sass": "1.3.3",
"gulp": "3.8.11"
}
}
Loading…
Cancel
Save