From 2ebc2aaf45e399e3481efe4a1ca9304026bda513 Mon Sep 17 00:00:00 2001 From: nekosoffy <161766793+nekosoffy@users.noreply.github.com> Date: Tue, 3 Sep 2024 11:38:55 -0300 Subject: [PATCH] Add requirement indicators on labels --- index.html | 19 +++++++++++-------- styles.css | 13 +++++++++++-- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index e02b8ce..f25af1e 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,7 @@
-

+

We're thrilled you're interested in joining our community of cheese enthusiasts. At Cheese Inc., we believe in celebrating exceptional flavors and quality craftsmanship. By signing up, you'll gain access to exclusive offers, the latest cheese news, and much more. @@ -29,26 +29,29 @@

Sign up now to get started.

-

Let's do this!

+

Let's do this!

+

All fields are required and thus followed by + * +

- + - + - +
- + - + - +
diff --git a/styles.css b/styles.css index 526f66b..e946c84 100644 --- a/styles.css +++ b/styles.css @@ -120,6 +120,7 @@ p, h1, h2, h3, h4, h5, h6 { #main > div:first-child { color: rgb(14, 14, 14); + font-size: min(2vw, 25rem); } #main > div:nth-child(2) { @@ -129,15 +130,19 @@ p, h1, h2, h3, h4, h5, h6 { padding-top: 1vw; } -#main p { +#form-call-text { font-size: min(2vw, 25rem); - width: 80%; } p + p, #main div:last-of-type > p { margin-top: var(--paragraph-spacing); } +#required-notice { + font-size: min(2vw, 10rem); + color: rgba(14, 14, 14); +} + label { display: block; text-transform: uppercase; @@ -146,6 +151,10 @@ label { margin-top: 2vw; } +#form > div > label:first-of-type { + margin-top: 1vw; +} + input { width: 20vw; margin-top: 2px;