-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
150 lines (141 loc) · 4.31 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
/*
Theme Name: Inkling
Theme URI: https://github.com/andreasjr/inkling
Author: Andreas Reif
Author URI: https://andreasjr.com
Description: Inkling is a theme for WordPress that is inspired by the UI and aesthetic of Notion, featuring light and dark mode styles, templates for sans-serif, serif, and mono fonts, and a range of familiar colors.
Requires at least: 6.2
Tested up to: 6.2
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inkling
Tags: blog, portfolio, grid-layout, one-column, wide-blocks, block-patterns, block-styles, custom-background, custom-colors, custom-header, custom-logo, featured-images, full-site-editing, notion, markdown, simple, inkling
*/
/* Links */
.wp-site-blocks a:where(:not(.wp-element-button):not(.wp-block-site-title a):not(.wp-block-post-title a):not(:has(img)):not(.wp-block-navigation a)) {
opacity: 0.7;
transition: all 0.2s ease-in-out;
}
.wp-site-blocks a:where(:not(.wp-element-button):not(.wp-block-site-title a):not(.wp-block-post-title a):not(:has(img)):not(.wp-block-navigation a)):hover, .wp-site-blocks a:where(:not(.wp-element-button):not(.wp-block-site-title a):not(.wp-block-post-title a):not(:has(img)):not(.wp-block-navigation a)):focus {
opacity: 1;
}
/* Header */
header.wp-block-template-part {
position: sticky;
top: 0px;
z-index: 10;
}
header.wp-block-template-part a {
transition: all 0.2s ease-in-out;
}
html:not(.has-modal-open) header.wp-block-template-part {
backdrop-filter: blur(25px);
-webkit-backdrop-filter: blur(25px);
}
@media screen and (min-width: 783px) {
.admin-bar header.wp-block-template-part {
top: 32px;
}
}
.wp-block-navigation .has-modal-open .wp-block-navigation__responsive-close {
margin-top: var(--wp--preset--spacing--40);
}
/* Fix entry content images */
.entry-content p img {
max-width: 100%;
}
/* Colors */
.has-gray-background-color,
.has-brown-background-color,
.has-orange-background-color,
.has-yellow-background-color,
.has-green-background-color,
.has-blue-background-color,
.has-purple-background-color,
.has-pink-background-color,
.has-red-background-color,
.wp-block-table table {
background-image: linear-gradient(0deg, var(--wp--preset--color--tint), var(--wp--preset--color--tint));
}
/* Blocks and Elements */
.wp-element-caption {
opacity: var(--wp--custom--style-opacity);
}
.wp-block-separator {
opacity: 0.15;
}
.wp-block-table table:not(.has-text-color) td, .wp-block-table table:not(.has-text-color) th {
border-color: var(--wp--preset--color--tint-alt);
}
.wp-block-table table thead {
border-bottom: none;
background-image: linear-gradient(0deg, var(--wp--preset--color--tint-alt), var(--wp--preset--color--tint-alt));
}
.wp-block-table table th {
text-align: start;
}
/* Buttons */
.wp-element-button {
transition: all 0.2s ease-in-out;
/**
* We're only doing this to the Outline block because, in Notion,
* the outline is more transparent than the text.
*/
}
.wp-element-button:hover, .wp-element-button:focus {
filter: brightness(120%);
}
.wp-element-button:active {
filter: brightness(80%);
}
.wp-element-button.has-background {
color: var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-outline .wp-element-button {
position: relative;
}
.wp-block-button.is-style-outline .wp-element-button::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: solid 1px;
border-radius: inherit;
opacity: 0.5;
}
/** Page Properties */
.is-style-page-property.wp-block-post-terms {
width: 100%;
display: flex;
flex-direction: column;
}
.is-style-page-property.wp-block-post-terms .wp-block-post-terms__separator {
display: none;
}
.is-style-page-property.wp-block-post-terms::before {
grid-row-start: 1;
grid-row-end: 999;
display: block;
opacity: 0.5;
margin-bottom: var(--wp--preset--spacing--20);
}
.is-style-page-property.wp-block-post-terms.taxonomy-category::before {
content: "Categories";
}
.is-style-page-property.wp-block-post-terms.taxonomy-post_tag::before {
content: "Tags";
}
.is-style-page-property.wp-block-post-terms a {
border-bottom: none;
margin-bottom: var(--wp--preset--spacing--20);
}
@media screen and (min-width: 601px) {
.is-style-page-property.wp-block-post-terms {
display: grid;
grid-template-columns: 10rem 1fr;
}
}