Skip to content

Commit d60f3a0

Browse files
committed
feat(static) Add css form add_theme_support( 'wp-block-styles' )
1 parent 26fd8b7 commit d60f3a0

File tree

2 files changed

+146
-0
lines changed

2 files changed

+146
-0
lines changed
Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
/**
2+
* Colors
3+
*/
4+
/**
5+
* Breakpoints & Media Queries
6+
*/
7+
/**
8+
* Often re-used variables
9+
*/
10+
/**
11+
* Breakpoint mixins
12+
*/
13+
/**
14+
* Long content fade mixin
15+
*
16+
* Creates a fading overlay to signify that the content is longer
17+
* than the space allows.
18+
*/
19+
/**
20+
* Button states and focus styles
21+
*/
22+
/**
23+
* Applies editor left position to the selector passed as argument
24+
*/
25+
/**
26+
* Applies editor right position to the selector passed as argument
27+
*/
28+
/**
29+
* Styles that are reused verbatim in a few places
30+
*/
31+
/**
32+
* Allows users to opt-out of animations via OS-level preferences.
33+
*/
34+
/**
35+
* Reset default styles for JavaScript UI based pages.
36+
* This is a WP-admin agnostic reset
37+
*/
38+
/**
39+
* Reset the WP Admin page styles for Gutenberg-like pages.
40+
*/
41+
.wp-block-audio figcaption {
42+
color: #555d66;
43+
font-size: 13px;
44+
text-align: center; }
45+
46+
.wp-block-code {
47+
font-family: Menlo, Consolas, monaco, monospace;
48+
font-size: 14px;
49+
color: #23282d;
50+
padding: 0.8em 1em;
51+
border: 1px solid #e2e4e7;
52+
border-radius: 4px; }
53+
54+
.wp-block-embed figcaption {
55+
color: #555d66;
56+
font-size: 13px;
57+
text-align: center; }
58+
59+
.blocks-gallery-caption {
60+
color: #555d66;
61+
font-size: 13px;
62+
text-align: center; }
63+
64+
.wp-block-image figcaption {
65+
color: #555d66;
66+
font-size: 13px;
67+
text-align: center; }
68+
69+
.wp-block-preformatted pre {
70+
font-family: Menlo, Consolas, monaco, monospace;
71+
color: #23282d;
72+
/* Fonts smaller than 16px causes mobile safari to zoom. */
73+
font-size: 16px; }
74+
@media (min-width: 600px) {
75+
.wp-block-preformatted pre {
76+
font-size: 14px; } }
77+
78+
.wp-block-pullquote {
79+
border-top: 4px solid #555d66;
80+
border-bottom: 4px solid #555d66;
81+
margin-bottom: 28px;
82+
color: #40464d; }
83+
.wp-block-pullquote cite,
84+
.wp-block-pullquote footer, .wp-block-pullquote__citation {
85+
color: #40464d;
86+
text-transform: uppercase;
87+
font-size: 13px;
88+
font-style: normal; }
89+
90+
.wp-block-quote {
91+
border-left: 4px solid #000;
92+
margin: 0 0 28px 0;
93+
padding-left: 1em; }
94+
.wp-block-quote cite,
95+
.wp-block-quote footer, .wp-block-quote__citation {
96+
color: #6c7781;
97+
font-size: 13px;
98+
margin-top: 1em;
99+
position: relative;
100+
font-style: normal; }
101+
.wp-block-quote.has-text-align-right, .wp-block-quote.has-text-align-right {
102+
border-left: none;
103+
border-right: 4px solid #000;
104+
padding-left: 0;
105+
padding-right: 1em; }
106+
.wp-block-quote.has-text-align-center, .wp-block-quote.has-text-align-center {
107+
border: none;
108+
padding-left: 0; }
109+
.wp-block-quote.is-style-large, .wp-block-quote.is-large {
110+
border: none; }
111+
112+
.wp-block-search .wp-block-search__label {
113+
font-weight: bold; }
114+
115+
.wp-block-group.has-background {
116+
padding: 20px 30px;
117+
margin-top: 0;
118+
margin-bottom: 0; }
119+
120+
.wp-block-separator {
121+
border: none;
122+
border-bottom: 2px solid #8f98a1;
123+
margin-left: auto;
124+
margin-right: auto; }
125+
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
126+
max-width: 100px; }
127+
.wp-block-separator.has-background:not(.is-style-dots) {
128+
border-bottom: none;
129+
height: 1px; }
130+
.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots) {
131+
height: 2px; }
132+
133+
.wp-block-table {
134+
border-collapse: collapse; }
135+
.wp-block-table td,
136+
.wp-block-table th {
137+
padding: 0.5em;
138+
border: 1px solid;
139+
word-break: normal; }
140+
141+
.wp-block-video figcaption {
142+
color: #555d66;
143+
font-size: 13px;
144+
text-align: center; }
145+

src/templates/partials/header.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<![endif]-->
4747

4848
<link rel="stylesheet" href="partials/gutenberg.5.3.css">
49+
<link rel="stylesheet" href="partials/gutenberg_theme.5.3.css">
4950

5051
<link rel="stylesheet" href="assets/app.css">
5152

0 commit comments

Comments
 (0)