テンプレート:Portal/styles.css
表示
/* 分野別ポータル(テンプレート:Portal)― 英語版 Portal の構成にならう */
.portal-container {
margin: 0 0 1em;
}
.portal-banner {
display: flex;
align-items: center;
gap: .8em;
padding: .8em 1.2em;
border-radius: 8px 8px 0 0;
color: #fff;
}
.portal-banner-symbol {
font-size: 3em;
line-height: 1;
}
.portal-banner-title {
font-size: 1.9em;
font-weight: bold;
line-height: 1.2;
}
.portal-banner-sub {
font-size: .95em;
opacity: .95;
}
.portal-banner a { color: inherit !important; }
.portal-row {
margin: .5em 0;
}
.portal-panel {
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 6px;
overflow: hidden;
background: var(--background-color-base, #fff);
margin-bottom: .6em;
}
.portal-panel-header {
padding: .35em .8em;
font-weight: bold;
font-size: 1.05em;
color: #fff;
}
.portal-panel-header a { color: inherit !important; }
.portal-panel-content {
padding: .5em .9em .7em;
line-height: 1.7;
}
.portal-highlights {
display: flex;
flex-wrap: wrap;
align-items: stretch;
gap: .6em;
}
.portal-highlights-column {
flex: 1 1 22em;
min-width: 0;
display: flex;
flex-direction: column;
}
/* 左右の列の高さを揃える:各列の最後の箱が残りの高さを埋める */
.portal-highlights-column > .portal-panel:last-child {
flex: 1 1 auto;
}
.portal-quote {
margin: .6em 0 0;
padding: .4em .8em;
border-left: 4px solid var(--border-color-base, #a2a9b1);
font-style: italic;
}
.portal-quote-by {
display: block;
text-align: right;
font-style: normal;
font-size: .9em;
}
.portal-cats ul, .portal-list ul {
columns: 2 10em;
column-gap: 1.2em;
margin-top: 0;
}
.portal-topics {
display: flex;
flex-wrap: wrap;
gap: .4em;
}
.portal-topic {
flex: 0 0 auto;
padding: .25em .7em;
border-radius: 999px;
border: 1px solid var(--border-color-base, #a2a9b1);
background: var(--background-color-neutral-subtle, #f8f9fa);
font-size: .92em;
white-space: nowrap;
}
.portal-group {
margin: .3em 0 .7em;
}
.portal-group-title {
font-weight: bold;
margin-bottom: .3em;
}
@media screen and (max-width: 720px) {
.portal-banner-symbol { font-size: 2.2em; }
.portal-banner-title { font-size: 1.4em; }
}
/* [[Category:テンプレートスタイル|Portal]] */