steve-for-jekyll 1.0 → 1.1.1

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.
@@ -1,51 +1,51 @@
1
- /*
2
- Color Scheme
3
- */
4
-
5
- $color__background-content: #fff !default; // posts, pages and sidebar background color.
6
- $color__background-body: #e4f0f6 !default; // body background color
7
- $color__text: #000112 !default; // body text color
8
-
9
- $color__link: #4e9dd8 !default; // color for links and accents
10
- $color__link-hover: #2361a7 !default; // alternate color for active or focused links and accents
11
-
12
- $color__details: #939496 !default; // color for details such as borders and shadows
13
- $color__details-lighter: #f0f1f4 !default; // lighter alternative for details
14
- $color__details-darker: #6d6e70 !default; // darker alternative for details
15
-
16
- /*
17
- Typography
18
- */
19
-
20
- $font__body: "Avenir Next", Corbel, "Fira Sans", "Trebuchet MS", Ubuntu, sans-serif !default; // used for the main, body typography
21
- $font__headings: $font__body !default; // used for headings and feature elements
22
- $font__code: "Cascadia Code", SFMono-Regular, Menlo, Consolas, "Fira Mono", "DejaVu Sans Mono", monospace !default; // used for pre-formatted text and code.
23
-
24
-
25
- /*
26
- Layout
27
- */
28
- $layout__container-width: 1180px !default; // the width of the main content (content + sidebar)
29
- $layout__gutter: 2rem !default; // the spacing unit between elements.
30
-
31
- :root {
32
- --color-bg: #{$color__background-content};
33
- --color-body: #{$color__background-body};
34
- --color-text: #{$color__text};
35
-
36
- --color-link: #{$color__link};
37
- --color-link-hover: #{$color__link-hover};
38
-
39
- --color-details: #{$color__details};
40
- --color-details-lighter: #{$color__details-lighter};
41
- --color-details-darker: #{$color__details-darker};
42
-
43
- --font: #{$font__body};
44
- --font-headings: #{$font__headings};
45
- --font-code: #{$font__code};
46
-
47
- --container: #{$layout__container-width};
48
- --gap: #{$layout__gutter};
49
- }
50
-
51
- @import "steve/base", "steve/layout", "steve/syntax";
1
+ /*
2
+ Color Scheme
3
+ */
4
+
5
+ $color__background-content: #fff !default; // posts, pages and sidebar background color.
6
+ $color__background-body: #e4f0f6 !default; // body background color
7
+ $color__text: #000112 !default; // body text color
8
+
9
+ $color__link: #4e9dd8 !default; // color for links and accents
10
+ $color__link-hover: #2361a7 !default; // alternate color for active or focused links and accents
11
+
12
+ $color__details: #939496 !default; // color for details such as borders and shadows
13
+ $color__details-lighter: #f0f1f4 !default; // lighter alternative for details
14
+ $color__details-darker: #6d6e70 !default; // darker alternative for details
15
+
16
+ /*
17
+ Typography
18
+ */
19
+
20
+ $font__body: "Avenir Next", Corbel, "Fira Sans", "Trebuchet MS", Ubuntu, sans-serif !default; // used for the main, body typography
21
+ $font__headings: $font__body !default; // used for headings and feature elements
22
+ $font__code: "Cascadia Code", SFMono-Regular, Menlo, Consolas, "Fira Mono", "DejaVu Sans Mono", monospace !default; // used for pre-formatted text and code.
23
+
24
+
25
+ /*
26
+ Layout
27
+ */
28
+ $layout__container-width: 1180px !default; // the width of the main content (content + sidebar)
29
+ $layout__gutter: 2rem !default; // the spacing unit between elements.
30
+
31
+ :root {
32
+ --color-bg: #{$color__background-content};
33
+ --color-body: #{$color__background-body};
34
+ --color-text: #{$color__text};
35
+
36
+ --color-link: #{$color__link};
37
+ --color-link-hover: #{$color__link-hover};
38
+
39
+ --color-details: #{$color__details};
40
+ --color-details-lighter: #{$color__details-lighter};
41
+ --color-details-darker: #{$color__details-darker};
42
+
43
+ --font: #{$font__body};
44
+ --font-headings: #{$font__headings};
45
+ --font-code: #{$font__code};
46
+
47
+ --container: #{$layout__container-width};
48
+ --gap: #{$layout__gutter};
49
+ }
50
+
51
+ @import "steve/base", "steve/layout", "steve/syntax";
@@ -1,249 +1,237 @@
1
- /*
2
- Resets
3
- */
4
-
5
- body,
6
- h1,
7
- h2,
8
- h3,
9
- h4,
10
- h5,
11
- h6,
12
- p,
13
- blockquote,
14
- pre,
15
- hr,
16
- dl,
17
- dd,
18
- ol,
19
- ul,
20
- figure {
21
- margin: 0;
22
- padding: 0;
23
- }
24
-
25
- /*
26
- Basic styling
27
- */
28
-
29
- html {
30
- font-size: 16px;
31
-
32
- @media screen and (max-width: 800px) {
33
- font-size: 14px;
34
- }
35
- }
36
-
37
- body {
38
- background-color: var(--color-body);
39
- font-family: var(--font);
40
- line-height: 1.5;
41
- }
42
-
43
- /*
44
- Text Elements
45
- */
46
-
47
- .content-body {
48
- p,
49
- pre,
50
- blockquote,
51
- dl,
52
- ul,
53
- ol,
54
- figure,
55
- iframe,
56
- table,
57
- .highlight {
58
- margin-bottom: var(--gap);
59
- }
60
- }
61
-
62
- // Links
63
- a {
64
- color: var(--color-link);
65
- text-decoration: none;
66
- transition: color 250ms ease;
67
-
68
- &:hover,
69
- &:focus {
70
- color: var(--color-link-hover);
71
- text-decoration: underline;
72
- }
73
- }
74
-
75
- // Lists
76
- ul, ol {
77
- margin-left: var(--gap);
78
- }
79
-
80
- dl {
81
- dt + dd {
82
- margin-bottom: calc(var(--gap) / 2);
83
- }
84
-
85
- dt + dd + dt {
86
- margin-top: calc(var(--gap) / 2);
87
- }
88
- }
89
-
90
- // Headings
91
- h1,
92
- h2,
93
- h3,
94
- h4,
95
- h5,
96
- h6 {
97
- line-height: 1.2;
98
- font-family: var(--font-headings);
99
- }
100
-
101
- h1 {
102
- font-size: 2rem;
103
- }
104
-
105
- h2 {
106
- font-size: 1.5rem;
107
- }
108
-
109
- h3 {
110
- font-size: 1.25rem;
111
- }
112
-
113
- h4 {
114
- font-size: 1rem;
115
- }
116
-
117
- h5 {
118
- font-size: 0.875rem;
119
- }
120
-
121
- h6 {
122
- font-size: 0.75rem;
123
- }
124
-
125
- // Code
126
- pre {
127
- max-width: 100%;
128
- overflow-x: auto;
129
- }
130
-
131
- // Media
132
- img, iframe,
133
- video, audio {
134
- max-width: 100%;
135
- border-radius: 3px;
136
- box-shadow: 0 2px 5px var(--color-details);
137
- }
138
-
139
- // Tables
140
- table {
141
- border: 1px solid var(--color-details-lighter);
142
- border-radius: 3px;
143
- border-collapse: collapse;
144
- color: var(--color-details-darker);
145
- width: 100%;
146
-
147
- th, td {
148
- border-bottom: 1px solid var(--color-details-lighter);
149
- padding: calc(var(--gap) / 4);
150
- text-align: left;
151
- }
152
-
153
- th {
154
- background: var(--color-details-lighter);
155
- }
156
- }
157
-
158
- // Quotes
159
-
160
- blockquote {
161
- border-left: 4px solid var(--color-details-lighter);
162
- padding-left: calc(var(--gap) / 2);
163
- padding-top: calc(var(--gap) / 4);
164
- padding-bottom: calc(var(--gap) / 4);
165
- font-style: italic;
166
- color: var(--color-details-darker);
167
-
168
- > :last-child {
169
- margin-bottom: 0;
170
- }
171
- }
172
-
173
- // Horizontal rule
174
- hr {
175
- width: 250px;
176
- height: 3px;
177
- margin: calc(var(--gap) * 2) auto;
178
- background-color: var(--color-details-lighter);
179
- border: none;
180
- border-radius: 3px;
181
- }
182
-
183
- // Forms
184
- input[type="text"],
185
- input[type="email"],
186
- input[type="password"],
187
- input[type="search"],
188
- input[type="tel"],
189
- input[type="number"],
190
- input[type="color"],
191
- input[type="button"],
192
- input[type="reset"],
193
- input[type="submit"],
194
- textarea,
195
- button {
196
- -webkit-appearance: none;
197
- -moz-appearance: none;
198
- border: none;
199
- border-radius: 0;
200
- box-shadow: none;
201
- background: var(--color-bg);
202
- padding: 5px;
203
- margin: 0;
204
- font: inherit;
205
- }
206
-
207
- input[type="text"],
208
- input[type="email"],
209
- input[type="password"],
210
- input[type="search"],
211
- input[type="tel"],
212
- input[type="number"],
213
- input[type="color"],
214
- textarea {
215
- border-bottom: 3px dashed var(--color-details-lighter);
216
- transition: border-bottom-color 250ms ease;
217
-
218
- &:hover,
219
- &:focus {
220
- outline: none;
221
- border-bottom-color: var(--color-link);
222
- }
223
- }
224
-
225
- input[type="button"],
226
- input[type="reset"],
227
- input[type="submit"],
228
- button {
229
- box-shadow: inset 0 0 0 var(--color-details-lighter);
230
- border-bottom: 3px solid var(--color-details-lighter);
231
- color: var(--color-link);
232
- transition-property: color, box-shadow, border-bottom-color;
233
- transition-duration: 250ms;
234
- transition-timing-function: ease;
235
- padding-left: 10px;
236
- padding-right: 10px;
237
-
238
- &:hover,
239
- &:focus {
240
- cursor: pointer;
241
- box-shadow: inset 0 -2.5em 0 var(--color-link);
242
- border-bottom-color: var(--color-link-hover);
243
- color: var(--color-details-lighter);
244
- }
245
-
246
- &:active {
247
- box-shadow: inset 0 -2.5em 0 var(--color-link-hover);
248
- }
249
- }
1
+ /*
2
+ Resets
3
+ */
4
+
5
+ body,
6
+ h1, h2, h3, h4, h5, h6,
7
+ p, blockquote, pre, hr,
8
+ dl, dd, ol, ul, figure {
9
+ margin: 0;
10
+ padding: 0;
11
+ }
12
+
13
+ /*
14
+ Basic styling
15
+ */
16
+
17
+ html {
18
+ font-size: 16px;
19
+ }
20
+
21
+ body {
22
+ background-color: var(--color-body);
23
+ font-family: var(--font);
24
+ line-height: 1.5;
25
+ }
26
+
27
+ /*
28
+ Accessibility helpers
29
+ */
30
+ .visually-hidden {
31
+ position: absolute !important;
32
+ height: 1px;
33
+ width: 1px;
34
+ overflow: hidden;
35
+ clip: rect(1px 1px 1px 1px);
36
+ clip: rect(1px, 1px, 1px, 1px);
37
+ white-space: nowrap;
38
+ }
39
+
40
+ /*
41
+ Text Elements
42
+ */
43
+
44
+ .content-body {
45
+ p, pre, blockquote,
46
+ dl, ul, ol,
47
+ figure, iframe, table,
48
+ .highlight {
49
+ margin-bottom: var(--gap);
50
+ }
51
+ }
52
+
53
+ // Links
54
+ a {
55
+ color: var(--color-link);
56
+ text-decoration: none;
57
+ transition: color 250ms ease;
58
+
59
+ &:hover,
60
+ &:focus {
61
+ color: var(--color-link-hover);
62
+ text-decoration: underline;
63
+ }
64
+ }
65
+
66
+ // Lists
67
+ ul, ol {
68
+ margin-left: var(--gap);
69
+ }
70
+
71
+ dl {
72
+ dt + dd {
73
+ margin-bottom: calc(var(--gap) / 2);
74
+ }
75
+
76
+ dt + dd + dt {
77
+ margin-top: calc(var(--gap) / 2);
78
+ }
79
+ }
80
+
81
+ // Headings
82
+ h1, h2, h3, h4, h5, h6 {
83
+ line-height: 1.2;
84
+ font-family: var(--font-headings);
85
+ }
86
+
87
+ h1 {
88
+ font-size: 2rem;
89
+ }
90
+
91
+ h2 {
92
+ font-size: 1.5rem;
93
+ }
94
+
95
+ h3 {
96
+ font-size: 1.25rem;
97
+ }
98
+
99
+ h4 {
100
+ font-size: 1rem;
101
+ }
102
+
103
+ h5 {
104
+ font-size: 0.875rem;
105
+ }
106
+
107
+ h6 {
108
+ font-size: 0.75rem;
109
+ }
110
+
111
+ // Code
112
+ pre {
113
+ max-width: 100%;
114
+ overflow-x: auto;
115
+ }
116
+
117
+ // Media
118
+ img, iframe,
119
+ video, audio {
120
+ max-width: 100%;
121
+ border-radius: 3px;
122
+ box-shadow: 0 2px 5px var(--color-details);
123
+ }
124
+
125
+ // Tables
126
+ table {
127
+ border: 1px solid var(--color-details-lighter);
128
+ border-radius: 3px;
129
+ border-collapse: collapse;
130
+ color: var(--color-details-darker);
131
+ width: 100%;
132
+
133
+ th, td {
134
+ border-bottom: 1px solid var(--color-details-lighter);
135
+ padding: calc(var(--gap) / 4);
136
+ text-align: left;
137
+ }
138
+
139
+ th {
140
+ background: var(--color-details-lighter);
141
+ }
142
+ }
143
+
144
+ // Quotes
145
+
146
+ blockquote {
147
+ border-left: 4px solid var(--color-details-lighter);
148
+ padding-left: calc(var(--gap) / 2);
149
+ padding-top: calc(var(--gap) / 4);
150
+ padding-bottom: calc(var(--gap) / 4);
151
+ font-style: italic;
152
+ color: var(--color-details-darker);
153
+
154
+ > :last-child {
155
+ margin-bottom: 0;
156
+ }
157
+ }
158
+
159
+ // Horizontal rule
160
+ hr {
161
+ width: 250px;
162
+ height: 3px;
163
+ margin: calc(var(--gap) * 2) auto;
164
+ background-color: var(--color-details-lighter);
165
+ border: none;
166
+ border-radius: 3px;
167
+ }
168
+
169
+ // Forms
170
+ input[type="text"],
171
+ input[type="email"],
172
+ input[type="password"],
173
+ input[type="search"],
174
+ input[type="tel"],
175
+ input[type="number"],
176
+ input[type="color"],
177
+ input[type="url"],
178
+ input[type="button"],
179
+ input[type="reset"],
180
+ input[type="submit"],
181
+ textarea,
182
+ button {
183
+ -webkit-appearance: none;
184
+ -moz-appearance: none;
185
+ border: none;
186
+ border-radius: 0;
187
+ box-shadow: none;
188
+ background: var(--color-bg);
189
+ padding: 5px;
190
+ margin: 0;
191
+ font: inherit;
192
+ }
193
+
194
+ input[type="text"],
195
+ input[type="email"],
196
+ input[type="password"],
197
+ input[type="search"],
198
+ input[type="tel"],
199
+ input[type="number"],
200
+ input[type="color"],
201
+ input[type="url"],
202
+ textarea {
203
+ border-bottom: 3px dashed var(--color-details-lighter);
204
+ transition: border-bottom-color 250ms ease;
205
+
206
+ &:hover,
207
+ &:focus {
208
+ outline: none;
209
+ border-bottom-color: var(--color-link);
210
+ }
211
+ }
212
+
213
+ input[type="button"],
214
+ input[type="reset"],
215
+ input[type="submit"],
216
+ button {
217
+ box-shadow: inset 0 0 0 var(--color-details-lighter);
218
+ border-bottom: 3px solid var(--color-details-lighter);
219
+ color: var(--color-link);
220
+ transition-property: color, box-shadow, border-bottom-color;
221
+ transition-duration: 250ms;
222
+ transition-timing-function: ease;
223
+ padding-left: 10px;
224
+ padding-right: 10px;
225
+
226
+ &:hover,
227
+ &:focus {
228
+ cursor: pointer;
229
+ box-shadow: inset 0 -2.5em 0 var(--color-link);
230
+ border-bottom-color: var(--color-link-hover);
231
+ color: var(--color-details-lighter);
232
+ }
233
+
234
+ &:active {
235
+ box-shadow: inset 0 -2.5em 0 var(--color-link-hover);
236
+ }
237
+ }