Files
SkinbaseNova/public/css/custom-legacy.css
2026-02-07 08:23:18 +01:00

236 lines
3.9 KiB
CSS

:root {
--panel-bg: #f7f8f9;
--panel-border: #d6d9dd;
--text-muted: #777;
--shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}
body {
background: #d9e0e5;
}
.legacy-page {
padding: 15px 20px 40px 20px;
}
.featured-row {
margin-bottom: 20px;
}
.featured-card {
background: var(--panel-bg);
border: 1px solid var(--panel-border);
box-shadow: var(--shadow);
padding: 10px 12px 18px 12px;
min-height: 320px;
}
.featured-card .card-header {
font-weight: 700;
margin-bottom: 10px;
}
.featured-card .featured-img {
max-height: 260px;
margin: 0 auto 10px auto;
object-fit: contain;
}
.featured-card .featured-title {
font-size: 18px;
margin-top: 6px;
}
.featured-card .featured-author {
color: var(--text-muted);
}
.join-card .join-img {
max-height: 220px;
}
.join-card .join-text {
color: var(--text-muted);
margin-top: 6px;
font-size: 13px;
}
.uploads-panel {
box-shadow: var(--shadow);
}
.gallery-grid {
display: grid;
/* Use fixed column width to avoid auto-expanding first column when inside complex wrappers */
grid-template-columns: repeat(auto-fill, minmax(180px, 180px));
gap: 12px;
justify-content: start;
width: calc(100% - 40px);
box-sizing: border-box;
margin: 0 auto;
}
.thumb-card {
position: relative;
background: #fff;
border: 1px solid #cfd4da;
box-shadow: var(--shadow);
padding: 6px;
}
.legacy-page .thumb-card .ribbon {
top: 8px;
right: 8px;
width: auto;
height: auto;
overflow: visible;
padding: 0;
}
.legacy-page .thumb-card .ribbon span {
transform: none;
-webkit-transform: none;
-moz-transform: none;
position: static;
display: inline-block;
padding: 2px 10px;
font-size: 10px;
line-height: 1.2;
box-shadow: var(--shadow);
letter-spacing: 0.5px;
}
.legacy-page .thumb-card .ribbon span::before,
.legacy-page .thumb-card .ribbon span::after {
display: none;
}
.thumb-card img {
width: 100%;
height: 140px;
object-fit: cover;
display: block;
}
.thumb-card .ribbon {
position: absolute;
top: 8px;
right: -8px;
background: #d35400;
color: #fff;
padding: 2px 10px;
font-size: 11px;
transform: rotate(45deg);
transform-origin: top right;
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.news-row .panel {
box-shadow: var(--shadow);
}
.news-head {
color: var(--text-muted);
margin-bottom: 8px;
font-size: 12px;
}
.activity-panel {
box-shadow: var(--shadow);
}
.thumb-link {
display: block;
}
.page-header-wrap {
background: var(--panel-bg);
border: 1px solid var(--panel-border);
padding: 12px 16px;
margin-bottom: 18px;
box-shadow: var(--shadow);
}
.thumb-meta {
margin-top: 8px;
font-size: 12px;
}
.thumb-title {
font-weight: 700;
line-height: 1.3;
}
.thumb-author {
color: var(--text-muted);
font-size: 12px;
}
.paginationMenu {
margin: 20px 0 30px 0;
}
.paginationMenu .pagination {
display: inline-block;
margin: 0;
}
.navigation .badge {
background: #428bca;
color: #fff;
}
.subcategory-list {
padding-left: 0;
margin: 0;
}
.subcategory-list li {
list-style: none;
margin-bottom: 6px;
}
.subcategory-list li a {
color: inherit;
}
.subcategory-list .selected_group a {
font-weight: 700;
}
/* Category page layout: keep menu on the left, content on the right */
.category-wrapper {
display: flex;
flex-direction: row;
align-items: flex-start;
}
#category-list {
order: 1;
flex: 0 0 260px;
min-width: 220px;
max-width: 320px;
}
#category-artworks {
order: 2;
flex: 1 1 60%;
min-width: 0;
}
/* Break out of centered wrapper so sidebar can sit flush to the left edge */
.container-fluid.legacy-page {
position: relative;
left: calc(50% - 50vw);
width: 100vw;
box-sizing: border-box;
padding-left: 20px; /* keep some gutter */
padding-right: 20px;
}
@media (max-width: 768px) {
body { padding-top: 70px; }
.featured-card { min-height: auto; margin-bottom: 12px; }
.featured-card .featured-img { max-height: 200px; }
}