pelmeni-shield-vpn/site/static/style.css

341 lines
6.2 KiB
CSS

/* ========================================================
Клуб Любителей ЖПЧХ (Основан на Волге, 2012)
Канонический текстовый интерфейс
======================================================== */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #f4f4f4;
color: #222222;
font-family: "Courier New", Consolas, Monaco, "Lucida Console", monospace;
font-size: 14px;
line-height: 1.5;
padding: 10px;
}
.wrapper {
max-width: 1050px;
margin: 0 auto;
background: #ffffff;
border: 1px solid #707680;
box-shadow: none;
}
/* Header */
header {
background: #ece9d8;
border-bottom: 2px solid #707680;
padding: 12px 16px;
}
.header-top {
display: flex;
justify-content: space-between;
align-items: baseline;
flex-wrap: wrap;
gap: 10px;
}
.site-title {
font-size: 20px;
font-weight: bold;
color: #000000;
text-decoration: none;
letter-spacing: -0.5px;
}
.site-tagline {
font-size: 12px;
color: #555555;
margin-top: 4px;
}
.user-panel {
font-size: 13px;
background: #ffffff;
border: 1px solid #999999;
padding: 4px 8px;
}
/* Navigation bar */
nav {
background: #e0ded0;
border-bottom: 1px solid #707680;
padding: 6px 16px;
font-size: 13px;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
nav a {
color: #0000cc;
text-decoration: none;
padding: 2px 6px;
}
nav a:hover {
background: #ffffff;
text-decoration: underline;
}
nav a.active {
font-weight: bold;
color: #000000;
background: #ffffff;
border: 1px solid #999999;
}
/* Content area */
main {
padding: 16px;
min-height: 500px;
}
/* Flash alerts */
.alert {
padding: 8px 12px;
margin-bottom: 14px;
border: 1px solid #707680;
font-size: 13px;
}
.alert-success { background: #e6f4ea; border-color: #5bb974; color: #137333; }
.alert-warning { background: #fef7e0; border-color: #f9ab00; color: #b06000; }
.alert-danger { background: #fce8e6; border-color: #ee675c; color: #c5221f; }
.alert-info { background: #e8f0fe; border-color: #669df6; color: #1a73e8; }
/* Typography */
h1 { font-size: 18px; border-bottom: 1px solid #cccccc; padding-bottom: 6px; margin-bottom: 14px; }
h2 { font-size: 16px; border-bottom: 1px solid #e0e0e0; padding-bottom: 4px; margin: 16px 0 10px 0; }
h3 { font-size: 14px; margin: 12px 0 6px 0; }
p { margin-bottom: 10px; text-align: justify; }
a { color: #0000cc; text-decoration: underline; }
a:hover { color: #cc0000; }
/* Tables */
table.table-forum {
width: 100%;
border-collapse: collapse;
border: 1px solid #707680;
margin: 12px 0 20px 0;
font-size: 13px;
}
table.table-forum th {
background: #ece9d8;
border: 1px solid #707680;
padding: 6px 8px;
text-align: left;
font-weight: bold;
}
table.table-forum td {
border: 1px solid #d0d0d0;
padding: 6px 8px;
vertical-align: top;
}
table.table-forum tr:hover td {
background: #fafafa;
}
.table-stats {
width: 100%;
border-collapse: collapse;
border: 1px solid #cccccc;
margin: 10px 0;
font-size: 12px;
}
.table-stats td {
padding: 4px 8px;
border: 1px solid #e0e0e0;
}
/* Topic & Posts view */
.post-box {
border: 1px solid #707680;
margin-bottom: 14px;
display: flex;
background: #ffffff;
}
.post-author {
width: 180px;
background: #f7f6f0;
border-right: 1px solid #707680;
padding: 10px;
font-size: 12px;
flex-shrink: 0;
}
.post-author .name {
font-weight: bold;
font-size: 14px;
margin-bottom: 4px;
color: #000066;
}
.post-author .role {
color: #555555;
margin-bottom: 6px;
}
.post-content {
flex-grow: 1;
padding: 10px 14px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.post-text {
font-size: 13px;
white-space: pre-wrap;
line-height: 1.6;
}
.post-meta {
font-size: 11px;
color: #777777;
border-top: 1px dashed #dddddd;
margin-top: 12px;
padding-top: 4px;
text-align: right;
}
/* Gallery Grid */
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
gap: 14px;
margin-top: 14px;
}
.gallery-card {
border: 1px solid #707680;
background: #ffffff;
padding: 8px;
display: flex;
flex-direction: column;
}
.gallery-img-wrap {
width: 100%;
height: 240px;
overflow: hidden;
background: #f0f0f0;
border: 1px solid #cccccc;
display: flex;
align-items: center;
justify-content: center;
}
.gallery-img-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
filter: contrast(1.1);
}
.gallery-info {
margin-top: 8px;
font-size: 12px;
flex-grow: 1;
}
.gallery-title {
font-weight: bold;
font-size: 13px;
margin-bottom: 2px;
}
.gallery-location {
color: #666666;
font-size: 11px;
margin-bottom: 4px;
}
.gallery-desc {
color: #333333;
font-size: 11px;
line-height: 1.4;
}
/* Forms */
.form-group {
margin-bottom: 12px;
}
.form-group label {
display: block;
font-weight: bold;
margin-bottom: 4px;
font-size: 13px;
}
input[type="text"],
input[type="password"],
select,
textarea {
width: 100%;
padding: 6px 8px;
font-family: inherit;
font-size: 13px;
border: 1px solid #707680;
background: #ffffff;
}
textarea {
resize: vertical;
min-height: 140px;
}
button.btn, .btn {
display: inline-block;
background: #ece9d8;
color: #000000;
border: 1px solid #707680;
padding: 5px 14px;
font-family: inherit;
font-size: 13px;
cursor: pointer;
text-decoration: none;
}
button.btn:hover, .btn:hover {
background: #ffffff;
border-color: #000000;
}
.btn-primary {
background: #d8e2ec;
font-weight: bold;
}
/* Footer */
footer {
background: #ece9d8;
border-top: 1px solid #707680;
padding: 10px 16px;
font-size: 11px;
color: #555555;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 6px;
}
pre.ascii-box {
background: #f7f6f0;
border: 1px solid #cccccc;
padding: 10px;
font-size: 12px;
overflow-x: auto;
margin: 10px 0;
}