-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrid.css
More file actions
116 lines (84 loc) · 3.11 KB
/
grid.css
File metadata and controls
116 lines (84 loc) · 3.11 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
body{
box-sizing: border-box;
margin: 0px;
padding: 0px;
}
.gridcontainer{
background-color: rgb(75, 76, 73);
display: grid;
gap: 0.6rem;
grid-template-columns: 1fr 1fr 1fr 1fr;
transition:ease-in
}
.item{
font-size: 25px;
padding: 70px;
text-align: center;
color: white;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
background-image: url(https://images.unsplash.com/photo-1584474760266-6f62be87b3a2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8dHJlZXNjYXBlfGVufDB8fDB8fHww&auto=format&fit=crop&w=600&q=60);
}
#miles{
background-image: url(https://plus.unsplash.com/premium_photo-1667942321723-1b0ed998d396?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1yZWxhdGVkfDE2fHx8ZW58MHx8fHx8&auto=format&fit=crop&w=600&q=60);
color: black;
}
#work{
background-image: url(https://plus.unsplash.com/premium_photo-1667942321723-1b0ed998d396?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1yZWxhdGVkfDE2fHx8ZW58MHx8fHx8&auto=format&fit=crop&w=600&q=60);
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
color: black;
}
#body{
background-image: url(https://plus.unsplash.com/premium_photo-1667942321723-1b0ed998d396?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1yZWxhdGVkfDE2fHx8ZW58MHx8fHx8&auto=format&fit=crop&w=600&q=60);
color: black;
}
.gridcontainer> div:hover{
opacity: 0.6;
transform: scale(0.98);
transition: 0.5s ease-in;
}
.gridcontainer> div{
display: grid;
cursor: pointer;
align-items: center;
justify-content: center;
text-align: center;
flex-direction: column;
background-size: cover;
background-attachment: fixed;
transition: all 0.5s ease-in;
}
@media only screen and (min-width: 900px) {
#goals{
grid-column: span 2 ;
}
#heart{
background-image: url(https://plus.unsplash.com/premium_photo-1667942321723-1b0ed998d396?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1yZWxhdGVkfDE2fHx8ZW58MHx8fHx8&auto=format&fit=crop&w=600&q=60);
color: black;
grid-column: 3/5;
}
#blood{
background-image: url(https://plus.unsplash.com/premium_photo-1667942321723-1b0ed998d396?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1yZWxhdGVkfDE2fHx8ZW58MHx8fHx8&auto=format&fit=crop&w=600&q=60);
color: black;
grid-column: 3/5;
}
#avg{
background-image: url(https://plus.unsplash.com/premium_photo-1667942321723-1b0ed998d396?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1yZWxhdGVkfDE2fHx8ZW58MHx8fHx8&auto=format&fit=crop&w=600&q=60);
color: black;
grid-column: 1/3;
}
}
@media only screen and (max-width: 900px) {
.gridcontainer{
grid-template-columns: repeat(3, 1fr)
}
}
@media only screen and (max-width: 600px) {
.gridcontainer{
grid-template-columns: repeat(2, 1fr)
}
}
@media only screen and (max-width: 375px) {
.gridcontainer{
grid-template-columns: 1fr
}
}