This repository was archived by the owner on Jan 14, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 317
Expand file tree
/
Copy pathmain.css
More file actions
145 lines (116 loc) · 2.62 KB
/
main.css
File metadata and controls
145 lines (116 loc) · 2.62 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
/* Add your CSS here */
/* Dont' forget to link this file to your HTML in the <head> */
/* We are using the 'Roboto' font from Google. This has already been added to your HTML header */
body {
font-family: 'Roboto', sans-serif;
-webkit-font-smoothing: antialiased;
height: 125vh;
background-size: cover;
font-family: sans-serif;
margin-top: 60px;
/* padding: 30px; */
}
/**
* Add your custom styles below
*
* Remember:
* - Be organised, use comments and separate your styles into meaningful chunks
* for example: General styles, Navigation styles, Hero styles, Footer etc.
*
* - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex'
*/
/* Add your CSS code here */
header {
background-color: white;
position: fixed;
top: 0;
left: 0;
right: 0;
height: 60px;
display: flex;
align-items: center;
box-shadow: 0 0 25px 0 black;
}
header * {
display: inline;
}
header ul {
margin: 20px;
right: 0;
}
header li {
margin: 20px;
right: 0;
}
header li a {
color: black;
text-decoration: none;
right: 0;
}
.hero {
/* Sizing */
width: 100vw;
height: 100vh;
/* Flexbox stuff */
display: flex;
justify-content: center;
align-items: center;
/* Text styles */
text-align: center;
color: white;
/* ADD THIS LINE */
/* Background styles */
background-image: url('/../img/Cactus hero.avif');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
}
.hero img {
height: 60px;
/* margin-left: 40px; */
width: 200px;
padding: 1em;
margin-top: 50px;
margin-left: auto;
margin-right: auto;
}
.hero h1 {
/* Text styles */
font-size: 4em;
/* Margins */
margin-top: 0;
margin-bottom: 0.5em;
}
.hero .btn {
/* Positioning and sizing */
display: block;
width: 150px;
background-color: rgba(246, 130, 21, 0.969);
/* Padding and margins */
padding: 1em;
margin-top: 50px;
margin-left: auto;
margin-right: auto;
/* Text styles */
color: white;
/* CHANGE THIS LINE */
text-decoration: none;
font-size: 1.5em;
/* Border styles */
border: 0px solid white;
/* CHANGE THIS LINE */
border-radius: 0px;
}
/* Apply some styles to the footer element */
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
padding: 10px;
border-style: none;
background-color: rgb(150, 218, 238);
color: rgb(13, 12, 12);
text-align: center;
}