MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
修正产品目录搜索栏与首页导航状态 |
Git release 5e4241dd8446 |
||
| Line 1: | Line 1: | ||
:root { | :root { | ||
-- | --lcd-blue: #63b7e8; | ||
-- | --lcd-blue-dark: #258ac4; | ||
-- | --lcd-ink: #233245; | ||
-- | --lcd-muted: #66758a; | ||
-- | --lcd-line: #dfe7ef; | ||
-- | --lcd-panel: #f6f9fc; | ||
} | } | ||
.mw-body-content { color: var(-- | .mw-body-content { | ||
color: var(--lcd-ink); | |||
} | } | ||
. | |||
.lcd-welcome { | |||
margin: 1rem 0 2rem; | |||
padding: 1.5rem 1.75rem; | |||
border: 1px solid #dceaf3; | |||
border-radius: 12px; | |||
background: linear-gradient(135deg, #f8fcff, #eef8fe); | |||
} | } | ||
. | .lcd-welcome h2 { | ||
margin: 0 0 .75rem; | |||
color: var(--lcd-blue-dark); | |||
border: 0; | |||
font-size: clamp(1.5rem, 3vw, 2rem); | |||
} | } | ||
.lcd-welcome__eyebrow { | |||
. | margin-bottom: .35rem; | ||
. | color: var(--lcd-blue-dark); | ||
font-size: .76rem; | |||
font-weight: 800; | |||
letter-spacing: .12em; | |||
} | } | ||
.lcd-welcome__title { | |||
margin-bottom: .75rem; | |||
color: var(--lcd-blue-dark); | |||
font-size: clamp(1.5rem, 3vw, 2rem); | |||
font-weight: 800; | |||
} | } | ||
.lcd-welcome p:last-child { | |||
margin-bottom: 0; | |||
- | |||
} | } | ||
.lcd-module { | |||
margin: 1.75rem 0 2.5rem; | |||
scroll-margin-top: 5rem; | |||
} | |||
. | .lcd-module__tab { | ||
margin: 0 0 1rem; | |||
padding: .68rem 1rem; | |||
border-radius: 5px; | |||
background: var(--lcd-blue); | |||
color: #fff; | |||
font-size: 1.05rem; | |||
font-weight: 700; | |||
text-align: center; | |||
letter-spacing: .02em; | |||
} | } | ||
. | |||
.lcd-card-grid { | |||
display: grid; | |||
grid-template-columns: repeat(4, minmax(0, 1fr)); | |||
gap: 1.1rem; | |||
} | } | ||
. | |||
width: | .lcd-card { | ||
min-width: 0; | |||
overflow: hidden; | |||
border: 1px solid var(--lcd-line); | |||
border-radius: 8px; | |||
background: #fff; | |||
box-shadow: 0 2px 7px rgba(38, 68, 94, .11); | |||
transition: transform .16s ease, box-shadow .16s ease; | |||
} | |||
.lcd-card:hover { | |||
transform: translateY(-2px); | |||
box-shadow: 0 7px 18px rgba(38, 68, 94, .16); | |||
} | |||
.lcd-card__media { | |||
display: flex; | display: flex; | ||
aspect-ratio: 4 / 3; | |||
align-items: center; | align-items: center; | ||
justify-content: | justify-content: center; | ||
padding: .65rem; | |||
background: #f8fafc; | |||
} | |||
.lcd-card__media a, | |||
.lcd-card__media .mw-file-description { | |||
display: contents; | |||
} | |||
.lcd-card__media img { | |||
width: 100%; | |||
height: 100%; | |||
object-fit: contain; | |||
} | } | ||
. | |||
.lcd-card__body { | |||
padding: .85rem .8rem .95rem; | |||
text-align: center; | |||
} | } | ||
. | |||
.lcd-card__title { | |||
min-height: 2.7em; | |||
line-height: 1.35; | |||
font-weight: 600; | |||
} | } | ||
.lcd-card__title a { | |||
color: var(--lcd-ink); | |||
. | |||
} | } | ||
. | .lcd-card__model { | ||
margin-top: .35rem; | |||
color: #27384b; | |||
font-weight: 800; | |||
overflow-wrap: anywhere; | |||
color: | |||
font-weight: | |||
} | } | ||
. | .lcd-product__hero { | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.2fr); | ||
gap: | gap: 1.5rem; | ||
align- | margin: 1rem 0 2rem; | ||
padding: 1.25rem; | |||
border: 1px solid var(--lcd-line); | |||
border-radius: 10px; | |||
background: var(--lcd-panel); | |||
} | |||
.lcd-product__summary { | |||
align-self: center; | |||
} | } | ||
. | |||
.lcd-product__kicker { | |||
color: var(--lcd-blue-dark); | |||
font-weight: 700; | |||
} | } | ||
. | |||
.lcd-product__model { | |||
color | margin: .35rem 0 .6rem; | ||
color: var(--lcd-ink); | |||
font-size: 1.2rem; | font-size: clamp(1.35rem, 3vw, 2rem); | ||
font-weight: 800; | font-weight: 800; | ||
} | } | ||
. | .lcd-product__status { | ||
margin-bottom: .85rem; | |||
} | } | ||
. | .lcd-product__gallery { | ||
display: | display: grid; | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
gap: .75rem; | |||
gap: | |||
} | } | ||
. | .lcd-product__gallery > div { | ||
display: flex; | display: flex; | ||
min-width: 0; | |||
aspect-ratio: 4 / 3; | |||
align-items: center; | align-items: center; | ||
justify-content: center; | |||
border-radius: | padding: .6rem; | ||
border: 1px solid var(--lcd-line); | |||
border-radius: 7px; | |||
background: #fff; | background: #fff; | ||
} | } | ||
.lcd-product__gallery img { | |||
. | |||
width: 100%; | width: 100%; | ||
height: 100%; | |||
object-fit: contain; | |||
} | |||
border-radius: | .lcd-spec-table { | ||
color: | width: 100%; | ||
background: # | table-layout: fixed; | ||
font-size: | } | ||
.lcd-spec-table th:first-child { | |||
width: 10rem; | |||
} | |||
.lcd-status { | |||
display: inline-block; | |||
padding: .18rem .55rem; | |||
border-radius: 999px; | |||
color: #244158; | |||
background: #dceff9; | |||
font-size: .84rem; | |||
font-weight: 700; | |||
} | } | ||
. | |||
. | .lcd-download-card, | ||
.lcd-empty-resource { | |||
padding: 1rem 1.15rem; | |||
border: 1px solid var(--lcd-line); | |||
border-left: 4px solid var(--lcd-blue); | |||
border-radius: 6px; | |||
border-radius: | |||
background: #fff; | background: #fff; | ||
} | } | ||
. | .lcd-download-card__name { | ||
font-size: 1.05rem; | |||
font-weight: 700; | |||
} | } | ||
. | |||
.lcd-download-card__type { | |||
display: inline-block; | |||
margin-right: .6rem; | |||
color: var(--lcd-blue-dark); | |||
color: | |||
font-weight: 800; | font-weight: 800; | ||
} | } | ||
.lcd-download-card__body { | |||
. | display: inline-flex; | ||
. | flex-wrap: wrap; | ||
gap: .25rem .75rem; | |||
align-items: baseline; | |||
} | |||
.lcd-download-card__action { | |||
margin-top: .65rem; | |||
} | |||
.lcd-download-card__meta, | |||
.lcd-empty-resource { | |||
color: var(--lcd-muted); | |||
} | |||
.lcd-manager-links { | |||
columns: 2 18rem; | |||
} | |||
.formtable { | |||
width: 100%; | |||
margin-bottom: 1rem; | |||
} | |||
.formtable th { | |||
width: 11rem; | |||
text-align: left; | |||
vertical-align: top; | |||
} | |||
.formtable input, | |||
.formtable select, | |||
.formtable textarea { | |||
box-sizing: border-box; | |||
max-width: 100%; | |||
} | } | ||
@media (max-width: | |||
. | @media (max-width: 1000px) { | ||
.lcd-card-grid { | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
} | |||
.lcd-product__hero { | |||
. | grid-template-columns: 1fr; | ||
} | |||
} | } | ||
@media (max-width: 620px) { | @media (max-width: 620px) { | ||
. | .lcd-welcome { | ||
. | padding: 1.1rem; | ||
. | } | ||
. | |||
.lcd-card-grid, | |||
. | .lcd-product__gallery { | ||
. | grid-template-columns: 1fr; | ||
} | |||
. | .lcd-card__title { | ||
. | min-height: 0; | ||
. | } | ||
. | |||
. | .lcd-product__hero { | ||
padding: .85rem; | |||
} | |||
.lcd-spec-table th:first-child { | |||
width: 7.5rem; | |||
} | |||
.formtable, | |||
.formtable tbody, | |||
.formtable tr, | |||
.formtable th, | |||
.formtable td { | |||
display: block; | |||
width: 100%; | |||
} | |||
} | } | ||
Revision as of 22:35, 25 July 2026
:root {
--lcd-blue: #63b7e8;
--lcd-blue-dark: #258ac4;
--lcd-ink: #233245;
--lcd-muted: #66758a;
--lcd-line: #dfe7ef;
--lcd-panel: #f6f9fc;
}
.mw-body-content {
color: var(--lcd-ink);
}
.lcd-welcome {
margin: 1rem 0 2rem;
padding: 1.5rem 1.75rem;
border: 1px solid #dceaf3;
border-radius: 12px;
background: linear-gradient(135deg, #f8fcff, #eef8fe);
}
.lcd-welcome h2 {
margin: 0 0 .75rem;
color: var(--lcd-blue-dark);
border: 0;
font-size: clamp(1.5rem, 3vw, 2rem);
}
.lcd-welcome__eyebrow {
margin-bottom: .35rem;
color: var(--lcd-blue-dark);
font-size: .76rem;
font-weight: 800;
letter-spacing: .12em;
}
.lcd-welcome__title {
margin-bottom: .75rem;
color: var(--lcd-blue-dark);
font-size: clamp(1.5rem, 3vw, 2rem);
font-weight: 800;
}
.lcd-welcome p:last-child {
margin-bottom: 0;
}
.lcd-module {
margin: 1.75rem 0 2.5rem;
scroll-margin-top: 5rem;
}
.lcd-module__tab {
margin: 0 0 1rem;
padding: .68rem 1rem;
border-radius: 5px;
background: var(--lcd-blue);
color: #fff;
font-size: 1.05rem;
font-weight: 700;
text-align: center;
letter-spacing: .02em;
}
.lcd-card-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1.1rem;
}
.lcd-card {
min-width: 0;
overflow: hidden;
border: 1px solid var(--lcd-line);
border-radius: 8px;
background: #fff;
box-shadow: 0 2px 7px rgba(38, 68, 94, .11);
transition: transform .16s ease, box-shadow .16s ease;
}
.lcd-card:hover {
transform: translateY(-2px);
box-shadow: 0 7px 18px rgba(38, 68, 94, .16);
}
.lcd-card__media {
display: flex;
aspect-ratio: 4 / 3;
align-items: center;
justify-content: center;
padding: .65rem;
background: #f8fafc;
}
.lcd-card__media a,
.lcd-card__media .mw-file-description {
display: contents;
}
.lcd-card__media img {
width: 100%;
height: 100%;
object-fit: contain;
}
.lcd-card__body {
padding: .85rem .8rem .95rem;
text-align: center;
}
.lcd-card__title {
min-height: 2.7em;
line-height: 1.35;
font-weight: 600;
}
.lcd-card__title a {
color: var(--lcd-ink);
}
.lcd-card__model {
margin-top: .35rem;
color: #27384b;
font-weight: 800;
overflow-wrap: anywhere;
}
.lcd-product__hero {
display: grid;
grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.2fr);
gap: 1.5rem;
margin: 1rem 0 2rem;
padding: 1.25rem;
border: 1px solid var(--lcd-line);
border-radius: 10px;
background: var(--lcd-panel);
}
.lcd-product__summary {
align-self: center;
}
.lcd-product__kicker {
color: var(--lcd-blue-dark);
font-weight: 700;
}
.lcd-product__model {
margin: .35rem 0 .6rem;
color: var(--lcd-ink);
font-size: clamp(1.35rem, 3vw, 2rem);
font-weight: 800;
}
.lcd-product__status {
margin-bottom: .85rem;
}
.lcd-product__gallery {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: .75rem;
}
.lcd-product__gallery > div {
display: flex;
min-width: 0;
aspect-ratio: 4 / 3;
align-items: center;
justify-content: center;
padding: .6rem;
border: 1px solid var(--lcd-line);
border-radius: 7px;
background: #fff;
}
.lcd-product__gallery img {
width: 100%;
height: 100%;
object-fit: contain;
}
.lcd-spec-table {
width: 100%;
table-layout: fixed;
}
.lcd-spec-table th:first-child {
width: 10rem;
}
.lcd-status {
display: inline-block;
padding: .18rem .55rem;
border-radius: 999px;
color: #244158;
background: #dceff9;
font-size: .84rem;
font-weight: 700;
}
.lcd-download-card,
.lcd-empty-resource {
padding: 1rem 1.15rem;
border: 1px solid var(--lcd-line);
border-left: 4px solid var(--lcd-blue);
border-radius: 6px;
background: #fff;
}
.lcd-download-card__name {
font-size: 1.05rem;
font-weight: 700;
}
.lcd-download-card__type {
display: inline-block;
margin-right: .6rem;
color: var(--lcd-blue-dark);
font-weight: 800;
}
.lcd-download-card__body {
display: inline-flex;
flex-wrap: wrap;
gap: .25rem .75rem;
align-items: baseline;
}
.lcd-download-card__action {
margin-top: .65rem;
}
.lcd-download-card__meta,
.lcd-empty-resource {
color: var(--lcd-muted);
}
.lcd-manager-links {
columns: 2 18rem;
}
.formtable {
width: 100%;
margin-bottom: 1rem;
}
.formtable th {
width: 11rem;
text-align: left;
vertical-align: top;
}
.formtable input,
.formtable select,
.formtable textarea {
box-sizing: border-box;
max-width: 100%;
}
@media (max-width: 1000px) {
.lcd-card-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lcd-product__hero {
grid-template-columns: 1fr;
}
}
@media (max-width: 620px) {
.lcd-welcome {
padding: 1.1rem;
}
.lcd-card-grid,
.lcd-product__gallery {
grid-template-columns: 1fr;
}
.lcd-card__title {
min-height: 0;
}
.lcd-product__hero {
padding: .85rem;
}
.lcd-spec-table th:first-child {
width: 7.5rem;
}
.formtable,
.formtable tbody,
.formtable tr,
.formtable th,
.formtable td {
display: block;
width: 100%;
}
}