テンプレート:コミュニティ・ポータル/styles.css
表示
/* トンチンペディア:コミュニティ・ポータル 用(英語版 Community Portal の構成にならう) */
.cportal-header {
margin: .6rem 0 .4rem;
padding: .25rem .5rem;
background: var(--background-color-progressive-subtle, #d1e4ff);
color: var(--color-base, #202122);
border: 1px solid var(--border-color-progressive--focus, #a7c1e6);
border-radius: 4px;
text-align: center;
font-weight: bold;
font-size: 1.15em;
}
.cportal-lead {
margin: .4rem 0 .8rem;
line-height: 1.7;
}
.cportal-lead-title {
font-size: 1.35em;
font-weight: bold;
text-decoration: underline;
margin-bottom: .3rem;
}
.cportal-interact {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: .4rem;
margin: .3rem 0 .6rem;
}
.cportal-icon {
flex: 0 0 7.5rem;
text-align: center;
font-size: .9em;
line-height: 1.4;
padding: .4rem .2rem;
border-radius: 6px;
}
.cportal-icon:hover {
background: var(--background-color-progressive-subtle, #eaf3ff);
}
.cportal-icon img {
width: 64px;
height: 64px;
object-fit: contain;
}
.cportal-help {
display: flex;
flex-wrap: wrap;
}
.cportal-box {
flex: 1 1 30%;
min-width: 15rem;
margin: .2rem;
border: 1px solid #c8ccd1;
border-radius: 4px;
overflow: hidden;
background: var(--background-color-base, #fff);
}
.cportal-box-header {
text-align: center;
background: var(--background-color-interactive-subtle, #f7f7f7);
border-bottom: 1px solid var(--border-color-base, #c8ccd1);
padding: .4rem;
font-weight: bold;
}
.cportal-box-header small {
font-weight: normal;
color: var(--color-subtle, #54595d);
}
.cportal-box-body {
padding: .3rem .8rem .5rem;
font-size: .95em;
}
.cportal-box-more {
text-align: right;
font-size: .9em;
font-weight: bold;
}
.cportal-activity {
display: flex;
flex-wrap: wrap;
gap: .4rem;
}
.cportal-activity > div {
flex: 1 1 22rem;
min-width: 0;
}
.cportal-notices ul {
list-style: none;
margin: 0;
padding: 0;
}
.cportal-notices li {
margin: 0;
padding: .3rem 0 .3rem 1.6em;
border-bottom: 1px dashed #bbb;
text-indent: -1.4em;
}
.cportal-notices li::before {
content: "📢 ";
}
.cportal-notices li:last-child {
border-bottom: none;
}
.cportal-links-container {
display: flex;
flex-wrap: wrap;
gap: .4rem;
}
.cportal-links-column {
flex: 1 1 22rem;
min-width: 0;
}
.cportal-links-box {
margin-bottom: .4rem;
border: 1px solid #c8ccd1;
border-radius: 4px;
overflow: hidden;
}
.cportal-links-header {
padding: .4rem;
text-align: center;
font-weight: bold;
font-size: 1.05em;
}
.cportal-links {
padding: .3rem .9rem .6rem;
}
.cportal-green .cportal-links-header { background: var(--background-color-success-subtle, #e0f5ea); border-bottom: 3px solid #14866d; }
.cportal-orange .cportal-links-header { background: var(--background-color-warning-subtle, #ffeedd); border-bottom: 3px solid #e07b00; }
.cportal-blue .cportal-links-header { background: var(--background-color-progressive-subtle, #e1ecfb); border-bottom: 3px solid #36c; }
.cportal-purple .cportal-links-header { background: var(--background-color-neutral-subtle, #efe3fb); border-bottom: 3px solid #7d4cbe; }
@media screen and (max-width: 720px) {
.cportal-box { flex: 1 1 100%; }
.cportal-icon { flex: 0 0 6rem; }
}
/* [[Category:テンプレートスタイル|こみゆにていほおたる]] */