14
14
font-family : " PT Serif" ;
15
15
font-style : normal ;
16
16
font-weight : normal ;
17
- src : url (" https://textpattern.com/assets/fonts/pt-serif-v9 -latin-ext-regular.woff2" ) format (" woff2" ), url (" https://textpattern.com/assets/fonts/pt-serif-v9 -latin-ext-regular.woff" ) format (" woff" );
17
+ src : url (" https://textpattern.com/assets/fonts/pt-serif-v11 -latin-ext-regular.woff2" ) format (" woff2" ), url (" https://textpattern.com/assets/fonts/pt-serif-v11 -latin-ext-regular.woff" ) format (" woff" );
18
18
}
19
19
20
20
// Regular Italic
21
21
@font-face {
22
22
font-family : " PT Serif" ;
23
23
font-style : italic ;
24
24
font-weight : normal ;
25
- src : url (" https://textpattern.com/assets/fonts/pt-serif-v9 -latin-ext-italic.woff2" ) format (" woff2" ), url (" https://textpattern.com/assets/fonts/pt-serif-v9 -latin-ext-italic.woff" ) format (" woff" );
25
+ src : url (" https://textpattern.com/assets/fonts/pt-serif-v11 -latin-ext-italic.woff2" ) format (" woff2" ), url (" https://textpattern.com/assets/fonts/pt-serif-v11 -latin-ext-italic.woff" ) format (" woff" );
26
26
}
27
27
28
28
// Bold
29
29
@font-face {
30
30
font-family : " PT Serif" ;
31
31
font-style : normal ;
32
32
font-weight : bold ;
33
- src : url (" https://textpattern.com/assets/fonts/pt-serif-v9 -latin-ext-700.woff2" ) format (" woff2" ), url (" https://textpattern.com/assets/fonts/pt-serif-v9 -latin-ext-700.woff" ) format (" woff" );
33
+ src : url (" https://textpattern.com/assets/fonts/pt-serif-v11 -latin-ext-700.woff2" ) format (" woff2" ), url (" https://textpattern.com/assets/fonts/pt-serif-v11 -latin-ext-700.woff" ) format (" woff" );
34
34
}
35
35
36
36
// Bold Italic
37
37
@font-face {
38
38
font-family : " PT Serif" ;
39
39
font-style : italic ;
40
40
font-weight : bold ;
41
- src : url (" https://textpattern.com/assets/fonts/pt-serif-v9 -latin-ext-700italic.woff2" ) format (" woff2" ), url (" https://textpattern.com/assets/fonts/pt-serif-v9 -latin-ext-700italic.woff" ) format (" woff" );
41
+ src : url (" https://textpattern.com/assets/fonts/pt-serif-v11 -latin-ext-700italic.woff2" ) format (" woff2" ), url (" https://textpattern.com/assets/fonts/pt-serif-v11 -latin-ext-700italic.woff" ) format (" woff" );
42
42
}
43
43
44
44
html {
@@ -122,33 +122,33 @@ samp {
122
122
123
123
pre {
124
124
padding : 0.5714286em 1.1428571em ; // 8px / 14px + 16px / 14px
125
- word-wrap : normal ;
126
125
overflow-x : auto ;
126
+ word-wrap : normal ;
127
127
tab-size : 4 ;
128
128
129
129
code {
130
130
padding : 0 ;
131
131
border : 0 ;
132
132
background-color : transparent ;
133
+ direction : ltr ;
133
134
font-size : 1em ; // 14px
135
+ hyphens : none ;
134
136
text-align : left ;
135
- white-space : pre ;
136
- word-spacing : normal ;
137
- word-break : normal ;
138
137
word-wrap : normal ;
139
- direction : ltr ;
140
- hyphens : none ;
138
+ word-break : normal ;
139
+ word-spacing : normal ;
140
+ white-space : pre ;
141
141
}
142
142
}
143
143
144
144
hr {
145
+ box-sizing : content-box ;
145
146
height : 24px ;
146
147
margin : 1em 0 ;
148
+ overflow : visible ;
147
149
border : 0 ; // remove the default `hr` border
148
150
background : url (" data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24'%3E%3Cpath fill='%23333' d='M0,0c1.742,13.61,54.74,20.912,119.995,15.279C184.922,9.679,238.594,13.024,240,24c-1.744-13.613-54.742-20.913-120.005-15.284C55.078,14.32,1.405,10.973,0,0z'/%3E%3C/svg%3E" ) 50% 50% no-repeat ;
149
151
background-size : 240px 24px ;
150
- overflow : visible ;
151
- box-sizing : content-box ;
152
152
}
153
153
154
154
.container {
@@ -161,12 +161,12 @@ hr {
161
161
162
162
.site-header {
163
163
position : fixed ;
164
+ z-index : 10 ;
164
165
top : 0 ;
165
166
right : 0 ;
166
167
left : 0 ;
167
168
border-bottom : 2px solid $color-text ;
168
169
background-color : $color-background ;
169
- z-index : 10 ;
170
170
}
171
171
172
172
.open-sidebar ,
@@ -193,28 +193,28 @@ hr {
193
193
@include gradient-linear ($color-button-primary-gradient-from , $color-button-primary-gradient-to );
194
194
195
195
display : inline-block ;
196
+ box-sizing : border-box ;
196
197
height : 2.5em ; // 40px / 16px
197
198
margin : 0 ;
198
199
padding : 0.5em 1em ; // 8px / 16px
199
200
border : 1px solid $color-button-primary-border ;
200
201
border-radius : 1.25em ;
201
202
background-clip : padding-box ;
203
+ box-shadow : 0 2px 0 $color-button-primary-shadow ;
202
204
color : $color-text-button ;
203
205
font-weight : bolder ;
204
206
line-height : 1.375 ; // 22px / 16px
205
- box-shadow : 0 2px 0 $color-button-primary-shadow ;
206
- cursor : pointer ; /* 1 */
207
207
vertical-align : baseline ;
208
- appearance : none ; /* 2 */
209
- box-sizing : border-box ;
208
+ appearance : none ;
209
+ cursor : pointer ;
210
210
211
211
& :active {
212
212
position : relative ;
213
213
top : 2px ;
214
214
border-color : darken ($color-button-primary-border , 13% );
215
+ box-shadow : none ;
215
216
color : $color-text-button-active ;
216
217
text-decoration : none ;
217
- box-shadow : none ;
218
218
}
219
219
}
220
220
@@ -262,9 +262,9 @@ amp-sidebar {
262
262
height : 1px ;
263
263
margin : -1px ;
264
264
padding : 0 ;
265
- border : 0 ;
266
- white-space : nowrap ;
267
265
overflow : hidden ;
268
266
clip : rect (0 0 0 0 ); // TODO: Deprecated - use `clip-path` when browser support is better.
269
267
// clip-path: inset(50%); // TODO: Currently causes severe performance issues in Chrome.
268
+ border : 0 ;
269
+ white-space : nowrap ;
270
270
}
0 commit comments