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
|
@use "./system-global.scss";
/* System Time Modal dialog needs table.css */
@use "../lib/table.css" as *;
@use "global-variables" as *;
@use "@patternfly/patternfly/components/Table/table.scss";
.ct-limited-access-alert {
--pf-v6-c-alert--GridTemplateAreas: "icon title action" ". description description";
// Deconstruct nicely on small screen sizes (especially mobile)
// This will not be needed in a future PF4 update
//
// References:
// - https://github.com/cockpit-project/cockpit/issues/14106
// - https://github.com/patternfly/patternfly/issues/3125
// - https://github.com/patternfly/patternfly/pull/2921
//
// When we have the upcoming version of PF4 in Cockpit, we should drop this code
// (and adjust things for the button to show up on the side of desktop mode instead)
@media (max-width: $pf-v6-global--breakpoint--md) {
--pf-v6-c-alert--GridTemplateAreas: "icon title" ". description" ". action";
--pf-v6-c-alert__action--MarginBlockStart: 0;
}
@media (max-width: 320px) {
// Allow the action button to have a bit more space on iPhone SE sized phones
--pf-v6-c-alert--GridTemplateAreas: "icon title" "description description" "action action";
--pf-v6-c-alert__action--MarginBlockStart: 0;
}
}
.ct-overview-header {
flex-direction: row;
&,
&-hostname {
flex-wrap: wrap;
}
&-actions,
&-hostname {
box-sizing: border-box;
display: flex;
}
&-hostname {
align-items: baseline;
flex: auto;
> h1 {
font-size: var(--pf-t--global--font--size--2xl) !important;
}
}
&-hostname > h1,
&-subheading {
padding-inline-end: 1rem;
}
&-actions {
align-items: center;
}
&-subheading {
font-size: var(--pf-t--global--font--size--md);
}
}
.pf-v6-l-gallery.ct-system-overview {
--cards: 2;
--pf-v6-l-gallery--GridTemplateColumns: repeat(var(--cards), 1fr);
// Small mobile: Reduce spacing
@media (max-width: 320px) {
--pf-v6-l-gallery--m-gutter--GridGap: 0.25rem;
}
// Mobile: reduce to 1 card wide and minimize spacing
@media (max-width: 680px) {
--pf-v6-l-gallery--m-gutter--GridGap: var(--pf-t--global--spacer--sm);
--cards: 1;
}
// Large desktop: Jump up to 4 cards wide
@media (min-width: 1400px) {
--cards: 4;
}
// Extra large desktop: Let cards align to the left at an optimal size
@media (min-width: 114rem) {
--pf-v6-l-gallery--GridTemplateColumns: repeat(auto-fill, minmax(min-content, 26rem));
}
// VMs @ 1024x768; add a little leeway For titlebars, start bar, etc.
@media (orientation: landscape) and (min-width: 684px) and (max-width: 832px) and (max-height: 703px) {
--pf-v6-l-gallery--m-gutter--GridGap: var(--pf-t--global--spacer--sm);
// Also skim off some vertical space for the cards
.pf-v6-c-card {
--pf-v6-c-card--first-child--PaddingTop: var(--pf-t--global--spacer--md);
--pf-v6-c-card--child--PaddingRight: var(--pf-t--global--spacer--md);
}
}
.motd-box {
grid-column: 1 / -1;
}
.pf-v6-c-card {
&__title-text {
font-size: var(--pf-t--global--font--size--xl);
font-weight: var(--pf-t--global--font--weight--body);
}
&__body {
&:last-child .pf-v6-c-table:last-child tr:last-child {
/* Remove the border of tables when it's the last item in a card and there isn't a card footer */
border-block-end: none;
}
p {
+ p,
+ button {
margin-block-start: calc(var(--pf-t--global--font--line-height--body) * 1rem);
}
}
td {
vertical-align: middle;
}
th {
font-size: var(--pf-t--global--font--size--sm);
}
}
}
.pf-v6-c-progress {
&__status {
display: flex;
align-items: baseline;
&-icon {
display: flex;
align-self: center;
}
}
}
.pf-m-compact {
th, td {
&:first-child {
:not([dir="rtl"]) & {
padding-inline-start: 0;
}
[dir="rtl"] & {
padding-inline-end: 0;
}
}
&:last-child {
:not([dir="rtl"]) & {
padding-inline-end: 0;
}
[dir="rtl"] & {
padding-inline-start: 0;
}
}
}
}
}
@media (max-width: 779px) {
/* Reduce gutter & padding on smaller widths, for desktop & mobile */
.pf-v6-l-gallery.ct-system-overview {
--pf-v6-l-gallery--m-gutter--GridGap: calc(var(--pf-t--global--spacer--md)/2);
}
.pf-v6-c-card {
--pf-v6-c-card--first-child--PaddingTop: var(--pf-t--global--spacer--md);
--pf-v6-c-card--child--PaddingRight: var(--pf-t--global--spacer--md);
--pf-v6-c-card--child--PaddingBottom: var(--pf-t--global--spacer--md);
--pf-v6-c-card--child--PaddingLeft: var(--pf-t--global--spacer--md);
--pf-v6-c-card__title--not-last-child--PaddingBottom: var(--pf-t--global--spacer--sm);
}
}
@media (min-width: 780px) {
/* Embiggen subheading & card headings when there's space */
.pf-v6-l-gallery.ct-system-overview .pf-v6-c-card__title-text {
font-size: var(--pf-t--global--font--size--2xl);
}
.ct-overview-header-subheading {
font-size: var(--pf-t--global--font--size--lg);
}
}
|