forked from chabad360/cockpit-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker.scss
149 lines (122 loc) · 3.63 KB
/
docker.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
@use "ct-card.scss";
@use "page.scss";
@import "global-variables";
// For pf-v5-line-clamp
@import "@patternfly/patternfly/sass-utilities/mixins.scss";
// For pf-u-disabled-color-100
@import "@patternfly/patternfly/utilities/Text/text.css";
#app .pf-v5-c-card.containers-containers, #app .pf-v5-c-card.containers-images {
@extend .ct-card;
}
.pf-v5-c-modal-box__title-text {
white-space: break-spaces;
}
#containers-images, #containers-containers {
// Decrease padding for the image/container toggle button list
.pf-v5-c-table.pf-m-compact .pf-v5-c-table__toggle {
padding-inline-start: 0;
}
}
@media screen and (max-width: 768px) {
// Badges should not stretch in mobile mode
.pf-v5-c-table [data-label] > .pf-v5-c-badge {
justify-self: start;
}
}
.container-block {
display: flex;
flex-direction: column;
word-break: break-all;
}
.container-block small {
@include pf-v5-line-clamp("1");
color: var(--pf-v5-global--Color--200);
}
.container-name {
font-size: var(--pf-v5-global--FontSize--lg);
font-weight: 400;
}
.containers-run-onbuildvarclaim input {
max-inline-size: 15em;
}
.pf-v5-c-alert__description {
overflow-wrap: anywhere;
}
.listing-action {
inline-size: 100%;
display: flex;
justify-content: space-around;
}
.ct-badge-container-running, .ct-badge-pod-running {
background-color: var(--pf-v5-global--info-color--100);
color: white;
}
.ct-badge-container-healthy {
background-color: var(--pf-v5-global--success-color--100);
color: white;
}
.ct-badge-container-unhealthy {
background-color: var(--pf-v5-global--danger-color--100);
color: white;
}
.ct-badge-toolbox {
background-color: var(--pf-v5-global--palette--purple-100);
color: var(--pf-v5-global--palette--purple-600);
.pf-v5-theme-dark & {
background-color: var(--pf-v5-global--palette--purple-500);
color: white;
}
}
.ct-badge-distrobox {
background-color: var(--pf-v5-global--palette--gold-100);
color: var(--pf-v5-global--palette--gold-600);
.pf-v5-theme-dark & {
background-color: var(--pf-v5-global--palette--gold-500);
color: white;
}
}
.green {
color: var(--pf-v5-global--success-color--100);
}
.red {
color: var(--pf-v5-global--danger-color--100);
}
// Hide the header nav from the expandable rows - this should be better done with JS but the current cockpit-listing-panel implementation does not support this variant
#containers-images .ct-listing-panel-head {
display: none;
}
.ct-grey-text {
color: var(--pf-v5-global--Color--200);
}
.content-action {
text-align: end;
white-space: nowrap !important;
}
// Remove doubled-up padding and borders on nested tables in mobile
.ct-listing-panel-body .ct-table tr {
--pf-v5-c-table-tr--responsive--PaddingTop: 0;
--pf-v5-c-table-tr--responsive--PaddingRight: 0;
--pf-v5-c-table-tr--responsive--PaddingBottom: 0;
--pf-v5-c-table-tr--responsive--PaddingLeft: 0;
}
@media (max-width: $pf-v5-global--breakpoint--md - 1) {
.show-only-when-wide {
display: none;
}
}
@media (min-width: $pf-v5-global--breakpoint--md) {
.show-only-when-narrow {
display: none;
}
// Add borders to no pod containers list and images list
.container-pod.pf-m-plain tbody,
.containers-images tbody {
border: var(--pf-v5-c-card--m-flat--BorderWidth) solid var(--pf-v5-c-card--m-flat--BorderColor);
}
}
// Override table padding on mobile
@media (max-width: $pf-v5-global--breakpoint--md) {
.health-logs.pf-m-grid-md.pf-v5-c-table tr:where(.pf-v5-c-table__tr):not(.pf-v5-c-table__expandable-row) {
padding: 0;
}
}