-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
191 lines (166 loc) · 4.21 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
184
185
186
187
188
189
190
191
/*
Theme Name: Saija
Author: fukuo
Author URI: https://fukuo.design/
Theme URI:
Tags: full-site-editing, block-patterns
Text Domain: saija
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 100.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
/* Styles intended only for the front.*/
html {
scroll-behavior: smooth;
}
@media screen and (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
body {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}
/* Main structure */
body .wp-site-blocks {
display: flex;
flex-direction: column;
min-height: calc(
100dvh - var(--wp-admin--admin-bar--height, 0px)
) !important;
}
body .wp-site-blocks main {
flex-grow: 1;
}
/* Navigation styling */
body
.wp-site-blocks
header
.wp-block-navigation
.wp-block-navigation-item
> a.wp-block-navigation-item__content {
padding: 0.6rem 1rem;
border-radius: 30px;
}
body:is(.home)
.wp-site-blocks
> header
.wp-block-navigation
> .wp-block-navigation-item:nth-child(1)
> a.wp-block-navigation-item__content,
body
.wp-site-blocks
header
.wp-block-navigation
.current-menu-item
> a.wp-block-navigation-item__content {
background: #ddd;
}
body:is(.page-id-27)
.wp-site-blocks
header
.wp-block-navigation
.current-menu-item
> a.wp-block-navigation-item__content {
background: var(--wp--preset--color--contrast-2);
}
body:is(.home)
.wp-site-blocks
> header
.wp-block-navigation
.wp-block-buttons:nth-child(1)
> .wp-block-button:nth-child(1)
> a {
background: #ddd !important;
}
/* Marquee styling */
body:not(.editor-styles-wrapper) [class*="is-style-saija-marquee"] {
display: block;
overflow: hidden;
position: relative;
}
body:not(.editor-styles-wrapper) [class*="is-style-saija-marquee"] > * {
display: flex;
gap: var(--wp--preset--spacing--80, inherit);
}
/* Card styling */
body:not(.editor-styles-wrapper) [class*="is-style-saija-card"] {
transition: transform 0.3s cubic-bezier(0.46, 0.03, 0.52, 0.96);
}
body:not(.editor-styles-wrapper) [class*="is-style-saija-card"]:hover {
transform: translateY(-10px);
}
body:not(.editor-styles-wrapper)
[class*="is-style-saija-card"]
.wp-block-cover__inner-container
:where(.wp-block-group.wp-block-group-is-layout-constrained) {
position: unset;
}
body:not(.editor-styles-wrapper)
[class*="is-style-saija-card"]
.wp-block-cover__inner-container
:where(.wp-block-group.wp-block-group-is-layout-constrained)
.wp-block-post-title
a::before {
content: "";
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 2;
}
/* Clock styling */
body:not(.editor-styles-wrapper) [class*="is-style-saija-clock-blink"] {
animation: blink-animation 1s infinite;
transition: opacity 1s ease-in-out;
}
/* Sticky header */
@media (min-width: 1024px) {
body header.site-header nav.wp-block-navigation {
border-color: #ededed;
border-width: 1px;
border-style: solid;
border-radius: 100px;
padding-top: var(--wp--preset--spacing--10);
padding-right: var(--wp--preset--spacing--10);
padding-bottom: var(--wp--preset--spacing--10);
padding-left: var(--wp--preset--spacing--10);
background-color: var(--wp--preset--color--white);
box-shadow: var(--wp--preset--shadow--natural);
}
body:is(.page-id-27) header.site-header nav.wp-block-navigation {
background-color: var(--wp--preset--color--contrast);
border-color: var(--wp--preset--color--contrast);
}
header.site-header {
position: sticky;
top: 3rem;
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
will-change: transform, opacity;
z-index: 1001;
}
header.site-header.is-sticky {
opacity: 1;
transform: translateY(0);
}
header.site-header.is-hidden {
opacity: 0;
transform: translateY(-100%);
}
}
/* Animation */
@keyframes blink-animation {
0%,
40%,
100% {
opacity: 1;
}
50%,
90% {
opacity: 0;
}
}