overkyll-jekyll-theme 0.8 → 0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,103 @@
1
+ ////
2
+ /// Media queries
3
+ ////
4
+
5
+ // Media Query breakpoint
6
+ // https://medium.freecodecamp.com/the-100-correct-way-to-do-css-breakpoints-88d6a5ba1862#.59e713wwa
7
+ //-------------------------------------
8
+
9
+ $screen: "only screen";
10
+ $tiny: 20; /* 320px */
11
+ $small: 37.5; /* 600px */
12
+ $medium: 56.25; /* 900px */
13
+ $large: 75; /* 1200px */
14
+ $xlarge: 112.5; /* 1800px */
15
+ $xxlarge: 150; /* 2400px */
16
+
17
+
18
+ // Media Query Ranges
19
+ //-------------------------------------
20
+
21
+ $tiny-range : (0em, $tiny * 1em) !default;
22
+ $small-range : (0em, $small * 1em - 0.063em) !default;
23
+ $medium-range : ($medium * 1em + 0.063em, $large * 1em) !default;
24
+ $large-range : ($large * 1em + 0.063em, $xlarge * 1em) !default;
25
+ $xlarge-range : ($xlarge * 1em + 0.063em, $xxlarge * 1em) !default;
26
+ $xxlarge-range : ($xxlarge * 1em + 0.063em, 99999999em) !default;
27
+
28
+
29
+ // Media Query Ranges :: Mixin (from Foundation CSS)
30
+ //-------------------------------------
31
+
32
+ // functions
33
+
34
+ @function lower-bound($range){
35
+ @if length($range) <= 0 {
36
+ @return 0;
37
+ }
38
+ @return nth($range,1);
39
+ }
40
+
41
+ @function upper-bound($range) {
42
+ @if length($range) < 2 {
43
+ @return 999999999999;
44
+ }
45
+ @return nth($range, 2);
46
+ }
47
+
48
+ // Call functions and declare media range variable
49
+
50
+ $landscape : "#{$screen} and (orientation: landscape)";
51
+ $portrait : "#{$screen} and (orientation: portrait)";
52
+ $tiny-only : "#{$screen} and (max-width:#{upper-bound($tiny-range)})";
53
+ $small-up : "#{$screen} and (min-width:#{lower-bound($small-range)})";
54
+ $small-only : "#{$screen} and (max-width:#{upper-bound($small-range)})";
55
+ $medium-up : "#{$screen} and (min-width:#{lower-bound($medium-range)})";
56
+ $medium-only : "#{$screen} and (min-width:#{lower-bound($medium-range)}) and (max-width:#{upper-bound($medium-range)})";
57
+ $large-up : "#{$screen} and (min-width:#{lower-bound($large-range)})";
58
+ $large-only : "#{$screen} and (min-width:#{lower-bound($large-range)}) and (max-width:#{upper-bound($large-range)})";
59
+ $xlarge-up : "#{$screen} and (min-width:#{lower-bound($xlarge-range)})";
60
+ $xlarge-only : "#{$screen} and (min-width:#{lower-bound($xlarge-range)}) and (max-width:#{upper-bound($xlarge-range)})";
61
+ $xxlarge-up : "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})";
62
+ $xxlarge-only : "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})";
63
+
64
+
65
+ // Unison
66
+ // speaking with JS with unison.js
67
+ // http://bjork24.github.io/Unison/
68
+ //-------------------------------------
69
+
70
+ // config
71
+ $debug: false;
72
+
73
+ // Unison media
74
+ $mq-sync:
75
+ usn-small 0,
76
+ usn-medium $medium * 1em
77
+ ;
78
+ // usn-large $large,
79
+ // usn-x-large $xlarge,
80
+ // usn-xx-large $xxlarge
81
+
82
+ // build each media query for js ingestion
83
+ @each $mq in $mq-sync {
84
+ @media screen and (min-width: nth($mq, 2)) {
85
+ head { font-family: "#{nth($mq, 1)} #{nth($mq, 2)}"; }
86
+ body:after { content: "#{nth($mq, 1)} - min-width: #{nth($mq, 2)}"; }
87
+ }
88
+ }
89
+ head {
90
+ // set clear on head to show Unison is set up correctly
91
+ clear: both;
92
+ // store hash of all breakpoints
93
+ title { font-family: "#{$mq-sync}"; }
94
+ }
95
+ // debug styles to see breakpoint info
96
+ body:after {
97
+ display: none;
98
+ }
99
+ // hide elements for conditional loading
100
+ // only used for responsive comments plugin
101
+ *[data-usn-if] { display: none; }
102
+
103
+
@@ -0,0 +1,42 @@
1
+ //
2
+ //
3
+ // 𝗖 𝗢 𝗟 𝗢 𝗥
4
+ // v 1.4.0
5
+ //
6
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
7
+
8
+ // Gray
9
+ $gray-list: ( "0": #f8f9fa, "1": #f1f3f5, "2": #e9ecef, "3": #dee2e6, "4": #ced4da, "5": #adb5bd, "6": #868e96, "7": #495057, "8": #343a40, "9": #212529);
10
+ $red-list: ( "0": #fff5f5, "1": #ffe3e3, "2": #ffc9c9, "3": #ffa8a8, "4": #ff8787, "5": #ff6b6b, "6": #fa5252, "7": #f03e3e, "8": #e03131, "9": #c92a2a);
11
+ $pink-list: ( "0": #fff0f6, "1": #ffdeeb, "2": #fcc2d7, "3": #faa2c1, "4": #f783ac, "5": #f06595, "6": #e64980, "7": #d6336c, "8": #c2255c, "9": #a61e4d);
12
+ $grape-list: ( "0": #f8f0fc, "1": #f3d9fa, "2": #eebefa, "3": #e599f7, "4": #da77f2, "5": #cc5de8, "6": #be4bdb, "7": #ae3ec9, "8": #9c36b5, "9": #862e9c);
13
+ $violet-list: ( "0": #f3f0ff, "1": #e5dbff, "2": #d0bfff, "3": #b197fc, "4": #9775fa, "5": #845ef7, "6": #7950f2, "7": #7048e8, "8": #6741d9, "9": #5f3dc4);
14
+ $indigo-list: ( "0": #edf2ff, "1": #dbe4ff, "2": #bac8ff, "3": #91a7ff, "4": #748ffc, "5": #5c7cfa, "6": #4c6ef5, "7": #4263eb, "8": #3b5bdb, "9": #364fc7);
15
+ $blue-list: ( "0": #e8f7ff, "1": #ccedff, "2": #a3daff, "3": #72c3fc, "4": #4dadf7, "5": #329af0, "6": #228ae6, "7": #1c7cd6, "8": #1b6ec2, "9": #1862ab);
16
+ $cyan-list: ( "0": #e3fafc, "1": #c5f6fa, "2": #99e9f2, "3": #66d9e8, "4": #3bc9db, "5": #22b8cf, "6": #15aabf, "7": #1098ad, "8": #0c8599, "9": #0b7285);
17
+ $teal-list: ( "0": #e6fcf5, "1": #c3fae8, "2": #96f2d7, "3": #63e6be, "4": #38d9a9, "5": #20c997, "6": #12b886, "7": #0ca678, "8": #099268, "9": #087f5b);
18
+ $green-list: ( "0": #ebfbee, "1": #d3f9d8, "2": #b2f2bb, "3": #8ce99a, "4": #69db7c, "5": #51cf66, "6": #40c057, "7": #37b24d, "8": #2f9e44, "9": #2b8a3e);
19
+ $lime-list: ( "0": #f4fce3, "1": #e9fac8, "2": #d8f5a2, "3": #c0eb75, "4": #a9e34b, "5": #94d82d, "6": #82c91e, "7": #74b816, "8": #66a80f, "9": #5c940d);
20
+ $yellow-list: ( "0": #fff9db, "1": #fff3bf, "2": #ffec99, "3": #ffe066, "4": #ffd43b, "5": #fcc419, "6": #fab005, "7": #f59f00, "8": #f08c00, "9": #e67700);
21
+ $orange-list: ( "0": #fff4e6, "1": #ffe8cc, "2": #ffd8a8, "3": #ffc078, "4": #ffa94d, "5": #ff922b, "6": #fd7e14, "7": #f76707, "8": #e8590c, "9": #d9480f);
22
+
23
+
24
+ $color-list: (
25
+ "gray": $gray-list,
26
+ "red": $red-list,
27
+ "pink": $pink-list,
28
+ "grape": $grape-list,
29
+ "violet": $violet-list,
30
+ "indigo": $indigo-list,
31
+ "blue": $blue-list,
32
+ "cyan": $cyan-list,
33
+ "teal": $teal-list,
34
+ "green": $green-list,
35
+ "lime": $lime-list,
36
+ "yellow": $yellow-list,
37
+ "orange": $orange-list
38
+ );
39
+
40
+ @function color($color, $spectrum) {
41
+ @return map-get(map-get($color-list, "#{$color}"),"#{$spectrum}");
42
+ }
@@ -0,0 +1,136 @@
1
+ ////
2
+ /// Typography
3
+ ////
4
+
5
+ // Our variables
6
+ //-------------------------------------
7
+ $base-font-name: -apple-system !default;
8
+ $title-font-name: -apple-system !default;
9
+ $base-font-family: $base-font-name, system, sans-serif !default;
10
+ $title-font-family: $title-font-name, system, sans-serif !default;
11
+
12
+ $ratio: 1.20;
13
+ $base: 1;
14
+ $base-em: $base * 1em;
15
+ $base-px: $base * 16px;
16
+
17
+ $ms0: 1;
18
+ $ms1: $ratio; /* 1.2 */
19
+ $ms2: $ratio * $ms1; /* 1.44 */
20
+ $ms3: $ratio * $ms2; /* 1.728 */
21
+ $ms4: $ratio * $ms3; /* 2.074 */
22
+ $ms5: $ratio * $ms4; /* 2.488 */
23
+ $ms6: $ratio * $ms5; /* 2.986 */
24
+ $ms7: $ratio * $ms6; /* 3.583 */
25
+
26
+ $smaller: $base-em / $ms1;
27
+ $normal: $base-em * $ms0;
28
+ $bigger: $base-em * $ms1;
29
+ $title3: $base-em * $ms2;
30
+ $title2: $base-em * $ms3;
31
+ $title1: $base-em * $ms4;
32
+
33
+ $line-height-base: $base * $ms2;
34
+ $base-line: floor(($base-em * $line-height-base));
35
+
36
+ body {
37
+ font-family: $base-font-family;
38
+ font-size: $base-em * $ms0;
39
+ line-height: $base * $ms3;
40
+ //font-size: calc(4vw + 4vh + 2vmin)
41
+ }
42
+
43
+ h3,
44
+ h2 { line-height: $base * $ms1; }
45
+ h1 { line-height: $base * $ms0; }
46
+
47
+ h6, .h6 { font-size: $smaller; }
48
+ h5, .h5 { font-size: $normal; }
49
+ h4, .h4 { font-size: $bigger; }
50
+ h3, .h3 { font-size: $title3; }
51
+ h2, .h2 { font-size: $title2; }
52
+ h1, .h1 { font-size: $title1; }
53
+
54
+ // Calculate progressive fontsize between 2 breapoint :: insert the value of your breakpoint and of your 2 fontsize value for each breakpoint
55
+ // from https://fvsch.com/code/css-locks/
56
+ // https://css-tricks.com/between-the-lines/
57
+ @mixin csslock-fontsize($breakpoint-down:$breakpoint-down, $breakpoint-up:$breakpoint-up, $size-down:$size-down, $size-up:$size-up) {
58
+ font-size: calc( #{$size-down}em + ( (#{$size-up} - #{$size-down}) / #{$size-down} ) * (100vw - #{$breakpoint-down}rem) / (#{$breakpoint-up} - #{$breakpoint-down}) );
59
+ }
60
+
61
+ @media #{$medium-up} {
62
+ body {
63
+ font-size: $base-em * $ms0;
64
+ @include csslock-fontsize($medium,$large,$ms0,$ms1);
65
+ }
66
+ }
67
+
68
+ @media #{$large-up} {
69
+ body {
70
+ font-size: $base-em * $ms2;
71
+ @include csslock-fontsize($large,$xlarge,$ms1,$ms2);
72
+ }
73
+ }
74
+
75
+ @media #{$xlarge-up} {
76
+ body {
77
+ font-size: $base-em * $ms3;
78
+ @include csslock-fontsize($xlarge,$xxlarge,$ms2,$ms4);
79
+ }
80
+ }
81
+
82
+ @media #{$xxlarge-up} {
83
+ body {
84
+ font-size: $base-em * $ms4;
85
+ @include csslock-fontsize($xxlarge,200,$ms4,$ms5);
86
+ }
87
+ }
88
+
89
+ h1, .h1,
90
+ h2, .h2,
91
+ h3, .h3,
92
+ label, legend {
93
+ @if $title-font-name {
94
+ font-family: $title-font-family;
95
+ }
96
+ }
97
+
98
+ h1, .h1,
99
+ h2, .h2,
100
+ h3, .h3 {
101
+ word-wrap: break-word;
102
+ margin-top: $base-line;
103
+ margin-bottom: ($base-line / 2);
104
+
105
+ small,
106
+ .small {
107
+ font-size: 65%;
108
+ }
109
+ }
110
+
111
+ h4, .h4,
112
+ h5, .h5,
113
+ h6, .h6 {
114
+ margin-top: ($base-line / 2);
115
+ margin-bottom: ($base-line / 2);
116
+
117
+ small,
118
+ .small {
119
+ font-size: 75%;
120
+ }
121
+ }
122
+
123
+ h1,h2,h3,h4,h5,h6 {
124
+ color: currentColor;
125
+ &,a,a:visited {
126
+ color: currentColor;
127
+ text-decoration: none;
128
+ }
129
+ a:hover {
130
+ text-decoration: underline;
131
+ }
132
+ }
133
+
134
+ p {
135
+ margin: 0 0 ($base-line / 2);
136
+ }
@@ -0,0 +1,36 @@
1
+ // Code from
2
+ // http://bitsofco.de/styling-broken-images/
3
+
4
+ img {
5
+ /* Same as first example */
6
+ min-height: 50px;
7
+ }
8
+
9
+ img:before {
10
+ content: " ";
11
+ display: block;
12
+
13
+ position: absolute;
14
+ top: -10px;
15
+ left: 0;
16
+ height: calc(100% + 10px);
17
+ width: 100%;
18
+ background-color: rgb(230, 230, 230);
19
+ border: 2px dotted rgb(200, 200, 200);
20
+ border-radius: 5px;
21
+ }
22
+
23
+ img:after {
24
+ content: "\f127" " Image indisponible " attr(alt);
25
+ display: block;
26
+ font-size: 16px;
27
+ font-style: normal;
28
+ font-family: FontAwesome;
29
+ color: rgb(100, 100, 100);
30
+
31
+ position: absolute;
32
+ top: 5px;
33
+ left: 0;
34
+ width: 100%;
35
+ text-align: center;
36
+ }
@@ -0,0 +1,112 @@
1
+ //! normalize-opentype.css v0.2.4 | MIT License | kennethormandy.com/journal/normalize-opentype-css */
2
+
3
+ //**
4
+ // 1. Inherit style issues with custom selections, per robsterlini.co.uk/journal/opentype-and-selection-dont-mix
5
+ // 2. Turn on kerning, standard ligatures, and proportional, oldstyle numerals
6
+ // Turn off all other ligatures, tabular, lining numerals, and alternates
7
+ // Uses same settings for tables
8
+ // 3. Hard-codes fallback text selection for issue #18, color is Chrome’s per via http://stackoverflow.com/a/16094931/864799
9
+ ////
10
+
11
+ ::selection {
12
+ color: inherit; // 1.
13
+ text-shadow: inherit; // 2.
14
+ background-color: #ACCEF7; // 3.
15
+ }
16
+
17
+ html,
18
+ body,
19
+ table {
20
+ font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "dlig" 0; /* 2. */
21
+ }
22
+
23
+ // Headings
24
+ //========================================================================== //
25
+
26
+ //
27
+ // 1. Turn on discretionary ligatures for larger headings
28
+ ////
29
+
30
+ h1,
31
+ h2,
32
+ h3 {
33
+ font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "dlig" 1; /* 1. */
34
+ }
35
+
36
+ // Text-level semantics
37
+ //========================================================================== //
38
+
39
+ //
40
+ // 1. Change all letters to uppercase
41
+ // 2. Turn on small caps for upper and lowercase letters
42
+ ////
43
+
44
+ abbr {
45
+ text-transform: uppercase; /* 1 */
46
+ font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "smcp" 1, "c2sc" 1; /* 2 */
47
+ }
48
+
49
+ time {
50
+ font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0;
51
+ }
52
+
53
+ //
54
+ // 1. Turn off kerning and ligatures,
55
+ // Turn on lining, tabular numerals, slashed zero
56
+ /////
57
+
58
+ pre,
59
+ kbd,
60
+ samp,
61
+ code {
62
+ font-feature-settings: "kern" 0, "liga" 0, "calt" 1, "dlig" 0, "pnum" 0, "tnum" 1, "onum" 0, "lnum" 1, "zero" 1; /* 1. */
63
+ }
64
+
65
+ mark {
66
+ }
67
+
68
+ small {
69
+ }
70
+
71
+ cite {
72
+ }
73
+
74
+ //
75
+ // 1. Turn on proper supercript numerals
76
+ ////
77
+
78
+ sup {
79
+ font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "dlig" 0, "sups" 1; /* 1. */
80
+ }
81
+
82
+ //
83
+ // 1. Turn on proper subscript numerals
84
+ ////
85
+
86
+ sub {
87
+ font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "dlig" 0, "subs" 1; /* 1. */
88
+ }
89
+
90
+ // Forms
91
+ //========================================================================== //
92
+
93
+ input[type="color"],
94
+ input[type="date"],
95
+ input[type="datetime"],
96
+ input[type="datetime-local"],
97
+ input[type="number"],
98
+ input[type="range"],
99
+ input[type="tel"],
100
+ input[type="week"] {
101
+ font-feature-settings: "kern" 0, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 0, "lnum" 1, "zero" 0; /* 1. */
102
+ }
103
+
104
+
105
+ //
106
+ // 1. Turns on tabular, lining numerals and slashed zero
107
+ ////
108
+
109
+ tbody,
110
+ caption {
111
+ font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 0, "tnum" 1, "onum" 0, "lnum" 1, "zero" 1; /* 1. */
112
+ }
@@ -0,0 +1,74 @@
1
+
2
+ //
3
+ // Print
4
+ //
5
+ // Quelques astuces trouvées chez Alsa :
6
+ // http://www.alsacreations.com/tuto/lire/586-feuille-style-css-print-impression.html
7
+ // http://www.alsacreations.com/astuce/lire/1160-une-feuille-de-styles-de-base-pour-le-media-print.html
8
+ // https://uxdesign.cc/i-totally-forgot-about-print-style-sheets-f1e6604cfd6#.ad9m8zgbd
9
+ ////
10
+
11
+ @media print {
12
+
13
+ // Reset
14
+ *,
15
+ *:before,
16
+ *:after,
17
+ *:first-letter,
18
+ p:first-line,
19
+ div:first-line,
20
+ blockquote:first-line,
21
+ li:first-line {
22
+ background: transparent !important;
23
+ color: #000 !important;
24
+ box-shadow: none !important;
25
+ text-shadow: none !important;
26
+ }
27
+
28
+ // Content
29
+ body > *:not(main) {
30
+ display: none;
31
+ }
32
+ a[href]:after {
33
+ content: " (" attr(href) ")";
34
+ }
35
+ abbr[title]:after {
36
+ content: " (" attr(title) ")";
37
+ }
38
+
39
+ @page {
40
+ margin: 1cm;
41
+ }
42
+ html{
43
+ font-size:13pt;
44
+ }
45
+ body{
46
+ color:#000;
47
+ }
48
+ a,
49
+ header a{
50
+ color:#000;
51
+ }
52
+ p, blockquote {
53
+ orphans: 3;
54
+ widows: 3;
55
+ }
56
+ blockquote, ul, ol {
57
+ page-break-inside: avoid;
58
+ }
59
+ h1, h2, h3, caption {
60
+ page-break-after: avoid;
61
+ }
62
+ .wrapper{
63
+ max-width: none;
64
+ margin:0;
65
+ }
66
+ header{
67
+ background: none;
68
+ }
69
+ nav,
70
+ .breadcrumb{
71
+ display:none;
72
+ }
73
+
74
+ }