style: unify UI elements and improve light theme visibility
This commit is contained in:
@@ -89,6 +89,11 @@ defineProps({
|
||||
color: var(--text-strong);
|
||||
}
|
||||
|
||||
:global(:root[data-theme="light"]) .nav-item:hover {
|
||||
background-color: rgba(15, 23, 42, 0.1);
|
||||
color: var(--text-strong);
|
||||
}
|
||||
|
||||
.nav-item.router-link-active {
|
||||
color: var(--primary-accent);
|
||||
background-color: var(--toggle-bg);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -195,23 +195,9 @@ const triggerDownload = (blob, filename) => {
|
||||
}
|
||||
|
||||
.tool-textarea {
|
||||
width: 100%;
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid var(--glass-border);
|
||||
color: var(--text-color);
|
||||
font-size: 1rem;
|
||||
resize: vertical;
|
||||
min-height: 80px;
|
||||
}
|
||||
|
||||
.tool-textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary-accent);
|
||||
box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.1);
|
||||
}
|
||||
|
||||
.controls-section {
|
||||
display: flex;
|
||||
gap: 1.5rem;
|
||||
@@ -232,12 +218,7 @@ const triggerDownload = (blob, filename) => {
|
||||
}
|
||||
|
||||
.select-input {
|
||||
padding: 0.5rem;
|
||||
border-radius: 6px;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid var(--glass-border);
|
||||
color: var(--text-color);
|
||||
min-width: 120px;
|
||||
min-width: 140px;
|
||||
}
|
||||
|
||||
.preview-section {
|
||||
|
||||
@@ -122,7 +122,7 @@ onUnmounted(() => {
|
||||
<textarea
|
||||
v-model="inputUrl"
|
||||
placeholder="Paste URL(s) here to clean..."
|
||||
class="url-input"
|
||||
class="tool-textarea url-input"
|
||||
@keydown.enter.prevent="handleClean"
|
||||
rows="1"
|
||||
></textarea>
|
||||
@@ -269,24 +269,10 @@ onUnmounted(() => {
|
||||
|
||||
.url-input {
|
||||
flex: 1;
|
||||
padding: 0.8rem 1rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--toggle-border);
|
||||
background: var(--toggle-bg);
|
||||
color: var(--text-color);
|
||||
font-size: 1rem;
|
||||
outline: none;
|
||||
transition: all 0.2s;
|
||||
resize: vertical;
|
||||
min-height: 46px;
|
||||
min-height: 120px;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.url-input:focus {
|
||||
border-color: var(--primary-accent);
|
||||
box-shadow: 0 0 0 2px rgba(var(--primary-accent-rgb), 0.2);
|
||||
}
|
||||
|
||||
.watch-toggle {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
|
||||
@@ -303,7 +303,7 @@ const resetToDefault = (ruleId) => {
|
||||
}
|
||||
|
||||
:global(:root[data-theme="light"]) .modal-overlay {
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
@@ -322,10 +322,7 @@ const resetToDefault = (ruleId) => {
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
:global(:root[data-theme="light"]) .modal-content {
|
||||
background: rgba(255, 255, 255, 0.98);
|
||||
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
|
||||
.modal-header {
|
||||
padding: 1.5rem;
|
||||
|
||||
@@ -127,19 +127,23 @@ onUnmounted(() => {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
:global(:root[data-theme="light"]) .modal-overlay {
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 16px;
|
||||
padding: 2.5rem; /* Większy padding */
|
||||
padding: 2.5rem;
|
||||
max-width: 500px;
|
||||
width: 90%;
|
||||
position: relative;
|
||||
box-shadow: var(--glass-shadow);
|
||||
text-align: center;
|
||||
color: var(--text-color); /* Wymuś kolor tekstu */
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
|
||||
Reference in New Issue
Block a user