commit 46a83046b67033fcdf679005015fc98fa42e7349 Author: Rob Drew Date: Fri Sep 14 15:54:29 2018 -0300 1st diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..b58be8a --- /dev/null +++ b/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; + } diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..1d8209c --- /dev/null +++ b/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']); +}); diff --git a/js/js.js b/js/js.js new file mode 100644 index 0000000..e69de29 diff --git a/lmmi_journal.info.yml b/lmmi_journal.info.yml new file mode 100644 index 0000000..5282ce3 --- /dev/null +++ b/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' diff --git a/lmmi_journal.libraries.yml b/lmmi_journal.libraries.yml new file mode 100644 index 0000000..825b153 --- /dev/null +++ b/lmmi_journal.libraries.yml @@ -0,0 +1,5 @@ +global-styling: + css: + theme: + css/color-lime.css: {} + css/style.css: {} diff --git a/package.json b/package.json new file mode 100644 index 0000000..85b1faa --- /dev/null +++ b/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" + } +}