forked from cpprefjp/kunai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.css
108 lines (84 loc) · 1.72 KB
/
navbar.css
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 '../variables.css';
$toggle-size: 2.5rem;
nav[role="navigation"] {
background: $nav-bg;
display: flex;
margin: 0;
font-size: 1.2rem;
a {
color: #777;
font-family: sans-serif;
&:hover {
text-decoration: none;
}
}
.container-fluid {
margin: 0;
padding: 0;
width: 100%;
}
.navbar-brand {
margin: 0;
padding: 0;
float: none;
display: flex;
// flex-grow: 1;
line-height: 1;
> .title-wrapper {
display: flex;
flex-basis: 100%;
align-items: center;
&:before {
content: "";
display: inline-block;
overflow: hidden;
height: 0;
padding: 32px 32px 0 0;
margin: 0 4px 0 0;
background-image: url(https://cpprefjp.github.io/static/original-icons/cpprefjp-icon-v1.1-transparent.png);
background-size: contain;
background-repeat: no-repeat;
}
}
}
.navbar-header {
display: flex;
position: relative;
// flex-basis: 100%;
margin: 0;
background: $nav-bg;
align-items: center;
&:after {
content: '';
display: block;
width: calc($toggle-size + 1rem);
visibility: hidden;
}
}
.navbar-toggle {
flex-direction: column;
justify-content: space-evenly;
align-items: center;
padding: 0;
margin: 0;
// margin: 0 .5rem 0 .5rem;
height: 2.2rem;
width: $toggle-size;
background: none;
// border: 1px solid #AAA;
border: none;
border-radius: 6px;
&:hover, &:focus {
background-color: initial;
}
.sr-only {
display: none;
}
.icon-bar {
display: block;
width: 1.5rem;
height: 2px;
background: #AAA;
}
}
}