/* For screens below 576px (xs): - Make the button full-width, display:block */ @media (max-width: 575.98px) { .btn-responsive { display: block; width: 100%; } } /* For screens 576px (sm) and above: - Revert to an inline style */ @media (min-width: 576px) { .btn-responsive { display: inline-block; width: auto; } } .drag-handle { cursor: grab !important; } .drag-handle:active { cursor: grabbing !important; } .star-toggle input { display: none; } .star-toggle i { cursor: pointer; font-size: 1.2rem; color: #adb5bd; } .star-toggle input:checked + i { color: #f1c40f; font-weight: 900; } .checkbox-column { width: 40px; min-width: 40px; text-align: center; } .checkbox-column .form-check { padding-left: 0; margin-bottom: 0; } .checkbox-column .form-check-input { /* BS5 uses float:left here where BS4 used position:absolute - without float:none the box ignores the cell's text-align and pins to the left */ float: none; position: static; margin: 0; vertical-align: middle; } /* --------------------------------------------------------------- AdminLTE 4 compatibility. v4 dropped .text-sm and the accent-* / navbar-* / sidebar-dark-* trio that ITFlow's 16 theme choices were built on. In v3 the theme colour drove the TOP NAVBAR, link colours and the active sidebar item - the sidebar itself was always dark. That is reproduced here. --------------------------------------------------------------- */ /* Font stack. v3 led with "Source Sans Pro" then -apple-system; v4/BS5 leads with "Source Sans 3" then system-ui. ITFlow loads neither webfont, so the two stacks fall through to different system fonts. Pinned to v3's. */ :root { --bs-font-sans-serif: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } /* The full .text-sm cascade. AdminLTE 3 shipped ~100 rules for this; these are the ones that actually set sizing, and without them the app renders a step larger everywhere than it used to. */ .text-sm { font-size: .875rem; } .text-sm .form-control, .text-sm .form-select, .text-sm .input-group-text, .text-sm table { font-size: .875rem; } .text-sm .btn, .text-sm .dropdown-menu { font-size: .875rem !important; } .text-sm .card-title { font-size: 1rem; } .text-sm .content-header h1, .text-sm .app-content-header h1 { font-size: 1.5rem; } .text-sm .brand-link { font-size: inherit; } /* Sidebar density. v3 tightened nav-link padding under .text-sm to .4rem .8rem; BS5's default is .5rem 1rem, which is what made the menu items taller. */ .text-sm .nav-link { padding: .4rem .8rem; } /* v3 nav-icon metrics - v4 switched these to a 1.5rem flex box */ .sidebar-menu .nav-icon { min-width: 1.6rem; max-width: 1.6rem; margin-left: .05rem; margin-right: .2rem; font-size: 1.2rem; } /* one accent per theme - v3 used the same hex for navbar, links and the active sidebar item */ /* black has no upstream token - AdminLTE calls its darkest neutral gray-dark (#343a40), which is a different colour */ .theme-black { --itflow-accent: #000000; } .theme-blue { --itflow-accent: var(--bs-blue, #007bff); } .theme-cyan { --itflow-accent: var(--bs-cyan, #17a2b8); } .theme-fuchsia { --itflow-accent: var(--bs-fuchsia, #f012be); } .theme-gray { --itflow-accent: var(--bs-gray, #6c757d); } .theme-green { --itflow-accent: var(--bs-green, #28a745); } .theme-indigo { --itflow-accent: var(--bs-indigo, #6610f2); } .theme-lightblue { --itflow-accent: var(--bs-lightblue, #3c8dbc); } .theme-maroon { --itflow-accent: var(--bs-maroon, #d81b60); } .theme-navy { --itflow-accent: var(--bs-navy, #001f3f); } .theme-olive { --itflow-accent: var(--bs-olive, #3d9970); } .theme-orange { --itflow-accent: var(--bs-orange, #fd7e14); } .theme-pink { --itflow-accent: var(--bs-pink, #e83e8c); } .theme-purple { --itflow-accent: var(--bs-purple, #6f42c1); } .theme-red { --itflow-accent: var(--bs-red, #dc3545); } .theme-teal { --itflow-accent: var(--bs-teal, #20c997); } .theme-yellow { --itflow-accent: var(--bs-yellow, #ffc107); } /* top navbar takes the theme colour */ .app-header.navbar { background-color: var(--itflow-accent, #007bff) !important; } /* Navbar height. v4 pairs .app-header{max-height:2.75rem} with 0.5rem of navbar padding, but the tallest children want 47-48px and overflow that 44px cap. Everything below is sized so it fits inside a 3rem bar - the .navbar-search field is ~33px and clears it without help. NOTE: .sidebar-brand is the matching half of this pair and is set to the same height further down - change both or they stop lining up. */ .app-header.navbar { --bs-navbar-padding-y: .4rem; min-height: 3rem; max-height: 3rem; } /* Every item stretches the full bar and centres its own contents, so icons, the avatar and the search box all sit on the same optical line regardless of their individual heights. */ .app-header .navbar-nav { align-items: stretch; } .app-header .navbar-nav > .nav-item { display: flex; align-items: center; } .app-header .navbar-nav .nav-link { display: flex; align-items: center; height: 100%; max-height: none; padding-top: 0; padding-bottom: 0; } /* v4 sizes the avatar 2rem with a -2px nudge, which is too tall for this bar */ .app-header .navbar-nav > .user-menu .user-image { width: 1.6rem; height: 1.6rem; margin-top: 0; } /* .navbar-badge positions itself (top:9px/right:5px) for a taller bar; the markup used to override that inline, which is why it drifted when the bar was tightened. Positioned against the flex-centred link instead. */ .app-header .navbar-badge { top: .15rem; right: .15rem; font-size: .65rem; } /* sidebar stays dark; only the ACTIVE item picks up the theme */ .app-sidebar .sidebar-menu > .nav-item > .nav-link.active, .app-sidebar .nav-treeview > .nav-item > .nav-link.active { background-color: var(--itflow-accent, #007bff); color: #fff; } /* Bootstrap 5's reboot underlines every link; Bootstrap 4 did not, and AdminLTE 3 additionally suppressed the hover underline. Restored so links read the way they did before the migration. */ a, a:hover, a:focus { text-decoration: none; } /* links and accented controls */ /* Tabs and pills. Bootstrap points inactive nav links at --bs-link-color and hardcodes --bs-nav-pills-link-active-bg to #0d6efd, so both states came out blue regardless of theme. Scoped to .nav-tabs/.nav-pills rather than .nav: .navbar-nav redefines these same variables for the top bar, and the sidebar is protected by its own higher-specificity rules. */ .nav-tabs, .nav-pills { /* inactive sits at 70% so the active state still reads as the highlight */ --bs-nav-link-color: color-mix(in srgb, var(--itflow-accent, #007bff) 70%, transparent); --bs-nav-link-hover-color: var(--itflow-accent, #007bff); } .nav-tabs { --bs-nav-tabs-link-active-color: var(--itflow-accent, #007bff); /* accent rule along the top edge marks the selected tab */ --bs-nav-tabs-link-active-border-color: var(--itflow-accent, #007bff) var(--bs-border-color) var(--bs-body-bg); } .nav-tabs .nav-link.active { font-weight: 600; } /* Pagination. Driving Bootstrap's own variables rather than overriding .page-link directly: a flat `.page-item .page-link{color:...}` ties with BS5's `.active>.page-link` and `.disabled>.page-link` on specificity and, because this sheet loads last, silently won both - so the active number was accent-on-accent (invisible) and disabled Prev/Next lost their muted grey. */ /* Bootstrap's generic focus ring (buttons, links, .btn-check labels) */ .form-check-input:checked { background-color: var(--itflow-accent, #007bff); border-color: var(--itflow-accent, #007bff); } /* sidebar is ALWAYS dark - v4 gives .app-sidebar no background at all. These are AdminLTE 3.2.0's [class*=sidebar-dark-] values verbatim. */ .app-sidebar { background-color: #343a40; } /* Sidebar header. v4 scopes its brand rules under .sidebar-brand, and its own defaults centre the brand in a fixed 2.75rem box. v3's .brand-link was a left-aligned block, and several of these headers carry a "Back | ..." line that is taller than that, so height is relaxed and alignment restored. */ .app-sidebar .sidebar-brand { /* v4 deliberately pairs .sidebar-brand{height:2.75rem} with .app-header{max-height:2.75rem} so the sidebar header lines up with the top bar. Both are set to 3rem above - change them together or they stop lining up. v4's .8125rem padding leaves too little room for the heading, so it is cut right down. */ height: 3rem; padding: .3rem .5rem; justify-content: flex-start; background-color: #343a40; border-bottom: 1px solid #4b545c; } .app-sidebar .sidebar-brand .brand-link { width: 100%; color: #fff; } .app-sidebar .sidebar-brand .brand-text { color: #fff; line-height: 1.2; } /* Bootstrap sizes .h1-.h4 responsively (e.g. .h4 is calc(1.275rem + .3vw)), so on a wide screen they outgrow the bar and v4's .sidebar-brand{overflow:hidden} clips them. Cap ONLY those - .h5 (1.25rem) and .h6 (1rem) are fixed and must keep their own size, or the "Back | ..." headers get blown up to h4. */ .app-sidebar .sidebar-brand .brand-text.h1, .app-sidebar .sidebar-brand .brand-text.h2, .app-sidebar .sidebar-brand .brand-text.h3, .app-sidebar .sidebar-brand .brand-text.h4, .app-sidebar .sidebar-brand h1.brand-text, .app-sidebar .sidebar-brand h2.brand-text, .app-sidebar .sidebar-brand h3.brand-text, .app-sidebar .sidebar-brand h4.brand-text { font-size: min(1.6rem, calc(1.275rem + .3vw)); } .app-sidebar .sidebar-menu .nav-link, .app-sidebar .nav-header { color: #c2c7d0; } .app-sidebar .sidebar-menu > .nav-item > .nav-link:focus, .app-sidebar .sidebar-menu > .nav-item:hover > .nav-link, .app-sidebar .sidebar-menu > .nav-item.menu-open > .nav-link { background-color: rgba(255, 255, 255, .1); color: #fff; } .app-sidebar .sidebar-menu > .nav-item > .nav-link.active { color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24); } .app-sidebar .nav-treeview { background-color: transparent; } /* --- Bootstrap 5 unpaired background utilities ------------------------- BS4 + AdminLTE 3 shipped `.bg-dark,.card.bg-dark .card-body{color:#fff}`. BS5 split the pair: .bg-* sets ONLY a background and you are expected to use .text-bg-* for the pairing. ITFlow uses bg-dark 303 times (every modal header, most card headers), so without this the header text is dark on dark and effectively invisible. Contrast choices below mirror Bootstrap's own .text-bg-* decisions. */ .bg-dark, .bg-primary, .bg-secondary, .bg-success, .bg-danger, .bg-purple { color: #fff; } .bg-info, .bg-warning, .bg-light, .bg-olive, .bg-pink { color: #000; } .card.bg-dark .card-body { color: #fff; } /* keep close buttons visible on the dark headers they sit in */ .bg-dark > .btn-close, .modal-header.bg-dark .btn-close { filter: var(--bs-btn-close-white-filter, invert(1) grayscale(100%) brightness(200%)); } /* --- dashboard small-box ------------------------------------------------ AdminLTE 4 dropped v3's watermark icon. 4.8.5 restored it, but under a new class name (.small-box-icon) that ITFlow's markup does not use - the boxes still carry v3's