forked from gridguy101/gridthing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
77 lines (67 loc) · 1.17 KB
/
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
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
* {
box-sizing: border-box;
}
body {
background-color: #111;
color: #fff;
font-family: Verdana, sans-serif;
font-size: 16px;
line-height: 1.4;
margin: 0;
padding: 0;
}
h1 {
font-size: 2em;
margin-bottom: 1em;
text-align: center;
}
#button-grid {
display: grid;
grid-gap: 1em;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
justify-items: center;
margin: 2em auto;
margin-top: 0px;
max-width: 1200px;
padding: 1em;
}
.button {
background-color: #222;
border: none;
border-radius: 20px;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 1em;
transition: transform 0.2s ease-in-out;
width: 100%;
max-width: 260px;
}
.button:hover {
transform: scale(1.1);
}
.button img {
border-radius: 20px;
height: 200px;
object-fit: cover;
width: 100%;
}
.button-text {
margin-top: 1em;
text-align: center;
color: #8c8c8c;
}
.button-text h2 {
font-size: 1.2em;
margin: 0;
}
.button-text p {
font-size: 0.8em;
margin: 0;
}
#sort {
height: 20px;
border-radius: 90px;
}