File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 36
36
div .body {
37
37
margin : 2em auto;
38
38
max-width : 38.75em ;
39
+ padding : 1em ;
39
40
}
40
41
41
42
figure figcaption {
@@ -67,15 +68,17 @@ pre {
67
68
68
69
# navbar {
69
70
width : 100% ;
70
- background-color : grey ;
71
+ background-color : darkblue ;
71
72
overflow : auto;
72
73
margin : auto;
74
+ position : fixed;
75
+ top : 0 ;
73
76
}
74
77
75
78
# navbar a {
76
79
float : left;
77
- padding : 0.4em ;
78
- color : black ;
80
+ padding : 0.4em 0.8 em 0.4 em 0.8 em ;
81
+ color : white ;
79
82
text-decoration : none;
80
83
font-size : 1em ;
81
84
}
@@ -85,12 +88,11 @@ pre {
85
88
}
86
89
87
90
# navbar a : hover {
88
- background-color : grey;
89
- color : white;
91
+ color : lightblue;
90
92
}
91
93
92
94
# navbar ul li a .active {
93
- color : whitesmoke ;
95
+ color : lightslategray ;
94
96
}
95
97
96
98
@media screen and (max-width : 44em ) {
@@ -99,3 +101,10 @@ pre {
99
101
display : block;
100
102
}
101
103
}
104
+
105
+ : target ::before {
106
+ content : "" ;
107
+ display : block;
108
+ height : 2.8em ; /* fixed header height */
109
+ margin : -2.8em 0 0 ; /* negative fixed header height */
110
+ }
You can’t perform that action at this time.
0 commit comments