File: table.css

package info (click to toggle)
cockpit 239-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 67,268 kB
  • sloc: javascript: 245,474; ansic: 72,273; python: 23,634; xml: 6,155; sh: 2,919; makefile: 923; sed: 5
file content (251 lines) | stat: -rw-r--r-- 6,120 bytes parent folder | download
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
.panel .table {
    font-size: var(--pf-global--FontSize-s);
}

/* Panels don't draw borders between them */
.panel > .table > tbody:first-child td {
    border-top: 1px solid rgb(221, 221, 221);
}

/* Table headers should not generate a double border */
.panel .table thead tr th {
    border-bottom: none;
}

/* Fix panel heading alignment & mobile layout */

.panel-heading {
    align-items: center;
    background: #f5f5f5;
    display: flex;
    flex-wrap: wrap;
    /* (28px small size widget height) + (0.5rem * 2) */
    min-height: calc(28px + 1rem);
    padding: 0.5rem 1rem 0.5rem 1rem;
    position: relative;
    z-index: 100;
}

.panel-title {
    font: inherit;
    margin: 0;
    padding: 0;
}

.panel-title > a {
    color: var(--ct-color-link);
    display: inline-block;
}

.panel-title > a:hover,
.panel-title > a:focus {
    color: var(--alert-info-text);
}

/* Allow children in the title to wrap */
.panel-title > h3,
.panel-title > a,
.panel-title > div,
.panel-title > span {
    flex-shrink: 1;
    word-break: break-all;
}

.panel-heading > :last-child:not(:first-child),
.panel-heading > .panel-heading-actions {
    flex: auto;
    text-align: right;
}

@media screen and (max-width: 640px) {
    /* Remove _most_ of the gaps on the sides of small screens */
    /* to maximize space, but still keep the boxy panel look */
    .col-md-12 > .panel {
        margin-left: -10px;
        margin-right: -10px;
    }

    .panel {
        /* Background fade */
        --hi-color: #d1d1d1;
        --hi-color2: var(--ct-global--palette--black-250);
        --bg-color: var(--ct-color-bg);
        --hi-width: 20px;
        --hi-width3: calc(var(--hi-width) * 3);
        --transparent: rgba(255,255,255,0); /* WebKit needs white transparent */
        max-width: 100vw;
        overflow-x: auto;
        position: relative;
        background-image:
          linear-gradient(to left, var(--bg-color) var(--hi-width), var(--transparent) var(--hi-width3)),
          linear-gradient(to left, var(--hi-color) 1px, var(--transparent) 2px, var(--hi-color2) 4px, var(--bg-color) var(--hi-width)),
          linear-gradient(to right, var(--bg-color) var(--hi-width), var(--transparent) var(--hi-width3)),
          linear-gradient(to right, var(--hi-color) 1px, var(--transparent) 2px, var(--hi-color2) 4px, var(--bg-color) var(--hi-width));
        background-attachment: local, scroll, local, scroll;
        background-position: right, right, left, left;
        background-repeat: no-repeat;
        background-size: var(--hi-width3) 100%;
    }

    .panel > .panel-heading {
        /* WebKit still needs -webkit- prefix for sticky */
        position: -webkit-sticky;
        position: sticky;
        left: 0;
        top: 0;
    }

    .panel .table thead th {
        white-space: nowrap;
    }

    .panel .table:not(:hover):not(:focus):not(:active) {
        background: transparent;
    }
    .panel .table thead:not(:hover):not(:focus):not(:active) {
        background: transparent;
    }
}

/*
 * Fix up table row hovering.
 *
 * When you hover over table rows it's because they're clickable.
 * Make the table row hover color match the list-group-item.
 */
.table-hover > tbody > tr > td,
.table-hover > tbody > tr > th,
.dialog-list-ct .list-group-item {
    cursor: pointer;
}
.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th,
.dialog-list-ct .list-group-item:hover:not(.active) {
    /* PF3 uses a light blue; we have to force the override for hover colors */
    background-color: var(--ct-color-list-hover-bg) !important;
    color: var(--ct-color-list-hover-text) !important;
}

/* Override patternfly to fit buttons and such */
.table > thead > tr > th,
.table > tbody > tr > td {
    padding: 0.5rem;
    vertical-align: baseline;
}

/* Override the heavy patternfly headers */
.table > thead {
    background-image: none;
    background-color: var(--ct-color-bg);
}

/* Make things line up */
.table tbody tr > :first-child,
.table thead tr > :first-child {
    padding-left: 1rem;
}

.table tbody tr > :last-child,
.table thead tr > :last-child {
    padding-right: 1rem;
}

.info-table-ct > tbody > tr > th,
.info-table-ct > tr > td,
.info-table-ct > tbody > tr > td {
    line-height: 26px;
    vertical-align: baseline;
}

.info-table-ct > tr > th,
.info-table-ct > tr > td,
.info-table-ct > tbody > tr > th,
.info-table-ct > tbody > tr > td {
    padding-bottom: 0.5rem;
}

.info-table-ct > tr > td,
.info-table-ct > tbody > tr > td {
    overflow: hidden;
    padding-left: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-table-ct > tbody > tr > th,
.info-table-ct > tr > td:first-child,
.info-table-ct > tbody > tr > td:first-child {
    font-weight: 600;
    text-align: right;
}

.info-table-ct > tr > td button,
.info-table-ct > tbody > tr > td button {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-table-ct {
    width: 100%;
}

.form-table-ct td {
    padding-left: 0.75em;
    padding-top: 0.25em;
    line-height: 26px;
}


.form-table-ct td.top {
    vertical-align: top;
}

.form-table-ct td:first-child {
    font-size: var(--pf-global--FontSize--sm);
    margin-top: calc(var(--pf-global--FontSize--md) - var(--pf-global--FontSize--sm));
    vertical-align: baseline;
    text-align: right;
    white-space: nowrap;
    width: 5px; /* will be expanded by nowrap */
    padding-right: 1rem;
    min-height: 2.25rem;
}


.form-table-ct td[colspan] {
    text-align: inherit;
}

.form-table-ct td {
    height: 26px;
}

.form-table-ct td.header {
    font-weight: bold;
    text-align: left;
    color: var(--pf-global--palette--black-800);
    padding: 20px 0 10px 0;
}

.form-table-ct label input[type='radio'],
.form-table-ct label input[type='checkbox'] {
    margin-right: 4px;
}

.form-table-ct label {
    margin-bottom: 0px;
}

.form-table-ct label span {
    vertical-align: super;
}

/* Break up sidebar in columns in smaller sizes*/

@media (min-width: 992px) {
    .info-table-ct-container .info-table-ct {
        table-layout: fixed;
        width: 100%;
    }
}