Messed around with radio buttons / groups, checkboxes and 'Group Boxes'.

This commit is contained in:
2024-02-08 01:39:49 -06:00
parent 0f40237e87
commit 6a157c5f1b
+38 -4
View File
@@ -4,6 +4,9 @@
<!--Low contrast theme--> <!--Low contrast theme-->
<style> <style>
:root { :root {
/*Fallback is a thing with the var() function
https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties#defining_fallbacks_in_the_var_function
*/
--main-bg-color: #adadad; --main-bg-color: #adadad;
--alt-bg-color: #e6e6e6; --alt-bg-color: #e6e6e6;
--main-font-color: #134e13; --main-font-color: #134e13;
@@ -39,17 +42,27 @@
</style> </style>
<!--End themes--> <!--End themes-->
<style> <style>
:root {
--default-font-size: 16px;
--default-spacing: 10px;
}
body { body {
line-height: 1.5; line-height: 1.5;
} }
p, h1, h2, h3, h4, h5, textarea, input { p, h1, h2, h3, h4, h5, textarea, input, fieldset {
margin: 10px; margin: var(--default-spacing);
}
legend {
padding: 5px;
font-size: 18px;
font-weight: bold;
} }
textarea, input { textarea, input {
padding: 10px; padding: var(--default-spacing);
font-size: 16px; font-size: var(--default-font-size);
} }
.flex { .flex {
@@ -153,6 +166,27 @@
</aside> </aside>
<footer> <footer>
<h2>Copyrights crusading like a mad man for that shit</h2> <h2>Copyrights crusading like a mad man for that shit</h2>
<label>
<input type="checkbox" checked="checked">
<span class="checkmark">One</span>
</label>
<fieldset>
<legend>A radio button group, with a "name" property set</legend>
<!--TODO: How well does this setup work with accessibility tech?-->
<!--A radio button group, not the "name" property-->
<label>
<input type="radio" name="radio">
<span class="checkmark">No relations</span>
</label>
<label>
<input type="radio" name="radio">
<span class="checkmark">Uncle Rucuks</span>
</label>
<label>
<input type="radio" name="radio">
<span class="checkmark">The real Uncle Ruckus</span>
</label>
</fieldset>
</footer> </footer>
</div> </div>
<!--<div class="main-layout"> <!--<div class="main-layout">