/
style.css
156 lines (127 loc) · 3.54 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
/*
Theme Name: Two Column Landing Page
Theme URI: https://github.com/WordPress/gutenberg-theme/
Author: wordpressdotorg
Author URI: https://wordpress.org
Description: A simple theme for testing Gutenberg.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: two-column-landing-page
Tags: translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
Front page image from stocksnap.io. CC0
https://stocksnap.io/photo/girl-blonde-ZUZCKNLPDD
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Imports
# Defaults
# Alignments
# Block Overrides
# Color Palette
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Imports
--------------------------------------------------------------*/
@import "style-shared.css";
/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
body {
padding: 0;
margin: 0;
}
* {
box-sizing: border-box;
}
.wp-site-blocks,
.wp-block-template-part.alignfull {
padding: 0 var(--wp--custom--spacing-horizontal);
}
.wp-site-blocks > *:not(.wp-block-post-content),
.wp-site-blocks .wp-block-post-content > * {
max-width: var(--wp--custom--width-content);
margin-left: auto;
margin-right: auto;
}
.wp-site-blocks .alignwide {
width: var(--wp--custom--width-wide);
max-width: 100%;
margin-left: auto;
margin-right: auto;
}
.wp-site-blocks .alignfull {
transform: translateX(calc(0px - var(--wp--custom--spacing-horizontal)));
width: calc(100% + (2 * var(--wp--custom--spacing-horizontal)));
max-width: calc(100% + (2 * var(--wp--custom--spacing-horizontal)));
margin-left: 0;
margin-right: 0;
box-sizing: content-box;
}
.wp-site-blocks .wp-block-template-part.alignfull {
width: 100%;
max-width: 100%;
}
.aligncenter {
text-align: center;
}
.wp-site-blocks .alignleft {
float: left;
margin-right: 2em;
max-width: 360px;
}
.wp-site-blocks .alignright {
float: right;
margin-left: 2em;
max-width: 360px;
}
@media screen and (min-width: 764px) {
.wp-site-blocks,
.wp-block-template-part.alignfull {
padding: 0;
}
.wp-site-blocks .alignfull {
transform: translateX(0px);
width: 100%;
max-width: 100%;
}
}
/*--------------------------------------------------------------
# Block Overrides
--------------------------------------------------------------*/
/* Gutenberg provides this in the front end, but not in the full-site editor right now */
@media (min-width: 782px) {
.wp-block-column:not(:first-child) {
margin-left: 0;
}
}
/*--------------------------------------------------------------
# Color Palette
--------------------------------------------------------------*/
.has-background-color {
color: var(--wp--preset--color--background);
}
.has-background-background-color {
background-color: var(--wp--preset--color--background);
}
.has-foreground-color {
color: var(--wp--preset--color--foreground);
}
.has-foreground-background-color {
background-color: var(--wp--preset--color--foreground);
}
.has-primary-color {
color: var(--wp--preset--color--primary);
}
.has-primary-background-color {
background-color: var(--wp--preset--color--primary);
}
.has-secondary-color {
color: var(--wp--preset--color--secondary);
}
.has-secondary-background-color {
background-color: var(--wp--preset--color--secondary);
}