Files
s41r4j-webtools/assets/css/cryptography.css
s41r4j 70c4398f1a fix: resolve zcrypt freezing with input debounce and align cryptography grid
refactor: remove only yes tool completely and update attachment test path
2026-03-14 18:56:52 +05:30

156 lines
2.7 KiB
CSS

.crypto-layout {
align-items: start;
}
.paper-form,
.output-panel {
display: flex;
flex-direction: column;
align-content: start;
height: 100%;
}
.field-stack {
display: flex;
flex-direction: column;
flex-grow: 1;
}
.input-container {
display: flex;
flex-direction: column;
width: 100%;
}
#inputText {
min-height: 8rem;
width: 100%;
box-sizing: border-box;
}
#inputSalt {
min-height: 4rem;
width: 100%;
box-sizing: border-box;
}
#inputSalt:disabled {
opacity: 0.55;
cursor: not-allowed;
background: rgba(24, 22, 18, 0.04);
}
body.night-mode #inputSalt:disabled {
background: rgba(255, 255, 255, 0.03);
}
#outputText {
min-height: 12rem;
width: 100%;
flex-grow: 1;
box-sizing: border-box;
background: rgba(24, 22, 18, 0.04);
}
body.night-mode #outputText {
background: rgba(255, 255, 255, 0.03);
}
.panel-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.privacy-control {
display: inline-flex;
align-items: center;
gap: 12px;
padding: 8px 14px;
border-radius: 999px;
border: 1px dashed var(--rule-strong);
color: var(--ink-soft);
}
.toggle-container {
position: relative;
width: 3.5rem;
height: 2rem;
flex: 0 0 auto;
}
.checkbox {
position: absolute;
opacity: 0;
pointer-events: none;
}
.toggle {
position: absolute;
inset: 0;
border-radius: 999px;
border: 1px solid var(--rule-strong);
background: rgba(24, 22, 18, 0.08);
cursor: pointer;
}
.toggle::before {
content: '';
position: absolute;
top: 3px;
left: 3px;
width: 1.4rem;
height: 1.4rem;
border-radius: 50%;
background: var(--paper-strong);
box-shadow: var(--button-shadow);
transition: transform 0.2s ease, background-color 0.2s ease;
}
body.night-mode .toggle {
background: rgba(255, 255, 255, 0.08);
}
#passwordToggle:checked + .toggle {
background: var(--accent-soft);
border-color: var(--accent);
}
#passwordToggle:checked + .toggle::before {
transform: translateX(1.45rem);
background: var(--accent);
}
.blurred,
.blurred::selection {
color: transparent;
text-shadow: 0 0 8px rgba(24, 22, 18, 0.55);
}
body.night-mode .blurred,
body.night-mode .blurred::selection {
text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}
.blurred::placeholder {
color: rgba(0, 0, 0, 0.2);
text-shadow: none;
}
body.night-mode .blurred::placeholder {
color: rgba(255, 255, 255, 0.22);
}
@media (max-width: 760px) {
.panel-toolbar {
flex-direction: column;
align-items: stretch;
}
.privacy-control {
justify-content: space-between;
}
}