This repository was archived by the owner on Jun 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 175
Expand file tree
/
Copy pathblocks.css
More file actions
160 lines (132 loc) · 6.17 KB
/
blocks.css
File metadata and controls
160 lines (132 loc) · 6.17 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
/*--------------------------------------------------------------
# Border, for backwards compatibility
--------------------------------------------------------------*/
.is-style-twentytwentyone-border,
.wp-block-image.is-style-twentytwentyone-border img,
.wp-block-image.is-style-twentytwentyone-image-frame img {
border: 3px solid var(--wp--preset--color--dark-gray);
}
/*--------------------------------------------------------------
# Columns
--------------------------------------------------------------*/
@media screen and (min-width: 652px) {
.is-style-twentytwentyone-columns-overlap .wp-block-column {
flex-grow: 1;
}
.is-style-twentytwentyone-columns-overlap .wp-block-column:nth-child(2n) {
margin-left: calc(-2 * var(--wp--custom--spacing--horizontal));
margin-top: calc(2.5 * var(--wp--custom--spacing--horizontal));
z-index: 2;
}
.is-style-twentytwentyone-columns-overlap .wp-block-column:nth-child(2n) > p:not(.has-background),
.is-style-twentytwentyone-columns-overlap .wp-block-column:nth-child(2n) > h1:not(.has-background),
.is-style-twentytwentyone-columns-overlap .wp-block-column:nth-child(2n) > h2:not(.has-background),
.is-style-twentytwentyone-columns-overlap .wp-block-column:nth-child(2n) > h3:not(.has-background),
.is-style-twentytwentyone-columns-overlap .wp-block-column:nth-child(2n) > h4:not(.has-background),
.is-style-twentytwentyone-columns-overlap .wp-block-column:nth-child(2n) > h5:not(.has-background),
.is-style-twentytwentyone-columns-overlap .wp-block-column:nth-child(2n) > h6:not(.has-background),
.is-style-twentytwentyone-columns-overlap .wp-block-column:nth-child(2n) > ul:not(.has-background),
.is-style-twentytwentyone-columns-overlap .wp-block-column:nth-child(2n) > ol:not(.has-background),
.is-style-twentytwentyone-columns-overlap .wp-block-column:nth-child(2n) > pre:not(.has-background) {
margin-left: calc(-2 * var(--wp--custom--spacing--horizontal));
margin-top: calc(2.5 * var(--wp--custom--spacing--horizontal));
z-index: 2;
}
.is-style-twentytwentyone-columns-overlap .wp-block-column:nth-child(2n) > ul:not(.has-background),
.is-style-twentytwentyone-columns-overlap .wp-block-column:nth-child(2n) > ol:not(.has-background) {
padding-left: calc(2 * var(--wp--custom--spacing--horizontal));
}
.is-style-twentytwentyone-columns-overlap .wp-block-column.is-vertically-aligned-center:nth-child(2n) {
margin-top: 0;
}
}
/*--------------------------------------------------------------
# Image
--------------------------------------------------------------*/
.wp-block-image.is-style-twentytwentyone-image-frame img {
padding: var(--wp--custom--spacing--unit);
}
/*--------------------------------------------------------------
# Latest Posts
--------------------------------------------------------------*/
.wp-block-latest-posts {
padding-left: 0;
}
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers {
border-top: 3px solid var(--wp--preset--color--dark-gray);
border-bottom: 3px solid var(--wp--preset--color--dark-gray);
}
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers:not(.is-grid) > li,
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers > li {
padding-bottom: var(--wp--custom--spacing--vertical);
border-bottom: 1px solid var(--wp--preset--color--dark-gray);
margin-top: var(--wp--custom--spacing--vertical);
margin-bottom: var(--wp--custom--spacing--vertical);
}
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers:not(.is-grid) > li:last-child,
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers > li:last-child {
padding-bottom: 0;
border-bottom: none;
}
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers.is-grid {
box-shadow: inset 0 -1px 0 0 var(--wp--preset--color--dark-gray);
border-bottom: 2px solid var(--wp--preset--color--dark-gray);
}
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers.is-grid li {
margin: 0;
padding-top: var(--wp--custom--spacing--vertical);
padding-right: var(--wp--custom--spacing--horizontal);
}
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers.is-grid li:last-child {
padding-bottom: var(--wp--custom--spacing--vertical);
}
@media screen and (min-width: 600px) {
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers.is-grid.columns-2 li {
width: calc((100% / 2));
}
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers.is-grid.columns-3 li {
width: calc((100% / 3));
}
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers.is-grid.columns-4 li {
width: calc((100% / 4));
}
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers.is-grid.columns-5 li {
width: calc((100% / 5));
}
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers.is-grid.columns-6 li {
width: calc((100% / 6));
}
}
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-borders li {
border: 3px solid var(--wp--preset--color--dark-gray);
padding: var(--wp--custom--spacing--vertical) var(--wp--custom--spacing--horizontal);
}
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-borders li:last-child {
padding-bottom: var(--wp--custom--spacing--vertical);
}
.wp-block-latest-posts.is-style-twentytwentyone-latest-posts-borders:not(.is-grid) li {
margin-top: var(--wp--custom--spacing--horizontal);
margin-bottom: var(--wp--custom--spacing--horizontal);
}
/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.wp-block-navigation .wp-block-navigation-link a:hover {
text-decoration: underline;
text-underline-offset: 3px;
text-decoration-style: dotted;
text-decoration-skip-ink: none;
}
/*--------------------------------------------------------------
# Separator
--------------------------------------------------------------*/
.wp-block-separator:not(.has-text-color) {
border-bottom: 1px solid var(--wp--preset--color--dark-gray);
}
.wp-block-separator.is-style-twentytwentyone-separator-thick {
border-bottom-width: 3px;
}
/* In Twenty Twenty-One, separators are 100% wide. This replicates that approach */
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
width: 100%;
}