-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathstyle.scss
160 lines (137 loc) · 4.01 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
.edit-site-sidebar-navigation-screen {
display: flex;
flex-direction: column;
overflow-x: unset !important;
position: relative;
}
.edit-site-sidebar-navigation-screen__main {
// Ensure the sidebar is always at least as tall as the viewport.
// This allows the footer section to be sticky at the bottom of the viewport.
flex-grow: 1;
margin-bottom: $grid-unit-20;
&.has-footer {
margin-bottom: 0;
}
}
.edit-site-sidebar-navigation-screen__content {
padding: 0 $grid-unit-20;
.components-text {
color: $gray-400;
}
.components-heading {
margin-bottom: $grid-unit-10;
}
}
.edit-site-sidebar-navigation-screen__meta {
margin: 0 0 $grid-unit-20 $grid-unit-20;
color: $gray-400;
.components-text {
color: $gray-400;
}
}
.edit-site-sidebar-navigation-screen__page-link {
color: $gray-600;
display: inline-block;
word-break: break-word;
&:hover,
&:focus {
color: $white;
}
.components-external-link__icon {
margin-left: $grid-unit-05;
}
}
.edit-site-sidebar-navigation-screen__title-icon {
position: sticky;
top: 0;
background: $gray-900;
padding-top: $grid-unit-60;
margin-bottom: $grid-unit-10;
padding-bottom: $grid-unit-10;
z-index: z-index(".edit-site-sidebar-navigation-screen__title-icon");
}
.edit-site-sidebar-navigation-screen__title {
flex-grow: 1;
overflow-wrap: break-word;
&#{&},
&#{&} .edit-site-sidebar-navigation-screen__title {
line-height: $font-line-height-x-large;
}
}
.edit-site-sidebar-navigation-screen__actions {
display: flex;
flex-shrink: 0;
}
.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container {
@include break-medium() {
// Safari does not currently support `scrollbar-gutter: stable`, so at
// particular viewport sizes it's possible for previews to render prior to a
// scrollbar appearing. This then causes a scrollbar to appear, which reduces
// the width of the container and can cause the preview's width to change.
// As a result, the preview can go into an endless loop of resizing, causing
// the preview elements to appear to "dance". A workaround is to provide a
// max-width for the container, which prevents the introduction of the scrollbar
// from causing the preview's width to change.
// See: https://github.com/WordPress/gutenberg/issues/55112
max-width: 292px;
}
}
.edit-site-global-styles-variation-title {
color: $gray-300;
font-size: 11px;
text-transform: uppercase;
font-weight: 500;
}
.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variations_item {
// Use a white outline to provide contrast with the dark background.
.edit-site-global-styles-variations_item-preview {
outline-color: rgba($white, 0.05);
}
&:not(.is-active):hover .edit-site-global-styles-variations_item-preview {
outline-color: rgba($white, 0.15);
}
&.is-active .edit-site-global-styles-variations_item-preview {
outline-color: $white;
}
&:focus-visible .edit-site-global-styles-variations_item-preview {
outline-color: var(--wp-admin-theme-color);
}
}
.edit-site-sidebar-navigation-screen__footer {
position: sticky;
bottom: 0;
background-color: $gray-900;
gap: 0;
padding: $grid-unit-10 $grid-unit-20;
margin: $grid-unit-20 0 0;
border-top: 1px solid $gray-800;
.edit-site-sidebar-navigation-screen-details-footer {
margin-left: -$grid-unit-20;
margin-right: -$grid-unit-20;
}
}
/* In general style overrides are discouraged.
* This is a temporary solution to override the InputControl component's styles.
* The `Theme` component will potentially be the more appropriate approach
* once that component is stabilized.
* See: packages/components/src/theme
*/
.edit-site-sidebar-navigation-screen__input-control {
width: 100%;
.components-input-control__container {
background: $gray-800;
.components-button {
color: $gray-200 !important;
}
}
.components-input-control__input {
color: $gray-200 !important;
background: $gray-800 !important;
}
.components-input-control__backdrop {
border: 4px !important;
}
.components-base-control__help {
color: $gray-600;
}
}