-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
style.scss
71 lines (61 loc) · 1.63 KB
/
style.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
@import "./components/back-button/style.scss";
@import "./components/layout/style.scss";
@import "./components/meta-boxes/meta-boxes-area/style.scss";
@import "./components/welcome-guide/style.scss";
/**
* Animations
*/
// These keyframes should not be part of the _animations.scss mixins file.
// Because keyframe animations can't be defined as mixins properly, they are duplicated.
// Since hey are intended only for the editor, we add them here instead.
@keyframes edit-post__fade-in-animation {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
body.js.block-editor-page {
@include wp-admin-reset( ".block-editor" );
}
// Fix issue with wp-admin menu not scrolling between 170% and 200% zoom.
.block-editor-page #wpwrap {
overflow-y: auto;
@include break-medium() {
overflow-y: initial;
}
}
// Target the editor UI excluding the non-iframed visual editor contents, metaboxes
// and custom fields areas.
.editor-header,
.editor-text-editor,
.editor-sidebar,
.editor-post-publish-panel,
.edit-post-visual-editor.is-iframed {
@include reset;
}
.block-editor__container {
// On mobile the main content area has to scroll, otherwise you can invoke
// the overscroll bounce on the non-scrolling container, for a bad experience.
@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});
body.is-fullscreen-mode & {
min-height: 100vh;
}
}
img {
max-width: 100%;
height: auto;
}
}
@include wordpress-admin-schemes();