Commit 1cff3360 authored by Yoann Pigné's avatar Yoann Pigné

update SASS build step.

parent bfe4e14b
......@@ -3,3 +3,5 @@ highlighter: red
kramdown:
input: GFM
hard_wrap: false
sass:
sass_dir: assets/_sass
@import 'vars';
@import 'functions';
@import 'mixins';
@import 'skel';
.callout {
display: block;
background-color: transparentize(_palette(accent2, bg), 0.75);
padding: 1em;
border-left: solid 5px _palette(accent2, bg);
border-radius: 3px;
&.danger {
background-color: transparentize(_palette(accent6, bg), 0.75);
border-left-color: _palette(accent6, bg);
}
}
#map.wrapper {
padding: 0px;
}
body {
-webkit-font-smoothing: antialiased;
}
p.central {
max-width: 800px;
text-align: center;
margin-left: auto;
margin-right: auto;
}
.font-light {
font-weight: 300;
}
.font-ultralight {
font-weight: 100;
}
#header h1 {
font-size: 1.5em;
}
.faironnerie {
font-family: 'Montserrat Black';
font-weight: normal;
text-transform: none;
letter-spacing: normal;
.abc {
font-family: 'Montserrat';
font-weight: 100;
text-transform: none;
}
}
img {
max-width: 100%;
}
h1, h2, h3, h4, h5, .inner > div {
clear:both;
}
article#main .authors {
text-transform: none;
font-weight: 300;
}
/*
* Fix the sticky header link problem...
*/
article#main {
h1, h2, h3, h4 {
&:before {
content: ' ';
height: 64px;
display: block;
margin-top: -64px;
visibility: hidden;
}
}
}
.youtube {
position: relative;
padding-bottom: 56.25%;
padding-top: 0px;
height: 0;
overflow: hidden;
iframe, object, embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
@import 'toc';
@import 'callout';
/// Gets a duration value.
/// @param {string} $keys Key(s).
/// @return {string} Value.
@function _duration($keys...) {
@return val($duration, $keys...);
}
/// Gets a font value.
/// @param {string} $keys Key(s).
/// @return {string} Value.
@function _font($keys...) {
@return val($font, $keys...);
}
/// Gets a misc value.
/// @param {string} $keys Key(s).
/// @return {string} Value.
@function _misc($keys...) {
@return val($misc, $keys...);
}
/// Gets a palette value.
/// @param {string} $keys Key(s).
/// @return {string} Value.
@function _palette($keys...) {
@return val($palette, $keys...);
}
/// Gets a size value.
/// @param {string} $keys Key(s).
/// @return {string} Value.
@function _size($keys...) {
@return val($size, $keys...);
}
\ No newline at end of file
/// Makes an element's :before pseudoelement a FontAwesome icon.
/// @param {string} $content Optional content value to use.
/// @param {string} $where Optional pseudoelement to target (before or after).
@mixin icon($content: false, $where: before) {
text-decoration: none;
&:#{$where} {
@if $content {
content: $content;
}
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-transform: none !important;
}
}
/// Applies padding to an element, taking the current element-margin value into account.
/// @param {mixed} $tb Top/bottom padding.
/// @param {mixed} $lr Left/right padding.
/// @param {list} $pad Optional extra padding (in the following order top, right, bottom, left)
/// @param {bool} $important If true, adds !important.
@mixin padding($tb, $lr, $pad: (0,0,0,0), $important: null) {
@if $important {
$important: '!important';
}
padding: ($tb + nth($pad,1)) ($lr + nth($pad,2)) max(0.1em, $tb - _size(element-margin) + nth($pad,3)) ($lr + nth($pad,4)) #{$important};
}
/// Encodes a SVG data URL so IE doesn't choke (via codepen.io/jakob-e/pen/YXXBrp).
/// @param {string} $svg SVG data URL.
/// @return {string} Encoded SVG data URL.
@function svg-url($svg) {
$svg: str-replace($svg, '"', '\'');
$svg: str-replace($svg, '<', '%3C');
$svg: str-replace($svg, '>', '%3E');
$svg: str-replace($svg, '&', '%26');
$svg: str-replace($svg, '#', '%23');
$svg: str-replace($svg, '{', '%7B');
$svg: str-replace($svg, '}', '%7D');
$svg: str-replace($svg, ';', '%3B');
@return url("data:image/svg+xml;charset=utf8,#{$svg}");
}
\ No newline at end of file
This diff is collapsed.
#table-of-contents {
font-size: 0.8em;
background-color: rgba(0, 0, 0, 0.05);
padding: 1em 1em 0 1em;
margin-bottom: 1em;
display: inline-block;
ul {
font-weight: 300;
margin-left: 0px;
padding-left: 5px;
list-style-type: none;
li {
a {
display: block;
font-size: inherit;
font-weight: inherit;
border-bottom: none;
}
&.toc-0 {
//font-size: 110%;
margin-left: 1em;
}
&.toc-1 {
margin-left: 2em;
}
&.toc-2 {
margin-left: 3em;
}
&.toc-3 {
margin-left: 4em;
}
}
}
}
a.go-up {
margin-left: 0.5em;
}
// Misc.
$misc: (
max-spotlights: 10,
max-features: 10,
z-index-base: 10000
);
// Duration.
$duration: (
transitions: 0.2s,
menu: 0.5s,
fadein: 3s
);
// Size.
$size: (
element-height: 2.75em,
element-margin: 2em,
letter-spacing: 0.075em,
letter-spacing-alt: 0.225em
);
// Font.
$font: (
family: ('Open Sans', Helvetica, sans-serif),
family-fixed: ('Courier New', monospace),
family-title: ('Montserrat', 'Open Sans', sans-serif),
family-bigtitle: ('Montserrat Black'),
weight: 400,
weight-bold: 600,
weight-extrabold: 800,
weight-title: bold,
weight-bigtitle: normal
);
// Palette.
$palette: (
bg: #2e3842,
fg: #fff,
fg-bold: #fff,
fg-light: rgba(255,255,255,0.5),
border: #fff,
border-bg: rgba(144,144,144,0.25),
border2: #fff,
border2-bg: rgba(144,144,144,0.5),
accent1: (
bg: rgb(76, 92, 150),
fg-bold: #ffffff,
fg: mix(#21b2a6, #ffffff, 25%),
fg-light: mix(#21b2a6, #ffffff, 40%),
border: rgba(0,0,0,0.125),
border-bg: rgba(255,255,255,0.075),
border2: rgba(0,0,0,0.25),
border2-bg: rgba(255,255,255,0.2)
),
accent2: (
bg: rgb(69, 85, 141),
fg-bold: #ffffff,
fg: mix(#00ffcc, #ffffff, 25%),
fg-light: mix(#00ffcc, #ffffff, 40%),
border: rgba(0,0,0,0.125),
border-bg: rgba(255,255,255,0.075),
border2: rgba(0,0,0,0.25),
border2-bg: rgba(255,255,255,0.2)
),
accent3: (
bg: #00f0ff,
fg-bold: #ffffff,
fg: mix(#00f0ff, #ffffff, 25%),
fg-light: mix(#00f0ff, #ffffff, 40%),
border: rgba(0,0,0,0.125),
border-bg: rgba(255,255,255,0.075),
border2: rgba(0,0,0,0.25),
border2-bg: rgba(255,255,255,0.2)
),
accent4: (
bg: #76ddff,
fg-bold: #ffffff,
fg: mix(#76ddff, #ffffff, 25%),
fg-light: mix(#76ddff, #ffffff, 40%),
border: rgba(0,0,0,0.125),
border-bg: rgba(255,255,255,0.075),
border2: rgba(0,0,0,0.25),
border2-bg: rgba(255,255,255,0.2)
),
accent5: (
bg: #505393,
fg-bold: #ffffff,
fg: mix(#505393, #ffffff, 25%),
fg-light: mix(#505393, #ffffff, 40%),
border: rgba(0,0,0,0.125),
border-bg: rgba(255,255,255,0.075),
border2: rgba(0,0,0,0.25),
border2-bg: rgba(255,255,255,0.2)
),
accent6: (
bg: #ed4933,
fg-bold: #ffffff,
fg: mix(#ed4933, #ffffff, 25%),
fg-light: mix(#ed4933, #ffffff, 40%),
border: rgba(0,0,0,0.125),
border-bg: rgba(255,255,255,0.075),
border2: rgba(0,0,0,0.25),
border2-bg: rgba(255,255,255,0.2)
),
accent7: (
bg: #ffffff,
fg-bold: #2E3842,
fg: #4E4852,
fg-light: #8E8892,
border: #dfdfdf,
border-bg: rgba(0,0,0,0.0375),
border2: #bfbfbf,
border2-bg: rgba(0,0,0,0.1)
)
);
---
---
@import 'vars';
@import 'functions';
@import 'mixins';
@import 'skel';
/*
Spectral by HTML5 UP
html5up.net | @ajlkn
......@@ -6,18 +13,20 @@
/* Icon */
.icon.major {
border: none;
}
.icon {
&.major {
border: none;
.icon.major:before {
font-size: 3em;
&:before {
font-size: 3em;
}
}
}
/* Form */
label {
color: #2E3842;
color: _palette(accent7, fg-bold);
}
input[type="text"],
......@@ -25,7 +34,7 @@
input[type="email"],
select,
textarea {
border: solid 1px #dfdfdf;
border: solid 1px _palette(accent7, border);
}
/* Button */
......@@ -35,16 +44,12 @@
input[type="button"],
button,
.button {
border: solid 2px #dfdfdf;
}
border: solid 2px _palette(accent7, border);
input[type="submit"].special,
input[type="reset"].special,
input[type="button"].special,
button.special,
.button.special {
&.special {
border: 0 !important;
}
}
/* Page Wrapper + Menu */
......@@ -52,44 +57,61 @@
display: none;
}
body.is-menu-visible #menu {
display: block;
body.is-menu-visible {
#menu {
display: block;
}
}
/* Header */
#header nav > ul > li > a.menuToggle:after {
display: none;
#header {
nav {
> ul {
> li {
> a {
&.menuToggle {
&:after {
display: none;
}
}
}
}
}
}
}
/* Banner + Wrapper (style4) */
#banner,
.wrapper.style4 {
-ms-behavior: url("assets/js/ie/backgroundsize.min.htc");
}
-ms-behavior: url('assets/js/ie/backgroundsize.min.htc');
#banner:before,
.wrapper.style4:before {
&:before {
display: none;
}
}
/* Banner */
#banner .more {
height: 4em;
}
#banner {
.more {
height: 4em;
#banner .more:after {
display: none;
&:after {
display: none;
}
}
}
/* Main */
#main > header {
-ms-behavior: url("assets/js/ie/backgroundsize.min.htc");
}
#main {
> header {
-ms-behavior: url('assets/js/ie/backgroundsize.min.htc');
#main > header:before {
display: none;
}
\ No newline at end of file
&:before {
display: none;
}
}
}
---
---
@import 'vars';
@import 'functions';
@import 'mixins';
@import 'skel';
/*
Spectral by HTML5 UP
html5up.net | @ajlkn
......@@ -8,39 +16,39 @@
.spotlight {
display: block;
}
.spotlight .image {
.image {
display: inline-block;
vertical-align: top;
}
.spotlight .content {
padding: 4em 4em 2em 4em ;
.content {
@include padding(4em, 4em);
display: inline-block;
}
.spotlight:after {
&:after {
clear: both;
content: '';
display: block;
}
}
/* Features */
.features {
display: block;
}
.features li {
li {
float: left;
}
.features:after {
&:after {
content: '';
display: block;
clear: both;
}
}
/* Banner + Wrapper (style4) */
......@@ -51,10 +59,8 @@
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
#banner:before,
.wrapper.style4:before {
&:before {
background: #000000;
content: '';
height: 100%;
......@@ -65,61 +71,67 @@
width: 100%;
}
#banner .inner,
.wrapper.style4 .inner {
.inner {
position: relative;
z-index: 1;
}
}
/* Banner */
#banner {
padding: 14em 0 12em 0 ;
@include padding(14em, 0);
height: auto;
}
#banner:after {
&:after {
display: none;
}
/* CTA */
#cta .inner header {
float: left;
}
#cta .inner .actions {
float: left;
}
/* CTA */
#cta .inner:after {
clear: both;
content: '';
display: block;
#cta {
.inner {
header {
float: left;
}
.actions {
float: left;
}
&:after {
clear: both;
content: '';
display: block;
}
}
}