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.
- checksums.yaml +4 -4
- data/_includes/base.scss +11 -7
- data/_includes/header.html +13 -21
- data/_includes/pagination.html +7 -5
- data/_sass/overkyll-jekyll-theme.scss +10 -0
- data/_sass/overkyll/base/_base.scss +188 -0
- data/_sass/overkyll/base/_font.scss +125 -0
- data/_sass/overkyll/base/_layout.scss +40 -0
- data/_sass/overkyll/base/_normalize.scss +414 -0
- data/_sass/overkyll/config/_colors.scss +44 -0
- data/_sass/overkyll/config/_mediaqueries.scss +103 -0
- data/_sass/overkyll/config/_open-color.scss +42 -0
- data/_sass/overkyll/config/_typography.scss +136 -0
- data/_sass/overkyll/generic/_broken-images.scss +36 -0
- data/_sass/overkyll/generic/_normalize-opentype.scss +112 -0
- data/_sass/overkyll/generic/_print.scss +74 -0
- data/_sass/overkyll/generic/_skiplink.scss +27 -0
- data/_sass/overkyll/generic/_syntax-highlighting.scss +73 -0
- data/_sass/overkyll/object/_header.scss +154 -0
- data/_sass/overkyll/object/_navigation.scss +56 -0
- data/_sass/overkyll/object/_pagination.scss +46 -0
- data/_sass/overkyll/object/_posts.scss +22 -0
- data/_sass/overkyll/overkyll.scss +29 -0
- data/_sass/overkyll/tool/_utilities.scss +97 -0
- data/assets/css/main.scss +1 -1
- metadata +27 -7
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
//
|
3
|
+
// Skiplink
|
4
|
+
//
|
5
|
+
|
6
|
+
/* styling skip links */
|
7
|
+
.skip-links {
|
8
|
+
position: absolute;
|
9
|
+
top: 0;
|
10
|
+
width: 100%;
|
11
|
+
& a {
|
12
|
+
position: absolute;
|
13
|
+
overflow: hidden;
|
14
|
+
display: inline-block;
|
15
|
+
clip: rect(1px, 1px, 1px, 1px);
|
16
|
+
padding: 0.5em;
|
17
|
+
background: black;
|
18
|
+
color: white;
|
19
|
+
text-decoration: none;
|
20
|
+
|
21
|
+
&:focus {
|
22
|
+
position: static;
|
23
|
+
overflow: visible;
|
24
|
+
clip: auto;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
/**
|
2
|
+
* Syntax highlighting styles
|
3
|
+
*/
|
4
|
+
|
5
|
+
.highlight {
|
6
|
+
margin: 0 0 $base_line / 2;
|
7
|
+
text-align: left !important; // override .post .figure
|
8
|
+
background: #fff;
|
9
|
+
|
10
|
+
.highlighter-rouge & {
|
11
|
+
background: #eef;
|
12
|
+
}
|
13
|
+
|
14
|
+
.c { color: #998; font-style: italic } // Comment
|
15
|
+
.err { color: #a61717; background-color: #e3d2d2 } // Error
|
16
|
+
.k { font-weight: bold } // Keyword
|
17
|
+
.o { font-weight: bold } // Operator
|
18
|
+
.cm { color: #998; font-style: italic } // Comment.Multiline
|
19
|
+
.cp { color: #999; font-weight: bold } // Comment.Preproc
|
20
|
+
.c1 { color: #998; font-style: italic } // Comment.Single
|
21
|
+
.cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
|
22
|
+
.gd { color: #000; background-color: #fdd } // Generic.Deleted
|
23
|
+
.gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
|
24
|
+
.ge { font-style: italic } // Generic.Emph
|
25
|
+
.gr { color: #a00 } // Generic.Error
|
26
|
+
.gh { color: #999 } // Generic.Heading
|
27
|
+
.gi { color: #000; background-color: #dfd } // Generic.Inserted
|
28
|
+
.gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
|
29
|
+
.go { color: #888 } // Generic.Output
|
30
|
+
.gp { color: #555 } // Generic.Prompt
|
31
|
+
.gs { font-weight: bold } // Generic.Strong
|
32
|
+
.gu { color: #aaa } // Generic.Subheading
|
33
|
+
.gt { color: #a00 } // Generic.Traceback
|
34
|
+
.kc { font-weight: bold } // Keyword.Constant
|
35
|
+
.kd { font-weight: bold } // Keyword.Declaration
|
36
|
+
.kp { font-weight: bold } // Keyword.Pseudo
|
37
|
+
.kr { font-weight: bold } // Keyword.Reserved
|
38
|
+
.kt { color: #458; font-weight: bold } // Keyword.Type
|
39
|
+
.m { color: #099 } // Literal.Number
|
40
|
+
.s { color: #d14 } // Literal.String
|
41
|
+
.na { color: #008080 } // Name.Attribute
|
42
|
+
.nb { color: #0086B3 } // Name.Builtin
|
43
|
+
.nc { color: #458; font-weight: bold } // Name.Class
|
44
|
+
.no { color: #008080 } // Name.Constant
|
45
|
+
.ni { color: #800080 } // Name.Entity
|
46
|
+
.ne { color: #900; font-weight: bold } // Name.Exception
|
47
|
+
.nf { color: #900; font-weight: bold } // Name.Function
|
48
|
+
.nn { color: #555 } // Name.Namespace
|
49
|
+
.nt { color: #000080 } // Name.Tag
|
50
|
+
.nv { color: #008080 } // Name.Variable
|
51
|
+
.ow { font-weight: bold } // Operator.Word
|
52
|
+
.w { color: #bbb } // Text.Whitespace
|
53
|
+
.mf { color: #099 } // Literal.Number.Float
|
54
|
+
.mh { color: #099 } // Literal.Number.Hex
|
55
|
+
.mi { color: #099 } // Literal.Number.Integer
|
56
|
+
.mo { color: #099 } // Literal.Number.Oct
|
57
|
+
.sb { color: #d14 } // Literal.String.Backtick
|
58
|
+
.sc { color: #d14 } // Literal.String.Char
|
59
|
+
.sd { color: #d14 } // Literal.String.Doc
|
60
|
+
.s2 { color: #d14 } // Literal.String.Double
|
61
|
+
.se { color: #d14 } // Literal.String.Escape
|
62
|
+
.sh { color: #d14 } // Literal.String.Heredoc
|
63
|
+
.si { color: #d14 } // Literal.String.Interpol
|
64
|
+
.sx { color: #d14 } // Literal.String.Other
|
65
|
+
.sr { color: #009926 } // Literal.String.Regex
|
66
|
+
.s1 { color: #d14 } // Literal.String.Single
|
67
|
+
.ss { color: #990073 } // Literal.String.Symbol
|
68
|
+
.bp { color: #999 } // Name.Builtin.Pseudo
|
69
|
+
.vc { color: #008080 } // Name.Variable.Class
|
70
|
+
.vg { color: #008080 } // Name.Variable.Global
|
71
|
+
.vi { color: #008080 } // Name.Variable.Instance
|
72
|
+
.il { color: #099 } // Literal.Number.Integer.Long
|
73
|
+
}
|
@@ -0,0 +1,154 @@
|
|
1
|
+
////
|
2
|
+
/// Header
|
3
|
+
////
|
4
|
+
|
5
|
+
// Site Header
|
6
|
+
//------------------------
|
7
|
+
|
8
|
+
// Site header :: general container
|
9
|
+
.site-header {
|
10
|
+
position: relative;
|
11
|
+
margin-bottom: $base-line*2;
|
12
|
+
padding: 0;
|
13
|
+
text-align: center;
|
14
|
+
color: #fff;
|
15
|
+
z-index: 0;
|
16
|
+
.wrapper {
|
17
|
+
@media #{$small-only} {
|
18
|
+
max-width: 100%;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
.wrapper--flex {
|
22
|
+
@media #{$medium-up} {
|
23
|
+
display: flex;
|
24
|
+
align-content: center;
|
25
|
+
align-items: center;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
// Site header top :: logo and menu
|
31
|
+
.site-header-top {
|
32
|
+
display: flex;
|
33
|
+
flex-direction: column;
|
34
|
+
justify-content: space-between;
|
35
|
+
align-items: center;
|
36
|
+
padding: $base-line/2;
|
37
|
+
width: 100%;
|
38
|
+
background: transparent;
|
39
|
+
@media #{$medium-up} {
|
40
|
+
flex-direction: row;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
// Site header hero :: class on general container for hero header
|
45
|
+
.site-header-hero {
|
46
|
+
padding: 0;
|
47
|
+
background-size: cover;
|
48
|
+
background-position: center center;
|
49
|
+
background: $color-grey;
|
50
|
+
background-image: linear-gradient(to top, $color-grey 0%, $color-grey-dark 100%);
|
51
|
+
.wrapper {
|
52
|
+
display: flex;
|
53
|
+
justify-content: center;
|
54
|
+
align-items: center;
|
55
|
+
min-height: 40vmin;
|
56
|
+
}
|
57
|
+
a {
|
58
|
+
text-decoration: none;
|
59
|
+
color: currentColor;
|
60
|
+
&:visited {
|
61
|
+
color: currentColor;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
&::after {
|
65
|
+
position: absolute;
|
66
|
+
top: 0;
|
67
|
+
left: 0;
|
68
|
+
bottom: 0;
|
69
|
+
content: '';
|
70
|
+
width: 100%;
|
71
|
+
height: 100%;
|
72
|
+
background: rgba(0,0,0,0.3);
|
73
|
+
z-index: -1;
|
74
|
+
opacity: 1;
|
75
|
+
transition: opacity 1500ms ease-in-out;
|
76
|
+
|
77
|
+
@at-root {
|
78
|
+
.site-header.b-lazy::after {
|
79
|
+
opacity: 1;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
// Site header img TAG for responsives images
|
86
|
+
.site-header-background {
|
87
|
+
position: absolute;
|
88
|
+
top: 0;
|
89
|
+
left: 0;
|
90
|
+
object-fit: cover;
|
91
|
+
z-index: -1;
|
92
|
+
width: 100%;
|
93
|
+
height: 100%;
|
94
|
+
transition: opacity 200ms ease-in-out;
|
95
|
+
}
|
96
|
+
|
97
|
+
// Site title :: container for a text
|
98
|
+
.site-title {
|
99
|
+
display: block;
|
100
|
+
margin: 0;
|
101
|
+
font-size: $base-em * $ms3;
|
102
|
+
line-height: 1;
|
103
|
+
color: currentColor;
|
104
|
+
text-decoration: none;
|
105
|
+
}
|
106
|
+
|
107
|
+
// Site title hero :: class on site-title for hero title
|
108
|
+
.site-title-hero {
|
109
|
+
display: inline-block;
|
110
|
+
padding: $base-line/2;
|
111
|
+
font-size: $title1;
|
112
|
+
font-weight: 300;
|
113
|
+
}
|
114
|
+
|
115
|
+
// Site title link :: class when site-title is a link (inside pages)
|
116
|
+
.site-title-link {
|
117
|
+
color: currentColor;
|
118
|
+
text-decoration: none;
|
119
|
+
&,&:visited {
|
120
|
+
color: currentColor;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
// Site information :: scope site-title + site-logo
|
125
|
+
.site-information {
|
126
|
+
margin: 0;
|
127
|
+
}
|
128
|
+
|
129
|
+
// Site slogan
|
130
|
+
.site-slogan {
|
131
|
+
text-align: center;
|
132
|
+
color: #fff;
|
133
|
+
}
|
134
|
+
|
135
|
+
// Exergue :: zone just after the header
|
136
|
+
.exergue {
|
137
|
+
margin-top: -2*$base-line;
|
138
|
+
padding: $base-line;
|
139
|
+
width: 100%;
|
140
|
+
text-align: center;
|
141
|
+
color: #fff;
|
142
|
+
background: $color-grey-dark;
|
143
|
+
small {
|
144
|
+
display: block;
|
145
|
+
clear: both;
|
146
|
+
width: 100%;
|
147
|
+
}
|
148
|
+
a {
|
149
|
+
color: #fff;
|
150
|
+
&:hover {
|
151
|
+
text-decoration: none;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
////
|
2
|
+
/// Navigation
|
3
|
+
////
|
4
|
+
|
5
|
+
// Navigation main
|
6
|
+
// inspired https://medium.com/@kollinz/hamburger-menu-alternatives-for-mobile-navigation-a3a3beb555b8#.hg6g5yhtd
|
7
|
+
|
8
|
+
nav {
|
9
|
+
ul {
|
10
|
+
list-style: none;
|
11
|
+
}
|
12
|
+
a {
|
13
|
+
text-decoration: none;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.nav-main {
|
18
|
+
flex: 1;
|
19
|
+
@media #{$small-only} {
|
20
|
+
overflow-y: hidden !important;
|
21
|
+
height: 40px !important;
|
22
|
+
border-top: 1px solid;
|
23
|
+
border-bottom: 1px solid;
|
24
|
+
}
|
25
|
+
ul {
|
26
|
+
margin: 0;
|
27
|
+
padding: 0.3em 0;
|
28
|
+
min-width: 100%;
|
29
|
+
list-style: none;
|
30
|
+
text-align: center;
|
31
|
+
@media #{$small-only} {
|
32
|
+
display: block;
|
33
|
+
white-space: nowrap;
|
34
|
+
padding-bottom: 100px !important;
|
35
|
+
overflow-y: hidden;
|
36
|
+
overflow-x: auto;
|
37
|
+
}
|
38
|
+
@media #{$medium-up} {
|
39
|
+
.wrapper--flex & {
|
40
|
+
text-align: right;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
li {
|
45
|
+
display: inline-block;
|
46
|
+
text-align: center;
|
47
|
+
margin: 0;
|
48
|
+
padding: 0.2rem 1.6rem 0;
|
49
|
+
}
|
50
|
+
a {
|
51
|
+
font-weight: bold;
|
52
|
+
& + & {
|
53
|
+
margin-left: 1em;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
////
|
2
|
+
/// Pagination
|
3
|
+
////
|
4
|
+
|
5
|
+
.pagination--prevnext {
|
6
|
+
clear: both;
|
7
|
+
@media #{$medium-up} {
|
8
|
+
display: grid;
|
9
|
+
grid-template-columns: 1fr 1fr;
|
10
|
+
grid-gap: 2vmin;
|
11
|
+
}
|
12
|
+
margin: 3rem auto;
|
13
|
+
}
|
14
|
+
|
15
|
+
.pagination--prev {
|
16
|
+
padding-left: 1em;
|
17
|
+
a:before {
|
18
|
+
left: -1em;
|
19
|
+
content:"< ";
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.pagination--next {
|
24
|
+
padding-right: 1em;
|
25
|
+
text-align: right;
|
26
|
+
a:before {
|
27
|
+
right: -1em;
|
28
|
+
content:" >";
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.pagination--item {
|
33
|
+
position: relative;
|
34
|
+
display: block;
|
35
|
+
padding: 1em 0;
|
36
|
+
font-size: $smaller;
|
37
|
+
color: #333;
|
38
|
+
&:before {
|
39
|
+
position: absolute;
|
40
|
+
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
.pagination--item:active {
|
45
|
+
background: $color-grey-light;
|
46
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
////
|
2
|
+
/// Post
|
3
|
+
////
|
4
|
+
|
5
|
+
.post {
|
6
|
+
padding-bottom: $base-line;
|
7
|
+
figure {
|
8
|
+
text-align: center;
|
9
|
+
}
|
10
|
+
img {
|
11
|
+
margin: 0.5em auto 1.5em;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.posts-archive {
|
16
|
+
@include list-inline();
|
17
|
+
> li {
|
18
|
+
&:not(:last-child):after {
|
19
|
+
content: ' - ';
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
|
3
|
+
// Import partials from `sass_dir` (defaults to `_sass`)
|
4
|
+
|
5
|
+
// Configuration
|
6
|
+
@import "config/open-color";
|
7
|
+
@import "config/colors";
|
8
|
+
@import "config/mediaqueries";
|
9
|
+
@import "config/typography";
|
10
|
+
|
11
|
+
// Tool
|
12
|
+
@import "tool/utilities";
|
13
|
+
|
14
|
+
// Base
|
15
|
+
@import "base/normalize";
|
16
|
+
@import "base/base";
|
17
|
+
@import "base/layout";
|
18
|
+
|
19
|
+
// Generic
|
20
|
+
@import "generic/normalize-opentype";
|
21
|
+
@import "generic/syntax-highlighting";
|
22
|
+
@import "generic/skiplink";
|
23
|
+
@import "generic/print";
|
24
|
+
|
25
|
+
// Object
|
26
|
+
@import "object/header";
|
27
|
+
@import "object/pagination";
|
28
|
+
@import "object/posts";
|
29
|
+
@import "object/navigation";
|
@@ -0,0 +1,97 @@
|
|
1
|
+
//
|
2
|
+
// Utility classes
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Floats
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
.clearfix {
|
10
|
+
&:before,
|
11
|
+
&:after {
|
12
|
+
content: " "; // 1
|
13
|
+
display: table; // 2
|
14
|
+
}
|
15
|
+
&:after {
|
16
|
+
clear: both;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
.center {
|
21
|
+
margin: 0 auto $line-height-base;
|
22
|
+
text-align: center;
|
23
|
+
}
|
24
|
+
|
25
|
+
.pull-right {
|
26
|
+
float: right !important;
|
27
|
+
}
|
28
|
+
.pull-left {
|
29
|
+
float: left !important;
|
30
|
+
}
|
31
|
+
|
32
|
+
.left {
|
33
|
+
float: left;
|
34
|
+
}
|
35
|
+
|
36
|
+
.right {
|
37
|
+
float: right;
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
// List
|
42
|
+
// -------------------------
|
43
|
+
|
44
|
+
@mixin list-inline {
|
45
|
+
padding: 0;
|
46
|
+
margin: 0 0 $base-line;
|
47
|
+
li {
|
48
|
+
display: inline-block;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
// Toggling content
|
54
|
+
// -------------------------
|
55
|
+
// Note: Deprecated .hide in favor of .invisible
|
56
|
+
|
57
|
+
.hide {
|
58
|
+
display: none !important;
|
59
|
+
}
|
60
|
+
|
61
|
+
.show {
|
62
|
+
display: block !important;
|
63
|
+
}
|
64
|
+
|
65
|
+
.invisible {
|
66
|
+
border: 0;
|
67
|
+
clip: rect(0 0 0 0);
|
68
|
+
height: 1px;
|
69
|
+
margin: -1px;
|
70
|
+
overflow: hidden;
|
71
|
+
padding: 0;
|
72
|
+
position: absolute;
|
73
|
+
width: 1px;
|
74
|
+
}
|
75
|
+
|
76
|
+
// For Affix plugin
|
77
|
+
// -------------------------
|
78
|
+
|
79
|
+
.affix {
|
80
|
+
position: fixed;
|
81
|
+
}
|
82
|
+
|
83
|
+
|
84
|
+
// Icons
|
85
|
+
// -------------------------
|
86
|
+
|
87
|
+
.icon {
|
88
|
+
> svg {
|
89
|
+
display: inline-block;
|
90
|
+
width: 16px;
|
91
|
+
height: 16px;
|
92
|
+
vertical-align: middle;
|
93
|
+
path {
|
94
|
+
fill: $color-grey;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|