mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-17 18:37:00 +02:00
Adding comments & Changing order
This commit is contained in:
committed by
GitHub
parent
ac8ac17490
commit
caeacda724
@@ -1,4 +1,12 @@
|
|||||||
// sass-lint:disable no-vendor-prefixes
|
// 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 {
|
.ws-ready {
|
||||||
&,
|
&,
|
||||||
body {
|
body {
|
||||||
|
@@ -1,5 +1,13 @@
|
|||||||
// sass-lint:disable no-color-literals
|
// sass-lint:disable no-color-literals
|
||||||
// sass-lint:disable no-vendor-prefixes
|
// sass-lint:disable no-vendor-prefixes
|
||||||
|
|
||||||
|
/*=========================================
|
||||||
|
Colors
|
||||||
|
=========================================== */
|
||||||
|
|
||||||
|
/* -- Disable elastic scrolling/bounce:
|
||||||
|
webslides.js will add .ws-ready automatically. Don't worry :) -- */
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: $body-bg;
|
background-color: $body-bg;
|
||||||
color: $body-color;
|
color: $body-color;
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*============================
|
||||||
|
2. TYPOGRAPHY & LISTS
|
||||||
|
============================== */
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
@@ -414,7 +418,6 @@ figure[class*='text-pull-'] {
|
|||||||
font-family: 'San Francisco', helvetica, arial, sans-serif;
|
font-family: 'San Francisco', helvetica, arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'San Francisco';
|
font-family: 'San Francisco';
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
|
@@ -8,7 +8,7 @@ $white: #fff;
|
|||||||
$mine-shaft: #333;
|
$mine-shaft: #333;
|
||||||
$royal-blue: #44d;
|
$royal-blue: #44d;
|
||||||
$havelock-blue: #67d;
|
$havelock-blue: #67d;
|
||||||
$catskill-white: #edf2f7;
|
$catskill-white: #f7f9fb;
|
||||||
$cod-gray: #111;
|
$cod-gray: #111;
|
||||||
$big-stone: #123;
|
$big-stone: #123;
|
||||||
$rhino: #346;
|
$rhino: #346;
|
||||||
|
@@ -44,41 +44,51 @@
|
|||||||
@import 'utils/mixins';
|
@import 'utils/mixins';
|
||||||
@import 'utils/animations';
|
@import 'utils/animations';
|
||||||
@import 'utils/reset';
|
@import 'utils/reset';
|
||||||
@import 'base';
|
|
||||||
@import 'color';
|
|
||||||
@import 'typography';
|
|
||||||
|
|
||||||
@import 'utils/bugs';
|
|
||||||
@import 'utils/clear';
|
@import 'utils/clear';
|
||||||
|
|
||||||
@import 'modules/avatars';
|
@import 'base';
|
||||||
@import 'modules/badges';
|
@import 'typography';
|
||||||
|
|
||||||
|
@import 'modules/media';
|
||||||
@import 'modules/browser';
|
@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/grid';
|
||||||
|
|
||||||
@import 'modules/header-footer';
|
@import 'modules/header-footer';
|
||||||
@import 'modules/logo';
|
@import 'modules/logo';
|
||||||
@import 'modules/longform';
|
|
||||||
@import 'modules/media';
|
|
||||||
@import 'modules/navigation';
|
@import 'modules/navigation';
|
||||||
@import 'modules/print';
|
|
||||||
@import 'modules/promos';
|
|
||||||
@import 'modules/quotes';
|
|
||||||
@import 'modules/slides';
|
@import 'modules/slides';
|
||||||
@import 'modules/slides-bg';
|
@import 'modules/slides-bg';
|
||||||
@import 'modules/slides-navigation';
|
@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/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';
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*=========================================
|
||||||
|
12. Avatars - uifaces.com
|
||||||
|
=========================================== */
|
||||||
|
|
||||||
cite img,
|
cite img,
|
||||||
img[class*='avatar-'] {
|
img[class*='avatar-'] {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
/*=== App Store Badges === */
|
||||||
|
/* Change width and height: 216x64px, 162x48px, 135x40... */
|
||||||
|
|
||||||
[class*='badge-'] {
|
[class*='badge-'] {
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
@@ -1,9 +1,5 @@
|
|||||||
|
/*=== HTML Browser (Screenshots) ================ */
|
||||||
h1 + .browser,
|
/* <figure class="browser"> img </figure> */
|
||||||
h2 + .browser,
|
|
||||||
p + .browser {
|
|
||||||
margin-top: 4.8rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.browser {
|
.browser {
|
||||||
border-radius: .3rem;
|
border-radius: .3rem;
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
/* Buttons/Badges */
|
||||||
[class*='button'] {
|
[class*='button'] {
|
||||||
@media (min-width: 500px) {
|
@media (min-width: 500px) {
|
||||||
& + & {
|
& + & {
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*===========================================
|
||||||
|
10. Cards
|
||||||
|
============================================= */
|
||||||
|
|
||||||
[class*='card-'] {
|
[class*='card-'] {
|
||||||
&,
|
&,
|
||||||
& > a {
|
& > a {
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
/*===========================================
|
||||||
|
6.9 Block Activity <ul class="activity">
|
||||||
|
CV / News
|
||||||
|
============================================= */
|
||||||
|
|
||||||
.flexblock.activity {
|
.flexblock.activity {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*=====================================================================
|
||||||
|
6.2 Clients Logos <ul class="flexblock clients">
|
||||||
|
======================================================================= */
|
||||||
|
|
||||||
.flexblock.clients.blink li > a,
|
.flexblock.clients.blink li > a,
|
||||||
.flexblock.clients li {
|
.flexblock.clients li {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*====================================================================
|
||||||
|
6.1 Features <ul class="flexblock features">
|
||||||
|
====================================================================== */
|
||||||
|
|
||||||
.flexblock.features {
|
.flexblock.features {
|
||||||
> li {
|
> li {
|
||||||
border-radius: .4rem;
|
border-radius: .4rem;
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
/*=================================================
|
||||||
|
6.7 Gallery - <ul class="flexblock gallery">
|
||||||
|
Block Thumbnails li+.overlay+image
|
||||||
|
img size recommended:800x600px
|
||||||
|
=================================================== */
|
||||||
|
|
||||||
.flexblock.gallery {
|
.flexblock.gallery {
|
||||||
li {
|
li {
|
||||||
margin-bottom: 4.8rem;
|
margin-bottom: 4.8rem;
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*=================================================
|
||||||
|
6.4 Block Numbers - <ul class="flexblock metrics">
|
||||||
|
=================================================== */
|
||||||
|
|
||||||
.metrics li {
|
.metrics li {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*===============================================
|
||||||
|
6.8 Plans / Pricing <ul class="flexblock plans">
|
||||||
|
================================================= */
|
||||||
|
|
||||||
.flexblock.plans {
|
.flexblock.plans {
|
||||||
> li {
|
> li {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
@@ -25,11 +25,12 @@
|
|||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
padding-left: 8.8rem;
|
padding-left: 8.8rem;
|
||||||
|
/* You need two digits? (1-10)*/
|
||||||
|
/*padding-left: 12rem; */
|
||||||
|
}
|
||||||
&:before {
|
&:before {
|
||||||
left: 2.4rem;
|
left: 2.4rem;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*=====================================================
|
||||||
|
6.5 Specs/Items: <ul class="flexblock specs">
|
||||||
|
======================================================= */
|
||||||
|
|
||||||
.specs li {
|
.specs li {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
/*==================================================
|
||||||
|
6.3 flexblock.steps <ul class="flexblock steps">
|
||||||
|
About, Philosophy...
|
||||||
|
=================================================== */
|
||||||
|
|
||||||
.steps li {
|
.steps li {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
/*===============================================================
|
||||||
|
6. Magic blocks with flexbox (Auto-fill & Equal Height)
|
||||||
|
Blocks Links li>a = .flexblock.blink (.blink required)
|
||||||
|
================================================================= */
|
||||||
|
|
||||||
.flexblock {
|
.flexblock {
|
||||||
clear: both;
|
clear: both;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -79,8 +84,6 @@ footer .column h3 {
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.flexblock li li,
|
.flexblock li li,
|
||||||
.flexblock.blink li li {
|
.flexblock.blink li li {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*=========================================
|
||||||
|
14. Forms
|
||||||
|
=========================================== */
|
||||||
|
|
||||||
form {
|
form {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
/*=== 1.4. Basic Grid (Flexible blocks)
|
||||||
|
Auto-fill & Equal height === */
|
||||||
|
|
||||||
.grid {
|
.grid {
|
||||||
clear: both;
|
clear: both;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@@ -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,
|
header,
|
||||||
footer,
|
footer,
|
||||||
#navigation {
|
#navigation {
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
/*=== 3.1. Logo === */
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
text-transform: lowercase;
|
text-transform: lowercase;
|
||||||
|
|
||||||
@@ -7,6 +9,8 @@
|
|||||||
float: left;
|
float: left;
|
||||||
height: 4.8rem;
|
height: 4.8rem;
|
||||||
text-indent: -4000px;
|
text-indent: -4000px;
|
||||||
|
/*If you remove text-indent and add: */
|
||||||
|
/*padding-left: 6rem;*/
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
width: 4.8rem;
|
width: 4.8rem;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,12 @@
|
|||||||
|
/*=========================================
|
||||||
|
15. Longform
|
||||||
|
=========================================== */
|
||||||
|
/* -- Posts = .wrap.longform -- */
|
||||||
|
|
||||||
.longform {
|
.longform {
|
||||||
width: 72rem;
|
width: 72rem;
|
||||||
|
/* Why 72rem=720px?
|
||||||
|
90-95 characters per line = better reading speed */
|
||||||
|
|
||||||
&.alignleft,
|
&.alignleft,
|
||||||
&.alignright {
|
&.alignright {
|
||||||
@@ -29,7 +36,12 @@
|
|||||||
font-size: 1.6rem;
|
font-size: 1.6rem;
|
||||||
line-height: 2.4rem;
|
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) {
|
@media (min-width: 1280px) {
|
||||||
[class*='text-pull-'] {
|
[class*='text-pull-'] {
|
||||||
max-width: 32%;
|
max-width: 32%;
|
||||||
|
@@ -1,7 +1,12 @@
|
|||||||
|
/*=== 1.3 Responsive Media (videos, iframe...) === */
|
||||||
|
|
||||||
.embed {
|
.embed {
|
||||||
height: 0;
|
height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
/*aspect ratio:16:9*/
|
||||||
padding-bottom: 56.6%;
|
padding-bottom: 56.6%;
|
||||||
|
/*aspect ratio: 4:3*/
|
||||||
|
/*padding-bottom: 75%;*/
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
iframe,
|
iframe,
|
||||||
@@ -16,6 +21,9 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -- Responsive background video
|
||||||
|
https://fvsch.com/code/video-background/ -- */
|
||||||
|
|
||||||
.fullscreen > & {
|
.fullscreen > & {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
height: auto;
|
height: auto;
|
||||||
@@ -25,6 +33,7 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
||||||
|
/* 1. No object-fit support: */
|
||||||
& > iframe,
|
& > iframe,
|
||||||
& > object,
|
& > object,
|
||||||
& > embed,
|
& > embed,
|
||||||
@@ -39,6 +48,7 @@
|
|||||||
width: 300%;
|
width: 300%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 2. If supporting object-fit, overriding (1): */
|
||||||
@supports (object-fit: cover) {
|
@supports (object-fit: cover) {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@@ -1,7 +1,22 @@
|
|||||||
|
/*=========================================
|
||||||
|
4. Navigation
|
||||||
|
=========================================== */
|
||||||
|
|
||||||
|
/*=== 4.1. Navbars === */
|
||||||
|
|
||||||
nav ul {
|
nav ul {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
/*====align left====*/
|
||||||
justify-content: flex-start;
|
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 {
|
li {
|
||||||
float: left;
|
float: left;
|
||||||
@@ -36,10 +51,12 @@ header nav ul {
|
|||||||
|
|
||||||
nav.aligncenter ul,
|
nav.aligncenter ul,
|
||||||
.aligncenter nav ul {
|
.aligncenter nav ul {
|
||||||
|
/* ==== align center ====*/
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav.navbar ul li {
|
nav.navbar ul li {
|
||||||
|
/*====full float li a ====*/
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*=========================================
|
||||||
|
16. PRINT
|
||||||
|
=========================================== */
|
||||||
|
|
||||||
// sass-lint:disable no-important
|
// sass-lint:disable no-important
|
||||||
@media print {
|
@media print {
|
||||||
@page {
|
@page {
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*=============================================
|
||||||
|
7. Promos/Offers (pricing, tagline, CTA...)
|
||||||
|
=============================================== */
|
||||||
|
|
||||||
.cta {
|
.cta {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@@ -57,7 +61,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* --- Header CTA --- */
|
||||||
.cta-cover {
|
.cta-cover {
|
||||||
display: table;
|
display: table;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*=========================================
|
||||||
|
11. Quotes
|
||||||
|
=========================================== */
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -11,16 +15,11 @@ blockquote {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* -- Interviews dl.text-interview -- */
|
||||||
dd blockquote p:last-child {
|
dd blockquote p:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-apple blockquote p {
|
|
||||||
font-family: 'San Francisco', 'Roboto', helvetica, arial, sans-serif;
|
|
||||||
font-weight: 300;
|
|
||||||
}
|
|
||||||
|
|
||||||
cite {
|
cite {
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -34,9 +33,12 @@ cite {
|
|||||||
cite span {
|
cite span {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
/* -- A big Blockquote -- */
|
||||||
|
/* .wall will be deprecated soon. Use .text-quote ;) */
|
||||||
|
|
||||||
.text-quote,
|
.text-quote,
|
||||||
.wall {
|
.wall {
|
||||||
|
/* Versatility: blockquote, p, h2... */
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
/*=== 5.3 Slides - Background Images/Videos === */
|
||||||
|
|
||||||
.background,
|
.background,
|
||||||
[class*='background-'] {
|
[class*='background-'] {
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@@ -8,6 +10,8 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*=== BG Positions === */
|
||||||
|
|
||||||
.background {
|
.background {
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
@@ -64,12 +68,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*fullscreen video
|
||||||
|
<video class="background-video">
|
||||||
|
*/
|
||||||
|
|
||||||
&-video {
|
&-video {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: fill;
|
object-fit: fill;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*=== bg image/video overlay === */
|
||||||
|
/*-- [class*="bg-"] .background.dark, [class*="bg-"] .embed.dark... -- */
|
||||||
|
|
||||||
[class*='bg-'] .light,
|
[class*='bg-'] .light,
|
||||||
[class*='bg-'] .light {
|
[class*='bg-'] .light {
|
||||||
@@ -96,6 +106,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*=== Animated Background Image === */
|
||||||
|
|
||||||
.background.anim {
|
.background.anim {
|
||||||
animation: anim 80s linear infinite;
|
animation: anim 80s linear infinite;
|
||||||
background-position: center top;
|
background-position: center top;
|
||||||
@@ -105,6 +117,10 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*=== Background with a frame === */
|
||||||
|
/*<span class="background" style="background-image:url('image.jpg')"></span>
|
||||||
|
<span class="background frame"></span>*/
|
||||||
|
|
||||||
[class*='background'].frame {
|
[class*='background'].frame {
|
||||||
margin: 2.4rem;
|
margin: 2.4rem;
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
/* === 5.2 Counter / Navigation Slides === */
|
||||||
|
|
||||||
#navigation {
|
#navigation {
|
||||||
animation: fadeIn 8s;
|
animation: fadeIn 8s;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
@@ -8,6 +10,7 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
right: 0;
|
right: 0;
|
||||||
width: 24.4rem;
|
width: 24.4rem;
|
||||||
|
/* hover/visibility */
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
@@ -1,3 +1,11 @@
|
|||||||
|
/*============================================
|
||||||
|
5. SLIDES (Full Screen)
|
||||||
|
Vertically and horizontally centered
|
||||||
|
============================================== */
|
||||||
|
|
||||||
|
/* Fade transition to all slides.
|
||||||
|
* = All HTML elements will have those styles.*/
|
||||||
|
|
||||||
section * {
|
section * {
|
||||||
animation: fadeIn .6s ease-in-out;
|
animation: fadeIn .6s ease-in-out;
|
||||||
}
|
}
|
||||||
@@ -8,13 +16,17 @@ section .dark {
|
|||||||
animation-duration: 0s;
|
animation-duration: 0s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*=== Section = Slide === */
|
||||||
|
|
||||||
section,
|
section,
|
||||||
.slide {
|
.slide {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-height: 100vh;
|
min-height: 100vh; /*Fullscreen*/
|
||||||
|
/* Prototyping? min-height: 720px (Baseline: 8px = .8rem)*/
|
||||||
padding: 2.4rem;
|
padding: 2.4rem;
|
||||||
|
/*Fixed/Visible header? padding-top: 12rem; */
|
||||||
page-break-after: always;
|
page-break-after: always;
|
||||||
position: relative;
|
position: relative;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
@@ -24,19 +36,25 @@ section,
|
|||||||
padding-top: 12rem;
|
padding-top: 12rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*slide with no padding (full card, .embed youtube video...) */
|
||||||
.fullscreen {
|
.fullscreen {
|
||||||
padding: 0;
|
padding: 0
|
||||||
|
/* Fixed/Visible header?
|
||||||
|
padding:8.2rem 0 0 0;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
/* slide alignment - top */
|
||||||
.slide-top {
|
.slide-top {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
|
/* slide alignment - bottom */
|
||||||
.slide-bottom {
|
.slide-bottom {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*== 5.1. Mini container width:50%
|
||||||
|
Aligned items [class*="content-"]=== */
|
||||||
|
|
||||||
[class*='content-'] {
|
[class*='content-'] {
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*=========================================
|
||||||
|
13. Tables
|
||||||
|
=========================================== */
|
||||||
|
|
||||||
table {
|
table {
|
||||||
margin-bottom: 3.2rem;
|
margin-bottom: 3.2rem;
|
||||||
margin-top: 3.2rem;
|
margin-top: 3.2rem;
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*===========================================
|
||||||
|
9. Table of contents
|
||||||
|
============================================= */
|
||||||
|
|
||||||
.toc,
|
.toc,
|
||||||
.toc ol > li:before,
|
.toc ol > li:before,
|
||||||
.chapter {
|
.chapter {
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
/*=========================================
|
||||||
|
8. Work/Resumé/CV <ul class="work">
|
||||||
|
=========================================== */
|
||||||
|
|
||||||
.work {
|
.work {
|
||||||
clear: both;
|
clear: both;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -20,6 +24,7 @@
|
|||||||
|
|
||||||
p {
|
p {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
transition: .3s
|
||||||
}
|
}
|
||||||
|
|
||||||
li a {
|
li a {
|
||||||
@@ -30,11 +35,6 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
li a p,
|
|
||||||
li:first-child a:hover p:first-child {
|
|
||||||
transition: .3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
li p {
|
li p {
|
||||||
padding-left: 1.2rem;
|
padding-left: 1.2rem;
|
||||||
}
|
}
|
||||||
@@ -106,9 +106,3 @@
|
|||||||
width: 1px;
|
width: 1px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-pull.embed {
|
|
||||||
margin-left: -2.4rem;
|
|
||||||
margin-right: -2.4rem;
|
|
||||||
padding-bottom: 60.6%;
|
|
||||||
}
|
|
||||||
|
@@ -1,3 +1,10 @@
|
|||||||
|
/* === 1.2 Animations ================
|
||||||
|
Just 5 basic animations:
|
||||||
|
.fadeIn, .fadeInUp, .zoomIn, .slideInLeft, and .slideInRight
|
||||||
|
https://github.com/daneden/animate.css */
|
||||||
|
|
||||||
|
/*-- fadeIn -- */
|
||||||
|
|
||||||
@keyframes fadeIn {
|
@keyframes fadeIn {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@@ -12,6 +19,7 @@
|
|||||||
animation: fadeIn 1s;
|
animation: fadeIn 1s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*-- fadeInUp -- */
|
||||||
@keyframes fadeInUp {
|
@keyframes fadeInUp {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@@ -28,6 +36,7 @@
|
|||||||
animation: fadeInUp 1s;
|
animation: fadeInUp 1s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*-- zoomIn -- */
|
||||||
@keyframes zoomIn {
|
@keyframes zoomIn {
|
||||||
from {
|
from {
|
||||||
transform: scale3d(.3, .3, .3);
|
transform: scale3d(.3, .3, .3);
|
||||||
@@ -42,6 +51,7 @@
|
|||||||
animation: zoomIn 1s;
|
animation: zoomIn 1s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*-- slideInLeft -- */
|
||||||
@keyframes slideInLeft {
|
@keyframes slideInLeft {
|
||||||
from {
|
from {
|
||||||
transform: translate3d(-100%, 0, 0);
|
transform: translate3d(-100%, 0, 0);
|
||||||
@@ -58,6 +68,7 @@
|
|||||||
animation-fill-mode: both;
|
animation-fill-mode: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*-- slideInRight -- */
|
||||||
@keyframes slideInRight {
|
@keyframes slideInRight {
|
||||||
from {
|
from {
|
||||||
transform: translate3d(100%, 0, 0);
|
transform: translate3d(100%, 0, 0);
|
||||||
@@ -74,7 +85,7 @@
|
|||||||
animation-fill-mode: both;
|
animation-fill-mode: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Animated Background (Matrix) */
|
||||||
@keyframes anim {
|
@keyframes anim {
|
||||||
0% {
|
0% {
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
@@ -85,7 +96,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Duration */
|
||||||
.slow {
|
.slow {
|
||||||
animation-duration: 4s;
|
animation-duration: 4s;
|
||||||
|
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
/*=========================================
|
||||||
|
16. SAFARI BUGS (flex-wrap)
|
||||||
|
Solution: stackoverflow.com/questions/34250282/flexbox-safari-bug-flex-wrap
|
||||||
|
=========================================== */
|
||||||
|
|
||||||
.flexblock:before,
|
.flexblock:before,
|
||||||
.flexblock:after,
|
.flexblock:after,
|
||||||
.grid:before,
|
.grid:before,
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
/*=== Clearing === */
|
||||||
|
|
||||||
header,
|
header,
|
||||||
main,
|
main,
|
||||||
section,
|
section,
|
||||||
|
@@ -298,4 +298,3 @@ dt {
|
|||||||
dd {
|
dd {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user