-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic-grid.css
78 lines (71 loc) · 2.03 KB
/
basic-grid.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
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
.basic-grid {
display: grid;
gap: 1rem;
height: 100vh;
width: 100vw;
overflow: hidden;
grid-template-columns: repeat(auto-fit, minmax(10vw, 1fr));
}
.card {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: rgb(63,94,251);
background: linear-gradient(0deg, rgba(34,193,195,.2) 0%, rgba(253,187,45,.1) 100%);
font-size: 2vw;
color: rgb(255, 255, 255);
box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
height: 100%;
width: 100%;
border-radius: 4px;
transition: all 100ms;
overflow: hidden;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.card:hover {
background: #0000007b;
box-shadow: rgba(2, 8, 20, 0.1) 0px 0.35em 1.175em, rgba(2, 8, 20, 0.08) 0px 0.175em 0.5em;
overflow: hidden;
}
}
/* Extra small devices (phones, 768px and down) */
@media only screen and (max-width: 768px) {
.basic-grid {
display: grid;
gap: 2rem;
height: 90vh;
overflow: hidden;
grid-template-rows: repeat(auto-fit, minmax(10vh, 1fr));
padding-top: 50px;
align-content: center;
}
.card {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: rgb(63,94,251);
background: linear-gradient(0deg, rgba(34,193,195,.2) 0%, rgba(253,187,45,.1) 100%);
font-size: 6vw;
color: #fff;
box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
height: 100%;
width: 100%;
border-radius: 4px;
transition: all 100ms;
overflow: hidden;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.card:hover {
background: #0000007b;
box-shadow: rgba(2, 8, 20, 0.1) 0px 0.35em 1.175em, rgba(2, 8, 20, 0.08) 0px 0.175em 0.5em;
overflow: hidden;
}
}