模板:Fstpagetest styles
来自RIA | Wiki
更多操作
/* TemplateStyles for fstpagetest.wiki
Keep selectors scoped under .fst-page.
*/
.fst-page {
margin: 0 auto;
max-width: 1120px;
}
.fst-page .fst-muted {
color: #5b626a;
font-size: 0.95em;
}
.fst-page .fst-kicker {
color: #3b4046;
font-size: 0.95em;
letter-spacing: 0.03em;
text-transform: uppercase;
}
.fst-page .fst-mt6 {
margin-top: 6px;
}
.fst-page .fst-mt8 {
margin-top: 8px;
}
.fst-page .fst-mt10 {
margin-top: 10px;
}
.fst-page .fst-mt12 {
margin-top: 12px;
}
.fst-page .fst-section {
margin: 18px 0;
}
.fst-page .fst-section-h {
font-size: 1.22em;
font-weight: 700;
margin: 0 0 10px 0;
}
.fst-page .fst-surface {
border: 1px solid #d8dde3;
border-radius: 14px;
background: #ffffff;
padding: 14px;
}
/* Hero */
.fst-page .fst-hero {
border: 1px solid #d8dde3;
border-radius: 18px;
overflow: hidden;
position: relative;
background: linear-gradient(135deg, #fff6e8 0%, #f8fbff 48%, #ffffff 100%);
}
.fst-page .fst-hero-media {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
opacity: 0.22;
}
.fst-page .fst-hero-media p {
margin: 0;
}
.fst-page .fst-hero-media a {
display: block;
}
.fst-page .fst-hero-media img {
width: 100%;
height: auto;
}
.fst-page .fst-hero-inner {
padding: 18px 18px 14px 18px;
position: relative;
}
.fst-page .fst-hero-title {
font-size: 2.1em;
font-weight: 800;
line-height: 1.1;
margin: 0;
}
.fst-page .fst-hero-sub {
margin-top: 6px;
color: #4a515a;
font-size: 1.05em;
line-height: 1.35;
}
.fst-page .fst-hero-row {
margin-top: 12px;
display: flex;
flex-wrap: wrap;
align-items: center;
}
.fst-page .fst-pill {
display: inline-block;
border: 1px solid #cfd6de;
background: #ffffff;
border-radius: 999px;
padding: 4px 10px;
margin: 0 8px 8px 0;
font-size: 0.92em;
color: #2f353b;
}
.fst-page .fst-hero-jumps {
margin-top: 10px;
color: #3f4650;
font-size: 0.98em;
}
/* Buttons (span wrapper + <a>) */
.fst-page .fst-btn {
display: inline-block;
margin-right: 8px;
margin-top: 6px;
}
.fst-page .fst-btn a {
display: inline-block;
text-decoration: none;
border: 1px solid #cfd6de;
border-radius: 999px;
padding: 6px 12px;
background: #ffffff;
color: #2c333a;
transition: background 120ms ease, border-color 120ms ease;
}
.fst-page .fst-btn a:hover {
background: #f5f9ff;
border-color: #c2ccd7;
}
/* Banner */
.fst-page .fst-banner {
margin-top: 12px;
border: 1px solid #d8dde3;
border-radius: 14px;
background: linear-gradient(90deg, #fff 0%, #f5fbff 55%, #fff 100%);
padding: 10px 12px;
display: flex;
flex-wrap: wrap;
align-items: center;
}
.fst-page .fst-banner-tag {
display: inline-block;
border: 1px solid #d5b88a;
background: #fff3df;
border-radius: 999px;
padding: 4px 10px;
margin: 0 10px 6px 0;
font-weight: 700;
font-size: 0.92em;
color: #6a4a1f;
}
.fst-page .fst-banner-text {
margin: 0 10px 6px 0;
color: #3c444e;
}
/* Top navigation block */
.fst-page .fst-topnav {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
}
.fst-page .fst-topnav-left {
flex: 1 1 300px;
min-width: 260px;
padding-right: 12px;
}
.fst-page .fst-topnav-right {
flex: 1 1 480px;
min-width: 320px;
}
.fst-page .fst-icon-grid {
display: flex;
flex-wrap: wrap;
margin: -6px;
}
.fst-page .fst-icon {
margin: 6px;
flex: 0 0 calc(33.333% - 12px);
}
.fst-page .fst-icon-box {
border: 1px solid #d8dde3;
border-radius: 12px;
background: #ffffff;
overflow: hidden;
}
.fst-page .fst-icon-box a {
display: block;
text-decoration: none;
text-align: center;
padding: 14px 10px;
font-weight: 800;
color: #2c333a;
transition: background 120ms ease;
}
.fst-page .fst-icon-box a:hover {
background: #f5f9ff;
}
.fst-page .fst-icon-label {
margin-top: 6px;
text-align: center;
color: #4b535d;
font-size: 0.9em;
}
/* Layout helpers */
.fst-page .fst-split {
display: flex;
flex-wrap: wrap;
margin: -10px;
}
.fst-page .fst-col {
margin: 10px;
flex: 1 1 360px;
min-width: 320px;
}
/* Tiles grid */
.fst-page .fst-grid {
display: flex;
flex-wrap: wrap;
margin: -8px;
}
.fst-page .fst-grid > .fst-tile {
margin: 8px;
padding: 12px;
border: 1px solid #d8dde3;
border-radius: 14px;
background: #ffffff;
flex: 1 1 210px;
min-width: 210px;
transition: background 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.fst-page .fst-grid > .fst-tile:hover {
background: #fbfdff;
border-color: #cbd3dc;
box-shadow: 0 1px 12px rgba(20, 30, 40, 0.06);
}
.fst-page .fst-tile-title {
font-size: 1.05em;
font-weight: 800;
margin: 0 0 6px 0;
}
.fst-page .fst-tile-desc {
color: #4b535d;
font-size: 0.95em;
line-height: 1.45;
}
.fst-page .fst-tile-cta {
margin-top: 10px;
font-size: 0.95em;
}
/* Worlds tiles */
.fst-page .fst-world-tiles {
display: flex;
flex-wrap: wrap;
margin: -8px;
}
.fst-page .fst-world-tiles .fst-world {
margin: 8px;
padding: 12px;
border: 1px solid #d8dde3;
border-radius: 14px;
background: #ffffff;
flex: 1 1 220px;
min-width: 220px;
}
.fst-page .fst-world-tiles .fst-world-wide {
flex-basis: 100%;
}
.fst-page .fst-world-title {
font-size: 1.1em;
font-weight: 800;
margin: 0 0 6px 0;
}
.fst-page .fst-world-icon {
display: inline-block;
width: 34px;
height: 34px;
line-height: 34px;
text-align: center;
border-radius: 10px;
border: 1px solid #d8dde3;
background: #ffffff;
margin-right: 10px;
font-weight: 800;
font-size: 0.92em;
color: #2c333a;
}
.fst-page .fst-world-icon-laputa {
background: #fff3df;
border-color: #e7cfa4;
color: #6a4a1f;
}
.fst-page .fst-world-icon-eden {
background: #e8f4ff;
border-color: #bcd6ee;
color: #214a6b;
}
.fst-page .fst-world-icon-sat {
background: #f3f7f2;
border-color: #d6e0d3;
color: #35543e;
}
.fst-page .fst-world-badge {
display: inline-block;
margin-left: 8px;
border: 1px solid #d8dde3;
border-radius: 999px;
padding: 3px 8px;
background: #f7fafc;
color: #3b4450;
font-size: 0.88em;
}
.fst-page .fst-world-desc {
color: #4b535d;
font-size: 0.95em;
line-height: 1.45;
}
.fst-page .fst-minirow {
margin-top: 10px;
}
.fst-page .fst-minirow .fst-btn a {
padding: 5px 10px;
font-size: 0.93em;
}
/* Tabs (:target) */
.fst-page .fst-tabs {
border: 1px solid #d8dde3;
border-radius: 14px;
background: #ffffff;
padding: 12px;
}
.fst-page .fst-tabtarget {
display: none;
}
.fst-page .fst-tabbar {
margin-bottom: 12px;
}
.fst-page .fst-tabbar a {
display: inline-block;
text-decoration: none;
border: 1px solid #d8dde3;
border-radius: 999px;
padding: 6px 12px;
margin: 0 8px 8px 0;
background: #ffffff;
color: #2c333a;
font-weight: 700;
}
.fst-page .fst-tabbar a:hover {
background: #f5f9ff;
}
.fst-page .fst-panels .fst-panel {
display: none;
border: 1px solid #d8dde3;
border-radius: 12px;
background: #fbfdff;
padding: 12px;
}
.fst-page .fst-panels .fst-panel-beginner {
display: block;
}
.fst-page #tab-intermediate:target ~ .fst-panels .fst-panel-beginner,
.fst-page #tab-advanced:target ~ .fst-panels .fst-panel-beginner {
display: none;
}
.fst-page #tab-intermediate:target ~ .fst-panels .fst-panel-intermediate {
display: block;
}
.fst-page #tab-advanced:target ~ .fst-panels .fst-panel-advanced {
display: block;
}
.fst-page .fst-tabbar a[href="#tab-beginner"] {
background: #e8f4ff;
border-color: #bcd6ee;
}
.fst-page #tab-intermediate:target ~ .fst-tabbar a[href="#tab-beginner"],
.fst-page #tab-advanced:target ~ .fst-tabbar a[href="#tab-beginner"] {
background: #ffffff;
border-color: #d8dde3;
}
.fst-page #tab-intermediate:target ~ .fst-tabbar a[href="#tab-intermediate"],
.fst-page #tab-advanced:target ~ .fst-tabbar a[href="#tab-advanced"] {
background: #e8f4ff;
border-color: #bcd6ee;
}
/* Lists inside panels */
.fst-page .fst-list {
margin: 8px 0 0 0;
}
.fst-page .fst-list ul {
margin: 6px 0 0 18px;
}
.fst-page .fst-list li {
margin: 4px 0;
}
/* News */
.fst-page .fst-news {
border: 1px solid #d8dde3;
border-radius: 14px;
background: #ffffff;
padding: 12px;
}
.fst-page .fst-newsitem {
border: 1px solid #d8dde3;
border-radius: 12px;
background: #ffffff;
padding: 10px 12px;
margin-top: 10px;
}
.fst-page .fst-newsitem:first-child {
margin-top: 0;
}
.fst-page .fst-newsitem-title {
font-weight: 800;
margin: 0 0 6px 0;
}
.fst-page .fst-newsitem-desc {
color: #4b535d;
font-size: 0.95em;
line-height: 1.45;
}
/* Footer */
.fst-page .fst-footer {
border-top: 1px solid #e3e7ec;
margin-top: 22px;
padding-top: 12px;
color: #4b535d;
}
.fst-page .fst-footer .fst-btn a {
background: #ffffff;
}
@media (max-width: 720px) {
.fst-page {
max-width: 100%;
}
.fst-page .fst-col {
min-width: 0;
}
.fst-page .fst-grid > .fst-tile {
min-width: 0;
flex-basis: 100%;
}
.fst-page .fst-world-tiles .fst-world {
min-width: 0;
flex-basis: 100%;
}
.fst-page .fst-topnav-left {
padding-right: 0;
}
.fst-page .fst-icon {
flex-basis: calc(50% - 12px);
}
}