minimal-mistakes-jekyll 4.5.1 → 4.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,263 +1,263 @@
1
- /* ==========================================================================
2
- SIDEBAR
3
- ========================================================================== */
4
-
5
- /*
6
- Default
7
- ========================================================================== */
8
-
9
- .sidebar {
10
- @include clearfix();
11
- margin-bottom: 1em;
12
- -webkit-transform: translate3d(0, 0 , 0);
13
- transform: translate3d(0, 0 , 0);
14
-
15
- @include breakpoint(max-width $large) {
16
- /* fix z-index order of follow links */
17
- position: relative;
18
- z-index: 10;
19
- }
20
-
21
- @include breakpoint($large) {
22
- float: left;
23
- width: calc(#{$right-sidebar-width-narrow} - 1em);
24
- opacity: 0.75;
25
- -webkit-transition: opacity 0.2s ease-in-out;
26
- transition: opacity 0.2s ease-in-out;
27
-
28
- &:hover {
29
- opacity: 1;
30
- }
31
-
32
- &.sticky {
33
- overflow-y: auto;
34
- /* calculate height of nav list */
35
- height: calc(100vh - 90px - 2em); // viewport height - approx. masthead height - main content top margin
36
- }
37
- }
38
-
39
- @include breakpoint($x-large) {
40
- width: calc(#{$right-sidebar-width} - 1em);
41
- }
42
-
43
- h2, h3, h4, h5, h6 {
44
- margin-bottom: 0;
45
- font-family: $sans-serif-narrow;
46
- }
47
-
48
- p, li {
49
- font-family: $sans-serif;
50
- font-size: $type-size-6;
51
- line-height: 1.5;
52
- }
53
-
54
- img {
55
- width: 100%;
56
- }
57
- }
58
-
59
- .sidebar__right {
60
- margin-bottom: 1em;
61
-
62
- @include breakpoint($large) {
63
- position: absolute;
64
- top: 0;
65
- right: 0;
66
- width: $right-sidebar-width-narrow;
67
- margin-right: -1 * $right-sidebar-width-narrow;
68
- padding-left: 1em;
69
- z-index: 10;
70
- }
71
-
72
- @include breakpoint($x-large) {
73
- width: $right-sidebar-width;
74
- margin-right: -1 * $right-sidebar-width;
75
- }
76
- }
77
-
78
- .splash .sidebar__right {
79
-
80
- @include breakpoint($large) {
81
- position: relative;
82
- float: right;
83
- margin-right: 0;
84
- }
85
-
86
- @include breakpoint($x-large) {
87
- margin-right: 0;
88
- }
89
- }
90
-
91
- /*
92
- Author profile and links
93
- ========================================================================== */
94
-
95
- .author__avatar {
96
- display: table-cell;
97
- vertical-align: top;
98
- width: 36px;
99
- height: 36px;
100
-
101
- @include breakpoint($large) {
102
- display: block;
103
- width: auto;
104
- height: auto;
105
- }
106
-
107
- img {
108
- max-width: 110px;
109
- border-radius: 50%;
110
-
111
- @include breakpoint($large) {
112
- padding: 5px;
113
- border: 1px solid $border-color;
114
- }
115
- }
116
- }
117
-
118
- .author__content {
119
- display: table-cell;
120
- vertical-align: top;
121
- padding-left: 15px;
122
- padding-right: 25px;
123
- line-height: 1;
124
-
125
- @include breakpoint($large) {
126
- display: block;
127
- width: 100%;
128
- padding-left: 0;
129
- padding-right: 0;
130
- }
131
- }
132
-
133
- .author__name {
134
- margin: 0;
135
-
136
- @include breakpoint($large) {
137
- margin-top: 10px;
138
- margin-bottom: 10px;
139
- }
140
- }
141
- .sidebar .author__name {
142
- font-family: $sans-serif;
143
- font-size: $type-size-5;
144
- }
145
-
146
- .author__bio {
147
- margin: 0;
148
-
149
- @include breakpoint($large) {
150
- margin-top: 10px;
151
- margin-bottom: 20px;
152
- }
153
- }
154
-
155
- .author__urls-wrapper {
156
- position: relative;
157
- display: table-cell;
158
- vertical-align: middle;
159
- font-family: $sans-serif;
160
- z-index: 10;
161
- position: relative;
162
- cursor: pointer;
163
-
164
- li:last-child {
165
- a {
166
- margin-bottom: 0;
167
- }
168
- }
169
-
170
- @include breakpoint($large) {
171
- display: block;
172
- }
173
-
174
- button {
175
- margin-bottom: 0;
176
-
177
- @include breakpoint($large) {
178
- display: none;
179
- }
180
- }
181
- }
182
-
183
- .author__urls {
184
- display: none;
185
- position: absolute;
186
- right: 0;
187
- margin-top: 15px;
188
- padding: 10px;
189
- list-style-type: none;
190
- border: 1px solid $border-color;
191
- border-radius: $border-radius;
192
- background: #fff;
193
- z-index: -1;
194
- box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12);
195
- cursor: default;
196
-
197
- &.is--visible {
198
- display: block;
199
- }
200
-
201
- @include breakpoint($large) {
202
- display: block;
203
- position: relative;
204
- margin: 0;
205
- padding: 0;
206
- border: 0;
207
- background: transparent;
208
- box-shadow: none;
209
- }
210
-
211
- &:before {
212
- display: block;
213
- content: "";
214
- position: absolute;
215
- top: -11px;
216
- left: calc(50% - 10px);
217
- width: 0;
218
- border-style: solid;
219
- border-width: 0 10px 10px;
220
- border-color: $border-color transparent;
221
- z-index: 0;
222
-
223
- @include breakpoint($large) {
224
- display: none;
225
- }
226
- }
227
-
228
- &:after {
229
- display: block;
230
- content: "";
231
- position: absolute;
232
- top: -10px;
233
- left: calc(50% - 10px);
234
- width: 0;
235
- border-style: solid;
236
- border-width: 0 10px 10px;
237
- border-color: #fff transparent;
238
- z-index: 1;
239
-
240
- @include breakpoint($large) {
241
- display: none;
242
- }
243
- }
244
-
245
- li {
246
- white-space: nowrap;
247
- }
248
-
249
- a {
250
- display: block;
251
- margin-bottom: 5px;
252
- padding-right: 5px;
253
- padding-top: 2px;
254
- padding-bottom: 2px;
255
- color: inherit;
256
- font-size: $type-size-5;
257
- text-decoration: none;
258
-
259
- &:hover {
260
- text-decoration: underline;
261
- }
262
- }
1
+ /* ==========================================================================
2
+ SIDEBAR
3
+ ========================================================================== */
4
+
5
+ /*
6
+ Default
7
+ ========================================================================== */
8
+
9
+ .sidebar {
10
+ @include clearfix();
11
+ margin-bottom: 1em;
12
+ -webkit-transform: translate3d(0, 0 , 0);
13
+ transform: translate3d(0, 0 , 0);
14
+
15
+ @include breakpoint(max-width $large) {
16
+ /* fix z-index order of follow links */
17
+ position: relative;
18
+ z-index: 10;
19
+ }
20
+
21
+ @include breakpoint($large) {
22
+ float: left;
23
+ width: calc(#{$right-sidebar-width-narrow} - 1em);
24
+ opacity: 0.75;
25
+ -webkit-transition: opacity 0.2s ease-in-out;
26
+ transition: opacity 0.2s ease-in-out;
27
+
28
+ &:hover {
29
+ opacity: 1;
30
+ }
31
+
32
+ &.sticky {
33
+ overflow-y: auto;
34
+ /* calculate height of nav list */
35
+ height: calc(100vh - 90px - 2em); // viewport height - approx. masthead height - main content top margin
36
+ }
37
+ }
38
+
39
+ @include breakpoint($x-large) {
40
+ width: calc(#{$right-sidebar-width} - 1em);
41
+ }
42
+
43
+ h2, h3, h4, h5, h6 {
44
+ margin-bottom: 0;
45
+ font-family: $sans-serif-narrow;
46
+ }
47
+
48
+ p, li {
49
+ font-family: $sans-serif;
50
+ font-size: $type-size-6;
51
+ line-height: 1.5;
52
+ }
53
+
54
+ img {
55
+ width: 100%;
56
+ }
57
+ }
58
+
59
+ .sidebar__right {
60
+ margin-bottom: 1em;
61
+
62
+ @include breakpoint($large) {
63
+ position: absolute;
64
+ top: 0;
65
+ right: 0;
66
+ width: $right-sidebar-width-narrow;
67
+ margin-right: -1 * $right-sidebar-width-narrow;
68
+ padding-left: 1em;
69
+ z-index: 10;
70
+ }
71
+
72
+ @include breakpoint($x-large) {
73
+ width: $right-sidebar-width;
74
+ margin-right: -1 * $right-sidebar-width;
75
+ }
76
+ }
77
+
78
+ .splash .sidebar__right {
79
+
80
+ @include breakpoint($large) {
81
+ position: relative;
82
+ float: right;
83
+ margin-right: 0;
84
+ }
85
+
86
+ @include breakpoint($x-large) {
87
+ margin-right: 0;
88
+ }
89
+ }
90
+
91
+ /*
92
+ Author profile and links
93
+ ========================================================================== */
94
+
95
+ .author__avatar {
96
+ display: table-cell;
97
+ vertical-align: top;
98
+ width: 36px;
99
+ height: 36px;
100
+
101
+ @include breakpoint($large) {
102
+ display: block;
103
+ width: auto;
104
+ height: auto;
105
+ }
106
+
107
+ img {
108
+ max-width: 110px;
109
+ border-radius: 50%;
110
+
111
+ @include breakpoint($large) {
112
+ padding: 5px;
113
+ border: 1px solid $border-color;
114
+ }
115
+ }
116
+ }
117
+
118
+ .author__content {
119
+ display: table-cell;
120
+ vertical-align: top;
121
+ padding-left: 15px;
122
+ padding-right: 25px;
123
+ line-height: 1;
124
+
125
+ @include breakpoint($large) {
126
+ display: block;
127
+ width: 100%;
128
+ padding-left: 0;
129
+ padding-right: 0;
130
+ }
131
+ }
132
+
133
+ .author__name {
134
+ margin: 0;
135
+
136
+ @include breakpoint($large) {
137
+ margin-top: 10px;
138
+ margin-bottom: 10px;
139
+ }
140
+ }
141
+ .sidebar .author__name {
142
+ font-family: $sans-serif;
143
+ font-size: $type-size-5;
144
+ }
145
+
146
+ .author__bio {
147
+ margin: 0;
148
+
149
+ @include breakpoint($large) {
150
+ margin-top: 10px;
151
+ margin-bottom: 20px;
152
+ }
153
+ }
154
+
155
+ .author__urls-wrapper {
156
+ position: relative;
157
+ display: table-cell;
158
+ vertical-align: middle;
159
+ font-family: $sans-serif;
160
+ z-index: 10;
161
+ position: relative;
162
+ cursor: pointer;
163
+
164
+ li:last-child {
165
+ a {
166
+ margin-bottom: 0;
167
+ }
168
+ }
169
+
170
+ @include breakpoint($large) {
171
+ display: block;
172
+ }
173
+
174
+ button {
175
+ margin-bottom: 0;
176
+
177
+ @include breakpoint($large) {
178
+ display: none;
179
+ }
180
+ }
181
+ }
182
+
183
+ .author__urls {
184
+ display: none;
185
+ position: absolute;
186
+ right: 0;
187
+ margin-top: 15px;
188
+ padding: 10px;
189
+ list-style-type: none;
190
+ border: 1px solid $border-color;
191
+ border-radius: $border-radius;
192
+ background: #fff;
193
+ z-index: -1;
194
+ box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12);
195
+ cursor: default;
196
+
197
+ &.is--visible {
198
+ display: block;
199
+ }
200
+
201
+ @include breakpoint($large) {
202
+ display: block;
203
+ position: relative;
204
+ margin: 0;
205
+ padding: 0;
206
+ border: 0;
207
+ background: transparent;
208
+ box-shadow: none;
209
+ }
210
+
211
+ &:before {
212
+ display: block;
213
+ content: "";
214
+ position: absolute;
215
+ top: -11px;
216
+ left: calc(50% - 10px);
217
+ width: 0;
218
+ border-style: solid;
219
+ border-width: 0 10px 10px;
220
+ border-color: $border-color transparent;
221
+ z-index: 0;
222
+
223
+ @include breakpoint($large) {
224
+ display: none;
225
+ }
226
+ }
227
+
228
+ &:after {
229
+ display: block;
230
+ content: "";
231
+ position: absolute;
232
+ top: -10px;
233
+ left: calc(50% - 10px);
234
+ width: 0;
235
+ border-style: solid;
236
+ border-width: 0 10px 10px;
237
+ border-color: #fff transparent;
238
+ z-index: 1;
239
+
240
+ @include breakpoint($large) {
241
+ display: none;
242
+ }
243
+ }
244
+
245
+ li {
246
+ white-space: nowrap;
247
+ }
248
+
249
+ a {
250
+ display: block;
251
+ margin-bottom: 5px;
252
+ padding-right: 5px;
253
+ padding-top: 2px;
254
+ padding-bottom: 2px;
255
+ color: inherit;
256
+ font-size: $type-size-5;
257
+ text-decoration: none;
258
+
259
+ &:hover {
260
+ text-decoration: underline;
261
+ }
262
+ }
263
263
  }