-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyleStickyPosition.css
More file actions
102 lines (86 loc) · 1.46 KB
/
Copy pathstyleStickyPosition.css
File metadata and controls
102 lines (86 loc) · 1.46 KB
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
html {
scroll-behavior: smooth;
}
body {
margin: 0;
box-sizing: border-box;
font-family: sans-serif;
--header-height: 60px;
--footer-height: 60px;
--button-width: 16px;
--button-height: 30px;
}
.scrollTop {
position: fixed;
background-color: #E25544;
right: 32px;
bottom: 64px;
width: var(--button-width);
height: var(--button-height);
}
.scrollTop__link {
color: white;
font-size: 30px;
}
.main {
min-height: calc(100vh - var(--header-height) - var(--footer-height));
}
.section {
padding: 20px;
}
.container {
min-width: 500px;
max-width: 960px;
margin: 0 auto;
height: 500px;
background-color: cornsilk;
padding: 20px;
border-radius: 8px;
border: 1px solid gainsboro;
}
.footer {
background-color: #444;
text-align: center;
line-height: var(--footer-height);
color: #fff;
height: var(--footer-height);
}
.logo {
display: inline-block;
margin-right: 40px;
border: 1px solid #ccc;
padding: 3px;
color: #fff;
}
.nav {
text-align: center;
height: var(--header-height);
background-color: rgba(0, 0, 0, 0.75);
color: #fff;
position: sticky;
top: 0;
right: 0;
left: 0;
}
.nav__link:link {
display: inline-block;
font-size: 18px;
margin: 0 10px;
padding: 20px 10px;
color: #fff;
text-decoration: none;
}
.nav__link:visited {
color: green;
}
.nav__list {
list-style: none;
margin: 0;
padding: 0;
}
.nav__item {
display: inline-block;
}
.heading {
text-align: center;
}