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

229 lines
3.5 KiB
CSS

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
margin: 0;
padding: 0;
background: #fff;
color: #222;
min-height: 100vh;
display: flex;
flex-direction: column;
}
.container {
max-width: 700px;
margin: 0 auto;
padding: 0;
flex: 1;
width: 100%;
box-sizing: border-box;
display: flex;
flex-direction: column;
height: 100vh;
}
.header {
padding: 12px;
background: #fff;
border-bottom: 1px solid #eee;
flex-shrink: 0;
}
.header h1 {
margin: 0 0 8px 0;
font-size: 2.2em;
font-weight: bold;
}
.header-buttons {
margin-bottom: 8px;
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.header-buttons a {
color: #222;
text-decoration: underline;
font-size: 1em;
}
.chat-container {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
padding: 12px;
}
.messages-container {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 10px;
padding-bottom: 12px;
}
.message {
display: flex;
flex-direction: column;
gap: 2px;
padding: 12px;
border-radius: 8px;
background: #f8f9fa;
}
.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;
}
.message-bar {
background: #fff;
padding: 12px;
border-top: 1px solid #eee;
box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
flex-shrink: 0;
}
.message-form {
display: flex;
flex-direction: column;
gap: 8px;
}
.message-inputs {
display: flex;
gap: 8px;
}
.message-inputs input[type="text"] {
width: 150px;
flex-shrink: 0;
}
.message-inputs textarea {
flex: 1;
min-height: 40px;
resize: none;
}
.message-options {
display: flex;
gap: 8px;
align-items: center;
flex-wrap: wrap;
}
.signature-input {
flex: 1;
min-height: 40px;
resize: none;
}
input[type="text"], textarea {
font-size: 1em;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box;
}
button {
font-size: 1em;
padding: 8px 16px;
background: #222;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background: #444;
}
.checkbox-wrapper {
display: flex;
align-items: center;
gap: 6px;
}
.delete-btn {
background: none;
color: #dc3545;
padding: 0;
font-size: 0.9em;
}
.delete-btn:hover {
background: none;
text-decoration: underline;
}
.error {
color: #dc3545;
margin-bottom: 10px;
padding: 8px;
background: #fff;
border-radius: 4px;
border: 1px solid #dc3545;
}
.api-info, .api-info pre, .modal, .modal-content, .close { display: none !important; }
@media (max-width: 600px) {
.message-inputs {
flex-direction: column;
}
.message-inputs input[type="text"] {
width: 100%;
}
.message-options {
flex-direction: column;
align-items: stretch;
}
.signature-input {
width: 100%;
}
.header-buttons {
flex-direction: column;
align-items: flex-start;
}
.container {
padding: 0;
}
.message {
padding: 8px;
}
.chat-container {
padding: 8px;
}
}