Шаблон:Test1/styles.css
Материал из Wormix Station
Дополнительные действия
.wx-home {
color: #0b2214;
background-color: #040c07;
background-image: radial-gradient(circle, #0f2a19 1px, transparent 1.5px);
background-size: 24px 24px;
border: 1px solid #123820;
border-radius: 6px;
padding: 14px;
line-height: 1.4;
}
.wx-home, .wx-home * { box-sizing: border-box; }
.wx-home p { margin: 0; }
.wx-home br { display: none; }
/* --- ссылки --- */
.wx-home a,
.wx-home a:visited { color: inherit; text-decoration: none; }
.wx-home a.new { opacity: .6; }
.wx-home .wx-active a.new { opacity: 1; }
.wx-home a.external { background-image: none !important; }
.wx-home .wx-chip a.external { padding-right: .95em !important; }
/* --- рамка со срезанными углами (сверху слева и снизу справа) --- */
.wx-cut {
position: relative;
isolation: isolate;
background: #0b2214;
clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px),
calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.wx-cut::before {
content: "";
position: absolute;
inset: 1.5px;
z-index: -1;
}
/* --- шапка --- */
.wx-header {
display: flex;
align-items: center;
gap: 16px;
padding: 14px 18px;
margin-bottom: 14px;
}
.wx-logo {
flex: none;
width: 52px;
height: 52px;
display: flex;
align-items: center;
justify-content: center;
border: 1.5px solid #58ff74;
border-radius: 3px;
overflow: hidden;
}
.wx-logo img { max-width: 100%; height: auto; }
.wx-title-main { font-size: 1.35em; font-weight: 700; letter-spacing: .08em; color: #fff; }
.wx-title-sub { font-size: .68em; letter-spacing: .12em; color: #58ff74; }
.wx-slogan { font-size: .75em; color: #0b2214; margin-top: 2px; }
.wx-status { margin-left: auto; text-align: right; }
.wx-status-main { font-size: .72em; font-weight: 700; letter-spacing: .1em; color: #b6ffc4; }
.wx-status-sub { font-size: .68em; letter-spacing: .1em; color: #0b2214; }
/* --- сетка --- */
.wx-grid {
display: grid;
grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
grid-template-areas: "menu log" "menu pop";
gap: 14px;
}
.wx-menu { grid-area: menu; }
.wx-news { grid-area: log; }
.wx-pop { grid-area: pop; }
/* --- панели --- */
.wx-panel::after { /* светлая полоска на заголовке */
content: "";
position: absolute;
top: 0;
width: 56px;
height: 3px;
background: #b6ffc4;
}
.wx-panel-title {
font-size: .8em;
font-weight: 700;
letter-spacing: .14em;
color: #58ff74;
margin-bottom: .9em;
}
/* --- меню разделов --- */
.wx-item a {
display: block;
position: relative;
padding: .66em .9em .66em 2em;
border-bottom: 1px solid #0f3a1f;
font-size: .88em;
letter-spacing: .06em;
text-transform: uppercase;
}
.wx-item { color: #0b2214; }
.wx-item:hover { color: #fff; }
.wx-item a::before {
content: "\25B8";
position: absolute;
left: .8em;
font-size: .8em;
color: #2f8f4a;
}
.wx-item a:hover { background: #0b2214; }
.wx-item a:hover::before { color: #b6ffc4; }
.wx-active { color: #fff; }
.wx-active a {
font-weight: 700;
background: #0c3a1e;
border: 1px solid #58ff74;
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.wx-active a::before { color: #b6ffc4; }
/* --- журнал обновлений --- */
.wx-log {
display: flex;
align-items: center;
gap: 1.2em;
padding: .7em 1em;
margin-bottom: 8px;
font-size: .9em;
}
.wx-tag {
flex: none;
min-width: 5em;
font-size: .78em;
font-weight: 700;
letter-spacing: .08em;
text-transform: uppercase;
color: #b6ffc4;
}
/* --- популярные страницы --- */
.wx-chip {
display: inline-block;
margin: 0 8px 8px 0;
}
.wx-chip a { display: block; padding: .34em .95em; font-size: .8em; }
/* --- строка поиска --- */
.wx-search {
}
.wx-search a {
display: flex;
align-items: center;
gap: .8em;
padding: .85em 1.1em;
font-size: .85em;
letter-spacing: .08em;
text-transform: uppercase;
}
.wx-search { color: #0b2214; }
.wx-search:hover { color: #fff; }
.wx-search-icon {
display: inline-block;
flex: none;
width: 20px;
height: 20px;
}
.wx-key { margin-left: auto; font-weight: 700; color: #b6ffc4; }
/* --- узкие экраны --- */
@media (max-width: 720px) {
.wx-grid { grid-template-columns: 1fr; grid-template-areas: "menu" "log" "pop"; }
.wx-status { display: none; }
}