Skip to content

Commit

Permalink
no more .always
Browse files Browse the repository at this point in the history
  • Loading branch information
mi2ebi committed Dec 17, 2023
1 parent 1d8f1c9 commit aa3dc97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ <h1>la xlasisku</h1>
</span>
</p>
<div id="fakebox">
<label class="always" id="before" for="search"><wbr /></label>
<label id="before" for="search"><wbr /></label>
<input type="text" id="search" name="search" autocomplete="off" spellcheck="false" placeholder="loading" disabled size="1" />
<label class="always" id="after" for="search"><wbr /></label>
<span class="always" id="clear-wrap">&nbsp;<button class="always" id="clear">×</button></span>
<label id="after" for="search"><wbr /></label>
<span id="clear-wrap">&nbsp;<button id="clear">×</button></span>
</div>
<div id="info"></div>
<div id="length"></div>
Expand Down
6 changes: 3 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ body {
#search:disabled::placeholder {
color: rgba(var(--fg), var(--op-8));
}
.always {
#fakebox :not(input) {
color: rgba(var(--fg), var(--op-c));
padding: 0;
}
Expand All @@ -144,7 +144,7 @@ body {
display: inline;
}
#clear {
color: rgb(var(--err));
color: rgb(var(--err)) !important;
}
/* lujvo things / regex errors */
#info {
Expand Down Expand Up @@ -261,7 +261,7 @@ math {
hr {
border: 1px solid rgb(var(--fg));
}
:not(input, hr, br, .always):empty {
:not(hr, br, #fakebox *):empty {
display: none;
}
h1, h1 + p {
Expand Down

0 comments on commit aa3dc97

Please sign in to comment.