-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathstyle.css
More file actions
193 lines (149 loc) · 3.7 KB
/
style.css
File metadata and controls
193 lines (149 loc) · 3.7 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
/*
Theme Name: Powder
Theme URI: https://powder.design/
Author: Brian Gardner
Author URI: https://briangardner.com/
Description: The premier block theme for WordPress designers and agencies.
Version: 2.0
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: powder
Tags: block-patterns, block-styles, custom-colors, custom-logo, editor-style, full-site-editing, one-column, two-columns, wide-blocks
*/
/* Base
---------------------------------------- */
:root {
--powder-motion-distance: 30px;
--powder-motion-ease: ease-out;
--powder-motion-fast: 0.25s;
--powder-motion-slow: 0.5s;
}
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
}
b,
strong {
font-weight: 600;
}
a,
button,
.wp-element-button {
transition: background-color var(--powder-motion-fast) var(--powder-motion-ease),
color var(--powder-motion-fast) var(--powder-motion-ease);
}
/* Forms
---------------------------------------- */
input,
select,
textarea {
box-sizing: border-box;
font-family: inherit;
font-size: inherit;
font-weight: inherit;
line-height: var(--wp--custom--line-height--medium);
width: 100%;
}
input:not([type="submit"]):focus,
textarea:focus {
border-color: var(--wp--preset--color--primary);
outline: 1px solid var(--wp--preset--color--primary);
}
input[type="checkbox"],
input[type="image"],
input[type="radio"] {
width: auto;
}
::placeholder {
color: inherit;
font-size: var(--wp--preset--font-size--x-small);
opacity: 0.5;
}
/* Blocks
---------------------------------------- */
/* Navigation */
.has-modal-open .wp-block-navigation__responsive-container {
padding: var(--wp--preset--spacing--30) !important;
}
.is-style-underline-slide .wp-block-navigation-item__content {
position: relative;
}
.is-style-underline-slide .wp-block-navigation-item__content::after {
background: currentColor;
content: "";
height: 1px;
inset: auto 0 -2px 0;
position: absolute;
transform: scaleX(0);
transform-origin: left;
transition: transform var(--powder-motion-fast) var(--powder-motion-ease);
}
.is-style-underline-slide .wp-block-navigation-item__content:is(:hover, :focus-visible)::after {
transform: scaleX(1);
}
/* Navigation submenu */
.wp-block-navigation__submenu-container {
min-width: 150px !important;
padding: 10px !important;
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
padding: 2px 10px !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
padding: 5px 10px 0 !important;
}
/* Utilities
---------------------------------------- */
/* Overflow */
.is-style-overflow-hidden {
overflow: hidden;
}
/* Position */
.is-style-position-fixed {
position: fixed;
}
.is-style-position-relative {
position: relative;
}
/* Z-index */
.is-style-negative-zindex {
z-index: -99;
}
.is-style-positive-zindex {
z-index: 99;
}
/* Media Queries
---------------------------------------- */
@media (min-width: 600px) {
/* Header */
.site-header {
position: sticky;
top: 0;
z-index: 1000;
}
.scroll-reveal .site-header {
transition: transform var(--powder-motion-slow) var(--powder-motion-ease);
}
.scroll-reveal body.scroll-down .site-header {
transform: translateY(-100%);
}
.scroll-reveal body.scroll-up .site-header {
transform: translateY(0);
}
}
@media (min-width: 600px) and (prefers-reduced-motion: reduce) {
.scroll-reveal .site-header {
transform: none !important;
transition: none !important;
}
}
@media (max-width: 782px) {
/* Columns */
.wp-block-columns.is-style-column-reverse {
flex-direction: column-reverse;
}
}