-
Notifications
You must be signed in to change notification settings - Fork 4.1k
/
replication-dashboard.scss
87 lines (75 loc) · 1.82 KB
/
replication-dashboard.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
.replication-dashboard {
.has-margin-bottom {
padding-bottom: $spacing-xs;
}
.has-large-margin-top {
margin-top: $spacing-xl;
}
.selectable-card {
line-height: normal;
&:hover {
box-shadow: 0 0 0 1px rgba($grey-dark, 0.3);
}
.title-number {
font-size: $size-3;
align-self: end;
}
}
.helper-text {
font-weight: $font-weight-normal;
}
.selectable-card-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
grid-template-rows: 1fr;
grid-gap: 2rem;
.card-container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr 0.8fr;
padding: $spacing-l 0 18px $spacing-l;
line-height: 1.5;
// If descriptions are smaller then height is affected, this keeps the cards consistent
min-height: 220px;
@include until(1320px) {
// prevent an issue with the card descriptions wrapping and expanding height
min-height: 250px;
}
.grid-item-title {
grid-column-start: 1;
grid-column-end: 2;
grid-row-start: 1;
grid-row-end: 1;
}
.grid-item-state {
grid-column-start: 1;
grid-column-end: 1;
grid-row-start: 2;
grid-row-end: 2;
}
.grid-item-wal {
grid-column-start: 2;
grid-column-end: 2;
grid-row-start: 2;
grid-row-end: 2;
}
.grid-item-stream {
grid-column-start: 1;
grid-column-end: 1;
grid-row-start: 3;
grid-row-end: 3;
display: flex;
align-items: center;
}
.grid-item-status {
grid-column-start: 2;
grid-column-end: 2;
grid-row-start: 3;
grid-row-end: 3;
}
}
}
.has-text-highlight {
color: $yellow-500;
}
}