-
Notifications
You must be signed in to change notification settings - Fork 76
/
_header.scss
123 lines (105 loc) · 2.4 KB
/
_header.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
@import '~carbon-components/scss/globals/scss/vars';
.#{$prefix}--header {
.#{$prefix}--skip-to-content:focus {
min-width: 240px;
justify-content: center;
border: $spacing-01 solid $ui-01;
}
&__menu-toggle {
display: block;
}
&__name {
font-size: $spacing-01;
}
&__menu-title[role='menuitem'][aria-expanded='true'] + &__menu {
left: auto;
right: 0;
}
&__menu {
min-width: 12.5rem;
width: auto;
}
&__menu-item[role='menuitem']:focus {
border-color: $ui-01;
outline: none;
}
}
.#{$iot-prefix}--header__subtitle {
@include type-style('body-short-01');
border-left: $icon-02 1px solid;
padding: $spacing-01 $spacing-05;
color: $disabled-02;
margin-left: $spacing-05;
}
.#{$prefix}--header-action-btn {
height: 3rem;
width: 3rem;
padding: 0;
.#{$prefix}--header__menu-item[role='menuitem'] {
height: 100%;
justify-content: center;
padding: 0;
width: 100%;
}
span {
display: flex;
}
}
.#{$prefix}--header__menu .#{$prefix}--header__menu-item[role='menuitem'] {
display: flex;
align-items: center;
color: $active-ui;
height: 100%;
font-size: 0.875rem;
font-weight: 400;
letter-spacing: 0;
line-height: 1.125rem;
text-decoration: none;
user-select: none;
border: 2px solid #0000;
transition: background-color $duration--fast-02, border-color $duration--fast-02,
color $duration--fast-02;
justify-content: center;
padding: 0;
width: 100%;
&:focus {
border-color: white;
}
}
.#{$prefix}--app-switcher {
background-color: $ui-01;
border: none;
}
.action-btn__headerpanel {
outline: none;
&--closed * {
display: none;
}
}
.#{$prefix}--header__menu-item:not(svg) {
position: relative;
display: flex;
align-items: center;
color: $shell-header-text-02;
padding: 0 mini-units(2);
// Used for links that are directly in the menubar to span the full height
height: 100%;
// Text styles
@include carbon--type-style('body-short-01');
// Reset link styles and make sure the text isn't selectable
text-decoration: none;
user-select: none;
// Used for focus styles
border: 2px solid transparent;
transition: background-color $duration--fast-02, border-color $duration--fast-02,
color $duration--fast-02;
}
button.#{$prefix}--header__menu-item {
background: none;
width: 100%;
&:focus {
border-color: #fff;
color: $ui-02;
outline: none;
}
}