-
Notifications
You must be signed in to change notification settings - Fork 66.7k
Expand file tree
/
Copy pathSearchOverlay.module.scss
More file actions
116 lines (100 loc) · 2.58 KB
/
SearchOverlay.module.scss
File metadata and controls
116 lines (100 loc) · 2.58 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
@use "./variables.scss" as searchVariables;
@import "@primer/css/support/variables/layout.scss";
@import "@primer/css/support/mixins/layout.scss";
.overlayBackdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(
--overlay-backdrop-bgColor,
var(--color-primer-fg-canvas-backdrop, rgba(31, 35, 40, 0.5))
);
z-index: 1000; /* Ensure it's above other content other than overlay */
}
.overlayContainer {
z-index: 1001; /* Above the backdrop */
top: 0;
left: 0;
width: searchVariables.$smSearchOverlayWidth !important;
max-width: 100%;
height: auto;
max-height: 95vh;
overflow-y: auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
@include breakpoint(sm) {
top: 0 !important;
left: 0 !important;
width: searchVariables.$smSearchOverlayWidth !important;
}
@include breakpoint(md) {
top: 0 !important;
left: 0 !important;
width: searchVariables.$mdSearchOverlayWidth !important;
}
@include breakpoint(lg) {
// Using header padding: 8px (p-2 padding) x2
top: 16px !important;
left: calc(50vw - searchVariables.$lgSearchOverlayWidth / 2) !important;
width: searchVariables.$lgSearchOverlayWidth !important;
}
@include breakpoint(xl) {
top: 16px !important;
left: calc(50vw - searchVariables.$xlSearchOverlayWidth / 2) !important;
width: searchVariables.$xlSearchOverlayWidth !important;
}
}
.header {
padding: 12px 14px 0px 14px !important;
width: 100%;
background-color: var(--overlay-bgColor) !important;
}
.footer {
padding: 5px 16px 13px 16px;
width: 100%;
background-color: var(--overlay-bgColor);
overflow-y: auto;
min-height: 15vh;
@include breakpoint(sm) {
min-height: fit-content !important;
}
}
.betaToken {
color: var(--fgColor-success, var(--fgColor-open, green)) !important;
background-color: var(--overlay-bgColor);
margin-right: 1em;
height: 22px !important;
font-weight: 700 !important;
border-color: unset !important;
}
.loadingContainer {
display: flex;
width: 100%;
align-items: center;
justify-content: center;
}
.suggestionsList {
width: 100%;
max-width: 100%;
// In the rare viewport case where the results are taller than the viewport, scroll
max-height: 95vh;
overflow-y: auto;
overflow-x: hidden;
padding: 4px 0 4px 0 !important;
}
.errorBanner {
width: 100%;
margin-top: 8px;
margin-bottom: 16px;
}
.viewAllSearchResults {
color: var(--color-accent-emphasis) !important;
padding-left: 32px !important;
span {
font-weight: 500 !important;
}
}