-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
46 lines (39 loc) · 979 Bytes
/
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
/* Remove unnecessary code */
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
/* Use more specific selectors */
#home.hero {
background-image: linear-gradient(to bottom, #333, #555);
background-size: 100% 300px;
background-position: 0% 100%;
transition: background-position 0.5s ease-in-out;
}
/* Use a consistent naming convention */
.header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
/* Use a preprocessor (optional) */
/* @mixin grid($columns) {
display: grid;
grid-template-columns: repeat($columns, 1fr);
}
.home-hero {
@include grid(2);
justify-items: center;
align-items: center;
} */
/* Use a CSS framework (optional) */
/* @import "bootstrap.css"; */
/* Your custom styles here */
.home-hero {
background-image: linear-gradient(to bottom, #333, #555);
background-size: 100% 300px;
background-position: 0% 100%;
transition: background-position 0.5s ease-in-out;
}
/*... */