-
+
-
+
-
+
-
+
-
+
diff --git a/style.css b/style.css
index 4a29c4c..a9e420e 100644
--- a/style.css
+++ b/style.css
@@ -1,65 +1,59 @@
:root {
font-family: system-ui, sans-serif;
font-size: 100%;
+ accent-color: #003781;
+}
+
+@supports (font: -apple-system-body) {
+ body {
+ font: -apple-system-body;
+ font-family: system-ui, sans-serif;
+ }
}
/* = = = = = = = = = = VARIABLES: Colours = = = = = = = = = =*/
:root {
- --color-bg-01: hsl(359,0%,90%);
- --color-bg-02: hsl(359,0%,80%);
- --color-text: hsl(359,0%,20%);
- --color-link: hsl(359,0%,40%);
- --color-focus: hsl(359,10%,90%);
+ --color-bg-01: #f5f5f5;
+ --color-bg-02: #e8e8e8;
+ --color-text: #111111;
+ --color-link: #003781;
+ --color-focus: hsl(220, 80%, 35%);
}
-
@media (prefers-color-scheme: dark) {
-
:root {
- --color-bg-01: hsl(359,0%,20%);
- --color-bg-02: hsl(359,0%,25%);
- --color-text: hsl(359,0%,90%);
- --color-link: hsl(359,0%,70%);
- --color-focus: hsl(359,10%,40%);
+ --color-bg-01: #1a1a1a;
+ --color-bg-02: #242424;
+ --color-text: #f0f0f0;
+ --color-link: #7ab3e8;
+ --color-focus: hsl(220, 80%, 70%);
}
-
}
@media (forced-colors) {
-
:root {
- --color-bg-01: Canvas;
- --color-bg-02: Canvas;
- --color-text: CanvasText;
- --color-link: LinkText;
+ --color-bg-01: Canvas;
+ --color-bg-02: Canvas;
+ --color-text: CanvasText;
+ --color-link: LinkText;
--color-text--disabled: GrayText;
}
-
}
-/* Display-P3 color, when supported. https://webkit.org/blog/10042/wide-gamut-color-in-css-with-display-p3/ */
-@supports (color: color(display-p3 1 1 1)) {
- :root {
- --bright-green: color(display-p3 0 1 0);
- }
-}
-
-@media (color-gamut: p3) {
- /* Do colorful stuff. */
-}
body {
background-color: var(--color-bg-01);
color: var(--color-text);
+ padding-inline: 1rem;
}
a {
color: var(--color-link);
}
-/* F O R M B A S I C S T Y L E S */
-label { }
+
+/* F O R M B A S I C S T Y L E S */
.form-field-wrapper {
margin-bottom: .5rem;
@@ -70,20 +64,18 @@ label { }
}
@media (prefers-color-scheme: dark) {
- :focus {
+ :focus-visible {
outline-color: var(--color-focus);
}
-
+
img {
opacity: .75;
transition: opacity .5s ease-in-out;
}
- img:hover {
- opacity: 1;
- }
+ img:hover {
+ opacity: 1;
+ }
- fieldset {}
-
input,
textarea,
select {
@@ -93,36 +85,56 @@ label { }
border: 1px solid var(--color-text); /* fix Safari Datetime */
}
- * :disabled {
+ *:disabled {
opacity: .2;
}
}
+
+/* N A V I G A T I O N */
+
+nav details summary {
+ cursor: pointer;
+ font-size: smaller;
+ padding: .25rem 0;
+}
+
+nav details ol {
+ list-style: none;
+ padding: 0;
+ margin: .25rem 0 0;
+ display: flex;
+ flex-wrap: wrap;
+ gap: .25rem .75rem;
+ font-size: smaller;
+}
+
+
/* L A Y O U T */
@media (min-width: 900px) {
- .grid-wrapper {
- display: grid;
- grid-template-columns: repeat(5, 1fr);
- grid-template-rows: 1fr;
- margin: 0 0 1rem;
+ .grid-wrapper {
+ display: grid;
+ grid-template-columns: repeat(5, 1fr);
+ grid-template-rows: 1fr;
+ gap: 1rem;
+ margin: 0 0 1rem;
}
}
-.grid-item-wrapper {}
-body.design-01 {}
-body.design-01 label { }
+/* D E S I G N T I E R S */
body.design-01 input,
body.design-01 textarea,
-body.design-01 select {
- font-size: 100%;
- }
-
+body.design-01 select,
+body.design-01 button {
+ font-size: 100%;
+ font-family: inherit;
+}
body.design-02 label {
display: inline-block;
width: 12rem;
font-size: 100%;
-}
\ No newline at end of file
+}
From 444cca642bfd39da37c8cae2f352cdd290c830fb Mon Sep 17 00:00:00 2001
From: Claude
Date: Mon, 20 Apr 2026 06:10:02 +0000
Subject: [PATCH 3/3] Medium-priority improvements: design tier, new input
types, cleanup
Minimal Design tier (design-02):
- Consolidate two '(tbd)' checkboxes into one 'Minimal Design' checkbox
- Implement full Allianz Blue (#003781) styling: border, border-radius,
padding, focus outline using var(--color-link) so dark mode adapts
- Button/submit/reset get blue background with accessible contrast
New form element sections (10 added, all with 5-state grid):
- Email, Telephone, URL, Number, Search, Date, Time
- Color (required + read-only marked 'Not available')
- File (pre-filled + read-only marked 'Not available')
- Buttons: comparison of button vs input[type=submit/reset] across
default and disabled states using 5-column grid
Indeterminate checkbox:
- New 'Indeterminate' variant in Checkbox Group section
- Set via JS (el.indeterminate = true); cannot be done in HTML
Cleanup:
- Remove
+
+