Card view: 200px cards with 72px icons, .title-3 names, version+size combined line, single priority badge, libadwaita .card class replacing custom .app-card CSS. List view: 48px rounded icons, .rich-list class, structured two-line subtitle (description + version/size), single priority badge. Detail view: restructured into ViewStack/ViewSwitcher with 4 tabs (Overview, System, Security, Storage). 96px hero banner with gradient background. Rows distributed logically across tabs. Context menu: right-click (GestureClick button 3) and long-press on cards and list rows. Menu items: Launch, Check for Updates, Scan for Vulnerabilities, Integrate/Remove Integration, Open Containing Folder, Copy Path. All backed by parameterized window actions. CSS: removed custom .app-card rules (replaced by .card), added .icon-rounded for list icons, .detail-banner gradient, and .detail-view-switcher positioning.
208 lines
4.3 KiB
CSS
208 lines
4.3 KiB
CSS
/* ===== Status Badges ===== */
|
|
.status-badge {
|
|
border-radius: 9px;
|
|
padding: 3px 10px;
|
|
min-height: 18px;
|
|
font-size: 0.8em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-badge.success {
|
|
background: @success_bg_color;
|
|
color: @success_fg_color;
|
|
}
|
|
|
|
.status-badge.warning {
|
|
background: @warning_bg_color;
|
|
color: @warning_fg_color;
|
|
}
|
|
|
|
.status-badge.error {
|
|
background: @error_bg_color;
|
|
color: @error_fg_color;
|
|
}
|
|
|
|
.status-badge.info {
|
|
background: @accent_bg_color;
|
|
color: @accent_fg_color;
|
|
}
|
|
|
|
.status-badge.neutral {
|
|
background: @card_shade_color;
|
|
color: @window_fg_color;
|
|
}
|
|
|
|
/* Badge with icon prefix */
|
|
.status-badge-with-icon {
|
|
border-radius: 9px;
|
|
padding: 3px 10px;
|
|
min-height: 18px;
|
|
font-size: 0.8em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-badge-with-icon.success {
|
|
background: @success_bg_color;
|
|
color: @success_fg_color;
|
|
}
|
|
|
|
.status-badge-with-icon.warning {
|
|
background: @warning_bg_color;
|
|
color: @warning_fg_color;
|
|
}
|
|
|
|
.status-badge-with-icon.error {
|
|
background: @error_bg_color;
|
|
color: @error_fg_color;
|
|
}
|
|
|
|
.status-badge-with-icon.info {
|
|
background: @accent_bg_color;
|
|
color: @accent_fg_color;
|
|
}
|
|
|
|
.status-badge-with-icon.neutral {
|
|
background: @card_shade_color;
|
|
color: @window_fg_color;
|
|
}
|
|
|
|
/* ===== Card View (using libadwaita .card) ===== */
|
|
flowboxchild:focus-visible .card {
|
|
outline: 2px solid @accent_bg_color;
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
/* Rounded icon clipping for list view */
|
|
.icon-rounded {
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ===== WCAG AAA Focus Indicators ===== */
|
|
button:focus-visible,
|
|
togglebutton:focus-visible,
|
|
menubutton:focus-visible,
|
|
checkbutton:focus-visible,
|
|
switch:focus-visible,
|
|
entry:focus-visible,
|
|
searchentry:focus-visible,
|
|
spinbutton:focus-visible {
|
|
outline: 2px solid @accent_bg_color;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
row:focus-visible {
|
|
outline: 2px solid @accent_bg_color;
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
/* Badge row in app cards */
|
|
.badge-row {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* Letter-circle fallback icon */
|
|
.letter-icon {
|
|
border-radius: 50%;
|
|
font-weight: 700;
|
|
font-size: 1.4em;
|
|
}
|
|
|
|
/* Integration emblem on card icon */
|
|
.integration-emblem {
|
|
background: @success_bg_color;
|
|
color: @success_fg_color;
|
|
border-radius: 50%;
|
|
padding: 2px;
|
|
min-width: 16px;
|
|
min-height: 16px;
|
|
}
|
|
|
|
/* ===== Detail View Banner ===== */
|
|
.detail-banner {
|
|
padding: 18px 0;
|
|
background-image: linear-gradient(
|
|
to bottom,
|
|
alpha(@accent_bg_color, 0.08),
|
|
transparent
|
|
);
|
|
border-radius: 12px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
/* Inline ViewSwitcher positioning */
|
|
.detail-view-switcher {
|
|
margin-top: 6px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
/* ===== Quick Action Pills ===== */
|
|
.quick-action-pill {
|
|
border-radius: 18px;
|
|
padding: 6px 16px;
|
|
}
|
|
|
|
/* ===== Compatibility Warning Banner ===== */
|
|
.compat-warning-banner {
|
|
background: alpha(@warning_bg_color, 0.15);
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
border: 1px solid alpha(@warning_bg_color, 0.3);
|
|
}
|
|
|
|
/* ===== Dark Mode Differentiation ===== */
|
|
@media (prefers-color-scheme: dark) {
|
|
.compat-warning-banner {
|
|
background: alpha(@warning_bg_color, 0.1);
|
|
border: 1px solid alpha(@warning_bg_color, 0.2);
|
|
}
|
|
}
|
|
|
|
/* ===== High Contrast Mode (WCAG AAA 1.4.6) ===== */
|
|
@media (prefers-contrast: more) {
|
|
flowboxchild:focus-visible .card {
|
|
outline-width: 3px;
|
|
}
|
|
|
|
button:focus-visible,
|
|
togglebutton:focus-visible,
|
|
menubutton:focus-visible,
|
|
checkbutton:focus-visible,
|
|
switch:focus-visible,
|
|
entry:focus-visible,
|
|
searchentry:focus-visible,
|
|
spinbutton:focus-visible {
|
|
outline-width: 3px;
|
|
}
|
|
|
|
row:focus-visible {
|
|
outline-width: 3px;
|
|
}
|
|
|
|
.status-badge,
|
|
.status-badge-with-icon {
|
|
border: 1px solid currentColor;
|
|
}
|
|
|
|
.compat-warning-banner {
|
|
border: 2px solid @warning_bg_color;
|
|
}
|
|
}
|
|
|
|
/* ===== Reduced Motion (WCAG AAA 2.3.3) ===== */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
* {
|
|
transition-duration: 0 !important;
|
|
transition-delay: 0 !important;
|
|
animation-duration: 0 !important;
|
|
animation-delay: 0 !important;
|
|
}
|
|
}
|
|
|
|
/* ===== Minimum Target Size (WCAG 2.5.8) ===== */
|
|
button.flat.circular,
|
|
button.flat:not(.pill):not(.suggested-action):not(.destructive-action) {
|
|
min-width: 24px;
|
|
min-height: 24px;
|
|
}
|