From e5659e07a8a1b63258d70d56af45881f93980c73 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 31 Jul 2015 15:03:52 +1000 Subject: Try to get local libs and css installed --- gulpfile.js | 13 +++- src/css/theme/openstack.css | 184 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 195 insertions(+), 2 deletions(-) create mode 100644 src/css/theme/openstack.css diff --git a/gulpfile.js b/gulpfile.js index 6884eae..9a39ebb 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -96,6 +96,10 @@ .pipe(filter('*.css')) .pipe(gulp.dest(dir.dist + '/css')); + var resolveLocalCSS = gulp.src(dir.src + '/css/**/*') + .pipe(filter('*.css')) + .pipe(gulp.dest(dir.dist + '/css')); + var resolveLESS = gulp.src(bowerFiles) .pipe(filter('*.less')) .pipe(less()) @@ -109,6 +113,10 @@ .pipe(filter('*.js')) .pipe(gulp.dest(dir.dist + '/js')); + var resolveLocalLibs = gulp.src(dir.src + '/js/**/*') + .pipe(filter('*.js')) + .pipe(gulp.dest(dir.dist + '/js')); + // Reveal.js is a special snowflake. var resolveReveal = gulp.src('./bower_components/reveal.js/*/**/*.*', {'base': './bower_components/reveal.js/'}) @@ -122,8 +130,9 @@ ])) .pipe(gulp.dest(dir.dist)); - return streamqueue({'objectMode': true}, resolveCSS, resolveLESS, - resolveReveal, resolveLibs, resolveFonts); + return streamqueue({'objectMode': true}, resolveCSS, resolveLocalCSS, + resolveLESS, resolveReveal, + resolveLibs, resolveLocalLibs, resolveFonts); }); /** diff --git a/src/css/theme/openstack.css b/src/css/theme/openstack.css new file mode 100644 index 0000000..ce8cf13 --- /dev/null +++ b/src/css/theme/openstack.css @@ -0,0 +1,184 @@ +@import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700); +@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); +/** + * A simple theme for reveal.js presentations, similar + * to the default theme. The accent color is darkblue. + * + * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed. + * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se + */ +/********************************************* + * GLOBAL STYLES + *********************************************/ +body { + background: white; + background-color: white; } + +.reveal { + font-family: "Lato", sans-serif; + font-size: 36px; + font-weight: normal; + letter-spacing: -0.02em; + color: black; } + +#cover { + position: absolute; + right: -100px; +} + +.reveal .footer { + position: absolute; + bottom: 1em; + left: 1em; + font-size: 0.5em; +} + +html.cover #head-icon { + visibility: hidden; +} + +html.cover h1 { + margin-top: 30px; +} + +#head-icon { + margin-top: 0; + margin-bottom: 0; + margin-left: 0; + margin-right: 0; + border-width: 0; + position: fixed; + z-index: 30; + left: -20px; + top: 0px; +} + +::selection { + color: white; + background: rgba(0, 0, 0, 0.99); + text-shadow: none; } + +/********************************************* + * HEADERS + *********************************************/ +.reveal h1, +.reveal h2, +.reveal h3, +.reveal h4, +.reveal h5, +.reveal h6 { + margin: 0 0 20px 0; + color: black; + font-family: "News Cycle", Impact, sans-serif; + line-height: 0.9em; + letter-spacing: 0.02em; + text-transform: none; + text-shadow: none; } + +html.cover h1 { + text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); +} + +.reveal h1 { + font-size: 150%; +} + +.reveal h2 { + font-size: 100%; +} + +.reveal h3 { + font-size: 85%; +} + +/********************************************* + * LINKS + *********************************************/ +.reveal a:not(.image) { + color: darkblue; + text-decoration: none; + -webkit-transition: color .15s ease; + -moz-transition: color .15s ease; + -ms-transition: color .15s ease; + -o-transition: color .15s ease; + transition: color .15s ease; } + +.reveal a:not(.image):hover { + color: #0000f1; + text-shadow: none; + border: none; } + +.reveal .roll span:after { + color: #fff; + background: #00003f; } + +/********************************************* + * IMAGES + *********************************************/ +.reveal section img { + /*margin: 15px 0px;*/ + background: rgba(255, 255, 255, 0.12); + /*border: 4px solid black; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);*/ + -webkit-transition: all .2s linear; + -moz-transition: all .2s linear; + -ms-transition: all .2s linear; + -o-transition: all .2s linear; + transition: all .2s linear; } + +.reveal a:hover img { + background: rgba(255, 255, 255, 0.2); + border-color: darkblue; + box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); } + +/********************************************* + * NAVIGATION CONTROLS + *********************************************/ +.reveal .controls div.navigate-left, +.reveal .controls div.navigate-left.enabled { + border-right-color: darkblue; } + +.reveal .controls div.navigate-right, +.reveal .controls div.navigate-right.enabled { + border-left-color: darkblue; } + +.reveal .controls div.navigate-up, +.reveal .controls div.navigate-up.enabled { + border-bottom-color: darkblue; } + +.reveal .controls div.navigate-down, +.reveal .controls div.navigate-down.enabled { + border-top-color: darkblue; } + +.reveal .controls div.navigate-left.enabled:hover { + border-right-color: #0000f1; } + +.reveal .controls div.navigate-right.enabled:hover { + border-left-color: #0000f1; } + +.reveal .controls div.navigate-up.enabled:hover { + border-bottom-color: #0000f1; } + +.reveal .controls div.navigate-down.enabled:hover { + border-top-color: #0000f1; } + +/********************************************* + * PROGRESS BAR + *********************************************/ +.reveal .progress { + background: rgba(0, 0, 0, 0.2); } + +.reveal .progress span { + background: darkblue; + -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); + -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); + -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); + -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); + transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); } + +/********************************************* + * SLIDE NUMBER + *********************************************/ +.reveal .slide-number { + color: darkblue; } + -- cgit v1.2.3