2
0

Move site to root in this branch.

This commit is contained in:
Maarten Billemont
2018-04-20 09:15:28 -04:00
parent 409f005eec
commit d0cd8ae288
1561 changed files with 36 additions and 132736 deletions

206
_sass/_base.scss Normal file
View File

@@ -0,0 +1,206 @@
/**
* Reset some basic elements
*/
body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
margin: 0;
padding: 0;
}
/**
* Basic styling
*/
body {
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
color: $text-color;
background-color: $background-color;
-webkit-text-size-adjust: 100%;
-webkit-font-feature-settings: "kern" 1;
-moz-font-feature-settings: "kern" 1;
-o-font-feature-settings: "kern" 1;
font-feature-settings: "kern" 1;
font-kerning: normal;
}
/**
* Set `margin-bottom` to maintain vertical rhythm
*/
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
%vertical-rhythm {
margin-bottom: $spacing-unit / 2;
}
/**
* Images
*/
img {
max-width: 100%;
vertical-align: middle;
}
/**
* Figures
*/
figure > img {
display: block;
}
figcaption {
font-size: $small-font-size;
}
/**
* Lists
*/
ul, ol {
margin-left: $spacing-unit;
}
li {
> ul,
> ol {
margin-bottom: 0;
}
}
/**
* Headings
*/
h1, h2, h3, h4, h5, h6 {
font-weight: $base-font-weight;
}
/**
* Links
*/
a {
color: $brand-color;
text-decoration: none;
&:visited {
color: darken($brand-color, 15%);
}
&:hover {
color: $text-color;
text-decoration: underline;
}
}
/**
* Blockquotes
*/
blockquote {
color: $grey-color;
border-left: 4px solid $grey-color-light;
padding-left: $spacing-unit / 2;
font-size: 18px;
letter-spacing: -1px;
font-style: italic;
> :last-child {
margin-bottom: 0;
}
}
/**
* Code formatting
*/
pre,
code {
font-size: 15px;
border: 1px solid $grey-color-light;
border-radius: 3px;
background-color: #eef;
}
code {
padding: 1px 5px;
}
pre {
padding: 8px 12px;
overflow-x: auto;
> code {
border: 0;
padding-right: 0;
padding-left: 0;
}
}
/**
* Wrapper
*/
.wrapper {
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
margin-right: auto;
margin-left: auto;
padding-right: $spacing-unit;
padding-left: $spacing-unit;
@extend %clearfix;
@include media-query($on-laptop) {
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
max-width: calc(#{$content-width} - (#{$spacing-unit}));
padding-right: $spacing-unit / 2;
padding-left: $spacing-unit / 2;
}
}
/**
* Clearfix
*/
%clearfix {
&:after {
content: "";
display: table;
clear: both;
}
}
/**
* Icons
*/
.icon {
> svg {
display: inline-block;
width: 16px;
height: 16px;
vertical-align: middle;
path {
fill: $grey-color;
}
}
}

345
_sass/_layout.scss Normal file
View File

@@ -0,0 +1,345 @@
@import url('https://fonts.googleapis.com/css?family=Rubik:300,400|Rubik+Mono+One');
html, body {
width: 100%;
height: 100%;
font-family: 'Rubik', sans-serif;
font-weight: 300;
text-align: justify;
}
body * {
/*outline: 1px solid rgba(255, 0, 0, 0.5);/**/
}
img, video {
margin: 1ex 1em;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
object-fit: contain;
box-sizing: border-box;
max-width: 100%;
}
h1 {
margin: 0;
font-family: 'Rubik Mono One', sans-serif;
font-size: 2em;
text-align: center;
}
h2 {
margin: 2em 0 1em;
font-size: 2em;
font-weight: 400;
text-align: center;
img {
display: block;
height: 5em;
margin: auto;
padding: 0 1ex;
border-bottom: 4px solid black;
box-shadow: none;
}
input {
height: 1em;
}
}
h3 {
margin: 2em 0 1em;
font-size: 1.5em;
font-weight: 400;
}
hr {
margin: 2em -2em 1em;
}
a, a:link, a:visited, a:hover {
color: inherit;
}
q {
font-style: italic;
}
nav {
display: flex;
font-size: 1.8em;
font-weight: 400;
text-align: center;
&>* {
flex: 1;
border: 0 solid transparent;
border-width: 0 0.5ex;
.popup {
display: none;
}
}
}
header, section {
width: 100%;
}
header {
display: flex;
position: relative;
overflow: hidden;
min-height: 40%;
flex-direction: column;
justify-content: stretch;
align-items: stretch;
.hero {
position: absolute;
z-index: -1;
left: 0;
right: 0;
top: 0;
bottom: -70px; /* This is to deal with some kind of weird paroller bug that gives us blank space at the bottom otherwise. */
background: black url('../img/hero_main.jpg') center center no-repeat;
background-size: cover;
}
&[data-hero=ios] .hero {
background-image: url('../img/hero_ios.jpg');
}
&[data-hero=android] .hero {
background-image: url('../img/hero_android.jpg');
}
&[data-hero=mac] .hero {
background-image: url('../img/hero_mac.jpg');
}
&[data-hero=desktop] .hero {
background-image: url('../img/hero_desktop.jpg');
}
&[data-hero=cli] .hero {
background-image: url('../img/hero_cli.jpg');
}
&[data-hero=web] .hero {
background-image: url('../img/hero_web.jpg');
}
h1 {
height: 1em;
color: white;
text-align: center;
}
nav:first-child {
position: fixed;
padding: 0 2em;
margin: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.8);
color: white;
&>*:first-child {
text-align: left;
font-variant: small-caps;
font-weight: 300;
}
&>*:last-child {
text-align: right;
font-variant: small-caps;
font-weight: 300;
}
}
nav:last-child {
align-content: space-evenly;
color: black;
color: white;
text-shadow: 0 1px 1px white;
text-shadow: 0 1px 1px black;
background: rgba(0, 0, 0, 0.6);
background: rgba(255, 255, 255, 0.4);
&>*.active, &>*:hover, &:hover>*:hover {
background: rgba(255, 255, 255, 0.6);
border-bottom: 3px solid;
}
&>*, &:hover>* {
transition: all 0.3s;
background: rgba(255, 255, 255, 0.0);
border-bottom: 3px solid transparent;
border-radius: 6px 6px 0 0;
}
}
}
header.large, section {
min-height: 90%;
}
section {
box-sizing: border-box;
padding: 2em 100px;
font-size: 1.2em;
}
footer {
padding: 2em 100px;
background: rgba(240, 240, 240, 1);
& > div {
display: flex;
& > div {
flex: 1;
ul {
list-style: none;
}
}
}
p {
font-size: smaller;
color: rgba(180, 180, 180, 1);
}
}
input {
margin: 0 0.3ex;
font: inherit;
background: rgba(240, 240, 240, 1);
box-shadow: 0 0 1px black;
border-radius: 4px;
border: none;
outline: none;
}
input:hover {
background: rgba(200, 200, 200, 1);
}
input[type=button] {
cursor: pointer;
}
input[type=checkbox] {
display: none;
& + label::before {
display: inline-block;
content: '';
margin: 0 1ex;
background: rgba(240, 240, 240, 1);
box-shadow: 0 0 1px black;
border-radius: 4px;
width: 1ex;
height: 1ex;
}
&:checked + label::before {
background: black;
}
}
.widget_calculator table {
height: 200px;
padding: 4px;
margin: 1em auto;
background: rgba(200, 200, 200, 1);
box-shadow: 0 1px 3px black;
border-radius: 4px;
tr {
height: 20%;
td, th {
padding: 4px;
}
input {
display: block;
width: 100%;
height: 100%;
padding: 0 1ex;
margin: 0;
box-sizing: border-box;
}
}
}
.widget_gallery {
box-shadow: 0 0 1px black;
border-radius: 4px;
& > ul {
display: flex;
list-style: none;
justify-content: space-around;
li {
height: 100px;
label {
display: block;
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 1em;
background: rgba(240, 240, 240, 1);
box-shadow: 0 0 2px black;
border-radius: 4px;
cursor: pointer;
&:hover {
background: rgba(200, 200, 200, 1);
}
img {
display: block;
width: 100%;
height: 100%;
margin: 0;
box-shadow: none;
}
}
}
}
input[type=radio] {
display: none;
& + div {
display:none;
margin: 1px;
padding: 2em;
background: rgba(240, 240, 240, 1);
}
&:checked + div {
display:block;
}
}
}
.widget_test ul {
list-style: none;
li {
border-left: 4px solid rgba(200, 200, 200, 1);
}
label {
font-size: 1.2em;
font-weight: 400;
}
input[type=checkbox] {
& + label + div {
display:none;
margin: 1ex 0;
padding: 1ex 2em;
background: rgba(240, 240, 240, 1);
font-weight: 100;
}
&:checked + label + div {
display:block;
}
}
}
.flex-auto {
flex: auto;
}

