fix: textarea autosize for LanguageTool
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dominik Pschenitschni 2024-07-19 13:40:58 +02:00 committed by konrad
parent bc5fd380e5
commit 7ef1e0a3e5

View File

@ -23,6 +23,15 @@
--body-overflow-y: auto;
}
// The LanguageTool browser plugin creates a custom element with shadow root for textareas.
// Since shadow root doesn't inherit styles, we have to set `box-sizing` to `border-box` instead of `inherit`.
// https://dev.to/konnorrogers/revisiting-box-sizing-best-practices-3del
*,
*::after,
*::before {
box-sizing: border-box;
}
body {
background: var(--site-background);
min-height: 100vh;