2,710
回編集
編集の要約なし タグ: 手動差し戻し |
編集の要約なし |
||
| 704行目: | 704行目: | ||
} | } | ||
/* ================================================== | /* ========================================================= | ||
Tensura Wiki - Main page portal | |||
================================================== */ | ========================================================= */ | ||
.ts-main { | .ts-main { | ||
max-width: | --ts-blue: #3366cc; | ||
--ts-blue-dark: #2a4b8d; | |||
--ts-blue-soft: #f4f7fb; | |||
--ts-border: #c8ccd1; | |||
--ts-border-light: #eaecf0; | |||
--ts-text: #202122; | |||
--ts-subtext: #54595d; | |||
--ts-muted: #72777d; | |||
max-width: 1220px; | |||
margin: 0 auto; | margin: 0 auto; | ||
color: var(--ts-text); | |||
} | } | ||
.ts- | /* --------------------------------------------------------- | ||
margin: 0 0 | Intro | ||
padding: | --------------------------------------------------------- */ | ||
border-bottom: 1px solid | |||
.ts-welcome { | |||
display: flex; | |||
align-items: flex-end; | |||
justify-content: space-between; | |||
gap: 20px; | |||
margin: 0 0 24px; | |||
padding: 4px 0 18px; | |||
border-bottom: 1px solid var(--ts-border); | |||
} | } | ||
.ts- | .ts-welcome-title { | ||
margin: 0; | margin: 0 0 5px; | ||
font-size: | font-size: 1.55rem; | ||
font-weight: 700; | font-weight: 700; | ||
line-height: 1.35; | |||
} | } | ||
.ts- | .ts-welcome-desc { | ||
color: var(--ts-subtext); | |||
color: | line-height: 1.65; | ||
} | } | ||
.ts- | .ts-welcome-count { | ||
flex-shrink: 0; | |||
font-size: | color: var(--ts-muted); | ||
font-size: .9rem; | |||
} | } | ||
.ts-welcome-count strong { | |||
color: var(--ts-blue-dark); | |||
font-size: 1.1rem; | |||
} | |||
.ts-section { | /* --------------------------------------------------------- | ||
margin: | Section heading | ||
--------------------------------------------------------- */ | |||
.ts-main-section { | |||
margin: 26px 0; | |||
} | } | ||
.ts- | .ts-main-heading { | ||
margin: 0 0 12px; | margin: 0 0 12px !important; | ||
padding: 0 0 7px 10px; | padding: 0 0 7px 10px !important; | ||
border-left: 4px solid | |||
border-bottom: 1px solid | border-left: 4px solid var(--ts-blue); | ||
font-size: 1. | border-bottom: 1px solid var(--ts-border-light); | ||
font-size: 1.22rem !important; | |||
font-weight: 700; | font-weight: 700; | ||
line-height: 1.4; | |||
} | |||
.ts-main-heading::after { | |||
display: none; | |||
} | } | ||
/* ---------- | /* --------------------------------------------------------- | ||
Portal | |||
--------------------------------------------------------- */ | |||
.ts-portal-grid { | .ts-portal-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, 1fr); | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
overflow: hidden; | overflow: hidden; | ||
border: 1px solid var(--ts-border); | |||
border-radius: 5px; | |||
background: #fff; | background: #fff; | ||
} | } | ||
.ts-portal { | .ts-portal-card { | ||
display: grid; | |||
min-height: | grid-template-columns: 48px minmax(0, 1fr); | ||
padding: 18px | gap: 13px; | ||
border-right: 1px solid | |||
border-bottom: 1px solid | min-height: 108px; | ||
padding: 17px 18px; | |||
border-right: 1px solid var(--ts-border-light); | |||
border-bottom: 1px solid var(--ts-border-light); | |||
box-sizing: border-box; | box-sizing: border-box; | ||
transition: background-color .15s ease; | |||
} | |||
.ts-portal-card:hover { | |||
background: var(--ts-blue-soft); | |||
} | } | ||
.ts-portal:nth-child(3n) { | .ts-portal-card:nth-child(3n) { | ||
border-right: | border-right: 0; | ||
} | } | ||
.ts-portal:nth-last-child(-n+3) { | .ts-portal-card:nth-last-child(-n+3) { | ||
border-bottom: | border-bottom: 0; | ||
} | } | ||
.ts-portal: | .ts-portal-icon { | ||
background: # | display: flex; | ||
align-items: center; | |||
justify-content: center; | |||
width: 44px; | |||
height: 44px; | |||
border: 1px solid #a7b9d8; | |||
border-radius: 5px; | |||
background: #f8faff; | |||
color: var(--ts-blue-dark); | |||
font-size: 1.05rem; | |||
font-weight: 700; | |||
} | } | ||
.ts-portal-title { | .ts-portal-title { | ||
margin | margin: 0 0 4px; | ||
font-size: 1. | font-size: 1.02rem; | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
.ts-portal-title a { | .ts-portal-title a { | ||
color: | color: var(--ts-blue-dark); | ||
} | } | ||
.ts-portal- | .ts-portal-description { | ||
margin-bottom: | margin-bottom: 7px; | ||
color: | color: var(--ts-subtext); | ||
font-size: | font-size: .87rem; | ||
line-height: 1. | line-height: 1.55; | ||
} | } | ||
.ts-portal- | .ts-portal-more { | ||
font-size: | font-size: .86rem; | ||
} | } | ||
/* ---------- | /* --------------------------------------------------------- | ||
Panels | |||
--------------------------------------------------------- */ | |||
.ts-grid- | .ts-grid-4 { | ||
display: grid; | display: grid; | ||
grid-template-columns: 1fr | grid-template-columns: repeat(4, minmax(0, 1fr)); | ||
border: 1px solid var(--ts-border); | |||
border-radius: 5px; | |||
background: #fff; | |||
overflow: hidden; | |||
} | } | ||
.ts-grid- | .ts-grid-2 { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat( | grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
border: 1px solid var(--ts-border); | |||
border-radius: 5px; | |||
background: #fff; | |||
overflow: hidden; | |||
} | } | ||
.ts-panel { | .ts-panel { | ||
padding: 16px | min-width: 0; | ||
border: 1px solid | padding: 16px 17px 17px; | ||
border-right: 1px solid var(--ts-border-light); | |||
} | |||
.ts-grid-4 .ts-panel:last-child, | |||
.ts-grid-2 .ts-panel:last-child { | |||
border-right: none; | |||
} | } | ||
.ts-panel- | .ts-panel-heading { | ||
display: flex; | |||
align-items: center; | |||
gap: 7px; | |||
margin: 0 0 12px; | margin: 0 0 12px; | ||
padding-bottom: 7px; | padding-bottom: 7px; | ||
border-bottom: 1px solid | |||
font-size: | border-bottom: 1px solid var(--ts-border-light); | ||
color: var(--ts-blue-dark); | |||
font-size: 1rem; | |||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
.ts-panel-symbol { | |||
color: var(--ts-blue); | |||
font-size: .95rem; | |||
} | |||
/* ---------- | .ts-panel-content { | ||
font-size: .9rem; | |||
line-height: 1.7; | |||
} | |||
.ts-panel-content ul { | |||
margin: .2em 0 .2em 1.4em; | |||
} | |||
.ts-panel-content li { | |||
margin: .28em 0; | |||
} | |||
/* --------------------------------------------------------- | |||
Pickup | |||
--------------------------------------------------------- */ | |||
.ts-pickup-label { | |||
display: inline-block; | |||
margin-bottom: 7px; | margin-bottom: 7px; | ||
font-size: 1. | padding: 2px 7px; | ||
border-radius: 3px; | |||
background: #eef3fb; | |||
color: var(--ts-blue-dark); | |||
font-size: .72rem; | |||
font-weight: 700; | |||
} | |||
.ts-pickup-title { | |||
margin-bottom: 7px; | |||
font-size: 1.1rem; | |||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
.ts-pickup-text { | .ts-pickup-text { | ||
color: | color: var(--ts-subtext); | ||
line-height: 1. | line-height: 1.65; | ||
} | } | ||
.ts- | .ts-panel-footer { | ||
margin-top: | margin-top: 11px; | ||
text-align: right; | |||
font-size: | font-size: .85rem; | ||
} | } | ||
/* ---------- | /* --------------------------------------------------------- | ||
Mini list / ranking | |||
--------------------------------------------------------- */ | |||
.ts-ranking { | .ts-ranking { | ||
width: 100%; | width: 100%; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
font-size: .9rem; | |||
} | } | ||
.ts-ranking td { | .ts-ranking td { | ||
padding: 5px | padding: 5px 2px; | ||
border: none; | border: none !important; | ||
background: transparent !important; | |||
vertical-align: top; | |||
} | } | ||
.ts-ranking- | .ts-ranking-num { | ||
width: | width: 24px; | ||
color: | color: var(--ts-muted); | ||
text-align: center; | text-align: center; | ||
} | } | ||
.ts-ranking-value { | .ts-ranking-value { | ||
width: 60px; | |||
color: var(--ts-muted); | |||
text-align: right; | text-align: right; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
.ts-up { | |||
color: #14866d; | |||
font-weight: 600; | |||
} | |||
/* --------------------------------------------------------- | |||
New / recent | |||
--------------------------------------------------------- */ | |||
.ts-dpl { | |||
font-size: .88rem; | |||
} | |||
.ts-dpl ul { | |||
margin: 0; | |||
padding: 0; | |||
list-style: none; | |||
} | |||
.ts-dpl li { | |||
margin: 0; | |||
padding: 5px 0; | |||
border-bottom: 1px dotted #d8dfe8; | |||
} | |||
.ts-dpl li:last-child { | |||
border-bottom: none; | |||
} | |||
/* --------------------------------------------------------- | |||
Edit box | |||
--------------------------------------------------------- */ | |||
.ts-edit-list { | |||
margin: 0 !important; | |||
padding-left: 1.3em !important; | |||
} | |||
.ts-edit-list li { | |||
margin: .35em 0; | |||
} | |||
.ts-beginner-box { | |||
margin-top: 13px; | |||
padding: 11px 12px; | |||
border-left: 3px solid var(--ts-blue); | |||
background: var(--ts-blue-soft); | |||
font-size: .87rem; | |||
} | } | ||
.ts-beginner { | .ts-beginner-title { | ||
margin- | margin-bottom: 4px; | ||
font-weight: 700; | |||
} | } | ||
/* ---------- | /* --------------------------------------------------------- | ||
About | |||
--------------------------------------------------------- */ | |||
.ts-about { | .ts-about { | ||
padding: | padding: 17px 19px; | ||
border: 1px solid var(--ts-border); | |||
border-radius: 5px; | |||
background: #f8f9fa; | background: #f8f9fa; | ||
font-size: .91rem; | |||
line-height: 1.75; | line-height: 1.75; | ||
} | } | ||
.ts-about-title { | |||
margin-bottom: 5px; | |||
font-size: 1.05rem; | |||
font-weight: 700; | |||
} | |||
/* --------------------------------------------------------- | |||
Small navigation | |||
--------------------------------------------------------- */ | |||
.ts-subnav { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 0; | |||
@media screen and (max-width: | margin-top: 20px; | ||
padding: 11px 5px; | |||
border-top: 1px solid var(--ts-border-light); | |||
border-bottom: 1px solid var(--ts-border-light); | |||
justify-content: center; | |||
font-size: .84rem; | |||
} | |||
.ts-subnav a { | |||
padding: 0 11px; | |||
border-right: 1px solid var(--ts-border); | |||
} | |||
.ts-subnav a:last-child { | |||
border-right: none; | |||
} | |||
/* --------------------------------------------------------- | |||
Responsive | |||
--------------------------------------------------------- */ | |||
@media screen and (max-width: 1000px) { | |||
.ts-grid-4 { | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
} | |||
.ts-grid-4 .ts-panel { | |||
border-bottom: 1px solid var(--ts-border-light); | |||
} | |||
.ts-grid-4 .ts-panel:nth-child(2n) { | |||
border-right: none; | |||
} | |||
.ts-grid-4 .ts-panel:nth-last-child(-n+2) { | |||
border-bottom: none; | |||
} | |||
} | |||
@media screen and (max-width: 800px) { | |||
.ts-portal-grid { | .ts-portal-grid { | ||
grid-template-columns: 1fr | grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
} | |||
.ts-portal-card:nth-child(3n) { | |||
border-right: 1px solid var(--ts-border-light); | |||
} | } | ||
.ts-portal { | .ts-portal-card:nth-child(2n) { | ||
border-right: | border-right: 0; | ||
} | } | ||
.ts-portal:nth-child( | .ts-portal-card:nth-last-child(-n+3) { | ||
border- | border-bottom: 1px solid var(--ts-border-light); | ||
} | } | ||
.ts-portal:nth-child( | .ts-portal-card:nth-last-child(-n+2) { | ||
border-bottom: 0; | |||
} | |||
.ts-grid-2 { | |||
grid-template-columns: 1fr; | |||
} | |||
.ts-grid-2 .ts-panel { | |||
border-right: none; | border-right: none; | ||
border-bottom: 1px solid var(--ts-border-light); | |||
} | } | ||
.ts- | .ts-grid-2 .ts-panel:last-child { | ||
border-bottom: | border-bottom: none; | ||
} | } | ||
.ts- | .ts-welcome { | ||
display: block; | |||
} | } | ||
.ts- | .ts-welcome-count { | ||
margin-top: 10px; | |||
} | } | ||
} | } | ||
@media screen and (max-width: 520px) { | @media screen and (max-width: 520px) { | ||
.ts-portal-grid { | .ts-portal-grid, | ||
.ts-grid-4 { | |||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | } | ||
.ts-portal, | .ts-portal-card, | ||
.ts-portal:nth-child(2n), | .ts-portal-card:nth-child(2n), | ||
.ts-portal:nth-child(3n) { | .ts-portal-card:nth-child(3n) { | ||
border-right: none; | |||
border-bottom: 1px solid var(--ts-border-light); | |||
} | |||
.ts-portal-card:last-child { | |||
border-bottom: none; | |||
} | |||
.ts-grid-4 .ts-panel, | |||
.ts-grid-4 .ts-panel:nth-child(2n) { | |||
border-right: none; | border-right: none; | ||
border-bottom: 1px solid | border-bottom: 1px solid var(--ts-border-light); | ||
} | } | ||
.ts- | .ts-grid-4 .ts-panel:last-child { | ||
border-bottom: none; | border-bottom: none; | ||
} | } | ||
.ts- | .ts-welcome-title { | ||
font-size: 1. | font-size: 1.35rem; | ||
} | } | ||
} | } | ||