-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
158 lines (153 loc) · 3.71 KB
/
style.css
File metadata and controls
158 lines (153 loc) · 3.71 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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/*
Conventions I'd like to stick to:
- Comment EVERYTHING (where sensible)
- Relative units for most scaling values (mostly rem and %)
- Colours all taken from variables set up in root (easy global colour scheme changes!!)
- Flex boxes! (for easy management of content allignment and stuff)
- Seperate different "objects" with empty lines (e.g.: all navbar sections together, but a line away from all body sections)
*/
:root {
/* Colour Scheme Setup */
--h: 200; /* Hue */
--s: 50%; /* Sauration */
--background: hsl(var(--h), var(--s), 10%);
--headers: hsl(var(--h), var(--s), 42%);
--navbar: hsl(var(--h), var(--s), 6%);
--nav-hover: hsl(var(--h), var(--s), 3%);
--accent: hsl(0, 0%, 85%);
--unselected: hsl(var(--h), var(--s), 42%);
/* constants */
--navbar-height: 1.3rem;
}
/* Body */
body {
background-color: var(--background);
}
/* Navigation Bar - General */
nav {
position: fixed; /* Do not change position when scrolling */
width: 100%;
font-size: var(--navbar-height); /* Idk if this is the best way to do this? */
background-color: var(--navbar);
box-shadow: 0 0 1rem 0rem rgba(0, 0, 0, 0.5); /* Doesn't need to follow colour scheme as it's a shadow */
}
nav ul {
display: flex;
justify-content: left; /* Make list start at the left of the screen */
}
nav li {
text-align: center;
transition: all 0.15s ease-in-out;
}
nav a {
color: var(--headers);
text-decoration: none;
display: block; /* Force box to take up entire container for easier clicking */
padding-left: 1.5rem;
padding-right: 1.5rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
transition: all 0.15s ease-in-out;
}
/* Navigation Bar - Hover */
nav li:hover:not(.active, .icon) {
background-color: var(--nav-hover);
box-shadow: 0 0 1rem 0rem rgba(0, 0, 0, 0.8);
}
nav li:hover:not(.active, .icon) a {
color: var(--accent);
}
/* Navigation Bar - Active */
nav .active {
background-color: var(--headers);
}
nav .active a {
color: var(--accent);
}
/* Main Content - Global */
main {
padding-top: 2.3rem; /* 0.5+0.5+1.3 from navigation bar */
}
/* Main Content - Homepage */
.home {
display: flex;
padding-top: 8rem;
padding-left: 6.5rem;
padding-right: 6.5rem;
}
/* Header */
.home header{
display: flex;
flex-direction: column;
font-size: 1.7rem;
color: var(--headers);
margin-right: 6.5rem;
}
.home header h1 {
font-size: 6rem;
font-weight: 500;
width: 47rem;
}
.home header p {
padding-left: 0.4rem;
padding-top: 3.5rem;
width: min(30rem, 100%);
}
/* Buttons */
.home-buttons {
display: flex;
padding-top: 2.9rem;
}
.home-buttons a {
width: fit-content;
height: fit-content;
margin-right: 1rem;
}
.login {
background-color: var(--headers);
border-radius: 1rem;
border-style: none;
color: var(--navbar);
padding: 0.5rem 1.5rem;
text-align: center;
font-size: 1.5rem;
text-decoration: none;
transition: all 0.15s ease-in-out;
}
.sign-up {
background-color: transparent;
border-radius: 1rem;
border-style: none;
box-shadow: inset 0 0 0 0.1rem;
color: var(--headers);
padding: 0.5rem 1.5rem;
text-align: center;
font-size: 1.5rem;
text-decoration: none;
transition: all 0.15s ease-in-out;
}
/* Buttons - Hover */
.login:hover {
color: var(--accent);
box-shadow: inset 0 0 0 0.1rem,0 0 1rem 0rem rgba(0, 0, 0, 0.8);
}
.sign-up:hover {
color: var(--accent);
box-shadow: inset 0 0 0 0.1rem, 0 0 1rem 0rem rgba(0, 0, 0, 0.8);
}
/* Hero Image */
.home aside {
display: flex;
flex-direction: column;
height: calc(100vh - 13.3rem);
width: 100%;
justify-content: center;
align-items: center;
}
.home img {
width: 100%;
height: 95%;
object-fit: cover;
border-radius: 5rem;
box-shadow: 0 0 1rem 0rem rgba(0, 0, 0, 0.8);
}