-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathstyle.scss
132 lines (110 loc) · 2.44 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
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
.editor-header {
height: $header-height;
padding: $item-spacing;
border-bottom: 1px solid $light-gray-500;
background: $white;
display: flex;
flex-direction: row;
align-items: stretch;
justify-content: space-between;
z-index: z-index( '.editor-header' );
left: 0;
right: 0;
top: $admin-bar-height-big;
position: fixed;
@include break-medium() {
top: $admin-bar-height;
}
@include break-large() {
left: $admin-sidebar-width;
body.rtl & {
left: 0;
right: $admin-sidebar-width;
}
}
}
.sticky-menu .editor-header { /* Sticky is when on smaller breakpoints, nav menu is manually opened */
@include break-medium() {
left: $admin-sidebar-width;
}
}
body.rtl.sticky-menu .editor-header {
@include break-medium() {
left: 0;
right: $admin-sidebar-width;
}
}
.auto-fold .editor-header { /* Auto fold is when on smaller breakpoints, nav menu auto colllapses */
@include break-medium() {
left: $admin-sidebar-width-collapsed;
body.rtl & {
left: 0;
right: $admin-sidebar-width-collapsed;
}
}
@include break-large() {
left: $admin-sidebar-width;
body.rtl & {
left: 0;
right: $admin-sidebar-width;
}
}
}
/* Sidebar manually collapsed */
.folded .editor-header {
left: 0;
body.rtl & {
right: 0;
}
@include break-medium() {
left: $admin-sidebar-width-collapsed;
body.rtl & {
left: 0;
right: $admin-sidebar-width-collapsed;
}
}
}
/* Mobile menu opened */
.auto-fold .wp-responsive-open .editor-header {
left: $admin-sidebar-width-big;
right: -$admin-sidebar-width-big;
body.rtl & {
left: -$admin-sidebar-width-big;
right: $admin-sidebar-width-big;
}
}
.editor-header__settings {
display: inline-flex;
align-items: center;
}
.editor-header .components-button {
border-radius: $button-style__radius-roundrect;
// header toggle buttons
&.is-toggled {
color: $white;
}
// put the gray background on a separate layer, so as to match the size of the publish button (34px)
&.is-toggled::before {
content: "";
border-radius: $button-style__radius-roundrect;
position: absolute;
z-index: -1;
background: $dark-gray-500;
top: 1px;
right: 1px;
bottom: 1px;
left: 1px;
}
&.is-toggled:focus {
outline: none;
box-shadow: 0 0 0 1px $dark-gray-500, inset 0 0 0 1px $white;
color: $white;
background: $dark-gray-500;
}
@include break-medium() {
&.editor-post-publish-button, &.editor-post-publish-with-dropdown__button {
height: 33px;
line-height: 32px;
}
}
}