diff --git a/src/scss/_base.scss b/src/scss/_base.scss
index d614e65..d208fa2 100644
--- a/src/scss/_base.scss
+++ b/src/scss/_base.scss
@@ -1,4 +1,12 @@
// sass-lint:disable no-vendor-prefixes
+
+/*=========================================
+1. Base --> Baseline: 8px = .8rem
+=========================================== */
+
+/* -- Disable elastic scrolling/bounce:
+webslides.js will add .ws-ready automatically. Don't worry :) -- */
+
.ws-ready {
&,
body {
diff --git a/src/scss/_color.scss b/src/scss/_color.scss
index 43011dd..b691d3a 100644
--- a/src/scss/_color.scss
+++ b/src/scss/_color.scss
@@ -1,5 +1,13 @@
// sass-lint:disable no-color-literals
// sass-lint:disable no-vendor-prefixes
+
+/*=========================================
+Colors
+=========================================== */
+
+/* -- Disable elastic scrolling/bounce:
+webslides.js will add .ws-ready automatically. Don't worry :) -- */
+
body {
background-color: $body-bg;
color: $body-color;
diff --git a/src/scss/_typography.scss b/src/scss/_typography.scss
index 928c05b..4c4847f 100644
--- a/src/scss/_typography.scss
+++ b/src/scss/_typography.scss
@@ -1,3 +1,7 @@
+/*============================
+2. TYPOGRAPHY & LISTS
+============================== */
+
html,
body {
font-weight: 300;
@@ -414,7 +418,6 @@ figure[class*='text-pull-'] {
font-family: 'San Francisco', helvetica, arial, sans-serif;
}
-
@font-face {
font-family: 'San Francisco';
font-weight: 100;
diff --git a/src/scss/_vars.scss b/src/scss/_vars.scss
index cbb7871..45bac0c 100644
--- a/src/scss/_vars.scss
+++ b/src/scss/_vars.scss
@@ -8,7 +8,7 @@ $white: #fff;
$mine-shaft: #333;
$royal-blue: #44d;
$havelock-blue: #67d;
-$catskill-white: #edf2f7;
+$catskill-white: #f7f9fb;
$cod-gray: #111;
$big-stone: #123;
$rhino: #346;
diff --git a/src/scss/full.scss b/src/scss/full.scss
index 37fa413..14410ff 100644
--- a/src/scss/full.scss
+++ b/src/scss/full.scss
@@ -44,41 +44,51 @@
@import 'utils/mixins';
@import 'utils/animations';
@import 'utils/reset';
-@import 'base';
-@import 'color';
-@import 'typography';
-
-@import 'utils/bugs';
@import 'utils/clear';
-@import 'modules/avatars';
-@import 'modules/badges';
+@import 'base';
+@import 'typography';
+
+@import 'modules/media';
@import 'modules/browser';
-@import 'modules/button';
-@import 'modules/cards';
-@import 'modules/flexblock';
-@import 'modules/flexblock-activity';
-@import 'modules/flexblock-clients';
-@import 'modules/flexblock-features';
-@import 'modules/flexblock-gallery';
-@import 'modules/flexblock-metrics';
-@import 'modules/flexblock-plans';
-@import 'modules/flexblock-reasons';
-@import 'modules/flexblock-specs';
-@import 'modules/flexblock-steps';
-@import 'modules/form';
@import 'modules/grid';
+
@import 'modules/header-footer';
@import 'modules/logo';
-@import 'modules/longform';
-@import 'modules/media';
@import 'modules/navigation';
-@import 'modules/print';
-@import 'modules/promos';
-@import 'modules/quotes';
+
@import 'modules/slides';
@import 'modules/slides-bg';
@import 'modules/slides-navigation';
-@import 'modules/tables';
-@import 'modules/toc';
+
+@import 'modules/flexblock';
+@import 'modules/flexblock-features';
+@import 'modules/flexblock-clients';
+@import 'modules/flexblock-steps';
+@import 'modules/flexblock-metrics';
+@import 'modules/flexblock-specs';
+@import 'modules/flexblock-reasons';
+@import 'modules/flexblock-gallery';
+@import 'modules/flexblock-plans';
+@import 'modules/flexblock-activity';
+@import 'modules/promos';
@import 'modules/work';
+@import 'modules/toc';
+
+@import 'modules/cards';
+
+@import 'modules/quotes';
+@import 'modules/avatars';
+
+@import 'modules/tables';
+
+@import 'modules/form';
+@import 'modules/button';
+@import 'modules/badges';
+
+@import 'modules/longform';
+
+@import 'utils/bugs';
+@import 'modules/print';
+
+@import 'color';
diff --git a/src/scss/modules/_avatars.scss b/src/scss/modules/_avatars.scss
index a3f04d0..adf1899 100644
--- a/src/scss/modules/_avatars.scss
+++ b/src/scss/modules/_avatars.scss
@@ -1,3 +1,7 @@
+/*=========================================
+12. Avatars - uifaces.com
+=========================================== */
+
cite img,
img[class*='avatar-'] {
display: inline-block;
diff --git a/src/scss/modules/_badges.scss b/src/scss/modules/_badges.scss
index fff25c7..dd03cf4 100644
--- a/src/scss/modules/_badges.scss
+++ b/src/scss/modules/_badges.scss
@@ -1,3 +1,6 @@
+/*=== App Store Badges === */
+/* Change width and height: 216x64px, 162x48px, 135x40... */
+
[class*='badge-'] {
background-repeat: no-repeat;
background-size: cover;
diff --git a/src/scss/modules/_browser.scss b/src/scss/modules/_browser.scss
index 960ee41..04fe929 100644
--- a/src/scss/modules/_browser.scss
+++ b/src/scss/modules/_browser.scss
@@ -1,9 +1,5 @@
-
-h1 + .browser,
-h2 + .browser,
-p + .browser {
- margin-top: 4.8rem;
-}
+/*=== HTML Browser (Screenshots) ================ */
+/* img */
.browser {
border-radius: .3rem;
diff --git a/src/scss/modules/_button.scss b/src/scss/modules/_button.scss
index f6b7ff5..ccd35fe 100644
--- a/src/scss/modules/_button.scss
+++ b/src/scss/modules/_button.scss
@@ -1,3 +1,4 @@
+/* Buttons/Badges */
[class*='button'] {
@media (min-width: 500px) {
& + & {
diff --git a/src/scss/modules/_cards.scss b/src/scss/modules/_cards.scss
index d615aeb..7b705eb 100644
--- a/src/scss/modules/_cards.scss
+++ b/src/scss/modules/_cards.scss
@@ -1,3 +1,7 @@
+/*===========================================
+10. Cards
+============================================= */
+
[class*='card-'] {
&,
& > a {
diff --git a/src/scss/modules/_flexblock-activity.scss b/src/scss/modules/_flexblock-activity.scss
index ac562b0..7b163e8 100644
--- a/src/scss/modules/_flexblock-activity.scss
+++ b/src/scss/modules/_flexblock-activity.scss
@@ -1,3 +1,8 @@
+/*===========================================
+6.9 Block Activity
+CV / News
+============================================= */
+
.flexblock.activity {
flex-direction: column;
diff --git a/src/scss/modules/_flexblock-clients.scss b/src/scss/modules/_flexblock-clients.scss
index 52581e8..b202fb4 100644
--- a/src/scss/modules/_flexblock-clients.scss
+++ b/src/scss/modules/_flexblock-clients.scss
@@ -1,3 +1,7 @@
+/*=====================================================================
+6.2 Clients Logos
+======================================================================= */
+
.flexblock.clients.blink li > a,
.flexblock.clients li {
padding: 0;
diff --git a/src/scss/modules/_flexblock-features.scss b/src/scss/modules/_flexblock-features.scss
index 82156e7..822b898 100644
--- a/src/scss/modules/_flexblock-features.scss
+++ b/src/scss/modules/_flexblock-features.scss
@@ -1,3 +1,7 @@
+/*====================================================================
+6.1 Features
+====================================================================== */
+
.flexblock.features {
> li {
border-radius: .4rem;
diff --git a/src/scss/modules/_flexblock-gallery.scss b/src/scss/modules/_flexblock-gallery.scss
index ab12722..148adba 100644
--- a/src/scss/modules/_flexblock-gallery.scss
+++ b/src/scss/modules/_flexblock-gallery.scss
@@ -1,3 +1,9 @@
+/*=================================================
+6.7 Gallery -
+Block Thumbnails li+.overlay+image
+img size recommended:800x600px
+=================================================== */
+
.flexblock.gallery {
li {
margin-bottom: 4.8rem;
diff --git a/src/scss/modules/_flexblock-metrics.scss b/src/scss/modules/_flexblock-metrics.scss
index 6fe8878..8d9788a 100644
--- a/src/scss/modules/_flexblock-metrics.scss
+++ b/src/scss/modules/_flexblock-metrics.scss
@@ -1,3 +1,7 @@
+/*=================================================
+6.4 Block Numbers -
+=================================================== */
+
.metrics li {
text-align: center;
width: 100%;
diff --git a/src/scss/modules/_flexblock-plans.scss b/src/scss/modules/_flexblock-plans.scss
index ebe910c..159d953 100644
--- a/src/scss/modules/_flexblock-plans.scss
+++ b/src/scss/modules/_flexblock-plans.scss
@@ -1,3 +1,7 @@
+/*===============================================
+6.8 Plans / Pricing
+================================================= */
+
.flexblock.plans {
> li {
border-radius: 3px;
diff --git a/src/scss/modules/_flexblock-reasons.scss b/src/scss/modules/_flexblock-reasons.scss
index 005cf61..3b07874 100644
--- a/src/scss/modules/_flexblock-reasons.scss
+++ b/src/scss/modules/_flexblock-reasons.scss
@@ -25,11 +25,12 @@
@media (min-width: 768px) {
padding-left: 8.8rem;
-
+ /* You need two digits? (1-10)*/
+ /*padding-left: 12rem; */
+}
&:before {
left: 2.4rem;
position: absolute;
}
}
}
-
diff --git a/src/scss/modules/_flexblock-specs.scss b/src/scss/modules/_flexblock-specs.scss
index f2d9845..3299af4 100644
--- a/src/scss/modules/_flexblock-specs.scss
+++ b/src/scss/modules/_flexblock-specs.scss
@@ -1,3 +1,7 @@
+/*=====================================================
+6.5 Specs/Items:
+======================================================= */
+
.specs li {
text-align: left;
width: 100%;
diff --git a/src/scss/modules/_flexblock-steps.scss b/src/scss/modules/_flexblock-steps.scss
index 21dcd30..35a274f 100644
--- a/src/scss/modules/_flexblock-steps.scss
+++ b/src/scss/modules/_flexblock-steps.scss
@@ -1,3 +1,8 @@
+/*==================================================
+6.3 flexblock.steps
+About, Philosophy...
+=================================================== */
+
.steps li {
width: 100%;
diff --git a/src/scss/modules/_flexblock.scss b/src/scss/modules/_flexblock.scss
index 7e8c542..5103283 100644
--- a/src/scss/modules/_flexblock.scss
+++ b/src/scss/modules/_flexblock.scss
@@ -1,3 +1,8 @@
+/*===============================================================
+6. Magic blocks with flexbox (Auto-fill & Equal Height)
+Blocks Links li>a = .flexblock.blink (.blink required)
+================================================================= */
+
.flexblock {
clear: both;
display: flex;
@@ -79,8 +84,6 @@ footer .column h3 {
margin-bottom: 0;
}
-
-
.flexblock li li,
.flexblock.blink li li {
padding: 0;
diff --git a/src/scss/modules/_form.scss b/src/scss/modules/_form.scss
index 7b1a2aa..64f7673 100644
--- a/src/scss/modules/_form.scss
+++ b/src/scss/modules/_form.scss
@@ -1,3 +1,7 @@
+/*=========================================
+14. Forms
+=========================================== */
+
form {
text-align: left;
diff --git a/src/scss/modules/_grid.scss b/src/scss/modules/_grid.scss
index f98e92d..886577a 100644
--- a/src/scss/modules/_grid.scss
+++ b/src/scss/modules/_grid.scss
@@ -1,3 +1,6 @@
+/*=== 1.4. Basic Grid (Flexible blocks)
+Auto-fill & Equal height === */
+
.grid {
clear: both;
display: flex;
diff --git a/src/scss/modules/_header-footer.scss b/src/scss/modules/_header-footer.scss
index 30f3992..d5d059f 100644
--- a/src/scss/modules/_header-footer.scss
+++ b/src/scss/modules/_header-footer.scss
@@ -1,3 +1,10 @@
+/*=========================================
+3. Header & Footer
+=========================================== */
+
+/* -- If you want an unique, global header/footer,read this:
+https://github.com/webslides/webslides/issues/57 -- */
+
header,
footer,
#navigation {
diff --git a/src/scss/modules/_logo.scss b/src/scss/modules/_logo.scss
index 6ddd473..f2b883a 100644
--- a/src/scss/modules/_logo.scss
+++ b/src/scss/modules/_logo.scss
@@ -1,3 +1,5 @@
+/*=== 3.1. Logo === */
+
.logo {
text-transform: lowercase;
@@ -7,6 +9,8 @@
float: left;
height: 4.8rem;
text-indent: -4000px;
+ /*If you remove text-indent and add: */
+ /*padding-left: 6rem;*/
vertical-align: middle;
width: 4.8rem;
}
diff --git a/src/scss/modules/_longform.scss b/src/scss/modules/_longform.scss
index 9995759..9d03bd0 100644
--- a/src/scss/modules/_longform.scss
+++ b/src/scss/modules/_longform.scss
@@ -1,5 +1,12 @@
+/*=========================================
+15. Longform
+=========================================== */
+/* -- Posts = .wrap.longform -- */
+
.longform {
width: 72rem;
+ /* Why 72rem=720px?
+ 90-95 characters per line = better reading speed */
&.alignleft,
&.alignright {
@@ -29,7 +36,12 @@
font-size: 1.6rem;
line-height: 2.4rem;
}
-
+ /* Mobile: video full width */
+ .text-pull.embed {
+ margin-left: -2.4rem;
+ margin-right: -2.4rem;
+ padding-bottom: 60.6%;
+ }
@media (min-width: 1280px) {
[class*='text-pull-'] {
max-width: 32%;
diff --git a/src/scss/modules/_media.scss b/src/scss/modules/_media.scss
index 4c0c956..316ed1c 100644
--- a/src/scss/modules/_media.scss
+++ b/src/scss/modules/_media.scss
@@ -1,7 +1,12 @@
+/*=== 1.3 Responsive Media (videos, iframe...) === */
+
.embed {
height: 0;
overflow: hidden;
+ /*aspect ratio:16:9*/
padding-bottom: 56.6%;
+ /*aspect ratio: 4:3*/
+ /*padding-bottom: 75%;*/
position: relative;
iframe,
@@ -16,6 +21,9 @@
width: 100%;
}
+ /* -- Responsive background video
+ https://fvsch.com/code/video-background/ -- */
+
.fullscreen > & {
bottom: 0;
height: auto;
@@ -25,6 +33,7 @@
right: 0;
top: 0;
+ /* 1. No object-fit support: */
& > iframe,
& > object,
& > embed,
@@ -39,6 +48,7 @@
width: 300%;
}
+ /* 2. If supporting object-fit, overriding (1): */
@supports (object-fit: cover) {
height: 100%;
left: 0;
diff --git a/src/scss/modules/_navigation.scss b/src/scss/modules/_navigation.scss
index 1816756..530decc 100644
--- a/src/scss/modules/_navigation.scss
+++ b/src/scss/modules/_navigation.scss
@@ -1,7 +1,22 @@
+/*=========================================
+4. Navigation
+=========================================== */
+
+/*=== 4.1. Navbars === */
+
nav ul {
display: flex;
flex-wrap: wrap;
+ /*====align left====*/
justify-content: flex-start;
+ /* ==== align center ====*/
+ /*justify-content: center; */
+ /*====align right====*/
+ /* justify-content: flex-end; */
+ /*====separated columns li a====*/
+ /* justify-content: space-between; */
+ /*====separated columns centered li a====*/
+ /*justify-content: space-around;*/
li {
float: left;
@@ -36,10 +51,12 @@ header nav ul {
nav.aligncenter ul,
.aligncenter nav ul {
+ /* ==== align center ====*/
justify-content: center;
}
nav.navbar ul li {
+ /*====full float li a ====*/
flex: 1 1 auto;
}
diff --git a/src/scss/modules/_print.scss b/src/scss/modules/_print.scss
index f5775b4..e5c22f1 100644
--- a/src/scss/modules/_print.scss
+++ b/src/scss/modules/_print.scss
@@ -1,3 +1,7 @@
+/*=========================================
+16. PRINT
+=========================================== */
+
// sass-lint:disable no-important
@media print {
@page {
diff --git a/src/scss/modules/_promos.scss b/src/scss/modules/_promos.scss
index 7849e0b..dfee529 100644
--- a/src/scss/modules/_promos.scss
+++ b/src/scss/modules/_promos.scss
@@ -1,3 +1,7 @@
+/*=============================================
+7. Promos/Offers (pricing, tagline, CTA...)
+=============================================== */
+
.cta {
display: flex;
flex-wrap: wrap;
@@ -57,7 +61,7 @@
}
}
}
-
+/* --- Header CTA --- */
.cta-cover {
display: table;
width: 100%;
diff --git a/src/scss/modules/_quotes.scss b/src/scss/modules/_quotes.scss
index 3bacecc..31f6d06 100644
--- a/src/scss/modules/_quotes.scss
+++ b/src/scss/modules/_quotes.scss
@@ -1,3 +1,7 @@
+/*=========================================
+11. Quotes
+=========================================== */
+
blockquote {
display: inline-block;
position: relative;
@@ -11,16 +15,11 @@ blockquote {
}
}
}
-
+/* -- Interviews dl.text-interview -- */
dd blockquote p:last-child {
margin-bottom: 0;
}
-.bg-apple blockquote p {
- font-family: 'San Francisco', 'Roboto', helvetica, arial, sans-serif;
- font-weight: 300;
-}
-
cite {
display: block;
text-align: center;
@@ -34,9 +33,12 @@ cite {
cite span {
display: block;
}
+/* -- A big Blockquote -- */
+/* .wall will be deprecated soon. Use .text-quote ;) */
.text-quote,
.wall {
+ /* Versatility: blockquote, p, h2... */
position: relative;
&:before {
diff --git a/src/scss/modules/_slides-bg.scss b/src/scss/modules/_slides-bg.scss
index d72fa7b..9a9fdb7 100644
--- a/src/scss/modules/_slides-bg.scss
+++ b/src/scss/modules/_slides-bg.scss
@@ -1,3 +1,5 @@
+/*=== 5.3 Slides - Background Images/Videos === */
+
.background,
[class*='background-'] {
background-repeat: no-repeat;
@@ -8,6 +10,8 @@
top: 0;
}
+/*=== BG Positions === */
+
.background {
background-position: center;
background-size: cover;
@@ -64,12 +68,18 @@
}
}
+ /*fullscreen video
+