style: standardize UI across tools, optimize QR layout, and configure Husky/ESLint

This commit is contained in:
2026-03-03 13:39:56 +00:00
parent b1cc8ab5a1
commit c5293ca9fe
13 changed files with 1220 additions and 582 deletions

View File

@@ -74,9 +74,9 @@ const generatePasswords = () => {
<div class="tool-container full-width">
<div class="tool-panel">
<div class="panel-header">
<h2 class="tool-title">Bulk Passwords Generator</h2>
<div class="action-area desktop-only">
<button class="btn-neon generate-btn" @click="generatePasswords" v-ripple>
<h2 class="tool-title">Passwords Generator</h2>
<div class="header-actions">
<button class="btn-neon generate-btn desktop-only" @click="generatePasswords" v-ripple>
Generate
</button>
</div>
@@ -149,32 +149,12 @@ const generatePasswords = () => {
</template>
<style scoped>
.tool-container.full-width {
max-width: 100%;
.tool-container {
height: 100%;
display: flex;
flex-direction: column;
}
.tool-panel {
display: flex;
flex-direction: column;
height: 100%;
gap: 1.5rem;
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}
.tool-title {
margin: 0;
}
.options-grid {
display: flex;
flex-wrap: wrap;
@@ -209,65 +189,10 @@ const generatePasswords = () => {
}
.input-wrapper label {
color: var(--text-secondary);
color: var(--text-color);
font-weight: 600;
margin-bottom: 0.2rem;
}
/* Custom Checkbox styles are now global in style.css */
/* Number Control */
.number-control {
display: flex;
align-items: stretch;
background: var(--toggle-bg);
border: 1px solid var(--toggle-border);
border-radius: 8px;
overflow: hidden;
gap: 0;
}
.control-btn {
background: none;
border: none;
color: var(--text-color);
font-size: 1.2rem;
width: 40px;
height: auto;
min-height: 40px;
cursor: pointer;
transition: all 0.2s;
padding: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
}
.control-btn:hover {
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;
color: var(--text-color);
width: 100%;
flex: 1;
text-align: center;
font-size: 1rem;
font-weight: bold;
appearance: textfield;
-moz-appearance: textfield;
height: 100%;
border-radius: 0;
min-width: 60px;
}
.number-input:focus {
outline: none;
@@ -275,12 +200,6 @@ const generatePasswords = () => {
background: rgba(0, 0, 0, 0.05);
}
.number-input::-webkit-outer-spin-button,
.number-input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.result-area {
flex: 1;
display: flex;
@@ -288,25 +207,7 @@ const generatePasswords = () => {
min-height: 200px;
}
.tool-textarea {
width: 100%;
height: 100%;
padding: 1rem;
border-radius: 12px;
border: 1px solid var(--glass-border);
background: var(--glass-bg);
color: var(--text-color);
font-family: monospace;
font-size: 0.9rem;
resize: none;
outline: none;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.generate-btn {
padding: 0.75rem 2rem;
font-size: 1rem;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 1px;
}