-
Notifications
You must be signed in to change notification settings - Fork 182
/
style.css
183 lines (149 loc) · 4.41 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
/*
Theme Name: Twenty Nineteen Blocks
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Nineteen, but only using block templates.
Requires at least: WordPress 4.9.6
Version: 0.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: twentynineteen-blocks
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/
/*
* Import the default Twenty Nineteen styles.
* File is almost identical to the original, except the scope of some rules
* has been adjusted to include the new .wp-site-blocks, .wp-block-header,
* and .wp-block-footer areas. Most of these changes occurred in _blocks.scss.
*/
@import url('twentynineteen-styles/style.css');
/* Site header and footer styles */
.site-header,
.site-footer {
margin: 0;
padding: 1rem;
}
.wp-site-blocks .site-header > .site-branding {
margin: 0;
}
.site-branding h1,
.site-branding .site-title {
display: inline-block;
color: #000;
font-size: 1.125em;
margin-bottom: 0;
margin-right: 0.5em;
}
.site-branding h1:before,
.site-branding .site-title:before {
display: none;
}
.site-branding .wp-block-column:first-child {
flex-basis: 64px !important;
flex-shrink: 0;
margin-bottom: 1rem;
}
/* Social links in the header */
.site-header .wp-block-social-links {
margin-top: 0;
}
.site-header .wp-block-social-links > .wp-social-link {
background-color: transparent;
color: #111;
}
.site-header .wp-block-social-links > .wp-social-link:hover {
color: #777;
}
.site-header .wp-block-social-links > .wp-social-link a {
padding-left: 0;
}
.site-header .wp-block-social-links > .wp-social-link svg {
height: 32px;
width: 32px;
}
@media screen and (min-width: 600px) {
/* Prevent site title & menu from shifting over unintentionally between 600-768px viewports. */
.wp-site-blocks .site-header > * > *:last-child {
margin-left: 0;
}
}
@media only screen and (min-width: 768px) {
.site-header,
.site-footer {
margin: 2rem calc(10% + 60px);
padding-left: 0;
padding-right: 0;
}
.site-branding .wp-block-column:not(:first-child) {
margin-bottom: 0;
margin-left: 1rem;
}
}
/* Site content positioning */
.wp-site-blocks .site-content > .wp-block-group__inner-container > *:not(.align-full):not(.align-wide):not(.comments-area) {
max-width: calc(100% - (2 * 1rem));
margin: 0 1rem;
}
@media only screen and (min-width: 768px) {
.wp-site-blocks .site-content > .wp-block-group__inner-container > *:not(.align-full):not(.align-wide):not(.comments-area) {
max-width: 80%;
margin: 0 10%;
padding: 0 60px;
}
}
/* Latest posts block */
.wp-block-latest-posts {
padding-left: 0;
}
.wp-block-latest-posts li > a {
font-size: 2.25em;
font-weight: 700;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
color: #111;
line-height: 1.2;
}
.wp-block-latest-posts.wp-block-latest-posts__list li > a::before {
background: #767676;
content: "\020";
display: block;
height: 2px;
margin: 1rem 0;
width: 1em;
}
.wp-block-latest-posts.wp-block-latest-posts__list li:not(:first-child) {
margin-top: calc(6 * 1rem);
}
.wp-block-latest-posts .wp-block-latest-posts__post-date {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-size: 0.71111em;
margin-top: 0.71111em;
margin-bottom: 1.5em;
}
@media only screen and (min-width: 768px) {
.wp-block-latest-posts__post-excerpt {
max-width: calc(6 * (100vw / 12) - 28px);
}
}
/* Site navigation styles */
.wp-block-navigation {
font-size: 1.125em;
font-weight: 700;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}
.wp-block-navigation > ul > li > a {
padding: 0 0.5rem 0 0;
line-height: 1.6;
}
/* Large featured image headers inside of cover blocks */
.entry-content .wp-block-cover.site-featured-image {
display: flex;
align-items: flex-end;
min-height: calc( 100vh - 268px );
margin-top: 0;
}
.entry-content .wp-block-cover.site-featured-image .wp-block-cover__inner-container {
width: 100%;
}
.entry-content .wp-block-cover.site-featured-image h2:before{
background: white;
}