-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
151 lines (129 loc) · 3.28 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
/*
Theme Name: ThisIs...
Theme URI: https://github.com/bobbingwide/thisis
Author: Herb Miller
Description: This is Full Site Editing. Experimental FSE demonstration theme
Requires at least: 5.7.1
Tested up to: 5.9.3
Requires PHP: 7.3
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thisis
*/
/**
The starting point for this theme was that it didn't contain any CSS at all.
The idea was that the styling is provided using the Global Styles solution,
which is implemented in experimental-theme.json.
In practice, we need some CSS since the browser defaults need a little overriding.
*/
/**
Override the 8px margin from user agent stylesheet
*/
body { margin: 0px; }
/**
Override top and bottom margins on h1 - user agent stylesheet
*/
h1 { margin-block-start: 0px; margin-block-end: 0px;}
/**
Override margin bottom added by Gutenberg inline styling
*/
.wp-block-columns { margin-bottom: 0px;}
/**
Style the current-menu-item
*/
li.current-menu-item {
color: var( --wp--preset--color--current-menu ) !important;
}
/*
Styling for blocks with class="WP_DEBUG"
*/
div.WP_DEBUG { height: 1px;
border-top: 1px dotted red;
width: 100%;
overflow: hidden;
position: relative;
}
div.WP_DEBUG:hover {
height: auto;
overflow: auto;
position: relative;
}
div.WP_DEBUG.END {
border-bottom: 1px solid green;
}
div.wp-site-blocks > div.WP_DEBUG:first-of-type {
background-color: white;
position: absolute;
top: 0;
z-index: 100000;
color: white;
height: auto;
overflow: auto;
width: auto;
border-top: 1px solid green;
background: transparent;
left: 40%;
padding: 0 1em;
}
div.wp-site-blocks > div.WP_DEBUG:first-of-type:hover {
// margin-top: -1.1em;
position: absolute;
z-index: 100000;
padding: 0 1em;
height: auto;
top: 0px;
left: 40%;
color: black;
}
/**
Style the title on the attachment template over the top of the image
*/
.attachment h1.wp-block-post-title { position: absolute; z-index: 100; border: 1px solid green; width: 100%; height: 45px;
margin: 0px; padding: 25px 0px 0px 30%; opacity: 0.8; background-color: #0693e3; color: #ffffff;
text-shadow: 1px 1px #333333;}
/**
Style the featured image - from [bw_field featured] to max width 100%
*/
img.featured { max-width: 100%; border-bottom: 1px solid grey; top: 40px; }
/**
Put a border around gallery images, but not featured images
*/
.wp-block-gallery li figure img { border: 1px solid grey; }
/**
Add CSS to prevent large and full sized images from losing their aspect ratio
*/
.wp-block-image img {
height: auto;
}
/** Copied and cobbled from gutenberg/build/block-library/theme.css
*/
.wp-block-table thead {
border-bottom: 3px solid;
}
.wp-block-table tfoot {
border-top: 3px solid;
}
.wp-block-table td,
.wp-block-table th {
padding: 0.5em;
border: 1px solid;
word-break: normal;
}
.wp-block-table figcaption {
color: #555;
font-size: 13px;
text-align: center;
}
.is-dark-theme .wp-block-table figcaption {
color: rgba(255, 255, 255, 0.65);
}
.wp-block-media-text__media img, .wp-block-media-text__media video {
height: auto;
}
.wp-block-navigation img {
height: auto;
}
.wp-site-blocks header {
margin-top: 0;
}