diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-01-11 13:34:13 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-01-11 13:34:13 -0500 |
| commit | 6d51f8568e337e768505ccfdef916b84dd6eb1b3 (patch) | |
| tree | dec4545ccbe44c8e2baf6e633308359f40ac610a /ui/styles | |
| parent | d858fc8105cfe6333671426fe0e43302bceace92 (diff) | |
npm run format
Diffstat (limited to 'ui/styles')
| -rw-r--r-- | ui/styles/app-layout.css | 4 | ||||
| -rw-r--r-- | ui/styles/reset.css | 147 | ||||
| -rw-r--r-- | ui/styles/sidebar.css | 2 | ||||
| -rw-r--r-- | ui/styles/textarea.css | 2 | ||||
| -rw-r--r-- | ui/styles/variables.css | 18 |
5 files changed, 132 insertions, 41 deletions
diff --git a/ui/styles/app-layout.css b/ui/styles/app-layout.css index 50fa704..82d9914 100644 --- a/ui/styles/app-layout.css +++ b/ui/styles/app-layout.css @@ -36,7 +36,9 @@ nav.list-nav { overflow: auto; @media (width > 640px) { - height: calc(100vh - var(--app-bar-height) - var(--input-row-height) - var(--interface-padding)); + height: calc( + 100vh - var(--app-bar-height) - var(--input-row-height) - var(--interface-padding) + ); } } diff --git a/ui/styles/reset.css b/ui/styles/reset.css index e29c0f5..a3f7681 100644 --- a/ui/styles/reset.css +++ b/ui/styles/reset.css @@ -3,46 +3,127 @@ License: none (public domain) */ -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; +html, +body, +div, +span, +applet, +object, +iframe, +h1, +h2, +h3, +h4, +h5, +h6, +p, +blockquote, +pre, +a, +abbr, +acronym, +address, +big, +cite, +code, +del, +dfn, +em, +img, +ins, +kbd, +q, +s, +samp, +small, +strike, +strong, +sub, +sup, +tt, +var, +b, +u, +i, +center, +dl, +dt, +dd, +ol, +ul, +li, +fieldset, +form, +label, +legend, +table, +caption, +tbody, +tfoot, +thead, +tr, +th, +td, +article, +aside, +canvas, +details, +embed, +figure, +figcaption, +footer, +header, +hgroup, +menu, +nav, +output, +ruby, +section, +summary, +time, +mark, +audio, +video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +menu, +nav, +section { + display: block; } body { - line-height: 1; + line-height: 1; } -ol, ul { - list-style: none; +ol, +ul { + list-style: none; } -blockquote, q { - quotes: none; +blockquote, +q { + quotes: none; } -blockquote:before, blockquote:after, -q:before, q:after { - content: ''; - content: none; +blockquote:before, +blockquote:after, +q:before, +q:after { + content: ''; + content: none; } table { - border-collapse: collapse; - border-spacing: 0; + border-collapse: collapse; + border-spacing: 0; } diff --git a/ui/styles/sidebar.css b/ui/styles/sidebar.css index b31c4fd..5e5e16a 100644 --- a/ui/styles/sidebar.css +++ b/ui/styles/sidebar.css @@ -44,7 +44,7 @@ padding: 0.5rem; border-radius: 0.5rem 0 0 0.5rem; border: 1px solid var(--colour-input-border); - z-index: 1; /* Just to make the focus-active border go over the following button. */ + z-index: 1; /* Just to make the focus-active border go over the following button. */ flex-grow: 1; background-color: var(--colour-input-bg); color: var(--colour-input-text); diff --git a/ui/styles/textarea.css b/ui/styles/textarea.css index b45a66d..c38de46 100644 --- a/ui/styles/textarea.css +++ b/ui/styles/textarea.css @@ -10,7 +10,7 @@ padding: 0.5rem; border-radius: 0.5rem 0 0 0.5rem; border: 1px solid var(--colour-input-border); - z-index: 1; /* Just to make the focus-active border go over the following button. */ + z-index: 1; /* Just to make the focus-active border go over the following button. */ flex-grow: 1; background-color: var(--colour-input-bg); color: var(--colour-input-text); diff --git a/ui/styles/variables.css b/ui/styles/variables.css index fa51506..80817f3 100644 --- a/ui/styles/variables.css +++ b/ui/styles/variables.css @@ -8,9 +8,9 @@ --nav-width: 21rem; /* coloUrs */ - --colour-okay: #6A994E; - --colour-warn: #EBC3BE; - --colour-error: #DE5F55; + --colour-okay: #6a994e; + --colour-warn: #ebc3be; + --colour-error: #de5f55; /* I dunno, I liked this colour: */ --colour-base: rgb(121, 96, 159); @@ -43,9 +43,17 @@ /* MessageRun */ --colour-message-run-self-bg: color-mix(in srgb, var(--colour-base) 30%, white); - --colour-message-run-self-border: color-mix(in srgb, var(--colour-message-run-self-bg) 50%, black); + --colour-message-run-self-border: color-mix( + in srgb, + var(--colour-message-run-self-bg) 50%, + black + ); --colour-message-run-other-bg: color-mix(in srgb, var(--colour-base) 50%, white); - --colour-message-run-other-border: color-mix(in srgb, var(--colour-message-run-other-bg) 50%, black); + --colour-message-run-other-border: color-mix( + in srgb, + var(--colour-message-run-other-bg) 50%, + black + ); --colour-message-run-self-text: var(--dark-text); --colour-message-run-other-text: var(--dark-text); |
