text0Nly/main/styles.css
2025-06-16 02:12:57 +03:00

226 lines
3.7 KiB
CSS

:root {
--bg-color: #ffffff;
--text-color: #000000;
--input-bg: #f5f5f5;
--input-border: #dddddd;
--button-bg: #2196F3;
--button-color: #ffffff;
--link-color: #2196F3;
--error-color: #f44336;
--success-color: #4CAF50;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #1a1a1a;
--text-color: #ffffff;
--input-bg: #2d2d2d;
--input-border: #404040;
--button-bg: #1976D2;
--button-color: #ffffff;
--link-color: #64B5F6;
--error-color: #EF5350;
--success-color: #66BB6A;
}
}
body {
font-family: Arial, sans-serif;
max-width: 400px;
margin: 20px auto;
padding: 20px;
background-color: var(--bg-color);
color: var(--text-color);
}
.form-group {
margin: 10px 0;
}
input, textarea {
width: 100%;
padding: 8px;
margin: 5px 0;
background-color: var(--input-bg);
border: 1px solid var(--input-border);
color: var(--text-color);
border-radius: 4px;
}
textarea {
height: 100px;
resize: vertical;
}
button {
width: 100%;
padding: 10px;
background: var(--button-bg);
color: var(--button-color);
border: none;
cursor: pointer;
border-radius: 4px;
font-size: 16px;
}
button:hover {
opacity: 0.9;
}
.error {
color: var(--error-color);
margin: 10px 0;
padding: 10px;
border-radius: 4px;
background-color: rgba(244, 67, 54, 0.1);
}
.success {
color: var(--success-color);
margin: 10px 0;
padding: 10px;
border-radius: 4px;
background-color: rgba(76, 175, 80, 0.1);
}
a {
color: var(--link-color);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.message {
margin: 10px 0;
padding: 10px;
border-radius: 4px;
background-color: var(--input-bg);
}
.message-header {
display: flex;
justify-content: space-between;
margin-bottom: 5px;
font-size: 0.9em;
color: var(--text-color);
opacity: 0.8;
}
.message-content {
word-break: break-word;
}
.message-encrypted {
font-style: italic;
opacity: 0.8;
}
.message-signed {
font-style: italic;
opacity: 0.8;
}
.container {
max-width: 700px;
margin: 0 auto;
padding: 24px 12px 0 12px;
display: flex;
flex-direction: column;
min-height: 100vh;
}
.header {
margin-bottom: 18px;
}
.header h1 {
margin: 0 0 8px 0;
font-size: 2.2em;
font-weight: bold;
}
.header-buttons {
margin-bottom: 8px;
}
.header-buttons a {
margin-right: 16px;
color: #222;
text-decoration: underline;
font-size: 1em;
}
.messages-container {
flex: 1;
margin-bottom: 18px;
display: flex;
flex-direction: column;
gap: 10px;
}
.message {
display: flex;
flex-direction: column;
gap: 2px;
}
.username {
font-weight: 600;
margin-right: 8px;
}
.time {
color: #888;
font-size: 0.9em;
margin-left: 8px;
}
.encrypted {
color: #666;
font-size: 0.9em;
margin-left: 8px;
}
.signature {
color: #666;
font-size: 0.9em;
margin-top: 2px;
}
.form-container {
margin-top: 12px;
padding-top: 12px;
display: flex;
flex-direction: column;
gap: 8px;
}
input[type="text"], textarea {
width: 100%;
font-size: 1em;
padding: 6px;
margin-bottom: 4px;
border: 1px solid #ccc;
box-sizing: border-box;
}
button {
width: fit-content;
font-size: 1em;
padding: 6px 16px;
background: #fff;
color: #222;
border: 1px solid #ccc;
cursor: pointer;
}
.checkbox-wrapper {
display: flex;
align-items: center;
gap: 6px;
}
.api-info, .api-info pre, .modal, .modal-content, .close { display: none !important; }