-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
278 lines (233 loc) · 8.02 KB
/
style.css
File metadata and controls
278 lines (233 loc) · 8.02 KB
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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
/*
Theme Name: Shanti
Theme URI: https://themeist.com/themes/shanti/
Author: Themeist
Author URI: https://themeist.com
Description: A purpose-built block theme for personal blogs, designed around portrait featured images and crafted for clear, readable content. Shanti is ideal for documenting life, travel, or thoughts — with simple layouts, generous spacing, and no visual clutter. Built entirely with WordPress blocks and Full Site Editing, it gives you full creative control while letting your words take center stage.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
Text Domain: shanti
Domain Path: /languages
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, blog, portfolio, news
*/
/* Smooth scrolling for in-page links */
html {
scroll-behavior: smooth;
}
/* Base: Links & focus */
/*
* Link styles
* https://github.com/WordPress/gutenberg/issues/42319
*/
a {
text-decoration-thickness: 2px !important;
text-underline-offset: 0.2em;
}
/* Accessible focus: Only shows up for keyboard users, not mouse clicks */
:focus-visible {
outline: 3px solid var(--wp--preset--color--primary);
outline-offset: 4px;
}
/* Removes the focus ring for mouse users to keep it clean */
:focus:not(:focus-visible) {
outline: none;
}
/* Typography & content */
/*
* Progressive enhancement to reduce widows and orphans
* https://github.com/WordPress/gutenberg/issues/55190
*/
p,
blockquote,
caption,
figcaption {
text-wrap: pretty;
}
strong,
b {
font-weight: var(--wp--custom--font-weight--semi-bold);
}
/*
* Prevent long URLs in excerpts and post content from causing horizontal scroll on mobile.
*/
.wp-block-post-excerpt p,
.wp-block-post-excerpt a,
.wp-block-post-content p,
.wp-block-post-content a {
overflow-wrap: break-word;
word-break: break-word;
}
/*
* Change the position of the more block on the front, by making it a block level element.
* https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
display: block;
}
/*
* Prevents unnecessary scrollbars while handling long lines of preformatted text.
* https://core.trac.wordpress.org/ticket/63875
*/
:where(pre) {
overflow-x: auto;
}
/* Navigation */
/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
margin-bottom: 3px;
}
/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
outline-offset: 4px;
}
/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
outline-offset: 0;
}
/* Navigation: emphasize current/active item */
.wp-block-navigation em {
font-weight: var(--wp--custom--font-weight--semi-bold);
}
/* Navigation: top margin on open responsive overlay */
.wp-block-navigation__responsive-container.is-menu-open {
margin-top: var(--wp--preset--spacing--80);
}
/* Hero cover */
/* Hero Cover: constrain inner content width */
.shanti-header-cover .constrain-text {
max-width: 700px;
position: relative; /* needed for absolutely positioned scroll arrow */
}
/* Hero Cover: position and style scroll arrow */
.shanti-header-cover .scroll-to {
position: absolute;
left: 0;
z-index: 2;
}
.shanti-header-cover .scroll-to a {
color: var(--wp--preset--color--contrast);
text-decoration: none;
font-size: var(--wp--preset--font-size--large);
line-height: 1;
}
/* Layout: Template parts & cover */
.wp-block-template-part.is-style-transparent {
position: absolute;
top: 0;
left: 0;
width: 100%;
background: transparent;
z-index: 10;
}
.wp-block-cover.is-style-fullscreen {
position: relative;
z-index: 0;
min-height: 100vh !important;
min-height: 100dvh !important;
}
body.admin-bar .wp-block-template-part.is-style-transparent {
top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
body.admin-bar .wp-block-template-part.is-style-transparent {
top: 46px;
}
}
/* Icons (CSS mask based) */
.shanti-icon {
display: inline-block;
width: 1em;
height: 1em;
vertical-align: middle;
mask-size: contain;
mask-position: center;
mask-repeat: no-repeat;
background-color: currentColor;
-webkit-mask-size: contain;
-webkit-mask-position: center;
-webkit-mask-repeat: no-repeat;
}
.shanti-icon-return {
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 10 4 15 9 20'/%3E%3Cpath d='M20 4v7a4 4 0 0 1-4 4H4'/%3E%3C/svg%3E");
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 10 4 15 9 20'/%3E%3Cpath d='M20 4v7a4 4 0 0 1-4 4H4'/%3E%3C/svg%3E");
margin-left: 0.5em;
}
/* Block-specific */
/* Query pagination arrows: bigger and primary color */
.wp-block-query-pagination-next-arrow,
.wp-block-query-pagination-previous-arrow {
color: var(--wp--preset--color--primary);
font-size: 1.5em;
}
/* Hide query pagination wrapper when there is only one page (index, archive, search) */
body.has-no-query-pagination .query-pagination {
display: none;
}
/* Single: left column constrained group stays left-aligned (content size from theme.json) */
.shanti-single-intro {
margin-inline-start: 0;
margin-inline-end: auto;
}
/* Post meta: avatar, separator, date (scoped; comments unchanged) */
.shanti-meta {
align-items: center;
gap: var(--wp--preset--spacing--20);
}
.shanti-meta > * {
margin-block-start: 0;
}
.shanti-meta .wp-block-post-author__avatar {
width: 24px;
height: 24px;
flex-shrink: 0;
border-radius: 50%;
overflow: hidden;
border: 2px solid var(--wp--preset--color--primary);
}
.shanti-meta .wp-block-post-author__avatar img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
}
.shanti-meta-sep {
color: var(--wp--preset--color--contrast-alt);
}
/* Inline comment form: bottom spacing when replying to a comment */
.wp-block-comment-template .wp-block-post-comments-form {
margin-bottom: var(--wp--preset--spacing--60) !important;
}
/* Responsive */
/* Post meta (date + terms): stack on mobile */
@media screen and (max-width: 720px) {
.wp-block-group:has(.wp-block-post-date):has(.wp-block-post-terms) {
flex-direction: column;
align-items: flex-start;
}
}
/* .wp-block-separator.is-style-wavy {
border: none;
height: 20px;
background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q 25 0, 50 10 T 100 10' stroke='black' fill='transparent' stroke-width='2'/%3E%3C/svg%3E");
background-repeat: repeat-x;
background-size: 50px 20px;
opacity: 1;
} */
.wp-block-separator.is-style-wavy {
border: none;
height: 20px; /* Increased height to prevent clipping */
width: 150px !important;
background-color: currentColor;
opacity: 1;
/* Masking with a larger viewbox (20x20) so the path (at y=10) is centered and safe */
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M0 10 Q 5 2 10 10 T 20 10' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M0 10 Q 5 2 10 10 T 20 10' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
-webkit-mask-repeat: repeat-x;
mask-repeat: repeat-x;
-webkit-mask-size: 20px 20px;
mask-size: 20px 20px;
}