style: unify UI elements and improve light theme visibility

This commit is contained in:
2026-03-03 12:33:06 +00:00
parent dff8a2a0ab
commit b1cc8ab5a1
7 changed files with 150 additions and 144 deletions

View File

@@ -208,65 +208,13 @@ const generatePasswords = () => {
min-width: 140px;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
user-select: none;
.input-wrapper label {
color: var(--text-secondary);
font-weight: 500;
white-space: nowrap;
font-weight: 600;
margin-bottom: 0.2rem;
}
/* Custom Checkbox styles are now global in style.css */
/* Custom Checkbox */
.checkbox-label input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.checkmark {
position: relative;
height: 20px;
width: 20px;
background-color: var(--toggle-bg);
border: 1px solid var(--toggle-border);
border-radius: 4px;
transition: all 0.3s ease;
}
.checkbox-label:hover .checkmark {
border-color: var(--toggle-hover-border);
}
.checkbox-label input:checked ~ .checkmark {
background-color: var(--primary-accent);
border-color: var(--primary-accent);
box-shadow: 0 0 10px var(--primary-accent);
}
.checkmark:after {
content: "";
position: absolute;
display: none;
}
.checkbox-label input:checked ~ .checkmark:after {
display: block;
}
.checkbox-label .checkmark:after {
left: 6px;
top: 2px;
width: 5px;
height: 10px;
border: solid #000;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
/* Number Control */
.number-control {
@@ -288,7 +236,7 @@ const generatePasswords = () => {
height: auto;
min-height: 40px;
cursor: pointer;
transition: background 0.2s;
transition: all 0.2s;
padding: 0;
margin: 0;
display: flex;
@@ -300,6 +248,11 @@ const generatePasswords = () => {
background: var(--button-hover-bg);
}
:global(:root[data-theme="light"]) .control-btn:hover {
background: rgba(0, 0, 0, 0.1);
color: var(--primary-accent);
}
.number-input {
background: none;
border: none;