Fixing various CSS bugs, fixes #22

This commit is contained in:
Jean Viscogliosi-Pate 2025-01-25 22:13:56 -08:00
parent a7a749188e
commit ee8419d766
2 changed files with 35 additions and 36 deletions

View File

@ -8,8 +8,8 @@
--window-margin: 10px; --window-margin: 10px;
--window-width: 360px; /* Equal to width of add-ons panel */ --window-width: 360px; /* Equal to width of add-ons panel */
--window-height: 550px; /* Equal to hwightof add-ons panel */ --window-height: 515px; /* Equal to height add-ons panel */
--scrollbar-width: 5px; /*TODO make sure this is correct */ --scrollbar-width: 5px; /* Estimated! */
--toggle-margin-left: 15px; --toggle-margin-left: 15px;
--toggle-margin-right: 5px; --toggle-margin-right: 5px;
@ -29,14 +29,16 @@
--border-radius-section: .5rem; --border-radius-section: .5rem;
--border-radius-input: .5rem; --border-radius-input: .5rem;
--total-height-other: 297px; --total-height-other: 294px;
--total-height-also-li: 26px; --total-height-also-li: 26px;
--total-height-prompt: 33.5px;
} }
/* Light theme */ /* Light theme */
:root { :root {
--text-color: var(--color-l-gray-120); --text-color: var(--color-l-gray-120);
--desc-color: var(--color-l-gray-100); --desc-color: blue;
--desc-color: var(--color-l-gray-110);
--link-color: var(--color-l-gray-90); --link-color: var(--color-l-gray-90);
--icon-color: var(--color-l-gray-80); --icon-color: var(--color-l-gray-80);
@ -86,8 +88,8 @@
--desc-color: var(--color-d-gray-20); --desc-color: var(--color-d-gray-20);
--link-color: var(--color-d-gray-50); --link-color: var(--color-d-gray-50);
--icon-color: var(--color-d-gray-40); --icon-color: var(--color-d-gray-50);
--icon-color-hover: var(--color-d-gray-50); --icon-color-hover: var(--color-d-gray-40);
--border-color: var(--color-d-gray-90); --border-color: var(--color-d-gray-90);
--border-color-hover: var(--color-d-gray-80); --border-color-hover: var(--color-d-gray-80);
--scrollbar-color: var(--color-d-gray-90); --scrollbar-color: var(--color-d-gray-90);
@ -101,7 +103,7 @@
/* Text input */ /* Text input */
--text-input-background-color-focus: var(--color-d-gray-90); --text-input-background-color-focus: var(--color-d-gray-90);
--text-input-placeholder-color: var(--color-d-gray-70); --text-input-placeholder-color: var(--color-d-gray-50);
--text-input-background-color: var(--color-d-gray-100); --text-input-background-color: var(--color-d-gray-100);
/* Select */ /* Select */
@ -207,6 +209,7 @@ button:not(.delete):active > svg {
#site-details { #site-details {
min-width: 0; min-width: 0;
cursor: default;
} }
#site-details h1 { #site-details h1 {
@ -216,6 +219,10 @@ button:not(.delete):active > svg {
text-overflow: ellipsis; text-overflow: ellipsis;
} }
#site-details p {
color: var(--desc-color);
}
#state { #state {
color: var(--state-text-color-disabled); color: var(--state-text-color-disabled);
transition: var(--speed-slow); transition: var(--speed-slow);
@ -268,7 +275,6 @@ button:not(.delete):active > svg {
border-radius: var(--border-radius-input); border-radius: var(--border-radius-input);
font-size: var(--text-large); font-size: var(--text-large);
color: var(--text-color); color: var(--text-color);
gap: var(--spacer-medium);
outline: none; outline: none;
} }
@ -321,15 +327,8 @@ button:not(.delete):active > svg {
text-wrap: nowrap; text-wrap: nowrap;
gap: var(--spacer-small); gap: var(--spacer-small);
align-content: center; align-content: center;
} height: var(--total-height-prompt);
margin-bottom: var(--spacer-large);
#header-name {
margin-bottom: 17.25px;
}
#header-pov {
margin-top: 8px;
margin-bottom: 21.25px;
} }
/* Other pronouns */ /* Other pronouns */
@ -352,6 +351,7 @@ button:not(.delete):active > svg {
#other li label { #other li label {
font-size: var(--text-small); font-size: var(--text-small);
color: var(--desc-color);
text-align: right; text-align: right;
text-wrap: nowrap; text-wrap: nowrap;
} }
@ -365,6 +365,10 @@ button:not(.delete):active > svg {
width: min-content; width: min-content;
} }
#other-final {
margin-bottom: var(--spacer-large);
}
/* Also replacements */ /* Also replacements */
#also li { #also li {
@ -375,6 +379,10 @@ button:not(.delete):active > svg {
height: var(--total-height-also-li); height: var(--total-height-also-li);
} }
#also li label {
color: var(--desc-color);
}
.lhs { .lhs {
text-align: right; text-align: right;
} }
@ -398,6 +406,7 @@ button:not(.delete):active > svg {
.delete-disabled button { .delete-disabled button {
visibility: hidden; visibility: hidden;
scale: 0;
} }
@ -513,30 +522,18 @@ background-color: var(--button-background-color-active);
.hide { .hide {
height: 0 !important; height: 0 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
overflow: hidden !important; overflow: hidden !important;
opacity: 0 !important; opacity: 0 !important;
} }
.unhide-slow { .unhide-slow {
transition: transition:
height var(--speed-slow) ease-out, height var(--speed-slow) ease-out,
padding-top var(--speed-slow) ease-out, opacity var(--speed-slow) linear !important;
padding-bottom var(--speed-slow) ease-out,
margin-top var(--speed-slow) ease-out,
margin-bottom var(--speed-slow) ease-out,
opacity var(--speed-slow) linear !important;
} }
.unhide-fast { .unhide-fast {
transition: transition:
height var(--speed-fast) ease-out, height var(--speed-fast) ease-out,
padding-top var(--speed-fast) ease-out,
padding-bottom var(--speed-fast) ease-out,
margin-top var(--speed-fast) ease-out,
margin-bottom var(--speed-fast) ease-out,
opacity var(--speed-fast) linear !important; opacity var(--speed-fast) linear !important;
} }

View File

@ -22,14 +22,14 @@
<form id="options"> <form id="options">
<h2 class="visually-hidden">Name</h2> <h2 class="visually-hidden">Name</h2>
<div id="header-name" class="primary-prompt"> <div class="primary-prompt">
<label for="name">My name is</label> <label for="name">My name is</label>
<input type="text" id="name" name="name"> <input type="text" id="name" name="name">
</div> </div>
<h2 class="visually-hidden">Pronouns</h2> <h2 class="visually-hidden">Pronouns</h2>
<div id="header-preset" class="primary-prompt"> <div class="primary-prompt">
<label for="preset">My pronouns are</label> <label for="preset">My pronouns are</label>
<select id="preset" name="preset"> <select id="preset" name="preset">
<option value=""></option> <option value=""></option>
@ -86,7 +86,7 @@
<input type="text" id="child" name="child-noun" placeholder="e.g. boy, kid"> <input type="text" id="child" name="child-noun" placeholder="e.g. boy, kid">
</li> </li>
<li> <li id="other-final">
<label for="plurality">Conjugates</label> <label for="plurality">Conjugates</label>
<select id="plurality" name="conjugates"> <select id="plurality" name="conjugates">
<option value="singular">singular</option> <option value="singular">singular</option>
@ -97,7 +97,7 @@
<h2 class="visually-hidden">Perspective</h2> <h2 class="visually-hidden">Perspective</h2>
<div id="header-pov" class="primary-prompt"> <div class="primary-prompt">
<label for="pov">I prefer to read in</label> <label for="pov">I prefer to read in</label>
<select id="pov" name="pov"> <select id="pov" name="pov">
<option value=""></option> <option value=""></option>
@ -109,7 +109,9 @@
<h2 class="visually-hidden">Also replace</h2> <h2 class="visually-hidden">Also replace</h2>
<label id="header-also" for="lhs-1">I also want to replace...</label> <div class="primary-prompt">
<label for="lhs-1">I also want to replace...</label>
</div>
<ul id="also"></ul> <ul id="also"></ul>