diff --git a/css/sustainable.css b/css/sustainable.css index 7b94f63..08c820e 100644 --- a/css/sustainable.css +++ b/css/sustainable.css @@ -1,15 +1,15 @@ /*! - * Sustainable CSS v0.0.5 (https://github.com/pdelboca/sustainable-css/) + * Sustainable CSS v0.0.6 (https://github.com/pdelboca/sustainable-css/) * Copyright 2023 - Licensed under MIT * * Sustainable CSS reuses system colors: * https://drafts.csswg.org/css-color-4/#css-system-colors */ -:root { + :root { color-scheme: light dark; font-family: sans-serif; - --theme-color: rgba(0, 119, 204); + --color-10: rgba(0, 119, 204); --max-width: 800px; } @@ -37,11 +37,15 @@ fieldset, input, select, textarea, button { padding: .5em; } +button { + border-width: 1px; +} + fieldset, input:not([type=submit]), select, textarea { border: 1px solid; } -button, input[type=submit], input[type=reset] { +input[type=submit], input[type=reset] { cursor: pointer; } @@ -60,17 +64,31 @@ details > summary { } /* Branding and colors */ -h1, h2, h3, h4, h5, h6 { - color: var(--theme-color); -} a { - color: canvastext; + color: inherit; + text-decoration-color: var(--color-10); } + a:hover { font-weight: bold; } + input { - accent-color: var(--theme-color); + accent-color: var(--color-10); +} + +input[type=submit], input[type=reset] { + background-color: var(--color-10); + color: canvas; +} + +fieldset { + border-color: var(--color-10); +} + +mark { + background-color: var(--color-10); + color: canvas; } /* Article */ diff --git a/demo.html b/demo.html index 214ac57..4e33c96 100644 --- a/demo.html +++ b/demo.html @@ -6,6 +6,11 @@
I just added cursor: pointer;
to the summary element. Good enough.
I just added cursor: pointer;
to the summary element, good enough.
@@ -49,7 +57,7 @@
- The following form is just 10 lines of CSS. Good enough. + The following form is just 10 lines of CSS, good enough.