blob: 57b06c4841b2a3e2f7288277834ef85e1cd8a1fe (
plain)
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
124
125
126
127
|
@import "colors.scss";
// Always use the dark-scheme colors for the navigation bar.
$bar-background-color: color-get('dark', 'carbs-color-bg') !default
$bar-foreground-color: color-get('dark', 'carbs-color-fg') !default;
$bar-carbs-pink: color-get('dark', 'carbs-pink') !default;
$bar-border: 5px solid $bar-carbs-pink !default;
$bar-font-size: 14px !default;
$bar-font-text: $font-text !default;
$bar-title-height: 40px;
$bar-title-width: 190px;
$bar-margin: 2em;
#preamble { margin-bottom: $bar-margin; }
#navbar {
background: $bar-background-color none repeat scroll 0 0 !important;
border-bottom: $bar-border !important;
min-height: $bar-title-height;
padding: 10px 15px !important;
label, #hamburger { display: none; }
a.navbartitle {
margin: 0 !important;
padding: 0 !important;
color: $bar-carbs-pink !important;
float: left !important;
font-weight: bolder !important;
font-size: 200% !important;
&:hover {
text-decoration: none;
color: $bar-carbs-pink;
}
}
#navbarlist li a {
color: $bar-foreground-color;
font-weight: bold;
text-decoration: none;
}
ul {
display: block;
list-style: none;
margin: 0;
padding: 0;
text-align: right;
font-size: 0;
letter-spacing: 0;
li {
display: inline-block;
font-size: $bar-font-size;
font-family: $bar-font-text !important;
line-height: 1.4;
letter-spacing: 0;
padding-top: 14px;
padding-right: 15px;
padding-left: 15px;
margin: 0;
a {
color: $bar-foreground-color;
font-weight: bold;
text-decoration: none;
}
a:hover {
color: color-get('dark', 'carbs-purple') !important;
text-decoration: none !important;
}
}
}
}
@media screen and (max-width: 768px) {
#navbar {
label {
display: inline-block;
box-sizing: border-box;
color: $bar-foreground-color;
background: $bar-carbs-pink;
border-radius: 0.2em;
font-style: normal;
text-align: center;
margin-right: auto;
margin-left: auto;
font-size: 1em;
padding: 0.5em 0;
font-size: 1em;
width: 2.2em;
height: 100%;
float: right;
}
ul {
margin-left: 0;
margin-right: 0;
text-align: left;
}
#navbarlist {
margin-top: $bar-title-height + 10;
li {
box-sizing: border-box;
border-top: 1px solid $carbs-purple;
display: block;
width: 100%;
padding: 0.5em;
}
display: none;
}
input:checked ~ #navbarlist { display: block; }
}
}
footer {
clear: both;
margin-top: $bar-margin;
background: $bar-background-color none repeat scroll 0 0 !important;
border-top: $bar-border !important;
padding: 10px 15px !important;
bottom: 0;
p {
text-align: center;
color: $bar-foreground-color;
}
}
|