forked from lichess-org/lila
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_topnav-visible.scss
More file actions
116 lines (94 loc) · 2.09 KB
/
_topnav-visible.scss
File metadata and controls
116 lines (94 loc) · 2.09 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
@include mq-topnav-visible {
.hbg,
.site-title-nav .fullscreen-mask,
.topnav-toggle {
display: none !important;
}
#topnav {
---nav-section: 35px;
@include mq-site-header-tall {
---nav-section: 53px;
}
display: flex;
section {
position: relative;
height: var(---nav-section);
> a {
color: $c-font-page;
display: block;
height: 100%;
line-height: $site-header-height;
padding: 0 0.7rem;
text-transform: uppercase;
border-inline-start: 2px solid transparent;
@include if-light {
text-shadow: 0 1px 0 $c-font-shadow;
}
@include if-transp {
text-shadow: 0.5px 1px 1px #000;
}
&:focus-visible {
outline-offset: -2px;
}
}
.home {
display: none;
}
}
div {
@include inline-start(0);
visibility: hidden;
max-height: inherit;
position: absolute;
background: $c-bg-header-dropdown;
min-width: 10rem;
box-shadow: 2px 5px 6px rgba(0, 0, 0, 0.3);
border-radius: 0 3px 3px 3px;
border-inline-start: 2px solid $c-primary;
@include if-transp {
@include back-blur;
}
a {
display: block;
padding: 0.6rem 0.7rem;
color: $c-header-dropdown;
&:hover {
background: $c-primary;
&,
&::after {
color: $c-over;
}
}
&:first-child {
border-radius: 0 3px 0 0;
}
&:last-child {
border-radius: 0 0 3px 1px;
}
&:focus-visible {
outline-offset: -2px;
}
}
}
&.blind div {
display: block;
margin-inline-start: -9000px;
}
&.hover section:hover,
section:active,
section.active {
> a {
background: $c-bg-header-dropdown;
color: $c-header-dropdown;
border-color: $c-primary;
}
div {
visibility: visible;
max-height: none;
}
}
.mobile-only {
display: none;
}
}
}