-
Notifications
You must be signed in to change notification settings - Fork 80
/
catblocks_code_view.scss
83 lines (65 loc) · 1.34 KB
/
catblocks_code_view.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
@import "../base/variables";
@import "../../catblocks/main.css";
// Bootstrap extending CSS
.card {
border-radius: 0;
box-shadow: 0 2px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 4px 0 rgba(0, 0, 0, 0.12);
.table td,
.table th {
padding: 0.25em;
}
tr td:first-child {
width: 50%;
padding-left: 10%;
text-align: left;
}
tr:last-child td {
border-bottom: 1px solid #dee2e6;
}
.card {
border-right: none;
border-left: none;
box-shadow: none;
border-block-end: none;
}
}
.card-header {
font-size: 0.9rem;
background: none;
border-bottom: 0;
.collapsed {
border-bottom: 2px solid #eee;
}
}
.card-body {
padding: 0;
.card-header {
padding-left: 2em;
font-size: 0.8rem;
font-weight: $font-weight-bold;
}
.card-body {
padding: 0;
.card-header {
padding-left: 3em;
font-size: 0.8rem;
font-weight: $font-weight-normal;
}
}
}
// Effects
.card-header[aria-expanded="true"],
.collapse.show .card-header,
.collapse.show .card-body {
background: rgba(0, 0, 0, 0.02);
transition: 0.5s background ease;
}
.card-header[aria-expanded="true"] {
font-weight: $font-weight-bold;
}
.rotate-left {
transition: 0.3s transform ease;
}
[data-toggle="collapse"][aria-expanded="true"] .rotate-left {
transform: rotate(-90deg);
}