-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmultipleCards.css
96 lines (92 loc) · 1.5 KB
/
multipleCards.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
84
85
86
87
88
89
90
91
92
93
94
95
96
/* layout relevant styles */
html, body {
width: 100%;
height: 100%;
margin: 0;
}
body {
display: flex;
flex-direction: row;
align-items: center;
}
body main {
display: flex;
flex-direction: column;
flex-grow: 1;
align-items: center;
}
body .row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: 0 25%;
}
.card {
display: flex;
flex-basis: 20%;
flex-grow: 1;
}
.card p {
flex-grow: 1;
}
.card .cta {
align-self: center;
}
/* other styles */
.card {
flex-direction: column;
padding: 10px;
color: #fff;
border-radius: 20px;
box-sizing: border-box;
margin: 10px;
font-family: Roboto, sans-serif;
}
.card.orange {
background: #fbb040;
background: linear-gradient(135deg, #fbb040 20%, #ef4136 100%);
}
.card.blue {
background: #00aeef;
background: linear-gradient(135deg, #00aeef 20%, #2d388a 100%);
}
.card h1 {
margin: 0;
font-size: 1.2rem;
font-weight: lighter;
text-align: center;
}
.card p {
font-size: 0.8rem;
}
.card .cta {
width: 100px;
height: 25px;
border-radius: 13px;
border: 1px solid #fff;
line-height: 25px;
text-align: center;
font-size: 0.8rem;
color: #fff;
text-decoration: none;
margin-top: 10px;
position: relative;
box-sizing: border-box;
}
.card .cta:hover {
background: #ffffff;
color: #000;
}
.card .cta:hover::after {
right: 5px;
}
.card .cta::after {
content: ">";
font-family: "Jua";
position: absolute;
right: 8px;
transition: right 1s ease;
}
a, a:hover {
transition: all 0.3s ease;
}