-
Notifications
You must be signed in to change notification settings - Fork 4
/
d2l-navigation-styles.js
107 lines (102 loc) · 2.18 KB
/
d2l-navigation-styles.js
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
import '@brightspace-ui/core/components/colors/colors.js';
import { css } from 'lit';
export const centererStyles = css`
.d2l-navigation-centerer {
margin: 0 auto;
max-width: 1230px;
}
`;
export const guttersStyles = css`
.d2l-navigation-gutters {
padding-left: 2.439%;
padding-right: 2.439%;
position: relative;
}
@media (max-width: 615px) {
.d2l-navigation-gutters {
padding-left: 15px;
padding-right: 15px;
}
}
@media (min-width: 1230px) {
.d2l-navigation-gutters {
padding-left: 30px;
padding-right: 30px;
}
}
`;
export const highlightBorderStyles = css`
.d2l-navigation-highlight-border {
background: transparent;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
display: block;
height: 4px;
left: -7px;
position: absolute;
top: 0;
width: calc(100% + 14px);
}
*:focus > .d2l-navigation-highlight-border,
*:hover > .d2l-navigation-highlight-border,
*[active] > .d2l-navigation-highlight-border {
background: var(--d2l-color-celestine);
}
`;
export const highlightButtonStyles = css`
button {
align-items: center;
background: transparent;
border: none;
color: var(--d2l-color-ferrite);
cursor: pointer;
display: inline-flex;
font-family: inherit;
font-size: inherit;
gap: 6px;
height: 100%;
margin: 0;
min-height: 40px;
outline: none;
overflow: visible;
padding: 0;
position: relative;
vertical-align: middle;
white-space: nowrap;
}
/* Firefox includes a hidden border which messes up button dimensions */
button::-moz-focus-inner {
border: 0;
}
button:not([disabled]):hover,
button:not([disabled]):focus,
button[active] {
--d2l-icon-fill-color: var(--d2l-color-celestine);
color: var(--d2l-color-celestine);
outline: none;
}
button[disabled] {
cursor: default;
opacity: 0.5;
}
`;
export const highlightLinkStyles = css`
a {
align-items: center;
color: var(--d2l-color-ferrite);
display: inline-flex;
gap: 6px;
height: 100%;
min-height: 40px;
position: relative;
text-decoration: none;
vertical-align: middle;
white-space: nowrap;
}
a:hover,
a:focus {
--d2l-icon-fill-color: var(--d2l-color-celestine);
color: var(--d2l-color-celestine);
outline: none;
}
`;