-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
84 lines (69 loc) · 1.31 KB
/
style.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
79
80
81
82
83
@import "animate.css";
body {
font: 'Raleway', sans-serif;
text-align: center;
background: linear-gradient(to right, rgb(106, 66, 189), rgb(255, 0, 0)); /* Standard syntax */
}
h1 {
font: 600 3.5em 'Raleway', sans-serif;
color: rgba(0,0,0,.7);
text-align: center;
text-transform: uppercase;
letter-spacing: .2em;
width: 100%;
}
/****************/
.grid {
margin: 30px;
display: flex;
justify-content: center;
grid-template-columns: repeat(3, 1fr);
grid-gap: 20px;
align-items: stretch;
}
.grid > article {
border: 1px solid #ccc;
box-shadow: 15px 11px 6px 0px rgba(0,0,0,0.3);
border-radius: 3px;
text-align: center;
}
.text {
padding: 0 20px 20px;
}
button {
background-color:rgba(0,0,0,0.7);
border: none;
color: white;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
padding: 5px 10px;
}
button:hover{
transition: transform .1s ease-out;
transform: translateY(5px);
}
@media (max-width: 768px){
.grid{
grid-template-columns: repeat(2, 1fr);
margin: 0;
}
.buffer{
height:2rem;
}
}
@media (max-width: 500px){
.grid{
grid-template-columns: repeat(1, 1fr);
margin: 0;
}
.grid > article{
text-align: center;
}
.buffer{
height:2rem;
}
}