chore(ui): add tailwind 4.3 and update classes (#1379)

This commit is contained in:
Alex
2026-05-19 06:43:10 +01:00
committed by GitHub
parent c926582e56
commit 398b1fa590
42 changed files with 463 additions and 194 deletions
+20 -7
View File
@@ -3,8 +3,8 @@
/*
* Document defaults.
*
* This file owns browser-level app defaults: root sizing, body canvas,
* baseline typography, links, scrollbars, and user preference handling.
* This file owns browser-level app defaults: body canvas, baseline typography,
* links, scrollbars, and user preference handling.
* Page structure belongs in page.scss; component styling belongs with the
* component.
*/
@@ -12,15 +12,11 @@
html {
--mobile-shell-active: 0;
height: 100%;
font-family: var(--font-family), "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
font-size: var(--font-size-root);
}
body {
min-height: 100%;
margin: 0;
padding: 0;
background-color: var(--surface-app);
color: var(--text-color);
font-family: var(--font-family), serif;
@@ -28,6 +24,17 @@ body {
-moz-osx-font-smoothing: grayscale;
}
picture,
canvas,
svg {
max-width: 100%;
height: auto;
}
picture {
display: block;
}
@media #{variables.$mobile-shell-media-query} {
html {
--mobile-shell-active: 1;
@@ -44,6 +51,11 @@ a {
text-decoration: none;
}
button,
[role="button"] {
cursor: pointer;
}
h1,
h2,
h3,
@@ -52,9 +64,9 @@ h5,
h6 {
margin: 1.5rem 0 1rem;
color: var(--high-contrast-text-color);
font-family: inherit;
font-weight: 500;
line-height: 1.2;
overflow-wrap: break-word;
&:first-child {
margin-top: 0;
@@ -89,6 +101,7 @@ p {
margin: 0 0 1rem;
color: var(--text-color);
line-height: 1.5;
overflow-wrap: break-word;
&:last-child {
margin-bottom: 0;
+1
View File
@@ -0,0 +1 @@
$compat-layer-initialized: true;
-82
View File
@@ -1,82 +0,0 @@
/* Base CSS Reset (replaces Tailwind 3 Preflight) */
*,
*::before,
*::after {
box-sizing: border-box;
border-width: 0;
border-style: solid;
}
* {
margin: 0;
padding: 0;
}
html {
line-height: 1.5;
text-size-adjust: 100%;
tab-size: 4;
height: 100%;
}
body {
line-height: inherit;
height: 100%;
min-height: 100%;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
height: auto;
}
input,
button,
textarea,
select {
font: inherit;
color: inherit;
}
button,
[role="button"] {
cursor: pointer;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
a {
color: inherit;
text-decoration: inherit;
}
ol,
ul,
menu {
list-style: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
hr {
height: 0;
color: inherit;
border-top-width: 1px;
}
+4
View File
@@ -0,0 +1,4 @@
@import "tailwindcss";
@source not "../embedpdf-frame.html";
@source not "../../app/features/readers/pdf-reader/services/embedpdf-book.service.ts";
@@ -5,10 +5,6 @@
* Prefer component styles for feature-specific layout or presentation.
*/
.hidden {
display: none;
}
.surface-app,
.surface-page,
.surface-card {