forked from XRPLF/xrpl-dev-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_cards.scss
88 lines (80 loc) · 1.57 KB
/
_cards.scss
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
.card-body > p,
.card-body > p:not(:last-child) {
padding: 0;
margin-bottom: 2rem;
}
/* Full-link cards */
a.card {
border: 0;
color: $white;
}
a.card:hover,
a:hover .card-new {
text-decoration: none;
}
a.card:hover h3 {
text-decoration: underline;
}
.circled-logo {
background-color: $gray-600;
border-radius: 50%;
padding: .75rem;
width: 50px;
height: 50px;
img {
width: 26px;
height: 26px;
}
margin-bottom: 0.75rem;
}
.card-deck {
margin-top: 2.5rem;
margin-left: 0;
margin-right: 0;
flex-grow: 1;
.card {
background-position: bottom;
background-repeat: no-repeat;
background-size: contain;
}
&.row-cols-1 .card {
// Give cards some breathing room (but not in the 2×2 ones)
min-height: 264px;
@include media-breakpoint-up(md) {
min-height: 347px;
}
}
a.card {
transition: all 0.35s ease-out;
cursor: pointer;
&:hover {
-webkit-transform: translateY(-16px);
-moz-transform: translateY(-16px);
-ms-transform: translateY(-16px);
-o-transform: translateY(-16px);
transform: translateY(-16px);
}
}
.card-footer {
font-size: 0;
padding: 1rem;
background-position: bottom;
background-repeat: no-repeat;
background-size: cover;
border-top: 0;
}
@include media-breakpoint-down(md) {
margin-top: 2rem;
.card-body {
padding: 1rem;
}
&.row-cols-1 .card {
margin: .75rem;
max-width: calc(100% - 1.5rem);
}
&.row-cols-2 .card {
margin: .75rem;
max-width: calc(50% - 1.5rem);
}
}
}