View File

@@ -0,0 +1,71 @@
/**
* Syntax highlighting styles
*/
.highlight {
background: #fff;
@extend %vertical-rhythm;
.highlighter-rouge & {
background: #eef;
}
.c { color: #998; font-style: italic } // Comment
.err { color: #a61717; background-color: #e3d2d2 } // Error
.k { font-weight: bold } // Keyword
.o { font-weight: bold } // Operator
.cm { color: #998; font-style: italic } // Comment.Multiline
.cp { color: #999; font-weight: bold } // Comment.Preproc
.c1 { color: #998; font-style: italic } // Comment.Single
.cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
.gd { color: #000; background-color: #fdd } // Generic.Deleted
.gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
.ge { font-style: italic } // Generic.Emph
.gr { color: #a00 } // Generic.Error
.gh { color: #999 } // Generic.Heading
.gi { color: #000; background-color: #dfd } // Generic.Inserted
.gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
.go { color: #888 } // Generic.Output
.gp { color: #555 } // Generic.Prompt
.gs { font-weight: bold } // Generic.Strong
.gu { color: #aaa } // Generic.Subheading
.gt { color: #a00 } // Generic.Traceback
.kc { font-weight: bold } // Keyword.Constant
.kd { font-weight: bold } // Keyword.Declaration
.kp { font-weight: bold } // Keyword.Pseudo
.kr { font-weight: bold } // Keyword.Reserved
.kt { color: #458; font-weight: bold } // Keyword.Type
.m { color: #099 } // Literal.Number
.s { color: #d14 } // Literal.String
.na { color: #008080 } // Name.Attribute
.nb { color: #0086B3 } // Name.Builtin
.nc { color: #458; font-weight: bold } // Name.Class
.no { color: #008080 } // Name.Constant
.ni { color: #800080 } // Name.Entity
.ne { color: #900; font-weight: bold } // Name.Exception
.nf { color: #900; font-weight: bold } // Name.Function
.nn { color: #555 } // Name.Namespace
.nt { color: #000080 } // Name.Tag
.nv { color: #008080 } // Name.Variable
.ow { font-weight: bold } // Operator.Word
.w { color: #bbb } // Text.Whitespace
.mf { color: #099 } // Literal.Number.Float
.mh { color: #099 } // Literal.Number.Hex
.mi { color: #099 } // Literal.Number.Integer
.mo { color: #099 } // Literal.Number.Oct
.sb { color: #d14 } // Literal.String.Backtick
.sc { color: #d14 } // Literal.String.Char
.sd { color: #d14 } // Literal.String.Doc
.s2 { color: #d14 } // Literal.String.Double
.se { color: #d14 } // Literal.String.Escape
.sh { color: #d14 } // Literal.String.Heredoc
.si { color: #d14 } // Literal.String.Interpol
.sx { color: #d14 } // Literal.String.Other
.sr { color: #009926 } // Literal.String.Regex
.s1 { color: #d14 } // Literal.String.Single
.ss { color: #990073 } // Literal.String.Symbol
.bp { color: #999 } // Name.Builtin.Pseudo
.vc { color: #008080 } // Name.Variable.Class
.vg { color: #008080 } // Name.Variable.Global
.vi { color: #008080 } // Name.Variable.Instance
.il { color: #099 } // Literal.Number.Integer.Long
}