-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathstyle.scss
147 lines (127 loc) · 3.19 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
.edit-site-navigation-panel {
height: 100%;
position: relative;
width: 0;
overflow: hidden;
background: $gray-900;
transition: width 100ms linear;
@include reduce-motion("transition");
// Footer is visible from medium so we subtract footer's height
@include break-medium() {
height: calc(100% - #{$button-size-small + $border-width});
}
}
.edit-site-navigation-panel.is-open {
width: $nav-sidebar-width;
}
.edit-site-navigation-panel__inner {
position: relative;
width: $nav-sidebar-width;
height: 100%;
overflow: hidden;
}
.edit-site-navigation-panel__site-title-container {
height: $header-height;
padding-left: $header-height;
margin: 0 $grid-unit-20 0 $grid-unit-10;
display: flex;
align-items: center;
}
.edit-site-navigation-panel__site-title {
font-style: normal;
font-weight: 600;
font-size: $default-font-size;
line-height: $default-line-height;
color: $gray-300;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.edit-site-navigation-panel__scroll-container {
overflow-x: hidden;
overflow-y: auto;
height: calc(100% - #{$header-height});
}
.edit-site-navigation-panel__back-to-dashboard.components-button.is-tertiary {
border-radius: 0;
border-bottom: $border-width solid $gray-700;
height: auto;
margin-left: -6px; // +2px to display the focus box-shadow
margin-top: 2px; // +2px to display the focus box-shadow
padding: $grid-unit $grid-unit-20;
width: calc(100% + #{$grid-unit-15});
&:focus:not(:disabled) {
border-bottom-color: transparent;
}
}
.edit-site-navigation-panel__preview {
display: none;
border: $border-width solid $gray-400;
width: $nav-sidebar-width;
padding: $grid-unit-20;
background: $white;
box-shadow: $shadow-popover;
border-radius: $radius-block-ui;
position: absolute;
top: $header-height + $grid-unit-15 + 1px; // +1px for the header border
left: $nav-sidebar-width + $grid-unit-15;
color: $gray-900;
z-index: z-index(".edit-site-navigation-panel__preview");
@include break-medium {
display: block;
}
}
.edit-site-navigation-panel__template-item {
display: block;
&.is-active {
.edit-site-navigation-panel__template-item-description {
color: $gray-100;
}
.edit-site-navigation-panel__template-item-customized-dot {
background: $white;
}
}
button,
.components-button {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
height: auto;
min-height: $button-size;
text-align: left;
padding-top: $grid-unit-10;
padding-bottom: $grid-unit-10;
margin-bottom: $grid-unit-15;
}
}
.edit-site-navigation-panel__template-item-description {
padding-top: $grid-unit-05;
font-size: 12px;
line-height: 16px;
}
.edit-site-navigation-panel__new-template-dropdown {
display: flex;
margin: 0 0 0 $grid-unit-15;
button {
margin: 0;
}
}
.edit-site-navigation-panel__template-item-title {
display: inline-block;
padding-right: $grid-unit-20;
position: relative;
}
.edit-site-navigation-panel__template-item-customized-dot {
position: absolute;
right: 0;
top: 50%;
margin-top: -$grid-unit-05;
width: $grid-unit-10;
height: $grid-unit-10;
display: block;
background: var(--wp-admin-theme-color);
border-radius: 50%;
cursor: help;
}