-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
262 lines (228 loc) · 6.46 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
/*
Theme Name: Smolblog
Theme URI: https://github.com/smolblog/smolblog-wp-theme
Author: Smolblog
Author URI: https://smolblog.com/
Description: Theme for Smolblog blogs.
Requires at least: 6.3
Tested up to: 6.3
Requires PHP: 8.1
Version: 1.0.4
License: GNU Affero General Public License v3 or later
License URI: http://www.gnu.org/licenses/agpl-3.0.html
Template:
Text Domain: smolblog
Tags: blog, one-column, wide-blocks, block-patterns, featured-images, full-site-editing, rtl-language-support, threaded-comments, translation-ready
*/
/*
* Control the hover stylings of outline block style.
* Unnecessary once block styles are configurable via theme.json
* https://github.com/WordPress/gutenberg/issues/42794
*/
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
background-color: var(--wp--preset--color--primary);
color: var(--wp--preset--color--base);
border-color: var(--wp--preset--color--primary);
}
/*
* Link styles
* https://github.com/WordPress/gutenberg/issues/42319
*/
a {
text-decoration-thickness: 0.5px !important;
text-underline-offset: 0.15em;
}
/*
* Form field styles
* https://github.com/WordPress/gutenberg/issues/42319
*/
::placeholder {
color: var(--wp--preset--color--base);
opacity: 1; /* Firefox */
}
/*
* Avatar Block
* Fix border radius setting for the avatar block
*/
.wp-block-avatar a,
.wp-block-avatar img {
border-radius: inherit;
vertical-align: middle;
}
/*
* Calendar Block
* Adjust colours in the Calendar
*/
.wp-block-calendar table:where(:not(.has-text-color)) {
color: var(--wp--preset--color--contrast);
}
.wp-block-calendar table:where(:not(.has-text-color)) td, .wp-block-calendar table:where(:not(.has-text-color)) th {
border-color: var(--wp--preset--color--contrast);
}
:where(.wp-block-calendar table:not(.has-background) th) {
background-color: var(--wp--preset--color--contrast);
color: var(--wp--preset--color--base);
}
/*
* Latest Comments & Latest Posts Blocks
* Make them inherit the block setting
*/
.wp-block-latest-comments__comment-excerpt p,
.wp-block-latest-comments__comment-date,
.wp-block-latest-posts__post-author,
.wp-block-latest-posts__post-date {
font-size: inherit;
}
/*
* Navigation Block
* Remove the top padding for submenu items
*/
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
padding-top: 0;
}
/*
* Post Author Block
* Make them inherit the block setting
*/
.wp-block-post-author__byline,
.wp-block-post-author__bio {
font-size: inherit;
}
/* Round the avatar and reset the vertical alignment */
.wp-block-post-author__avatar img {
border-radius: 999px;
vertical-align: middle;
}
/* Remove the default margin from author bio */
.wp-block-post-author__bio {
margin: var(--wp--preset--spacing--50) 0 0;
}
/*
* Post Comments Form
* Reset browser default margins for blockquote element
*/
.wp-block-post-comments-form .comment-reply-title {
font-size: var(--wp--preset--font-size--large);
}
/* Remove the bottom margin from the submit button in the post comments form */
.wp-block-post-comments-form .form-submit {
margin-bottom: 0;
}
/* Make the fields inherit the line height */
.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]),
.wp-block-post-comments-form .comment-form textarea {
line-height: inherit;
}
/*
* Pull quote Block
* Reset browser default margins for blockquote element
*/
.wp-block-pullquote blockquote {
margin: 0;
}
/*
* Search Block
* Button inside style adjustment
*/
.wp-block-search__button-inside .wp-block-search__inside-wrapper {
padding: 2px;
}
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
background-color:var(--wp--preset--color--primary);
border-color: var(--wp--preset--color--primary);
}
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
padding: 0 0 0 var(--wp--preset--spacing--40);
}
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-element-button {
padding-right: 12px;
}
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-element-button:hover,
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-element-button:focus {
background-color: var(--wp--preset--color--primary);
}
/*
* Tag Cloud Block
* Style tag cloud outline style
*/
.wp-block-tag-cloud.is-style-outline a {
border-radius: 999px;
padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
}
/*
* Term Description Block
* Remove the default margins
*/
.wp-block-term-description p:first-child {
margin-top: 0;
}
.wp-block-term-description p:last-child {
margin-bottom: 0;
}
/*
* Jetpack Contact Form Block
* Match the padding to the Gutenberg default
*/
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=tel],
.contact-form input[type=url],
.contact-form textarea {
padding: calc(0.667em + 2px);
}
/* Label is 400 in this theme */
div[id^="contact-form-"] .contact-form label {
font-weight: 400;
}
/* Match the submission result to the theme style */
div[id^="contact-form-"] .contact-form-submission {
border-color: var(--wp--preset--color--primary);
margin: 0;
padding: 0;
}
/* Match the color of the link to the theme style */
div[id^="contact-form-"] .contact-form-submission .go-back-message .link {
color: var(--wp--preset--color--primary);
font-weight: inherit;
}
/* Match the submission result title to the theme style */
div[id^="contact-form-"] h4 {
font-size: var(--wp--preset--font-size--medium);
font-weight: inherit;
}
/*
* Jetpack Mailchimp Block
* Match the font size and line height
* Match the padding to the Gutenberg default
*/
.wp-block-jetpack-mailchimp input:not([type="submit"]):not([type="checkbox"]) {
border-width: 1px;
font-size: inherit;
line-height: inherit;
padding: calc(0.667em + 2px);
}
.wp-block-jetpack-mailchimp .wp-block-jetpack-button,
.wp-block-jetpack-mailchimp p {
margin-top: var(--wp--preset--spacing--50);
margin-bottom: 0;
}
/*
* Hide titles on smol posts
*/
.wp-block-post.sb-picture .wp-block-post-title,
.wp-block-post.sb-note .wp-block-post-title,
.wp-block-post.sb-reblog .wp-block-post-title {
/* via https://webaim.org/techniques/css/invisiblecontent/ */
position:absolute;
left:-10000px;
top:auto;
width:1px;
height:1px;
overflow:hidden;
}
.wp-block-post-title {
margin-block-end: var(--wp--preset--spacing--50);
}
.wp-block-post-content {
margin-block-start: 0;
}