重做观众端衬线体直播界面
This commit is contained in:
1 parent
2685ebdd47
commit
058bb4b99f
4 files changed
+380
-142
No files matched your search
@@ -0,0 +1,303 @@
|
||||
.viewer-shell {
|
||||
min-height: 100vh;
|
||||
background: #f4f0e8;
|
||||
color: #211d18;
|
||||
font-family: "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
|
||||
}
|
||||
|
||||
.viewer-hero {
|
||||
max-width: 1180px;
|
||||
margin: 0 auto;
|
||||
padding: 88px 40px 72px;
|
||||
border-bottom: 1px solid #d7cec0;
|
||||
}
|
||||
|
||||
.viewer-eyebrow {
|
||||
margin-bottom: 18px;
|
||||
color: #806d56;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.22em;
|
||||
}
|
||||
|
||||
.viewer-logo {
|
||||
display: block;
|
||||
max-width: 180px;
|
||||
height: 36px;
|
||||
margin-bottom: 24px;
|
||||
object-fit: contain;
|
||||
object-position: left center;
|
||||
}
|
||||
|
||||
.viewer-title {
|
||||
max-width: 850px;
|
||||
margin: 0;
|
||||
color: #211d18;
|
||||
font-size: clamp(42px, 7vw, 76px);
|
||||
font-weight: 600;
|
||||
line-height: 1.08;
|
||||
letter-spacing: -0.035em;
|
||||
}
|
||||
|
||||
.viewer-tagline {
|
||||
max-width: 680px;
|
||||
margin: 22px 0 0;
|
||||
color: #685f54;
|
||||
font-size: clamp(16px, 2vw, 20px);
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.viewer-main {
|
||||
max-width: 1180px;
|
||||
margin: 0 auto;
|
||||
padding: 52px 40px 96px;
|
||||
}
|
||||
|
||||
.viewer-section-heading {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.viewer-section-heading h2 {
|
||||
margin: 0;
|
||||
font-size: 25px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.viewer-section-heading span {
|
||||
color: #84796c;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.stream-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 32px 26px;
|
||||
}
|
||||
|
||||
.stream-card {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
border: 1px solid #dcd3c7;
|
||||
border-radius: 8px;
|
||||
background: #fffdf9;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
button.stream-card {
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
transition: border-color 140ms ease, transform 140ms ease;
|
||||
}
|
||||
|
||||
button.stream-card:hover {
|
||||
border-color: #a99882;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
button.stream-card:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
button.stream-card:focus-visible {
|
||||
outline: 2px solid #765f45;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.stream-cover {
|
||||
position: relative;
|
||||
display: flex;
|
||||
aspect-ratio: 16 / 9;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: #29251f;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.stream-status {
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
left: 14px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 26px;
|
||||
padding: 4px 10px;
|
||||
border-radius: 3px;
|
||||
font-family: system-ui, sans-serif;
|
||||
font-size: 11px;
|
||||
font-weight: 650;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
.stream-status.live {
|
||||
background: #8f302b;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.stream-status.pending {
|
||||
background: #27231e;
|
||||
color: #f8f3ea;
|
||||
}
|
||||
|
||||
.stream-status.ended {
|
||||
top: auto;
|
||||
bottom: 14px;
|
||||
background: rgba(30, 27, 23, 0.82);
|
||||
color: #e7dfd3;
|
||||
}
|
||||
|
||||
.live-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
margin-right: 7px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
}
|
||||
|
||||
.stream-copy {
|
||||
min-height: 112px;
|
||||
padding: 20px 22px 22px;
|
||||
}
|
||||
|
||||
.stream-copy h3 {
|
||||
overflow: hidden;
|
||||
margin: 0 0 8px;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
line-height: 1.45;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.stream-copy p {
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
color: #766d62;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.stream-skeleton {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.viewer-footer {
|
||||
padding: 26px 40px;
|
||||
border-top: 1px solid #d7cec0;
|
||||
color: #84796c;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.watch-shell {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #171512;
|
||||
color: #eee7dc;
|
||||
font-family: "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
|
||||
}
|
||||
|
||||
.watch-header {
|
||||
min-height: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
padding: 10px 28px;
|
||||
border-bottom: 1px solid #342f29;
|
||||
background: #1d1a16;
|
||||
}
|
||||
|
||||
.watch-stage {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 36px;
|
||||
}
|
||||
|
||||
.watch-frame {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 1280px;
|
||||
max-height: calc(100vh - 136px);
|
||||
overflow: hidden;
|
||||
aspect-ratio: 16 / 9;
|
||||
border: 1px solid #3d3730;
|
||||
border-radius: 8px;
|
||||
background: #080706;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.watch-header {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
padding: 14px 16px;
|
||||
}
|
||||
|
||||
.watch-stage {
|
||||
align-items: flex-start;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
.watch-frame {
|
||||
border-right: 0;
|
||||
border-left: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.stream-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.viewer-hero {
|
||||
padding: 58px 20px 48px;
|
||||
}
|
||||
|
||||
.viewer-main {
|
||||
padding: 38px 20px 64px;
|
||||
}
|
||||
|
||||
.viewer-title {
|
||||
font-size: clamp(38px, 13vw, 54px);
|
||||
}
|
||||
|
||||
.stream-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.viewer-section-heading {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.viewer-footer {
|
||||
padding-inline: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.viewer-shell *,
|
||||
.viewer-shell *::before,
|
||||
.viewer-shell *::after {
|
||||
scroll-behavior: auto !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user