-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
main.scss
154 lines (133 loc) · 2.79 KB
/
main.scss
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
// Output overrides for each scheme
@include admin-scheme-color-overrides( 'blue', $scheme-blue__spot-color );
@include admin-scheme-color-overrides( 'coffee', $scheme-coffee__spot-color );
@include admin-scheme-color-overrides( 'ectoplasm', $scheme-ectoplasm__spot-color );
@include admin-scheme-color-overrides( 'midnight', $scheme-midnight__spot-color );
@include admin-scheme-color-overrides( 'ocean', $scheme-ocean__spot-color );
@include admin-scheme-color-overrides( 'sunrise', $scheme-sunrise__spot-color );
@keyframes animate_fade {
from {
opacity: 0;
transform: translateY( 4px );
}
to {
opacity: 1;
transform: translateY( 0px );
}
}
@keyframes move_background {
from {
background-position: 0 0;
}
to {
background-position: 28px 0;
}
}
@keyframes loading_fade {
0% {
opacity: .5;
}
50% {
opacity: 1;
}
100% {
opacity: .5;
}
}
@keyframes slide_in_right {
100% {
transform: translateX( 0% );
}
}
body.gutenberg-editor-page {
background: $white;
#wpcontent {
padding-left: 0;
}
#wpbody-content {
padding-bottom: 0;
}
/* We hide legacy notices in Gutenberg, because they were not designed in a way that scaled well.
Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
#wpbody-content > div:not( .gutenberg ):not( #screen-meta ) {
display: none;
}
#wpfooter {
display: none;
}
.a11y-speak-region {
left: -1px;
top: -1px;
}
svg {
fill: currentColor;
outline: none;
}
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu>li.current>a.current:after {
border-right-color: $white;
}
}
.gutenberg {
* {
box-sizing: border-box;
}
select {
font-size: $default-font-size;
color: $dark-gray-500;
}
}
.gutenberg__editor {
// on mobile the main content area has to scroll
// otherwise you can invoke the overscroll bounce on the non-scrolling container, causing (ノಠ益ಠ)ノ彡┻━┻
@include break-small {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
min-height: calc( 100vh - #{ $admin-bar-height-big } );
}
// The WP header height changes at this breakpoint
@include break-medium {
min-height: calc( 100vh - #{ $admin-bar-height } );
}
img {
max-width: 100%;
height: auto;
}
iframe {
width: 100%;
}
.components-navigate-regions {
height: 100%;
}
}
.editor-post-title,
.editor-block-list__block {
input,
textarea {
&::-webkit-input-placeholder {
color: $dark-gray-300;
}
&::-moz-placeholder {
color: $dark-gray-300;
}
&:-ms-input-placeholder {
color: $dark-gray-300;
}
&:-moz-placeholder {
color: $dark-gray-300;
}
}
}
.editor-block-list__block {
input,
textarea {
border-radius: 4px;
border-color: $light-gray-500;
font-family: $default-font;
font-size: $default-font-size;
padding: 6px 10px;
}
}