-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathDrawer.module.css
More file actions
138 lines (119 loc) · 2.42 KB
/
Copy pathDrawer.module.css
File metadata and controls
138 lines (119 loc) · 2.42 KB
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
.scrim {
position: fixed;
inset: 0;
z-index: 30;
display: flex;
justify-content: flex-end;
background: rgba(0, 0, 0, 0.18);
}
/* Nothing behind a full-width panel is visible, so there is nothing for the scrim to dim. */
.scrim:has(.full) {
background: transparent;
}
.panel {
position: relative;
width: var(--drawer-width, 452px);
max-width: 100%;
height: 100%;
background: var(--color-surface);
border-left: 1px solid var(--color-neutral-400);
box-shadow: -8px 0 28px rgba(0, 0, 0, 0.12);
display: flex;
flex-direction: column;
}
.head {
flex: none;
padding: 15px 18px 13px;
border-bottom: 1px solid var(--color-divider);
}
.headTop {
display: flex;
align-items: center;
gap: 9px;
}
.eyebrow {
font-family: var(--font-mono);
font-size: 12.5px;
color: var(--color-neutral-600);
}
.close {
margin-left: auto;
}
.title {
font-family: var(--font-heading);
font-size: 23px;
line-height: 1.15;
margin-top: 5px;
}
.subtitle {
font-size: 14px;
color: var(--color-neutral-700);
}
.actions {
display: flex;
gap: 8px;
margin-top: 11px;
}
.body {
flex: 1;
overflow: auto;
min-height: 0;
}
.sectionLabel {
padding: 13px 18px 6px;
display: flex;
align-items: baseline;
gap: 9px;
font-size: 12.5px;
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--color-neutral-600);
}
.sectionNote {
letter-spacing: 0;
text-transform: none;
}
.highlights {
display: flex;
padding: 13px 18px;
gap: 20px;
border-bottom: 1px solid var(--color-divider);
background: var(--color-neutral-100);
}
.highlightLabel {
font-size: 11.5px;
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--color-neutral-600);
}
.highlightValue {
font-family: var(--font-heading);
font-size: 19px;
line-height: 1.2;
white-space: nowrap;
}
/*
* The three sizes.
*
* Widths in `min()` against the viewport so a narrow laptop gets the whole screen rather than a
* panel wider than the window with its close button off the edge. `full` drops the scrim's
* darkening and the panel's shadow: at full width there is nothing behind to dim, and a shadow
* cast by an edge that is the screen edge reads as a rendering fault.
*/
.peek {
width: var(--drawer-width, 452px);
}
.wide {
width: min(920px, 100%);
}
.full {
width: 100%;
border-left: 0;
box-shadow: none;
}
.headControls {
display: flex;
align-items: center;
gap: 4px;
margin-left: auto;
}