-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathsuggester.scss
101 lines (86 loc) · 2.68 KB
/
suggester.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
// Needs refactoring
// stylelint-disable selector-max-type, selector-no-qualifying-type
.suggester {
position: relative;
top: 0;
left: 0;
min-width: 180px;
padding: 0;
margin: 0;
margin-top: var(--base-size-24);
list-style: none;
cursor: pointer;
background: var(--overlay-bgColor, var(--color-canvas-overlay));
// stylelint-disable-next-line primer/borders, primer/colors
border: $border-width $border-style var(--borderColor-default, var(--color-border-default));
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;
box-shadow: var(--shadow-resting-medium, var(--color-shadow-medium));
li {
display: block;
padding: var(--base-size-4) var(--base-size-8);
// stylelint-disable-next-line primer/typography
font-weight: $font-weight-semibold;
// stylelint-disable-next-line primer/borders, primer/colors
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
small {
// stylelint-disable-next-line primer/typography
font-weight: $font-weight-normal;
color: var(--fgColor-muted, var(--color-fg-muted));
}
&:last-child {
border-bottom: 0;
// stylelint-disable-next-line primer/borders
border-bottom-right-radius: $border-radius;
// stylelint-disable-next-line primer/borders
border-bottom-left-radius: $border-radius;
}
&:first-child {
// stylelint-disable-next-line primer/borders
border-top-left-radius: $border-radius;
// stylelint-disable-next-line primer/borders
border-top-right-radius: $border-radius;
}
&:hover {
color: var(--fgColor-onEmphasis, var(--color-fg-on-emphasis));
text-decoration: none;
background: var(--bgColor-accent-emphasis, var(--color-accent-emphasis));
small {
color: var(--fgColor-onEmphasis, var(--color-fg-on-emphasis));
}
.octicon {
color: inherit !important;
}
}
&[aria-selected='true'],
&.navigation-focus {
color: var(--fgColor-onEmphasis, var(--color-fg-on-emphasis));
text-decoration: none;
background: var(--bgColor-accent-emphasis, var(--color-accent-emphasis));
small {
color: var(--fgColor-onEmphasis, var(--color-fg-on-emphasis));
}
.octicon {
color: inherit !important;
}
}
}
}
.suggester-container {
position: absolute;
top: 0;
left: 0;
z-index: 30;
}
// Responsive
.page-responsive {
@media (max-width: $width-sm) {
.suggester-container {
right: var(--base-size-8) !important;
left: var(--base-size-8) !important;
}
.suggester li {
padding: var(--base-size-8) var(--base-size-16);
}
}
}