jekyll-theme-twenty 0.1.0
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 +7 -0
- data/LICENSE +63 -0
- data/README.md +143 -0
- data/_includes/banner.html +24 -0
- data/_includes/cta.html +15 -0
- data/_includes/footer.html +43 -0
- data/_includes/head.html +7 -0
- data/_includes/header.html +29 -0
- data/_includes/scripts.html +9 -0
- data/_layouts/default.html +27 -0
- data/_layouts/home.html +7 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +5 -0
- data/_sass/base/_page.scss +22 -0
- data/_sass/base/_reset.scss +69 -0
- data/_sass/base/_typography.scss +75 -0
- data/_sass/components/_button.scss +51 -0
- data/_sass/components/_buttons.scss +31 -0
- data/_sass/components/_container.scss +51 -0
- data/_sass/components/_form.scss +50 -0
- data/_sass/components/_icon.scss +87 -0
- data/_sass/components/_icons.scss +45 -0
- data/_sass/components/_image.scss +35 -0
- data/_sass/components/_list.scss +19 -0
- data/_sass/components/_row.scss +25 -0
- data/_sass/components/_section.scss +74 -0
- data/_sass/components/_table.scss +36 -0
- data/_sass/layout/_banner.scss +66 -0
- data/_sass/layout/_breakpoints.scss +660 -0
- data/_sass/layout/_cta.scss +17 -0
- data/_sass/layout/_dropotron.scss +53 -0
- data/_sass/layout/_footer.scss +30 -0
- data/_sass/layout/_header.scss +125 -0
- data/_sass/layout/_main.scss +31 -0
- data/_sass/layout/_wrapper.scss +51 -0
- data/_sass/libs/_breakpoints.scss +223 -0
- data/_sass/libs/_functions.scss +90 -0
- data/_sass/libs/_html-grid.scss +149 -0
- data/_sass/libs/_mixins.scss +63 -0
- data/_sass/libs/_vars.scss +95 -0
- data/_sass/libs/_vendor.scss +376 -0
- data/_sass/main.scss +57 -0
- data/_sass/noscript.scss +20 -0
- data/assets/css/font-awesome.min.css +4 -0
- data/assets/css/images/dark-bl.svg +17 -0
- data/assets/css/images/dark-br.svg +17 -0
- data/assets/css/images/dark-tl.svg +17 -0
- data/assets/css/images/dark-tr.svg +17 -0
- data/assets/css/images/light-bl.svg +17 -0
- data/assets/css/images/light-br.svg +17 -0
- data/assets/css/images/light-tl.svg +17 -0
- data/assets/css/images/light-tr.svg +17 -0
- data/assets/css/images/overlay.png +0 -0
- data/assets/css/noscript.css +11 -0
- data/assets/css/styles.scss +4 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +2671 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/images/banner.jpg +0 -0
- data/assets/images/pic01.jpg +0 -0
- data/assets/images/pic02.jpg +0 -0
- data/assets/images/pic03.jpg +0 -0
- data/assets/images/pic04.jpg +0 -0
- data/assets/images/screenshot.jpg +0 -0
- data/assets/js/breakpoints.min.js +2 -0
- data/assets/js/browser.min.js +2 -0
- data/assets/js/jquery.dropotron.min.js +2 -0
- data/assets/js/jquery.min.js +2 -0
- data/assets/js/jquery.scrollex.min.js +2 -0
- data/assets/js/jquery.scrolly.min.js +2 -0
- data/assets/js/main.js +96 -0
- data/assets/js/util.js +587 -0
- metadata +160 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
/* CTA */
|
2
|
+
|
3
|
+
#cta {
|
4
|
+
background-attachment: scroll, scroll, scroll, fixed;
|
5
|
+
background-color: _palette(three, bg);
|
6
|
+
background-image: url('images/light-tl.svg'), url('images/light-tr.svg'), url('images/overlay.png'), url('../images/banner.jpg');
|
7
|
+
background-position: top left, top right, top left, bottom center;
|
8
|
+
background-repeat: no-repeat, no-repeat, repeat, no-repeat;
|
9
|
+
background-size: $pattern-background-size, $pattern-background-size, auto, cover;
|
10
|
+
color: _palette(three, fg);
|
11
|
+
padding: 5em;
|
12
|
+
text-align: center;
|
13
|
+
|
14
|
+
header {
|
15
|
+
margin-bottom: 2em;
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
/* Dropotron */
|
2
|
+
|
3
|
+
.dropotron {
|
4
|
+
list-style: none;
|
5
|
+
padding-left: 0;
|
6
|
+
background: #fff;
|
7
|
+
box-shadow: 0 1px 2px 0 rgba(0,0,0,0.075);
|
8
|
+
line-height: 2.25em;
|
9
|
+
min-width: 13em;
|
10
|
+
padding: 1em 0;
|
11
|
+
text-transform: uppercase;
|
12
|
+
margin-top: calc(-1em + 1px);
|
13
|
+
|
14
|
+
&.level-0 {
|
15
|
+
font-size: 0.7em;
|
16
|
+
font-weight: 400;
|
17
|
+
margin-top: 1.5em;
|
18
|
+
|
19
|
+
&:before {
|
20
|
+
border-bottom: solid 0.5em #fff;
|
21
|
+
border-left: solid 0.5em transparent;
|
22
|
+
border-right: solid 0.5em transparent;
|
23
|
+
content: '';
|
24
|
+
left: 0.75em;
|
25
|
+
position: absolute;
|
26
|
+
top: -0.45em;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
> li {
|
31
|
+
border-top: solid 1px _palette(border);
|
32
|
+
padding-left: 0;
|
33
|
+
|
34
|
+
> a {
|
35
|
+
@include vendor('transition', 'none');
|
36
|
+
color: inherit;
|
37
|
+
text-decoration: none;
|
38
|
+
padding: 0 1em;
|
39
|
+
border: 0;
|
40
|
+
}
|
41
|
+
|
42
|
+
&:hover {
|
43
|
+
> a {
|
44
|
+
background: _palette(one, bg);
|
45
|
+
color: _palette(one, fg);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
&:first-child {
|
50
|
+
border-top: 0;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/* Footer */
|
2
|
+
|
3
|
+
#footer {
|
4
|
+
background: _palette(footer, bg);
|
5
|
+
color: _palette(footer, fg);
|
6
|
+
padding: 5em 5em 10em 5em;
|
7
|
+
text-align: center;
|
8
|
+
|
9
|
+
.copyright {
|
10
|
+
font-size: 0.8em;
|
11
|
+
line-height: 1em;
|
12
|
+
|
13
|
+
a {
|
14
|
+
color: inherit;
|
15
|
+
}
|
16
|
+
|
17
|
+
li {
|
18
|
+
display: inline-block;
|
19
|
+
margin-left: 1em;
|
20
|
+
padding-left: 1em;
|
21
|
+
border-left: dotted 1px;
|
22
|
+
|
23
|
+
&:first-child {
|
24
|
+
margin: 0;
|
25
|
+
padding: 0;
|
26
|
+
border: 0;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,125 @@
|
|
1
|
+
/* Header */
|
2
|
+
|
3
|
+
@include keyframes('reveal-header') {
|
4
|
+
0% { top: -5em; }
|
5
|
+
100% { top: 0; }
|
6
|
+
}
|
7
|
+
|
8
|
+
#header {
|
9
|
+
background: _palette(header, bg);
|
10
|
+
box-shadow: 0 1px 2px 0 rgba(0,0,0,0.075);
|
11
|
+
color: _palette(header, fg);
|
12
|
+
cursor: default;
|
13
|
+
font-size: 0.8em;
|
14
|
+
left: 0;
|
15
|
+
padding: 1em 1.5em;
|
16
|
+
position: fixed;
|
17
|
+
top: 0;
|
18
|
+
width: 100%;
|
19
|
+
z-index: 10000;
|
20
|
+
|
21
|
+
h1 {
|
22
|
+
font-weight: 900;
|
23
|
+
margin: 0;
|
24
|
+
|
25
|
+
span {
|
26
|
+
font-weight: 300;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
nav {
|
31
|
+
letter-spacing: 0.075em;
|
32
|
+
position: absolute;
|
33
|
+
right: 1.5em;
|
34
|
+
text-transform: uppercase;
|
35
|
+
top: 0.75em;
|
36
|
+
|
37
|
+
ul {
|
38
|
+
list-style: none;
|
39
|
+
padding-left: 0;
|
40
|
+
|
41
|
+
li {
|
42
|
+
display: inline-block;
|
43
|
+
margin-left: 1.5em;
|
44
|
+
padding-left: 0;
|
45
|
+
|
46
|
+
> ul {
|
47
|
+
display: none;
|
48
|
+
}
|
49
|
+
|
50
|
+
a {
|
51
|
+
border: solid 1px transparent;
|
52
|
+
color: inherit;
|
53
|
+
display: inline-block;
|
54
|
+
line-height: 1em;
|
55
|
+
padding: 0.6em 0.75em;
|
56
|
+
text-decoration: none;
|
57
|
+
}
|
58
|
+
|
59
|
+
input[type="button"],
|
60
|
+
input[type="submit"],
|
61
|
+
input[type="reset"],
|
62
|
+
button,
|
63
|
+
.button {
|
64
|
+
font-size: 1em;
|
65
|
+
min-width: 0;
|
66
|
+
width: auto;
|
67
|
+
}
|
68
|
+
|
69
|
+
&.submenu {
|
70
|
+
> a {
|
71
|
+
@include icon;
|
72
|
+
|
73
|
+
&:before {
|
74
|
+
content: '\f107';
|
75
|
+
margin-right: 0.65em;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
&.active,
|
81
|
+
&:hover {
|
82
|
+
> a {
|
83
|
+
@include vendor('transition', 'all 0.2s ease-in-out');
|
84
|
+
background: rgba(188,202,206,0.15);
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
&.current {
|
89
|
+
> a {
|
90
|
+
font-weight: 900;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
&.reveal {
|
98
|
+
@include vendor('animation', 'reveal-header 0.5s');
|
99
|
+
}
|
100
|
+
|
101
|
+
&.alt {
|
102
|
+
@include vendor('animation', 'none');
|
103
|
+
background: _palette(header, alt-bg);
|
104
|
+
box-shadow: none;
|
105
|
+
color: _palette(header, alt-fg);
|
106
|
+
padding: 2em 2.5em;
|
107
|
+
position: absolute;
|
108
|
+
|
109
|
+
nav {
|
110
|
+
right: 2.5em;
|
111
|
+
top: 1.75em;
|
112
|
+
|
113
|
+
ul {
|
114
|
+
li {
|
115
|
+
&.active,
|
116
|
+
&:hover {
|
117
|
+
> a {
|
118
|
+
border: solid 1px;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/* Main */
|
2
|
+
|
3
|
+
#main {
|
4
|
+
background-image: url('images/dark-tl.svg'), url('images/dark-tr.svg'), url('images/dark-bl.svg'), url('images/dark-br.svg');
|
5
|
+
background-position: top left, top right, bottom left, bottom right;
|
6
|
+
background-repeat: no-repeat;
|
7
|
+
background-size: $pattern-background-size;
|
8
|
+
padding: 7em 0;
|
9
|
+
|
10
|
+
> :last-child {
|
11
|
+
margin-bottom: 0;
|
12
|
+
}
|
13
|
+
|
14
|
+
.sidebar {
|
15
|
+
section {
|
16
|
+
border-top: solid 1px _palette(border);
|
17
|
+
margin: 3em 0 0 0;
|
18
|
+
padding: 3em 0 0 0;
|
19
|
+
|
20
|
+
&:first-child {
|
21
|
+
border-top: 0;
|
22
|
+
padding-top: 0;
|
23
|
+
margin-top: 0;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
body.index #main {
|
30
|
+
padding-top: 5em;
|
31
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
/* Wrapper */
|
2
|
+
|
3
|
+
.wrapper {
|
4
|
+
margin-bottom: 5em;
|
5
|
+
padding: 5em;
|
6
|
+
|
7
|
+
&.style1 {
|
8
|
+
padding: 0;
|
9
|
+
}
|
10
|
+
|
11
|
+
&.style2 {
|
12
|
+
background-color: _palette(one, bg);
|
13
|
+
background-image: url('images/light-bl.svg'), url('images/light-br.svg');
|
14
|
+
background-position: bottom left, bottom right;
|
15
|
+
background-repeat: no-repeat, no-repeat;
|
16
|
+
background-size: $pattern-background-size, $pattern-background-size;
|
17
|
+
color: _palette(one, fg);
|
18
|
+
|
19
|
+
input[type="button"],
|
20
|
+
input[type="submit"],
|
21
|
+
input[type="reset"],
|
22
|
+
button,
|
23
|
+
.button {
|
24
|
+
&:hover {
|
25
|
+
background: rgba(255,255,255,0.15) !important;
|
26
|
+
}
|
27
|
+
|
28
|
+
&.primary {
|
29
|
+
background: _palette(one, fg);
|
30
|
+
border-color: _palette(one, fg);
|
31
|
+
color: _palette(one, bg) !important;
|
32
|
+
|
33
|
+
&:hover {
|
34
|
+
border-color: inherit !important;
|
35
|
+
color: _palette(one, fg) !important;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
&.style3 {
|
42
|
+
background: _palette(two, bg);
|
43
|
+
color: _palette(two, fg);
|
44
|
+
}
|
45
|
+
|
46
|
+
&.style4 {
|
47
|
+
background: _palette(two, bg);
|
48
|
+
color: _palette(two, fg);
|
49
|
+
padding: 4em;
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,223 @@
|
|
1
|
+
// breakpoints.scss v1.0 | @ajlkn | MIT licensed */
|
2
|
+
|
3
|
+
// Vars.
|
4
|
+
|
5
|
+
/// Breakpoints.
|
6
|
+
/// @var {list}
|
7
|
+
$breakpoints: () !global;
|
8
|
+
|
9
|
+
// Mixins.
|
10
|
+
|
11
|
+
/// Sets breakpoints.
|
12
|
+
/// @param {map} $x Breakpoints.
|
13
|
+
@mixin breakpoints($x: ()) {
|
14
|
+
$breakpoints: $x !global;
|
15
|
+
}
|
16
|
+
|
17
|
+
/// Wraps @content in a @media block targeting a specific orientation.
|
18
|
+
/// @param {string} $orientation Orientation.
|
19
|
+
@mixin orientation($orientation) {
|
20
|
+
@media screen and (orientation: #{$orientation}) {
|
21
|
+
@content;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
/// Wraps @content in a @media block using a given query.
|
26
|
+
/// @param {string} $query Query.
|
27
|
+
@mixin breakpoint($query: null) {
|
28
|
+
|
29
|
+
$breakpoint: null;
|
30
|
+
$op: null;
|
31
|
+
$media: null;
|
32
|
+
|
33
|
+
// Determine operator, breakpoint.
|
34
|
+
|
35
|
+
// Greater than or equal.
|
36
|
+
@if (str-slice($query, 0, 2) == '>=') {
|
37
|
+
|
38
|
+
$op: 'gte';
|
39
|
+
$breakpoint: str-slice($query, 3);
|
40
|
+
|
41
|
+
}
|
42
|
+
|
43
|
+
// Less than or equal.
|
44
|
+
@elseif (str-slice($query, 0, 2) == '<=') {
|
45
|
+
|
46
|
+
$op: 'lte';
|
47
|
+
$breakpoint: str-slice($query, 3);
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
// Greater than.
|
52
|
+
@elseif (str-slice($query, 0, 1) == '>') {
|
53
|
+
|
54
|
+
$op: 'gt';
|
55
|
+
$breakpoint: str-slice($query, 2);
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
// Less than.
|
60
|
+
@elseif (str-slice($query, 0, 1) == '<') {
|
61
|
+
|
62
|
+
$op: 'lt';
|
63
|
+
$breakpoint: str-slice($query, 2);
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
// Not.
|
68
|
+
@elseif (str-slice($query, 0, 1) == '!') {
|
69
|
+
|
70
|
+
$op: 'not';
|
71
|
+
$breakpoint: str-slice($query, 2);
|
72
|
+
|
73
|
+
}
|
74
|
+
|
75
|
+
// Equal.
|
76
|
+
@else {
|
77
|
+
|
78
|
+
$op: 'eq';
|
79
|
+
$breakpoint: $query;
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
// Build media.
|
84
|
+
@if ($breakpoint and map-has-key($breakpoints, $breakpoint)) {
|
85
|
+
|
86
|
+
$a: map-get($breakpoints, $breakpoint);
|
87
|
+
|
88
|
+
// Range.
|
89
|
+
@if (type-of($a) == 'list') {
|
90
|
+
|
91
|
+
$x: nth($a, 1);
|
92
|
+
$y: nth($a, 2);
|
93
|
+
|
94
|
+
// Max only.
|
95
|
+
@if ($x == null) {
|
96
|
+
|
97
|
+
// Greater than or equal (>= 0 / anything)
|
98
|
+
@if ($op == 'gte') {
|
99
|
+
$media: 'screen';
|
100
|
+
}
|
101
|
+
|
102
|
+
// Less than or equal (<= y)
|
103
|
+
@elseif ($op == 'lte') {
|
104
|
+
$media: 'screen and (max-width: ' + $y + ')';
|
105
|
+
}
|
106
|
+
|
107
|
+
// Greater than (> y)
|
108
|
+
@elseif ($op == 'gt') {
|
109
|
+
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
110
|
+
}
|
111
|
+
|
112
|
+
// Less than (< 0 / invalid)
|
113
|
+
@elseif ($op == 'lt') {
|
114
|
+
$media: 'screen and (max-width: -1px)';
|
115
|
+
}
|
116
|
+
|
117
|
+
// Not (> y)
|
118
|
+
@elseif ($op == 'not') {
|
119
|
+
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
120
|
+
}
|
121
|
+
|
122
|
+
// Equal (<= y)
|
123
|
+
@else {
|
124
|
+
$media: 'screen and (max-width: ' + $y + ')';
|
125
|
+
}
|
126
|
+
|
127
|
+
}
|
128
|
+
|
129
|
+
// Min only.
|
130
|
+
@else if ($y == null) {
|
131
|
+
|
132
|
+
// Greater than or equal (>= x)
|
133
|
+
@if ($op == 'gte') {
|
134
|
+
$media: 'screen and (min-width: ' + $x + ')';
|
135
|
+
}
|
136
|
+
|
137
|
+
// Less than or equal (<= inf / anything)
|
138
|
+
@elseif ($op == 'lte') {
|
139
|
+
$media: 'screen';
|
140
|
+
}
|
141
|
+
|
142
|
+
// Greater than (> inf / invalid)
|
143
|
+
@elseif ($op == 'gt') {
|
144
|
+
$media: 'screen and (max-width: -1px)';
|
145
|
+
}
|
146
|
+
|
147
|
+
// Less than (< x)
|
148
|
+
@elseif ($op == 'lt') {
|
149
|
+
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
150
|
+
}
|
151
|
+
|
152
|
+
// Not (< x)
|
153
|
+
@elseif ($op == 'not') {
|
154
|
+
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
155
|
+
}
|
156
|
+
|
157
|
+
// Equal (>= x)
|
158
|
+
@else {
|
159
|
+
$media: 'screen and (min-width: ' + $x + ')';
|
160
|
+
}
|
161
|
+
|
162
|
+
}
|
163
|
+
|
164
|
+
// Min and max.
|
165
|
+
@else {
|
166
|
+
|
167
|
+
// Greater than or equal (>= x)
|
168
|
+
@if ($op == 'gte') {
|
169
|
+
$media: 'screen and (min-width: ' + $x + ')';
|
170
|
+
}
|
171
|
+
|
172
|
+
// Less than or equal (<= y)
|
173
|
+
@elseif ($op == 'lte') {
|
174
|
+
$media: 'screen and (max-width: ' + $y + ')';
|
175
|
+
}
|
176
|
+
|
177
|
+
// Greater than (> y)
|
178
|
+
@elseif ($op == 'gt') {
|
179
|
+
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
180
|
+
}
|
181
|
+
|
182
|
+
// Less than (< x)
|
183
|
+
@elseif ($op == 'lt') {
|
184
|
+
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
185
|
+
}
|
186
|
+
|
187
|
+
// Not (< x and > y)
|
188
|
+
@elseif ($op == 'not') {
|
189
|
+
$media: 'screen and (max-width: ' + ($x - 1) + '), screen and (min-width: ' + ($y + 1) + ')';
|
190
|
+
}
|
191
|
+
|
192
|
+
// Equal (>= x and <= y)
|
193
|
+
@else {
|
194
|
+
$media: 'screen and (min-width: ' + $x + ') and (max-width: ' + $y + ')';
|
195
|
+
}
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
}
|
200
|
+
|
201
|
+
// String.
|
202
|
+
@else {
|
203
|
+
|
204
|
+
// Missing a media type? Prefix with "screen".
|
205
|
+
@if (str-slice($a, 0, 1) == '(') {
|
206
|
+
$media: 'screen and ' + $a;
|
207
|
+
}
|
208
|
+
|
209
|
+
// Otherwise, use as-is.
|
210
|
+
@else {
|
211
|
+
$media: $a;
|
212
|
+
}
|
213
|
+
|
214
|
+
}
|
215
|
+
|
216
|
+
}
|
217
|
+
|
218
|
+
// Output.
|
219
|
+
@media #{$media} {
|
220
|
+
@content;
|
221
|
+
}
|
222
|
+
|
223
|
+
}
|