-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
121 lines (101 loc) · 2.1 KB
/
styles.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
@import url('https://fonts.googleapis.com/css?family=Poppins');
:root {
--navbar-bg-color: #262626;
--navbar-text-color: #fff;
--navbar-active-color: #2196f3;
--banner-text-color: #fff;
--banner-bg-color: #262626;
--logo-text-color: #fff;
--content-text-color: #262626;
--footer-bg-color: #262626;
--footer-text-color: #262626;
}
* {
margin: 0;
padding: 0;
}
body {
font-family: 'Poppins', sans-serif;
}
.container {
position: relative;
}
.banner {
position: relative;
width: 100%;
height: 100vh;
background-image: url(banner.jpg);
background-size: cover;
}
.banner::before {
width: 100%;
height: 100vh;
content: attr(data-banner-text);
background: rgba(0, 0, 0, .3);
color: var(--banner-text-color);
display: flex;
justify-content: center;
align-items: center;
font-size: 2.5em;
text-shadow: 0 0 5px rgba(0, 0, 0, .8);
}
.navbar {
position: sticky;
top: 0;
width: calc(100% - 40px);
padding: 0 20px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
background: var(--navbar-bg-color);
}
.logo {
text-transform: uppercase;
text-decoration: none;
color: var(--logo-text-color);
font-weight: bold;
font-size: 20px;
}
.navbar ul {
display: flex;
justify-content: flex-end;
flex-grow: 1;
height: 100%;
}
.navbar ul li {
height: 100%;
list-style: none;
padding: 0 10px;
line-height: 80px;
}
.navbar ul li a {
text-decoration: none;
color: var(--navbar-text-color);
}
.active,
.navbar ul li:hover {
background: var(--navbar-active-color);
color: var(--navbar-text-color);
}
.content {
padding: 50px;
box-sizing: border-box;
}
.footer {
width: 100%;
padding: 10px 0;
display: flex;
justify-content: center;
align-items: center;
border-top: 1px solid var(--footer-bg-color);
}
.footer a {
text-decoration: none;
font-weight: bold;
color: var(--footer-text-color);
}
.footer a:hover {
text-decoration: underline;
cursor: pointer;
}