396 lines
9.8 KiB
CSS
396 lines
9.8 KiB
CSS
/* Wikipedia Style — Clean, Content-First */
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
background: #f8f9fa;
|
|
color: #202122;
|
|
line-height: 1.6;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Navigation */
|
|
.nav {
|
|
background: #fff;
|
|
border-bottom: 1px solid #a2a9b1;
|
|
padding: 10px 20px;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1000;
|
|
}
|
|
.nav-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
.nav-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
text-decoration: none;
|
|
color: #202122;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
}
|
|
.nav-logo { font-size: 1.8rem; }
|
|
.nav-menu { display: flex; gap: 20px; align-items: center; }
|
|
.nav-link {
|
|
color: #0645ad;
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
padding: 5px 10px;
|
|
}
|
|
.nav-link:hover { text-decoration: underline; }
|
|
.nav-actions { display: flex; gap: 10px; align-items: center; }
|
|
.lang-select { display: flex; gap: 5px; }
|
|
.lang-btn {
|
|
background: #f8f9fa;
|
|
border: 1px solid #a2a9b1;
|
|
padding: 4px 12px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
border-radius: 3px;
|
|
}
|
|
.lang-btn.active { background: #36c; color: #fff; border-color: #36c; }
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
padding: 6px 16px;
|
|
font-size: 13px;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
font-weight: 500;
|
|
border: 1px solid;
|
|
}
|
|
.btn-primary { background: #36c; color: #fff; border-color: #36c; }
|
|
.btn-primary:hover { background: #2a4b8d; }
|
|
.btn-outline {
|
|
background: #f8f9fa;
|
|
color: #202122;
|
|
border-color: #a2a9b1;
|
|
}
|
|
.btn-outline:hover { background: #eaecf0; }
|
|
.btn-block { display: block; width: 100%; text-align: center; }
|
|
.btn-telegram {
|
|
background: #0088cc;
|
|
color: #fff;
|
|
border-color: #0088cc;
|
|
}
|
|
|
|
/* Hero */
|
|
.hero {
|
|
background: #fff;
|
|
border-bottom: 1px solid #a2a9b1;
|
|
padding: 40px 20px;
|
|
text-align: center;
|
|
}
|
|
.hero-title {
|
|
font-size: 2rem;
|
|
font-weight: 400;
|
|
margin-bottom: 10px;
|
|
color: #202122;
|
|
}
|
|
.hero-subtitle {
|
|
color: #72777d;
|
|
margin-bottom: 30px;
|
|
font-size: 15px;
|
|
}
|
|
.hero-stats { display: flex; justify-content: center; gap: 40px; }
|
|
.stat { text-align: center; }
|
|
.stat-number {
|
|
display: block;
|
|
font-size: 1.8rem;
|
|
font-weight: 600;
|
|
color: #36c;
|
|
}
|
|
|
|
/* Sections */
|
|
.section {
|
|
background: #fff;
|
|
border: 1px solid #a2a9b1;
|
|
border-radius: 4px;
|
|
padding: 25px;
|
|
margin: 20px auto;
|
|
max-width: 1200px;
|
|
}
|
|
.section-alt { background: #f8f9fa; border: none; }
|
|
.section-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 400;
|
|
border-bottom: 1px solid #a2a9b1;
|
|
padding-bottom: 10px;
|
|
margin-bottom: 20px;
|
|
color: #202122;
|
|
}
|
|
.container { max-width: 100%; }
|
|
|
|
/* About */
|
|
.about-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
.about-card {
|
|
padding: 15px;
|
|
border: 1px solid #eaecf0;
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
}
|
|
.about-icon { font-size: 2rem; margin-bottom: 10px; }
|
|
.about-card h3 {
|
|
font-size: 1rem;
|
|
margin-bottom: 8px;
|
|
color: #0645ad;
|
|
}
|
|
.about-card p { font-size: 13px; color: #555; }
|
|
|
|
/* Search */
|
|
.search-bar {
|
|
display: flex;
|
|
max-width: 400px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.search-icon {
|
|
position: absolute;
|
|
left: 10px;
|
|
width: 16px;
|
|
height: 16px;
|
|
color: #72777d;
|
|
}
|
|
.search-input {
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
border: 1px solid #a2a9b1;
|
|
border-radius: 2px;
|
|
font-size: 14px;
|
|
}
|
|
.search-input:focus { border-color: #36c; outline: none; }
|
|
|
|
/* Members Grid */
|
|
.members-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
.member-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
border: 1px solid #eaecf0;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
background: #fff;
|
|
transition: background 0.2s;
|
|
}
|
|
.member-card:hover { background: #eaecf0; }
|
|
.user-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 1px solid #eaecf0;
|
|
}
|
|
.user-avatar-text {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: #eaecf0;
|
|
color: #72777d;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.2rem;
|
|
}
|
|
.member-info h4 { font-size: 14px; color: #0645ad; }
|
|
.member-company { font-size: 12px; color: #72777d; }
|
|
.member-location, .member-posts { font-size: 12px; color: #555; }
|
|
.rank-badge {
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
position: absolute;
|
|
top: -5px;
|
|
right: 0;
|
|
}
|
|
.rank-badge.rank-rookie { background: #eee; color: #666; }
|
|
.rank-badge.rank-beginner { background: #e6f3e6; color: #0a0; }
|
|
.rank-badge.rank-member { background: #e6f0ff; color: #0066cc; }
|
|
.rank-badge.rank-contributor { background: #e6f9f9; color: #009999; }
|
|
.rank-badge.rank-veteran { background: #f9e6ff; color: #990099; }
|
|
.rank-badge.rank-expert { background: #fff3e6; color: #cc8800; }
|
|
.rank-badge.rank-legend { background: #ffe6e6; color: #cc0000; }
|
|
|
|
/* Wiki Cards */
|
|
.wiki-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
.wiki-card {
|
|
padding: 15px;
|
|
border: 1px solid #eaecf0;
|
|
border-left: 4px solid #36c;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
border-radius: 0 3px 3px 0;
|
|
}
|
|
.wiki-card:hover { background: #eaecf0; }
|
|
.wiki-card-title { font-size: 15px; color: #0645ad; margin-bottom: 5px; }
|
|
.wiki-card-excerpt { font-size: 13px; color: #72777d; margin-bottom: 8px; }
|
|
.wiki-card-footer { display: flex; justify-content: space-between; font-size: 12px; color: #555; }
|
|
.wiki-card-subtopic { color: #0645ad; }
|
|
.no-results { padding: 20px; text-align: center; color: #72777d; }
|
|
.loading-text { padding: 20px; text-align: center; color: #72777d; font-style: italic; }
|
|
|
|
/* Modal */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(255,255,255,0.95);
|
|
z-index: 2000;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.modal-overlay.active { display: flex; }
|
|
.modal {
|
|
background: #fff;
|
|
border: 1px solid #a2a9b1;
|
|
border-radius: 4px;
|
|
padding: 25px;
|
|
max-width: 500px;
|
|
width: 90%;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
position: relative;
|
|
}
|
|
.modal-close {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 15px;
|
|
background: none;
|
|
border: none;
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
color: #72777d;
|
|
}
|
|
.login-icon { font-size: 3rem; text-align: center; margin-bottom: 15px; }
|
|
.login-hint { color: #72777d; text-align: center; margin-bottom: 15px; font-size: 13px; }
|
|
.form-group { margin-bottom: 12px; }
|
|
.form-input {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: 1px solid #a2a9b1;
|
|
border-radius: 2px;
|
|
font-size: 14px;
|
|
box-sizing: border-box;
|
|
}
|
|
.form-input:focus { border-color: #36c; outline: none; }
|
|
.login-step { display: none; }
|
|
.login-step.active { display: block; }
|
|
|
|
/* Profile & Detail Modals */
|
|
.profile-username { font-size: 1.2rem; margin-bottom: 10px; }
|
|
.profile-rank { margin-bottom: 15px; }
|
|
.user-detail-modal { max-width: 600px; }
|
|
.user-detail-content { padding: 15px; }
|
|
.user-detail-avatar {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 50%;
|
|
margin: 0 auto 15px;
|
|
border: 1px solid #a2a9b1;
|
|
overflow: hidden;
|
|
}
|
|
.user-detail-header { text-align: center; margin-bottom: 15px; }
|
|
.user-detail-name-rank { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
|
|
.user-detail-name-rank h2 { font-size: 1.2rem; }
|
|
.user-detail-fields { display: grid; gap: 8px; }
|
|
.detail-field { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eaecf0; }
|
|
.detail-label { color: #72777d; font-size: 13px; }
|
|
.detail-value { color: #202122; font-size: 13px; text-align: right; }
|
|
.user-detail-company { color: #555; text-align: center; }
|
|
|
|
/* Telegram Banner */
|
|
.telegram-banner {
|
|
background: #f0f8ff;
|
|
border: 1px solid #a2a9b1;
|
|
padding: 15px 20px;
|
|
margin: 20px auto;
|
|
max-width: 1200px;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
.banner-icon { font-size: 1.5rem; }
|
|
.banner-text strong { color: #202122; }
|
|
|
|
/* Newsletter */
|
|
.newsletter-card { text-align: center; max-width: 400px; margin: 0 auto; }
|
|
.newsletter-icon { font-size: 2.5rem; margin-bottom: 15px; }
|
|
.newsletter-hint { color: #72777d; margin-bottom: 15px; font-size: 13px; }
|
|
|
|
/* Footer */
|
|
.footer {
|
|
background: #f8f9fa;
|
|
border-top: 1px solid #a2a9b1;
|
|
padding: 25px 20px;
|
|
text-align: center;
|
|
margin-top: 40px;
|
|
}
|
|
.footer-brand { margin-bottom: 15px; }
|
|
.footer-logo { font-size: 1.5rem; }
|
|
.footer-title { color: #202122; margin-left: 10px; font-size: 1rem; }
|
|
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; flex-wrap: wrap; }
|
|
.footer-links a { color: #0645ad; text-decoration: none; font-size: 13px; }
|
|
.footer-links a:hover { text-decoration: underline; }
|
|
.footer-bottom p { color: #72777d; margin: 5px 0; font-size: 12px; }
|
|
.footer-bottom a { color: #0645ad; }
|
|
.footer-copy { font-size: 12px; }
|
|
|
|
/* Hide/Show */
|
|
.hide-en { display: none; }
|
|
body[data-lang="en"] .hide-en { display: inline; }
|
|
body[data-lang="en"] .hide-de { display: none; }
|
|
.hidden { display: none !important; }
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.nav-menu { display: none; }
|
|
.nav-menu.open {
|
|
display: flex;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background: #fff;
|
|
flex-direction: column;
|
|
padding: 15px;
|
|
gap: 10px;
|
|
border-bottom: 1px solid #a2a9b1;
|
|
}
|
|
.nav-toggle {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
.nav-toggle span { display: block; width: 20px; height: 2px; background: #202122; }
|
|
.hero-stats { gap: 20px; flex-wrap: wrap; }
|
|
.stat-number { font-size: 1.5rem; }
|
|
.about-grid { grid-template-columns: 1fr; }
|
|
.wiki-grid { grid-template-columns: 1fr; }
|
|
}
|
|
@media (min-width: 769px) {
|
|
.nav-toggle { display: none; }
|
|
} |