forked from XRPLF/xrpl-dev-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_tutorials.scss
124 lines (105 loc) · 2.57 KB
/
_tutorials.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
$footer-images: 3col-magenta-orange, 3col-green-blue, 3col-orange, 3col-purple, 3-col-green-purple, 3col-magenta, 3col-light-green, 3col-orange-yellow, 3-col-dark-blue;
/* Tutorials ---------------------------------------------------------------- */
@mixin card-footer-color($offset){
$index: 0;
@for $i from $offset + 1 through length($footer-images) {
$index: $index + 1;
.card:nth-child(9n + #{$index}) .card-footer {
background-image: url("../img/cards/#{nth($footer-images, $i)}.svg");
}
}
@for $i from 1 through $offset + 1 {
$index: $index + 1;
.card:nth-child(9n + #{$index}) .card-footer {
background-image: url("../img/cards/#{nth($footer-images, $i)}.svg");
}
}
}
.tutorial-content {
#beginner-cards {
@include card-footer-color(0);
}
#sdk-cards {
@include card-footer-color(2);
}
#use-cases-cards {
@include card-footer-color(4);
}
#servers-cards {
@include card-footer-color(6);
}
#businesses-cards {
@include card-footer-color(8);
}
}
.tutorial-card-grid {
grid-gap: 16px !important;
row-gap: 0 !important;
&.card-grid {
&.card-grid-3xN {
grid-template-columns: 1fr;
grid-auto-rows: auto;
@include media-breakpoint-up(xl) {
grid-template-columns: 1fr 1fr 1fr;
}
}
.card {
margin-bottom: 2.5rem;
background-position: bottom;
background-repeat: no-repeat;
background-size: contain;
padding: 0;
min-height: 0;
.card-body {
padding: 32px;
}
.card-title {
margin-bottom: 16px;
margin-top: 0;
&.external-link::after {
background-size: 0.9rem;
vertical-align: middle;
margin-left: 12px;
margin-bottom: 12px;
margin-right: 10px;
width: 1.5rem;
}
&.nav-link {
padding: 0;
}
}
.card-footer {
font-size: 0;
padding: 1rem;
background-position: bottom;
background-repeat: no-repeat;
background-size: cover;
border-top: 0;
}
}
a {
text-decoration: none;
}
code {
color: $green-600;
background-color: $green-1000;
border-radius: 4px;
padding-left: 4px;
padding-right: 4px;
}
.card-icon-container {
width: 50px;
height: 50px;
background: $gray-600;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
margin-bottom: 12px;
img {
width: 70%;
height: 70%;
}
}
}
}