-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
134 lines (120 loc) · 2.12 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
122
123
124
125
126
127
128
129
130
131
132
133
134
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap");
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Custom Scrollbar */
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
body {
font-family: "Open Sans", sans-serif;
background-color: #282828;
color: #f1f1f1;
padding-bottom: 3.5rem;
}
.container {
/* width: 90%; */
max-width: 1200px;
margin: 0 auto;
}
nav {
position: fixed;
background-color: #222;
top: 0;
left: 0;
right: 0;
transition: all 0.3s ease-in-out;
}
nav .container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
transition: all 0.3s ease-in-out;
}
nav ul {
display: flex;
list-style: none;
/* align-items: center;
justify-content: center; */
}
nav a {
color: #f1f1f1;
text-decoration: none;
padding: 0.4rem 1rem;
transition: all 0.3s ease-in-out;
font-weight: bold;
}
nav.active {
background-color: #f1f1f1;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
nav.active a {
color: #000;
}
nav.active .container {
padding: 0.3rem 0;
}
nav a.current,
nav a:hover {
color: #bb2414;
}
.hero {
background-image: url(https://source.unsplash.com/featured?technology,computer);
background-repeat: no-repeat;
background-size: cover;
background-position: bottom center;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
position: relative;
margin-bottom: 2rem;
z-index: -2;
}
.hero::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4);
z-index: -1;
}
.hero h1 {
font-size: 2.5rem;
margin: -3rem 0 1.2rem;
}
.hero p {
font-size: 1.2rem;
letter-spacing: 0.5px;
}
.content p {
padding: 0.5rem 3rem 1rem;
}
.content h2,
h3 {
font-size: 1.5rem;
margin: 0.5rem 3rem;
}
.content p {
line-height: 2rem;
letter-spacing: 1px;
}