86 lines
2.5 KiB
CSS
86 lines
2.5 KiB
CSS
@import "tailwindcss";
|
|
@import "./_base.css" layer(base);
|
|
@import "./_components.css" layer(components);
|
|
|
|
@plugin "@tailwindcss/forms";
|
|
|
|
@source inline("rotate-90");
|
|
|
|
/*
|
|
* Corporate design of the internal E&P tools, as defined by the apps portal (Gitea EP/apps,
|
|
* frontend/app/globals.css) and ported to Symfony by epbms: Lato, deep blue as the brand colour,
|
|
* magenta only for the main action, square shapes, light blue page.
|
|
* Status colours (green, red, amber) always come with text, never alone.
|
|
*/
|
|
@theme {
|
|
--font-sans: Lato, sans-serif;
|
|
--font-weight-semibold: 700;
|
|
--font-weight-bold: 900;
|
|
|
|
/* square everywhere; rounded-full stays round. Plain `rounded` reads --radius. */
|
|
--radius: 0px;
|
|
--radius-xs: 0px;
|
|
--radius-sm: 0px;
|
|
--radius-md: 0px;
|
|
--radius-lg: 0px;
|
|
--radius-xl: 0px;
|
|
--radius-2xl: 0px;
|
|
--radius-3xl: 0px;
|
|
--radius-4xl: 0px;
|
|
|
|
--color-brand: #18527b; /* E&P deep blue, 8.5:1 on white */
|
|
--color-brand-dark: #103c5b;
|
|
--color-brand-mid: #165883;
|
|
--color-brand-bright: #009fff; /* underlines and focus, never text */
|
|
--color-brand-light: #e3eef8;
|
|
|
|
--color-page: #ebf3fa; /* page background */
|
|
--color-line: #d8e3ed; /* borders */
|
|
--color-ink: #27272a; /* text */
|
|
--color-muted: #52525b; /* secondary text, 7.7:1 on white */
|
|
|
|
--color-accent: #c4097c; /* magenta of the main action */
|
|
--color-accent-from: #960167;
|
|
--color-accent-to: #fa1a8c;
|
|
|
|
/* the colour name the templates were written with, now on the brand colour */
|
|
--color-primary: var(--color-brand);
|
|
}
|
|
|
|
/*
|
|
* Tailwind 3 defaults that Tailwind 4 changed: borders were gray-200 instead of currentColor,
|
|
* and buttons had a pointer cursor.
|
|
*/
|
|
@layer base {
|
|
*,
|
|
::after,
|
|
::before,
|
|
::backdrop,
|
|
::file-selector-button {
|
|
border-color: var(--color-line, currentcolor);
|
|
}
|
|
|
|
button:not(:disabled),
|
|
[role="button"]:not(:disabled) {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Thin scrollbars without a track for inner scrolling areas. The page scrollbar takes its
|
|
* style from <html>, which body * leaves out. Firefox and Chrome/Edge 121+ honour these;
|
|
* Safari keeps its own overlay scrollbars.
|
|
*/
|
|
@layer base {
|
|
body * {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--color-gray-300) transparent;
|
|
}
|
|
|
|
/* visible keyboard focus everywhere (WCAG 2.4.7) */
|
|
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
|
|
outline: 3px solid var(--color-brand-bright);
|
|
outline-offset: 2px;
|
|
}
|
|
}
|