1204 lines
49 KiB
SCSS
1204 lines
49 KiB
SCSS
// =====================================================================================
|
||
// GoHR theme layer (colour palette + font) — loaded LAST (angular.json "styles"), after
|
||
// src/styles.scss, so it repaints the app without editing or deleting any existing style.
|
||
//
|
||
// Every colour here is a --gh-* custom property. src/app/gohr-theme/theme-loader.ts sets them
|
||
// at start-up from assets/gohr-theme/theme-settings.json (palette list: palettes.json, fonts:
|
||
// fonts.json). The values below are only the fallback (3. Navy + Amber, ui-sans-serif, 14px),
|
||
// used until/unless the JSON loads.
|
||
//
|
||
// Kendo popups (dropdowns, calendars) are portalled to <body>; they still read these variables
|
||
// because they are declared on :root, not on a component :host.
|
||
// =====================================================================================
|
||
|
||
:root {
|
||
--gh-sb: #0B1F3A;
|
||
--gh-st: #C9D6EA;
|
||
--gh-am: #2B5C9E;
|
||
--gh-tb: #FFFFFF;
|
||
--gh-tt: #0B1F3A;
|
||
--gh-pb: #F4F6FA;
|
||
--gh-btn: #2B5C9E;
|
||
--gh-lk: #2B5C9E;
|
||
--gh-focus: #8DB3E2;
|
||
--gh-th: #E8F0FA;
|
||
--gh-sel: #E8F0FA;
|
||
--gh-bd: #F2A541;
|
||
--gh-ht: #0B1F3A;
|
||
--gh-bt: #334155;
|
||
--gh-bo: #E2E8F0;
|
||
--gh-edit: #2B5C9E;
|
||
--gh-btnh: #254E86;
|
||
--gh-ring: #D7E4F5;
|
||
--gh-bo2: #BFC7D1;
|
||
--gh-ok: #15803D;
|
||
--gh-okh: #166534;
|
||
--gh-dn: #DC2626;
|
||
--gh-dnh: #B91C1C;
|
||
--gh-warn: #D97706;
|
||
--gh-info: #2563EB;
|
||
--gh-muted: #64748B;
|
||
--gh-xls: #1D6F42;
|
||
--gh-pdf: #C62828;
|
||
--gh-sideBg: #0B1F3A;
|
||
--gh-sideFg: #C9D6EA;
|
||
--gh-sideStrong: #FFFFFF;
|
||
--gh-sideHover: #23354E;
|
||
--gh-sideLogo: #1C2F48;
|
||
--gh-sideAct: #2B5C9E;
|
||
--gh-sideActFg: #FFFFFF;
|
||
--gh-topBg: #0B1F3A;
|
||
--gh-topFg: #FFFFFF;
|
||
--gh-font: ui-sans-serif, system-ui, 'Segoe UI', Arial, sans-serif;
|
||
--gh-fz: 14px;
|
||
|
||
// ---- Kendo theme (kendo-theme-default 14 derives hover/active/subtle shades from these) ----
|
||
--kendo-color-primary: var(--gh-btn);
|
||
--kendo-color-primary-hover: var(--gh-btnh);
|
||
--kendo-color-primary-active: var(--gh-btnh);
|
||
--kendo-color-primary-subtle: var(--gh-th);
|
||
--kendo-color-primary-subtle-hover: var(--gh-sel);
|
||
--kendo-color-primary-on-surface: var(--gh-lk);
|
||
--kendo-color-on-primary: #FFFFFF;
|
||
--kendo-color-secondary: var(--gh-muted);
|
||
--kendo-color-success: var(--gh-ok);
|
||
--kendo-color-error: var(--gh-dn);
|
||
--kendo-color-warning: var(--gh-warn);
|
||
--kendo-color-info: var(--gh-info);
|
||
--kendo-color-border: var(--gh-bo);
|
||
--kendo-color-border-alt: var(--gh-bo2);
|
||
--kendo-color-subtle: var(--gh-muted);
|
||
--kendo-color-on-app-surface: var(--gh-bt);
|
||
--kendo-font-family: var(--gh-font);
|
||
}
|
||
|
||
// ---------- Base: font, size, text, page background ----------
|
||
html {
|
||
font-size: var(--gh-fz);
|
||
}
|
||
body,
|
||
body .p-component {
|
||
font-family: var(--gh-font);
|
||
font-size: var(--gh-fz);
|
||
color: var(--gh-bt);
|
||
}
|
||
.k-grid,
|
||
body .ui-widget {
|
||
font-family: var(--gh-font);
|
||
color: var(--gh-bt);
|
||
}
|
||
.layout-wrapper .layout-main .layout-content {
|
||
background: var(--gh-pb);
|
||
}
|
||
a {
|
||
color: var(--gh-lk);
|
||
}
|
||
.loader-screen {
|
||
background-color: var(--gh-sb);
|
||
}
|
||
|
||
// Scrollbars
|
||
::-webkit-scrollbar-thumb {
|
||
background: color-mix(in srgb, var(--gh-sb) 45%, #FFFFFF);
|
||
}
|
||
::-webkit-scrollbar-thumb:hover {
|
||
background: color-mix(in srgb, var(--gh-sb) 65%, #FFFFFF);
|
||
}
|
||
.report-button-container::-webkit-scrollbar-thumb {
|
||
background: var(--gh-th);
|
||
}
|
||
|
||
// ---------- Topbar ----------
|
||
body .layout-wrapper .layout-topbar {
|
||
background-color: var(--gh-topBg);
|
||
}
|
||
.topbar-page-name,
|
||
.topbar-ColorForNSS,
|
||
.topbar-icon,
|
||
body .layout-wrapper .layout-topbar .layout-menu-button,
|
||
body .layout-wrapper .layout-topbar .layout-menu-button i,
|
||
body .layout-wrapper .layout-topbar .topbar-menu > li > a,
|
||
body .layout-wrapper .layout-topbar .topbar-menu > li > a .topbar-icon,
|
||
body .layout-wrapper .layout-topbar .topbar-menu > li > a .topbar-item-name {
|
||
color: var(--gh-topFg);
|
||
}
|
||
body .layout-wrapper .layout-topbar .topbar-menu > li > a:hover {
|
||
background-color: color-mix(in srgb, var(--gh-topFg) 12%, transparent);
|
||
}
|
||
body .layout-wrapper .layout-topbar .topbar-menu > li > a .topbar-badge {
|
||
background-color: var(--gh-dn);
|
||
color: #FFFFFF;
|
||
}
|
||
.topbar-payroll-type {
|
||
color: var(--gh-topFg);
|
||
border-color: color-mix(in srgb, var(--gh-topFg) 70%, transparent);
|
||
}
|
||
// Topbar drop-downs (profile, bookmarks, notifications)
|
||
body .layout-wrapper .layout-topbar .topbar-menu > li > ul {
|
||
border-color: var(--gh-bo);
|
||
}
|
||
// Desktop: same panel look as the self-service dropdowns (solid panel, palette border, dark top
|
||
// edge, stronger shadow) so user / bookmark / pending-job lists stand out from the page behind.
|
||
// Below 897px Babylon shows these lists inline inside the topbar, so they stay flat there.
|
||
@media screen and (min-width: 897px) {
|
||
body .layout-wrapper .layout-topbar .topbar-menu > li > ul {
|
||
background-color: var(--gh-tb);
|
||
border: 1px solid var(--gh-bo2);
|
||
border-top: 3px solid var(--gh-sb);
|
||
box-shadow: 0 14px 36px color-mix(in srgb, var(--gh-sb) 28%, transparent),
|
||
0 3px 8px color-mix(in srgb, var(--gh-sb) 14%, transparent);
|
||
}
|
||
// Rows without their own link hover (pending jobs) get the same palette hover
|
||
body .layout-wrapper .layout-topbar .topbar-menu > li > ul > li:hover {
|
||
background-color: var(--gh-sel);
|
||
}
|
||
}
|
||
body .layout-wrapper .layout-topbar .topbar-menu > li > ul a:hover {
|
||
background-color: var(--gh-sel);
|
||
}
|
||
.bookmarktag,
|
||
.pendingJobTag {
|
||
color: var(--gh-lk) !important;
|
||
}
|
||
// Kendo menu inside the topbar
|
||
body .layout-wrapper .layout-topbar .k-menu .k-menu-link {
|
||
color: var(--gh-topFg);
|
||
}
|
||
|
||
// Self-service (ESS) topbar: light glass bar, so palette text/accent colours instead of white
|
||
.topbar-page-nameForSS,
|
||
.topbar-ColorForSS,
|
||
.topbar-iconForEss {
|
||
color: var(--gh-ht);
|
||
}
|
||
.layout-wrapper .banner-inactiveForTop {
|
||
background-color: var(--gh-topBg);
|
||
}
|
||
.layout-wrapper .banner-activeForTop,
|
||
.ss-gradient-bg {
|
||
background: linear-gradient(to bottom, var(--gh-pb) 0%, var(--gh-th) 100%) !important;
|
||
}
|
||
|
||
// ---------- Sidebar menu ----------
|
||
body .layout-wrapper .layout-menu-container .layout-menu-logo {
|
||
background-color: var(--gh-sideLogo);
|
||
}
|
||
body .layout-wrapper.layout-menu-dark .layout-menu-container,
|
||
body .layout-wrapper.layout-menu-light .layout-menu-container {
|
||
background-color: var(--gh-sideBg);
|
||
}
|
||
body .layout-wrapper.layout-menu-dark .layout-menu-container .layout-menu-wrapper,
|
||
body .layout-wrapper.layout-menu-light .layout-menu-container .layout-menu-wrapper {
|
||
border-right-color: var(--gh-sideBg);
|
||
}
|
||
body .layout-wrapper.layout-menu-dark .layout-menu-container .layout-menu li a .layout-menuitem-text,
|
||
body .layout-wrapper.layout-menu-dark .layout-menu-container .layout-menu li a .layout-menuitem-icon,
|
||
body .layout-wrapper.layout-menu-dark .layout-menu-container .layout-menu li a .layout-submenu-toggler,
|
||
body .layout-wrapper.layout-menu-light .layout-menu-container .layout-menu li a .layout-menuitem-text,
|
||
body .layout-wrapper.layout-menu-light .layout-menu-container .layout-menu li a .layout-menuitem-icon,
|
||
body .layout-wrapper.layout-menu-light .layout-menu-container .layout-menu li a .layout-submenu-toggler {
|
||
color: var(--gh-sideFg);
|
||
}
|
||
// Menu still scrolls (wheel / touch / keyboard), but its scrollbar is never shown
|
||
.layout-wrapper .layout-menu-container .layout-menu-wrapper,
|
||
.layout-wrapper .layout-menu-container .menu-scroll-content {
|
||
scrollbar-width: none;
|
||
-ms-overflow-style: none;
|
||
}
|
||
.layout-wrapper .layout-menu-container .layout-menu-wrapper::-webkit-scrollbar,
|
||
.layout-wrapper .layout-menu-container .menu-scroll-content::-webkit-scrollbar {
|
||
display: none;
|
||
width: 0;
|
||
height: 0;
|
||
}
|
||
// Menu group headers
|
||
body .layout-wrapper.layout-menu-dark .layout-menu-container .layout-menu > li > div,
|
||
body .layout-wrapper.layout-menu-light .layout-menu-container .layout-menu > li > div {
|
||
color: var(--gh-sideStrong);
|
||
}
|
||
body .layout-wrapper.layout-menu-dark .layout-menu-container .layout-menu li a:hover,
|
||
body .layout-wrapper.layout-menu-light .layout-menu-container .layout-menu li a:hover {
|
||
background-color: var(--gh-sideHover);
|
||
}
|
||
body .layout-wrapper.layout-menu-dark .layout-menu-container .layout-menu li a.active-route,
|
||
body .layout-wrapper.layout-menu-light .layout-menu-container .layout-menu li a.active-route {
|
||
background-color: var(--gh-sideAct);
|
||
}
|
||
body .layout-wrapper.layout-menu-dark .layout-menu-container .layout-menu li a.active-route .layout-menuitem-text,
|
||
body .layout-wrapper.layout-menu-dark .layout-menu-container .layout-menu li a.active-route .layout-menuitem-icon,
|
||
body .layout-wrapper.layout-menu-dark .layout-menu-container .layout-menu li a.active-route .layout-submenu-toggler,
|
||
body .layout-wrapper.layout-menu-light .layout-menu-container .layout-menu li a.active-route .layout-menuitem-text,
|
||
body .layout-wrapper.layout-menu-light .layout-menu-container .layout-menu li a.active-route .layout-menuitem-icon,
|
||
body .layout-wrapper.layout-menu-light .layout-menu-container .layout-menu li a.active-route .layout-submenu-toggler {
|
||
color: var(--gh-sideActFg);
|
||
}
|
||
// Inline profile block at the top of the menu
|
||
body .layout-wrapper .layout-menu-container .layout-profile {
|
||
border-bottom-color: color-mix(in srgb, var(--gh-sideFg) 25%, transparent);
|
||
}
|
||
body .layout-wrapper .layout-menu-container .layout-profile a,
|
||
body .layout-wrapper .layout-menu-container .layout-profile .layout-profile-name,
|
||
body .layout-wrapper .layout-menu-container .layout-profile .layout-profile-role,
|
||
body .layout-wrapper .layout-menu-container .layout-profile .layout-profile-icon,
|
||
body .layout-wrapper .layout-menu-container .layout-profile .layout-profile-menu a,
|
||
body .layout-wrapper .layout-menu-container .layout-profile .layout-profile-menu a i {
|
||
color: var(--gh-sideFg);
|
||
}
|
||
body .layout-wrapper .layout-menu-container .layout-profile a:hover {
|
||
background-color: var(--gh-sideHover);
|
||
}
|
||
|
||
// ---------- Cards ----------
|
||
.k-card-header {
|
||
background-color: var(--gh-sb);
|
||
color: var(--gh-topFg);
|
||
}
|
||
kendo-card.app-panel.k-card {
|
||
color: var(--gh-bt);
|
||
border-color: var(--gh-bo);
|
||
}
|
||
kendo-card.app-panel.k-card > .k-card-header {
|
||
background-color: var(--gh-th);
|
||
border-color: var(--gh-bo);
|
||
}
|
||
kendo-card.app-panel.k-card .app-panel-title {
|
||
color: var(--gh-ht);
|
||
}
|
||
|
||
// ---------- Grid ----------
|
||
.k-grid {
|
||
border-color: var(--gh-bo);
|
||
}
|
||
.k-grid-header,
|
||
.k-grid .k-grid-header .k-header,
|
||
.k-grid .k-grid-header th.k-header,
|
||
.k-grid .k-table-thead,
|
||
.k-grid .k-grid-header .k-table-th {
|
||
background-color: var(--gh-th);
|
||
color: var(--gh-ht);
|
||
border-color: var(--gh-bo2);
|
||
}
|
||
.k-grid .k-grid-header .k-column-title,
|
||
.k-grid .k-grid-header .k-link {
|
||
color: var(--gh-ht);
|
||
}
|
||
.k-grid .k-table-row:hover,
|
||
.k-grid tbody > tr:not(.k-detail-row):hover {
|
||
background-color: var(--gh-sel);
|
||
}
|
||
.k-grid td.k-state-selected,
|
||
.k-grid tr.k-state-selected > td,
|
||
.k-grid td.k-selected,
|
||
.k-grid tr.k-selected > td,
|
||
.k-grid .k-table-row.k-selected > td {
|
||
background-color: color-mix(in srgb, var(--gh-btn) 16%, #FFFFFF);
|
||
}
|
||
.k-grid .k-grid-content a,
|
||
.k-grid td a {
|
||
color: var(--gh-lk);
|
||
}
|
||
.dashboard-card .k-grid-header {
|
||
background-color: var(--gh-th);
|
||
color: var(--gh-ht);
|
||
}
|
||
.dashboard-card .k-grid-header .k-header {
|
||
color: var(--gh-ht);
|
||
}
|
||
// Pager
|
||
.k-pager .k-pager-nav {
|
||
color: var(--gh-ht) !important;
|
||
}
|
||
.k-pager .k-pager-numbers .k-button.k-selected,
|
||
.k-pager .k-pager-numbers .k-link.k-state-selected,
|
||
.dashboard-card .k-pager-numbers .k-link.k-state-selected {
|
||
background-color: var(--gh-btn);
|
||
border-color: var(--gh-btn);
|
||
color: #FFFFFF;
|
||
}
|
||
.dashboard-card .k-pager-numbers .k-link {
|
||
color: var(--gh-lk);
|
||
}
|
||
.grid-compact .k-textbox {
|
||
border-color: var(--gh-bo2);
|
||
}
|
||
|
||
// Grid row actions (any button inside a data row): the studio's "gh-soft" look — soft tinted
|
||
// background, coloured icon, darker tint on hover. The role colour comes from the command type or
|
||
// the icon, so no template changes. !important beats the inline style="color:red" found in templates.
|
||
// Input buttons inside edit-mode cells (dropdown arrow, date picker) are left alone.
|
||
.k-grid tr.k-master-row > td .k-button:not(.k-input-button, .k-input *, .k-picker *) {
|
||
--gh-ra: var(--gh-btn);
|
||
background-color: color-mix(in srgb, var(--gh-ra) 11%, #FFFFFF) !important;
|
||
border-color: transparent !important;
|
||
color: var(--gh-ra) !important;
|
||
border-radius: 6px;
|
||
box-shadow: none;
|
||
transition: background-color .15s;
|
||
}
|
||
.k-grid tr.k-master-row > td .k-button:not(.k-input-button, .k-input *, .k-picker *):hover {
|
||
background-color: color-mix(in srgb, var(--gh-ra) 20%, #FFFFFF) !important;
|
||
}
|
||
.k-grid tr.k-master-row > td .k-button:not(.k-input-button, .k-input *, .k-picker *):focus-visible {
|
||
box-shadow: 0 0 0 3px var(--gh-ring);
|
||
}
|
||
.k-grid tr.k-master-row > td .k-button:not(.k-input-button, .k-input *, .k-picker *) :is(i, .k-icon, .k-svg-icon) {
|
||
color: inherit !important;
|
||
}
|
||
.k-grid tr.k-master-row > td .k-button:not(.k-input-button, .k-input *, .k-picker *):is(:disabled, .k-disabled) {
|
||
--gh-ra: #9AA3AF;
|
||
background-color: #EEF0F3 !important;
|
||
}
|
||
// Roles — later rules win, so Delete/Reject (last) beat an Edit-looking icon on a Remove command
|
||
.k-grid tr.k-master-row > td .k-button:is(.gh-view, .gh-preview, .gh-print, .gh-download),
|
||
.k-grid tr.k-master-row > td .k-button:has(.k-svg-i-eye, .k-i-eye, .pi-eye, .k-svg-i-preview, .k-i-preview, .pi-search) {
|
||
--gh-ra: var(--gh-lk);
|
||
}
|
||
.k-grid tr.k-master-row > td .k-button.k-grid-edit-command,
|
||
.k-grid tr.k-master-row > td .k-button.gh-edit,
|
||
.k-grid tr.k-master-row > td .k-button:has(.k-svg-i-pencil, .k-i-pencil, .k-i-edit, .pi-pencil) {
|
||
--gh-ra: var(--gh-edit);
|
||
}
|
||
.k-grid tr.k-master-row > td .k-button:is(.gh-approve, .gh-select, .gh-excel),
|
||
.k-grid tr.k-master-row > td .k-button:has(.k-svg-i-check, .k-i-check, .pi-check, .pi-check-circle) {
|
||
--gh-ra: var(--gh-ok);
|
||
}
|
||
.k-grid tr.k-master-row > td .k-button.k-grid-remove-command,
|
||
.k-grid tr.k-master-row > td .k-button.kt-delete,
|
||
.k-grid tr.k-master-row > td .k-button:is(.gh-delete, .gh-reject, .gh-pdf),
|
||
.k-grid tr.k-master-row > td .k-button:has(.k-svg-i-trash, .k-i-trash, .k-svg-i-cancel, .k-i-cancel, .k-svg-i-x, .pi-trash, .pi-times, .pi-power-off, .pi-ban) {
|
||
--gh-ra: var(--gh-dn);
|
||
}
|
||
|
||
// ---------- Buttons ----------
|
||
// Base Kendo button: the app paints every .k-button filled; keep that, in the palette's button colour.
|
||
.k-button {
|
||
border-color: var(--gh-btn);
|
||
background-color: var(--gh-btn);
|
||
color: #FFFFFF;
|
||
}
|
||
.k-button:hover {
|
||
border-color: var(--gh-btnh);
|
||
background-color: var(--gh-btnh);
|
||
color: #FFFFFF;
|
||
}
|
||
.k-button:focus-visible,
|
||
.k-button.k-focus {
|
||
box-shadow: 0 0 0 3px var(--gh-ring);
|
||
}
|
||
.k-button-primary,
|
||
.k-button.k-primary,
|
||
.k-button-solid-primary,
|
||
.k-button.k-grid-add-command,
|
||
.k-button-primary:hover,
|
||
.k-button.k-primary:hover,
|
||
.k-button-solid-primary:hover,
|
||
.k-button.k-grid-add-command:hover {
|
||
border-color: var(--gh-btn);
|
||
background-color: var(--gh-btn);
|
||
color: #FFFFFF;
|
||
}
|
||
.k-button-primary:hover,
|
||
.k-button.k-primary:hover,
|
||
.k-button-solid-primary:hover,
|
||
.k-button.k-grid-add-command:hover {
|
||
border-color: var(--gh-btnh);
|
||
background-color: var(--gh-btnh);
|
||
}
|
||
// Semantic Kendo colours
|
||
.k-button-solid-success,
|
||
.k-button-solid-success:hover {
|
||
border-color: var(--gh-ok);
|
||
background-color: var(--gh-ok);
|
||
color: #FFFFFF;
|
||
}
|
||
.k-button-solid-error,
|
||
.k-button-solid-error:hover {
|
||
border-color: var(--gh-dn);
|
||
background-color: var(--gh-dn);
|
||
color: #FFFFFF;
|
||
}
|
||
.k-button-solid-error:hover {
|
||
border-color: var(--gh-dnh);
|
||
background-color: var(--gh-dnh);
|
||
}
|
||
.k-button-solid-warning,
|
||
.k-button-solid-warning:hover {
|
||
border-color: var(--gh-warn);
|
||
background-color: var(--gh-warn);
|
||
color: #FFFFFF;
|
||
}
|
||
.k-button-solid-info,
|
||
.k-button-solid-info:hover {
|
||
border-color: var(--gh-info);
|
||
background-color: var(--gh-info);
|
||
color: #FFFFFF;
|
||
}
|
||
// Outline / flat buttons
|
||
.k-button-outline,
|
||
.k-button-outline-primary {
|
||
background-color: transparent;
|
||
border-color: var(--gh-btn);
|
||
color: var(--gh-btn);
|
||
}
|
||
.k-button-outline:hover,
|
||
.k-button-outline-primary:hover {
|
||
background-color: var(--gh-btn);
|
||
color: #FFFFFF;
|
||
}
|
||
.k-button-flat:not([class^="gh-"], [class*=" gh-"]) {
|
||
color: var(--gh-lk) !important;
|
||
}
|
||
.k-button-flat,
|
||
.k-button-flat:hover {
|
||
background-color: transparent;
|
||
border-color: transparent;
|
||
}
|
||
.k-button-flat:hover {
|
||
background-color: var(--gh-sel);
|
||
}
|
||
button.app-btn.app-btn-outlined {
|
||
color: var(--gh-btn);
|
||
border-color: var(--gh-btn);
|
||
}
|
||
button.app-btn.app-btn-outlined:hover:not(:disabled) {
|
||
background-color: var(--gh-sel);
|
||
}
|
||
// Disabled (any variant)
|
||
.k-button:disabled,
|
||
.k-button.k-disabled {
|
||
background-color: #EEF0F3;
|
||
border-color: #E2E5EA;
|
||
color: #9AA3AF;
|
||
}
|
||
// ---------- Button standard (GoHR Theme Studio "Button standard") ----------
|
||
// Templates carry one semantic class per button (gh-save, gh-cancel, ...). Colour, border and icon
|
||
// come from here only, so every palette repaints them. Same rules as the studio:
|
||
// filled (button colour): save submit process add search select · approve green · reject red
|
||
// white + border, coloured icon: cancel close back reset refresh print filter edit view preview
|
||
// excel (green icon) pdf (red icon) import download
|
||
// delete: red outline. A button that already has an icon keeps it; otherwise the studio icon is shown.
|
||
:root {
|
||
--gh-i-save: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h11l5 5v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3Cpath d='M7 3v5h8V3'/%3E%3Cpath d='M7 21v-7h10v7'/%3E%3C/svg%3E");
|
||
--gh-i-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22l-4-9-9-4z'/%3E%3C/svg%3E");
|
||
--gh-i-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 8.5v7l6-3.5z'/%3E%3C/svg%3E");
|
||
--gh-i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
|
||
--gh-i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
|
||
--gh-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E");
|
||
--gh-i-check-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 2.8 2.8L16.5 9.5'/%3E%3C/svg%3E");
|
||
--gh-i-x-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m15 9-6 6M9 9l6 6'/%3E%3C/svg%3E");
|
||
--gh-i-ban: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m5.7 5.7 12.6 12.6'/%3E%3C/svg%3E");
|
||
--gh-i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
|
||
--gh-i-arrow-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6'/%3E%3C/svg%3E");
|
||
--gh-i-rotate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 2.6-6.4L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E");
|
||
--gh-i-pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E");
|
||
--gh-i-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
|
||
--gh-i-printer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v7H6z'/%3E%3C/svg%3E");
|
||
--gh-i-sheet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='m9 12 6 6M15 12l-6 6'/%3E%3C/svg%3E");
|
||
--gh-i-pdf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8M8 17h5'/%3E%3C/svg%3E");
|
||
--gh-i-upload: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m17 8-5-5-5 5M12 3v12'/%3E%3C/svg%3E");
|
||
--gh-i-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5M12 15V3'/%3E%3C/svg%3E");
|
||
--gh-i-filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18l-7 8.5V19l-4 2v-8.5z'/%3E%3C/svg%3E");
|
||
--gh-i-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2M6 6l1 14a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1l1-14'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3C/svg%3E");
|
||
--gh-i-refresh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.2L3 16M3 12a9 9 0 0 1 15.5-6.2L21 8'/%3E%3Cpath d='M21 3v5h-5M3 21v-5h5'/%3E%3C/svg%3E");
|
||
}
|
||
.k-button:is(.gh-save, .gh-submit, .gh-process, .gh-add, .gh-search, .gh-select, .gh-approve, .gh-reject, .gh-cancel, .gh-close, .gh-back, .gh-reset, .gh-refresh, .gh-edit, .gh-view, .gh-preview, .gh-print, .gh-filter, .gh-excel, .gh-pdf, .gh-import, .gh-download, .gh-delete, .k-grid-excel, .k-grid-pdf, .kt-delete) {
|
||
--ghb-c: var(--gh-btn);
|
||
--ghb-ch: var(--gh-btnh);
|
||
--ghb-bg: var(--ghb-c);
|
||
--ghb-fg: #FFFFFF;
|
||
--ghb-bd: var(--ghb-c);
|
||
--ghb-hbg: var(--ghb-ch);
|
||
--ghb-hbd: var(--ghb-ch);
|
||
--ghb-ic: currentColor;
|
||
background-color: var(--ghb-bg);
|
||
border-color: var(--ghb-bd);
|
||
color: var(--ghb-fg);
|
||
border-radius: 6px;
|
||
font-weight: 500;
|
||
gap: 6px;
|
||
transition: background-color .15s, border-color .15s, box-shadow .15s;
|
||
}
|
||
.k-button:is(.gh-save, .gh-submit, .gh-process, .gh-add, .gh-search, .gh-select, .gh-approve, .gh-reject, .gh-cancel, .gh-close, .gh-back, .gh-reset, .gh-refresh, .gh-edit, .gh-view, .gh-preview, .gh-print, .gh-filter, .gh-excel, .gh-pdf, .gh-import, .gh-download, .gh-delete, .k-grid-excel, .k-grid-pdf, .kt-delete):is(:hover, .k-hover, :active, .k-active) {
|
||
background-color: var(--ghb-hbg);
|
||
border-color: var(--ghb-hbd);
|
||
color: var(--ghb-fg);
|
||
}
|
||
.k-button:is(.gh-save, .gh-submit, .gh-process, .gh-add, .gh-search, .gh-select, .gh-approve, .gh-reject, .gh-cancel, .gh-close, .gh-back, .gh-reset, .gh-refresh, .gh-edit, .gh-view, .gh-preview, .gh-print, .gh-filter, .gh-excel, .gh-pdf, .gh-import, .gh-download, .gh-delete, .k-grid-excel, .k-grid-pdf, .kt-delete):is(:focus-visible, .k-focus) {
|
||
box-shadow: 0 0 0 3px var(--gh-ring);
|
||
}
|
||
.k-button:is(.gh-save, .gh-submit, .gh-process, .gh-add, .gh-search, .gh-select, .gh-approve, .gh-reject, .gh-cancel, .gh-close, .gh-back, .gh-reset, .gh-refresh, .gh-edit, .gh-view, .gh-preview, .gh-print, .gh-filter, .gh-excel, .gh-pdf, .gh-import, .gh-download, .gh-delete, .k-grid-excel, .k-grid-pdf, .kt-delete) :is(.k-button-icon, .k-svg-icon, .k-icon, i.pi) {
|
||
color: var(--ghb-ic);
|
||
}
|
||
// Decision
|
||
.k-button:is(.gh-approve) {
|
||
--ghb-c: var(--gh-ok);
|
||
--ghb-ch: var(--gh-okh);
|
||
}
|
||
.k-button:is(.gh-reject) {
|
||
--ghb-c: var(--gh-dn);
|
||
--ghb-ch: var(--gh-dnh);
|
||
}
|
||
// Secondary: white with a border, the icon carries the colour
|
||
.k-button:is(.gh-cancel, .gh-close, .gh-back, .gh-reset, .gh-refresh, .gh-print, .gh-filter, .gh-edit, .gh-view,
|
||
.gh-preview, .gh-excel, .gh-pdf, .gh-import, .gh-download, .k-grid-excel, .k-grid-pdf) {
|
||
--ghb-bg: #FFFFFF;
|
||
--ghb-fg: var(--gh-ht);
|
||
--ghb-bd: var(--gh-bo2);
|
||
--ghb-hbg: var(--gh-sel);
|
||
--ghb-hbd: var(--gh-bo2);
|
||
--ghb-ic: var(--ghb-c);
|
||
}
|
||
.k-button:is(.gh-cancel, .gh-close, .gh-back, .gh-reset, .gh-refresh, .gh-print, .gh-filter) {
|
||
--ghb-c: var(--gh-muted);
|
||
--ghb-ch: var(--gh-bt);
|
||
}
|
||
.k-button:is(.gh-edit) {
|
||
--ghb-c: var(--gh-edit);
|
||
--ghb-ch: var(--gh-edit);
|
||
}
|
||
.k-button:is(.gh-view, .gh-preview, .gh-import, .gh-download) {
|
||
--ghb-c: var(--gh-lk);
|
||
--ghb-ch: var(--gh-lk);
|
||
}
|
||
.k-button:is(.gh-excel, .k-grid-excel) {
|
||
--ghb-c: var(--gh-xls);
|
||
--ghb-ch: var(--gh-xls);
|
||
}
|
||
.k-button:is(.gh-pdf, .k-grid-pdf) {
|
||
--ghb-c: var(--gh-pdf);
|
||
--ghb-ch: var(--gh-pdf);
|
||
}
|
||
// Destructive: red outline
|
||
.k-button:is(.gh-delete, .kt-delete) {
|
||
--ghb-c: var(--gh-dn);
|
||
--ghb-ch: var(--gh-dnh);
|
||
--ghb-bg: #FFFFFF;
|
||
--ghb-fg: var(--ghb-c);
|
||
--ghb-bd: color-mix(in srgb, var(--ghb-c) 45%, #FFFFFF);
|
||
--ghb-hbg: color-mix(in srgb, var(--ghb-c) 8%, #FFFFFF);
|
||
--ghb-hbd: var(--ghb-c);
|
||
}
|
||
// Inside a confirm dialog the delete is the main action, so it is filled
|
||
.k-dialog-actions .k-button:is(.gh-delete, .kt-delete),
|
||
.k-window-actions .k-button:is(.gh-delete, .kt-delete),
|
||
.swal2-actions .k-button:is(.gh-delete, .kt-delete) {
|
||
--ghb-bg: var(--ghb-c);
|
||
--ghb-fg: #FFFFFF;
|
||
--ghb-bd: var(--ghb-c);
|
||
--ghb-hbg: var(--ghb-ch);
|
||
--ghb-hbd: var(--ghb-ch);
|
||
}
|
||
// Disabled (any action)
|
||
.k-button:is(.gh-save, .gh-submit, .gh-process, .gh-add, .gh-search, .gh-select, .gh-approve, .gh-reject, .gh-cancel, .gh-close, .gh-back, .gh-reset, .gh-refresh, .gh-edit, .gh-view, .gh-preview, .gh-print, .gh-filter, .gh-excel, .gh-pdf, .gh-import, .gh-download, .gh-delete, .k-grid-excel, .k-grid-pdf, .kt-delete):is(:disabled, .k-disabled) {
|
||
--ghb-bg: #EEF0F3;
|
||
--ghb-fg: #9AA3AF;
|
||
--ghb-bd: #E2E5EA;
|
||
--ghb-hbg: #EEF0F3;
|
||
--ghb-hbd: #E2E5EA;
|
||
--ghb-ic: #B4BAC4;
|
||
box-shadow: none;
|
||
}
|
||
// Studio icon, only when the button has no icon of its own
|
||
.k-button:is(.gh-save, .gh-submit, .gh-process, .gh-add, .gh-search, .gh-select, .gh-approve, .gh-reject, .gh-cancel, .gh-close, .gh-back, .gh-reset, .gh-refresh, .gh-edit, .gh-view, .gh-preview, .gh-print, .gh-filter, .gh-excel, .gh-pdf, .gh-import, .gh-download, .gh-delete, .k-grid-excel, .k-grid-pdf, .kt-delete):not(:has(.k-button-icon, .k-svg-icon, .k-icon, i, img))::before {
|
||
content: "";
|
||
flex: none;
|
||
width: 1.15em;
|
||
height: 1.15em;
|
||
background: var(--ghb-ic);
|
||
-webkit-mask: var(--ghb-i) center / contain no-repeat;
|
||
mask: var(--ghb-i) center / contain no-repeat;
|
||
}
|
||
.k-button.gh-save { --ghb-i: var(--gh-i-save); }
|
||
.k-button.gh-submit { --ghb-i: var(--gh-i-send); }
|
||
.k-button.gh-process { --ghb-i: var(--gh-i-play); }
|
||
.k-button.gh-add { --ghb-i: var(--gh-i-plus); }
|
||
.k-button.gh-search { --ghb-i: var(--gh-i-search); }
|
||
.k-button.gh-select { --ghb-i: var(--gh-i-check); }
|
||
.k-button.gh-approve { --ghb-i: var(--gh-i-check-circle); }
|
||
.k-button.gh-reject { --ghb-i: var(--gh-i-x-circle); }
|
||
.k-button.gh-cancel { --ghb-i: var(--gh-i-ban); }
|
||
.k-button.gh-close { --ghb-i: var(--gh-i-x); }
|
||
.k-button.gh-back { --ghb-i: var(--gh-i-arrow-left); }
|
||
.k-button.gh-reset { --ghb-i: var(--gh-i-rotate); }
|
||
.k-button.gh-refresh { --ghb-i: var(--gh-i-refresh); }
|
||
.k-button.gh-edit { --ghb-i: var(--gh-i-pencil); }
|
||
.k-button:is(.gh-view, .gh-preview) { --ghb-i: var(--gh-i-eye); }
|
||
.k-button.gh-print { --ghb-i: var(--gh-i-printer); }
|
||
.k-button.gh-filter { --ghb-i: var(--gh-i-filter); }
|
||
.k-button:is(.gh-excel, .k-grid-excel) { --ghb-i: var(--gh-i-sheet); }
|
||
.k-button:is(.gh-pdf, .k-grid-pdf) { --ghb-i: var(--gh-i-pdf); }
|
||
.k-button.gh-import { --ghb-i: var(--gh-i-upload); }
|
||
.k-button.gh-download { --ghb-i: var(--gh-i-download); }
|
||
.k-button:is(.gh-delete, .kt-delete) { --ghb-i: var(--gh-i-trash); }
|
||
|
||
// SweetAlert confirm
|
||
.swal2-styled.swal2-confirm {
|
||
background-color: var(--gh-btn) !important;
|
||
}
|
||
.swal2-styled.swal2-confirm:focus {
|
||
box-shadow: 0 0 0 3px var(--gh-ring) !important;
|
||
}
|
||
|
||
// ---------- Dialogs / windows ----------
|
||
.k-window-titlebar,
|
||
.k-dialog-titlebar {
|
||
background-color: var(--gh-topBg);
|
||
color: var(--gh-topFg) !important;
|
||
}
|
||
.k-window-titlebar .k-button,
|
||
.k-dialog-titlebar .k-button,
|
||
.k-window-titlebar .k-button:hover,
|
||
.k-dialog-titlebar .k-button:hover {
|
||
background-color: transparent;
|
||
border-color: transparent;
|
||
color: var(--gh-topFg);
|
||
}
|
||
.k-window-titlebar .k-button:hover,
|
||
.k-dialog-titlebar .k-button:hover {
|
||
background-color: color-mix(in srgb, var(--gh-topFg) 14%, transparent);
|
||
}
|
||
.k-dialog-actions,
|
||
.k-window-actions {
|
||
border-color: var(--gh-bo);
|
||
background-color: color-mix(in srgb, var(--gh-pb) 60%, #FFFFFF);
|
||
}
|
||
|
||
// ---------- Tabs ----------
|
||
.k-tabstrip-items-wrapper {
|
||
border-color: var(--gh-bo);
|
||
}
|
||
.k-tabstrip-items .k-item,
|
||
.k-tabstrip-items .k-item .k-link {
|
||
color: var(--gh-muted);
|
||
}
|
||
.k-tabstrip-items .k-item:hover .k-link {
|
||
color: var(--gh-ht);
|
||
}
|
||
.k-tabstrip-items .k-item.k-active,
|
||
.k-tabstrip-items .k-item.k-active .k-link {
|
||
color: var(--gh-lk);
|
||
font-weight: 600;
|
||
}
|
||
.k-tabstrip-items .k-item.k-active::after,
|
||
.k-tabstrip-top > .k-tabstrip-items-wrapper .k-item.k-active::after {
|
||
border-color: var(--gh-lk);
|
||
}
|
||
|
||
// ---------- Inputs ----------
|
||
.k-input:focus-within,
|
||
.k-input.k-focus,
|
||
.k-picker:focus-within,
|
||
.k-picker.k-focus,
|
||
.k-textbox:focus-within,
|
||
.k-textarea:focus-within {
|
||
border-color: var(--gh-focus);
|
||
box-shadow: 0 0 0 3px var(--gh-ring);
|
||
}
|
||
.k-checkbox {
|
||
border-color: var(--gh-bo2);
|
||
}
|
||
.k-checkbox:checked,
|
||
.k-checkbox.k-checked,
|
||
.k-radio:checked,
|
||
.k-radio.k-checked,
|
||
.k-switch-on .k-switch-track {
|
||
border-color: var(--gh-btn);
|
||
background-color: var(--gh-btn);
|
||
color: #FFFFFF;
|
||
}
|
||
.k-checkbox:focus,
|
||
.k-checkbox.k-focus,
|
||
.k-radio:focus,
|
||
.k-radio.k-focus {
|
||
box-shadow: 0 0 0 3px var(--gh-ring);
|
||
}
|
||
input[type=checkbox],
|
||
input[type=radio] {
|
||
accent-color: var(--gh-btn);
|
||
}
|
||
|
||
// ---------- Lists, popups, calendar, tree ----------
|
||
.k-list-item.k-selected,
|
||
.k-list-item.k-selected:hover,
|
||
.k-list .k-item.k-state-selected {
|
||
background-color: var(--gh-btn);
|
||
color: #FFFFFF;
|
||
}
|
||
.k-list-item:hover,
|
||
.k-list-item.k-hover {
|
||
background-color: var(--gh-sel);
|
||
}
|
||
.k-calendar .k-calendar-td.k-selected .k-link,
|
||
.k-calendar .k-calendar-td.k-selected:hover .k-link {
|
||
background-color: var(--gh-btn);
|
||
color: #FFFFFF;
|
||
}
|
||
.k-calendar .k-calendar-td.k-today .k-link {
|
||
box-shadow: inset 0 0 0 1px var(--gh-btn);
|
||
}
|
||
.k-calendar .k-calendar-nav-today,
|
||
.k-calendar .k-calendar-view .k-today {
|
||
color: var(--gh-lk);
|
||
}
|
||
|
||
// ---------- Progress, badges, loader ----------
|
||
.k-progressbar {
|
||
background-color: var(--gh-th);
|
||
}
|
||
.k-progressbar .k-state-selected,
|
||
.k-progressbar .k-selected {
|
||
background-color: var(--gh-btn);
|
||
background-image: linear-gradient(to right, var(--gh-am) 0%, var(--gh-btn) 100%);
|
||
}
|
||
.k-badge-solid-primary {
|
||
background-color: var(--gh-bd);
|
||
border-color: var(--gh-bd);
|
||
color: #111827;
|
||
}
|
||
.layout-dashboard .overview-box.sales {
|
||
background-color: var(--gh-btn);
|
||
}
|
||
|
||
// =====================================================================================
|
||
// Form control standard — one height for every Kendo field and the buttons beside them.
|
||
// Textbox, numeric, dropdown, combobox, autocomplete, date/time picker, masked and search
|
||
// fields all get --gh-h (34px at 14px, scales with the font size);
|
||
// inside grid cells and the filter row they get the compact --gh-h-sm (30px).
|
||
// Only size, inner padding and corner radius are set here — colours, the red/green required
|
||
// marker, widths and every behaviour stay as they are.
|
||
// $std (html:not(#gh-std)) carries id-level specificity, so screen-level ::ng-deep overrides and
|
||
// inline style="height: 28px" can no longer make one field taller or shorter than the rest.
|
||
// Untouched on purpose: textarea (multi-line), multiselect (grows with its tags, gets only a
|
||
// min-height), checkbox, radio, switch, slider.
|
||
// =====================================================================================
|
||
$std: 'html:not(#gh-std)';
|
||
:root {
|
||
--gh-h: calc(var(--gh-fz) * 34 / 14);
|
||
--gh-h-sm: calc(var(--gh-fz) * 30 / 14);
|
||
--gh-field-px: 10px;
|
||
--gh-field-r: 6px;
|
||
}
|
||
|
||
// ---- Fields ----
|
||
#{$std} :is(.k-input, .k-picker):not(.k-textarea, .k-multiselect) {
|
||
height: var(--gh-h) !important;
|
||
min-height: var(--gh-h) !important;
|
||
box-sizing: border-box;
|
||
border-radius: var(--gh-field-r) !important;
|
||
vertical-align: middle;
|
||
}
|
||
#{$std} .k-multiselect {
|
||
min-height: var(--gh-h) !important;
|
||
height: auto !important;
|
||
border-radius: var(--gh-field-r) !important;
|
||
}
|
||
// A Kendo field nested in another (the date input inside a date picker) fills its parent
|
||
#{$std} :is(.k-input, .k-picker) :is(.k-input, .k-picker):not(.k-textarea, .k-multiselect) {
|
||
height: 100% !important;
|
||
min-height: 0 !important;
|
||
border-radius: 0 !important;
|
||
}
|
||
// Text area of a wrapper field: full height, vertically centred, standard side padding
|
||
#{$std} :is(.k-input, .k-picker):not(.k-textarea) > .k-input-inner,
|
||
#{$std} :is(.k-input, .k-picker):not(.k-textarea) .k-dateinput > .k-input-inner {
|
||
height: 100% !important;
|
||
padding-top: 0 !important;
|
||
padding-bottom: 0 !important;
|
||
padding-inline: var(--gh-field-px) !important;
|
||
line-height: normal !important;
|
||
}
|
||
// Dropdown list: the selected text sits inside .k-input-inner, which already has the padding
|
||
#{$std} .k-picker .k-input-value-text {
|
||
padding: 0 !important;
|
||
line-height: normal !important;
|
||
}
|
||
// <input kendoTextBox> is the field itself
|
||
#{$std} input.k-textbox {
|
||
padding-top: 0 !important;
|
||
padding-bottom: 0 !important;
|
||
padding-inline: var(--gh-field-px) !important;
|
||
line-height: normal !important;
|
||
}
|
||
// Arrow / calendar / clock button and numeric spinners fill the field's height
|
||
#{$std} :is(.k-input, .k-picker) > :is(.k-input-button, .k-input-spinner) {
|
||
height: auto !important;
|
||
align-self: stretch;
|
||
}
|
||
|
||
// ---- Compact fields inside grids (data cells and filter row) ----
|
||
#{$std} .k-grid :is(td, .k-filter-row th) :is(.k-input, .k-picker):not(.k-textarea, .k-multiselect, .k-input .k-input, .k-picker .k-input) {
|
||
height: var(--gh-h-sm) !important;
|
||
min-height: var(--gh-h-sm) !important;
|
||
}
|
||
#{$std} .k-grid :is(td, .k-filter-row th) .k-multiselect {
|
||
min-height: var(--gh-h-sm) !important;
|
||
}
|
||
|
||
// ---- Buttons: the same height as the fields ----
|
||
// Kendo 25 adds no size class unless size="..." is set, so this targets every Kendo button that is
|
||
// not explicitly small/large. Buttons that belong to another widget (field arrow, spinner, titlebar
|
||
// close, pager, calendar, column menu, ...) keep Kendo's own size.
|
||
// Picture tiles (Access Types / payroll-type chooser, dashboard picture buttons, self-profile
|
||
// sections) are cards, not action buttons: they keep their own size and layout.
|
||
$btn-tile: '.access-type-button, :has(img)';
|
||
$btn-skip: '.k-input, .k-picker, .k-window-titlebar, .k-dialog-titlebar, .k-pager, .k-calendar, .k-grid-header, .k-column-menu, .k-scheduler, .k-editor, .k-toolbar-popup, .k-menu, .k-tabstrip-items, .k-chip-list, .k-treeview, .k-time-list, .k-datetime-container, .k-colorpicker, .k-flatcolorpicker, .k-upload, .k-actionsheet, .k-pdf-viewer, .k-gantt, .k-filter-menu, .k-popup, .k-grid-pager, .k-expander-header';
|
||
#{$std} .k-button:not(.k-button-sm, .k-button-lg, .k-input-button, .k-spin-button, .k-spinner-increase, .k-spinner-decrease, .k-button-flat):not(:is(#{$btn-skip}) *):not(#{$btn-tile}) {
|
||
height: var(--gh-h) !important;
|
||
min-height: var(--gh-h) !important;
|
||
padding-top: 0 !important;
|
||
padding-bottom: 0 !important;
|
||
box-sizing: border-box;
|
||
vertical-align: middle;
|
||
}
|
||
// ...compact inside grid data cells
|
||
#{$std} .k-grid td .k-button:not(.k-button-sm, .k-button-lg, .k-input-button, .k-spin-button, .k-spinner-increase, .k-spinner-decrease, .k-button-flat):not(:is(#{$btn-skip}) *):not(#{$btn-tile}) {
|
||
height: var(--gh-h-sm) !important;
|
||
min-height: var(--gh-h-sm) !important;
|
||
}
|
||
|
||
// ---- Icon-only buttons: icon exactly in the middle ----
|
||
// Kendo always renders a <span class="k-button-text">, empty for icon-only buttons; with the
|
||
// button's gap that empty span pushed the icon off-centre. Hide it and make the button square.
|
||
.k-button .k-button-text:empty {
|
||
display: none;
|
||
}
|
||
#{$std} .k-button:not(.k-input-button, .k-spin-button, .k-spinner-increase, .k-spinner-decrease):not(:is(#{$btn-skip}) *):not(#{$btn-tile}):is(.k-icon-button, :has(> .k-button-text:empty)) {
|
||
aspect-ratio: 1 / 1;
|
||
min-width: 0 !important;
|
||
padding-inline: 0 !important;
|
||
justify-content: center;
|
||
align-items: center;
|
||
gap: 0;
|
||
}
|
||
// Buttons whose only content is an <i class="pi ..."> icon (no text) are centred the same way
|
||
.k-button > .k-button-text:has(> i:only-child) {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
|
||
// =====================================================================================
|
||
// Tree view (form-builder master trees, role permission, chart of accounts, organogram,
|
||
// pickers). Appearance only: nodes, selection, filter, expand/collapse, checkboxes and the
|
||
// node templates work exactly as before. Kendo's own trees inside column menus, pivot and
|
||
// spreadsheet filters are left alone.
|
||
// - roomy rows with rounded corners, palette hover
|
||
// - selected node: palette tint + accent bar on the left (as the studio's selected grid row)
|
||
// - parent nodes semi-bold; guide line under each expanded parent, joining its children
|
||
// - larger, centred expand/collapse toggle
|
||
// Kendo indents each level by --kendo-treeview-level × 24px (top level = 1) and pulls the toggle
|
||
// 24px into that indent, so a parent's toggle is centred at level × 24px − 12px.
|
||
// =====================================================================================
|
||
$tree: '.k-treeview:not(.k-column-menu *, .k-pivotgrid-configurator-content *, .k-spreadsheet-filter-menu *, .k-datainsights-composer-popup *)';
|
||
|
||
#{$tree} {
|
||
padding: 6px 4px;
|
||
font-size: var(--gh-fz);
|
||
color: var(--gh-bt);
|
||
}
|
||
#{$tree} .k-treeview-group {
|
||
gap: 2px;
|
||
}
|
||
#{$tree} .k-treeview-item-content {
|
||
min-height: calc(var(--gh-fz) * 32 / 14);
|
||
padding-inline-end: 8px;
|
||
border-radius: 8px;
|
||
transition: background-color .15s, box-shadow .15s;
|
||
}
|
||
#{$tree} .k-treeview-item-content:is(:hover, .k-hover) {
|
||
color: var(--gh-ht);
|
||
background-color: color-mix(in srgb, var(--gh-btn) 7%, transparent);
|
||
}
|
||
#{$tree} .k-treeview-item-content.k-selected {
|
||
color: var(--gh-ht);
|
||
background-color: var(--gh-sel);
|
||
box-shadow: inset 3px 0 0 var(--gh-lk);
|
||
}
|
||
#{$tree} .k-treeview-item-content.k-selected:is(:hover, .k-hover) {
|
||
background-color: color-mix(in srgb, var(--gh-btn) 16%, var(--gh-tb));
|
||
}
|
||
#{$tree} .k-treeview-item-content:is(:focus, .k-focus) {
|
||
box-shadow: inset 0 0 0 2px var(--gh-ring);
|
||
}
|
||
#{$tree} .k-treeview-item-content.k-selected:is(:focus, .k-focus) {
|
||
box-shadow: inset 3px 0 0 var(--gh-lk), inset 0 0 0 2px var(--gh-ring);
|
||
}
|
||
#{$tree} .k-treeview-item-content.k-disabled {
|
||
opacity: .55;
|
||
}
|
||
// Node text
|
||
#{$tree} .k-treeview-leaf {
|
||
padding-block: 6px;
|
||
padding-inline: 8px;
|
||
line-height: 1.35;
|
||
border-radius: 6px;
|
||
}
|
||
#{$tree} .k-treeview-item-content.k-selected .k-treeview-leaf {
|
||
font-weight: 600;
|
||
}
|
||
// Parent nodes (those with an expand/collapse toggle) read as headings
|
||
#{$tree} .k-treeview-item-content:has(> .k-treeview-toggle) .k-treeview-leaf {
|
||
font-weight: 600;
|
||
color: var(--gh-ht);
|
||
}
|
||
// Expand / collapse toggle
|
||
#{$tree} .k-treeview-toggle {
|
||
width: 24px;
|
||
height: 24px;
|
||
justify-content: center;
|
||
border-radius: 6px;
|
||
color: var(--gh-muted);
|
||
transition: background-color .15s, color .15s;
|
||
}
|
||
#{$tree} .k-treeview-toggle:hover {
|
||
color: var(--gh-lk);
|
||
background-color: color-mix(in srgb, var(--gh-btn) 12%, transparent);
|
||
}
|
||
#{$tree} .k-treeview-toggle .k-icon,
|
||
#{$tree} .k-treeview-toggle .k-svg-icon {
|
||
padding: 0;
|
||
}
|
||
// Guide line from an expanded parent down through its children
|
||
#{$tree} .k-treeview-item > .k-treeview-group {
|
||
position: relative;
|
||
}
|
||
#{$tree} .k-treeview-item > .k-treeview-group::before {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 6px;
|
||
left: calc(var(--kendo-treeview-level, 1) * 24px - 12px);
|
||
width: 1px;
|
||
background-color: var(--gh-bo);
|
||
pointer-events: none;
|
||
}
|
||
// Filter box above the tree
|
||
#{$tree} .k-treeview-filter {
|
||
padding: 4px 4px 8px;
|
||
}
|
||
// "Load more" link
|
||
#{$tree} .k-treeview-load-more-button {
|
||
color: var(--gh-lk);
|
||
font-weight: 500;
|
||
}
|
||
|
||
// =====================================================================================
|
||
// Dialog backdrop: every kendo-dialog dims the page with the same colour as .blur-background
|
||
// (styles.scss). The unscoped `.k-overlay { opacity: 0 }` in vendors/kendo/_misc.scss (and the
|
||
// employee picker) hid Kendo's own backdrop everywhere, so dialogs not wrapped in a
|
||
// .blur-background element showed the page behind them undimmed.
|
||
// A dialog that already sits inside .blur-background is skipped, so the tint is never doubled.
|
||
// Screens that style their own overlay (the calendar dialogs) keep their own look.
|
||
// Appearance only — opening, closing and Esc behave exactly as before.
|
||
// =====================================================================================
|
||
.k-dialog-wrapper > .k-overlay:not(.blur-background *) {
|
||
opacity: 1;
|
||
background-color: color-mix(in srgb, var(--gh-sb) 40%, transparent);
|
||
}
|
||
|
||
// =====================================================================================
|
||
// Master data entry form (form-builder <app-basic-entry-form> / <app-basic-from-control>):
|
||
// the Add/Edit dialog of every master-data screen (Employee Type, Category, Cost Center, ...).
|
||
// Fields inside a card, two per line filling the full width, label above its control, red
|
||
// marker on the left of a required field that is still empty. Appearance only — every control, binding, validator, the "... is required"
|
||
// message, the Save button's [disabled] state, the form width/height from the screen config and
|
||
// all @switch cases stay exactly as they are. Scoped to app-basic-entry-form.
|
||
// =====================================================================================
|
||
$mf: '#{$std} app-basic-entry-form';
|
||
|
||
// Dialog height follows its content (no empty band under Close / Save); the screen config's
|
||
// fixed height used to leave one. A long form still scrolls inside, capped at 90% of the screen.
|
||
#{$mf} .k-dialog {
|
||
height: auto !important;
|
||
max-height: 90vh;
|
||
}
|
||
|
||
// Dialog body
|
||
#{$mf} .k-dialog-content {
|
||
padding: 12px 12px 10px;
|
||
background-color: var(--gh-pb);
|
||
}
|
||
#{$mf} fieldset {
|
||
border: 0 !important;
|
||
margin: 0 !important;
|
||
padding: 0 !important;
|
||
min-width: 0;
|
||
}
|
||
|
||
// Card holding the fields: always two per line, together filling the full width
|
||
#{$mf} .form-row-wrapper {
|
||
display: grid !important;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: 14px 16px;
|
||
padding: 14px;
|
||
background: var(--gh-tb);
|
||
border: 1px solid var(--gh-bo);
|
||
border-radius: 8px;
|
||
box-shadow: 0 1px 2px color-mix(in srgb, var(--gh-ht) 6%, transparent);
|
||
}
|
||
#{$mf} .form-row-wrapper > .form-row {
|
||
width: auto !important;
|
||
height: auto !important;
|
||
padding: 0 !important;
|
||
min-width: 0;
|
||
}
|
||
// An odd number of fields: the last one has no partner on its right, so it takes the full width
|
||
#{$mf} .form-row-wrapper > .form-row:last-child:nth-child(odd) {
|
||
grid-column: 1 / -1;
|
||
}
|
||
|
||
// One field: label with the "... is required" message beside it, the control under both
|
||
#{$mf} app-basic-from-control > .row {
|
||
display: block !important;
|
||
width: 100% !important;
|
||
max-width: none !important;
|
||
margin: 0 !important;
|
||
padding: 0 !important;
|
||
flex: none !important;
|
||
}
|
||
#{$mf} app-basic-from-control > .row > div {
|
||
display: grid;
|
||
grid-template-columns: auto minmax(0, 1fr);
|
||
align-items: baseline;
|
||
column-gap: 8px;
|
||
row-gap: 6px;
|
||
border-left: 0 none !important; // inline border-left + forms.css marker on the [formGroup] wrapper
|
||
}
|
||
#{$mf} app-basic-from-control br {
|
||
display: none;
|
||
}
|
||
#{$mf} app-basic-from-control label {
|
||
grid-column: 1;
|
||
grid-row: 1;
|
||
margin: 0;
|
||
font-size: calc(var(--gh-fz) * 13 / 14);
|
||
font-weight: 600;
|
||
line-height: 1.3;
|
||
color: var(--gh-ht);
|
||
overflow-wrap: anywhere;
|
||
}
|
||
#{$mf} app-basic-from-control > .row > div > div:not(.errorMessage) {
|
||
grid-column: 1 / -1;
|
||
grid-row: 2;
|
||
width: 100%;
|
||
min-width: 0;
|
||
}
|
||
#{$mf} app-basic-from-control .errorMessage {
|
||
grid-column: 2;
|
||
grid-row: 1;
|
||
font-weight: 500;
|
||
font-size: calc(var(--gh-fz) * 12 / 14);
|
||
line-height: 1.3;
|
||
color: var(--gh-dn) !important;
|
||
}
|
||
|
||
// Every control type gets the same box (the app's text-box look)
|
||
#{$mf} app-basic-from-control :is(input.k-textbox, .k-input, .k-picker):not(.k-input .k-input, .k-picker .k-input) {
|
||
width: 100% !important;
|
||
border: 1px solid color-mix(in srgb, var(--gh-btn) 25%, var(--gh-tb)) !important;
|
||
border-radius: var(--gh-field-r) !important;
|
||
background: var(--gh-pb) !important;
|
||
color: var(--gh-ht) !important;
|
||
font-family: var(--gh-font) !important;
|
||
font-size: var(--gh-fz) !important;
|
||
box-shadow: none !important;
|
||
transition: border-color .15s, box-shadow .15s, background-color .15s;
|
||
}
|
||
#{$mf} app-basic-from-control :is(input.k-textbox, .k-input, .k-picker):not(.k-input .k-input, .k-picker .k-input):hover {
|
||
border-color: var(--gh-btn) !important;
|
||
}
|
||
#{$mf} app-basic-from-control :is(input.k-textbox:focus, .k-input:focus-within, .k-picker:focus-within, .k-focus):not(.k-input .k-input, .k-picker .k-input) {
|
||
background: var(--gh-tb) !important;
|
||
border-color: var(--gh-focus) !important;
|
||
box-shadow: 0 0 0 3px var(--gh-ring) !important;
|
||
outline: none;
|
||
}
|
||
// Required marker on the left, as everywhere else in the app (forms.css): red while invalid,
|
||
// green once a field marked required is filled
|
||
#{$mf} app-basic-from-control :is(input.k-textbox, .k-input, .k-picker).ng-invalid:not(.k-input .k-input, .k-picker .k-input) {
|
||
border-left: 4px solid var(--gh-dn) !important;
|
||
}
|
||
#{$mf} app-basic-from-control :is(input.k-textbox, .k-input, .k-picker).ng-valid:is([required], .required):not(.k-input .k-input, .k-picker .k-input) {
|
||
border-left: 4px solid var(--gh-ok) !important;
|
||
}
|
||
// Inner parts of date picker / dropdown: no own border or background
|
||
#{$mf} app-basic-from-control :is(.k-input, .k-picker) :is(.k-input-inner, .k-input-value-text, .k-dateinput) {
|
||
border: 0 !important;
|
||
background: transparent !important;
|
||
color: inherit !important;
|
||
font-family: inherit !important;
|
||
font-size: inherit !important;
|
||
font-weight: 400 !important;
|
||
}
|
||
#{$mf} app-basic-from-control :is(.k-input, .k-picker) > .k-input-button {
|
||
border: 0 !important;
|
||
border-radius: 0 !important;
|
||
background: transparent !important;
|
||
color: var(--gh-muted) !important;
|
||
}
|
||
#{$mf} app-basic-from-control :is(.k-input, .k-picker) > .k-input-button:hover {
|
||
color: var(--gh-lk) !important;
|
||
background: var(--gh-sel) !important;
|
||
}
|
||
// Read-only and disabled
|
||
#{$mf} app-basic-from-control input.k-textbox[readonly],
|
||
#{$mf} app-basic-from-control :is(.k-input, .k-picker).k-disabled {
|
||
color: var(--gh-muted) !important;
|
||
opacity: .85;
|
||
}
|
||
// Checkbox field: checkbox and its label side by side on one line (clicking the label still
|
||
// toggles it — the label's for= points at the checkbox id)
|
||
#{$mf} app-basic-from-control > .row > div:has(input[type=checkbox]) {
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
min-height: var(--gh-h);
|
||
}
|
||
#{$mf} app-basic-from-control > .row > div:has(input[type=checkbox]) > div:not(.errorMessage) {
|
||
order: -1;
|
||
width: auto;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
#{$mf} app-basic-from-control > .row > div:has(input[type=checkbox]) > label {
|
||
cursor: pointer;
|
||
}
|
||
// Checkbox: its own size, not stretched to the field width
|
||
#{$mf} app-basic-from-control input[type=checkbox] {
|
||
width: 18px !important;
|
||
height: 18px;
|
||
margin: 0;
|
||
accent-color: var(--gh-btn);
|
||
cursor: pointer;
|
||
}
|
||
|
||
// Footer: buttons on the right (Close, then Save)
|
||
// "Name is required" is shown in brackets beside the label: (Name is required)
|
||
#{$mf} app-basic-from-control .errorMessage::before {
|
||
content: "(";
|
||
}
|
||
#{$mf} app-basic-from-control .errorMessage::after {
|
||
content: ")";
|
||
}
|
||
|
||
#{$mf} form > fieldset:last-of-type {
|
||
margin-top: 12px !important;
|
||
}
|
||
#{$mf} form > fieldset:last-of-type > .text-right {
|
||
float: none !important;
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
align-items: center;
|
||
gap: 8px;
|
||
font-size: 0; // drops the after Save
|
||
}
|
||
#{$mf} form > fieldset:last-of-type > .text-right > .k-button {
|
||
margin: 0 !important;
|
||
width: auto !important;
|
||
min-width: 96px;
|
||
font-size: var(--gh-fz);
|
||
}
|