「MediaWiki:Common.css」の版間の差分

提供:WikiNebula
編集の要約なし
編集の要約なし
1行目: 1行目:
/* ここに記述したCSSはすべての外装に反映されます */
/* ここに記述したCSSはすべての外装に反映されます */
/* ===== 本文画像の幅調整(既存設定) ===== */
.full-width {
.full-width {
     display: block;
     display: block;
16行目: 17行目:
}
}


 
/* ===== SNSシェアボタン:記事の上下 ===== */
 
.wn-share {
/* ===== SNSシェアボタン ===== */
#wn-share {
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-wrap: wrap;
26行目: 25行目:
}
}


#wn-share a {
.wn-share--bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #c8ccd1;
}
 
.wn-share .wn-share__button {
     display: inline-flex;
     display: inline-flex;
     align-items: center;
     align-items: center;
42行目: 47行目:
}
}


#wn-share a[data-service="facebook"] {
.wn-share .wn-share__button:visited {
    color: #fff;
}
 
.wn-share .wn-share__button[data-service="facebook"] {
     background: #0866ff;
     background: #0866ff;
}
}


#wn-share a[data-service="line"] {
.wn-share .wn-share__button[data-service="line"] {
     background: #087c3e;
     background: #087c3e;
}
}


#wn-share a:hover {
.wn-share .wn-share__button:hover {
     filter: brightness(0.9);
     filter: brightness(0.9);
}
}


#wn-share a:focus-visible {
.wn-share a:focus-visible {
     outline: 3px solid #36c;
     outline: 3px solid #36c;
     outline-offset: 3px;
     outline-offset: 3px;
}
/* 左側のボタンは広い画面だけに表示 */
.wn-share--sidebar {
    display: none;
}
@media screen and (min-width: 1200px) {
    .skin-vector-2022 .wn-share--sidebar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        width: var(--wn-logo-size);
        margin: 0 0 16px;
        margin-left: calc(
            -14px + (var(--wn-menu-width) - var(--wn-logo-size)) / 2
        );
    }
    .wn-share--sidebar .wn-share__button {
        min-width: 0;
        padding: 6px 2px;
        font-size: 12px;
        overflow-wrap: anywhere;
    }
    .wn-share--sidebar .wn-share__official {
        grid-column: 1 / -1;
        display: block;
        padding: 4px 0;
        color: #36c;
        font-size: 12px;
        line-height: 20px;
        text-align: center;
        text-decoration: underline;
    }
}
}


@media print {
@media print {
     #wn-share {
     .wn-share {
         display: none;
         display: none !important;
     }
     }
}
}

2026年10月19日 (月) 14:58時点における版

/* ここに記述したCSSはすべての外装に反映されます */
/* ===== 本文画像の幅調整(既存設定) ===== */
.full-width {
    display: block;
    width: 100%;
}

.full-width > a {
    display: block;
    width: 100%;
}

.full-width img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== SNSシェアボタン:記事の上下 ===== */
.wn-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 20px;
}

.wn-share--bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #c8ccd1;
}

.wn-share .wn-share__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #202122;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    text-decoration: none;
}

.wn-share .wn-share__button:visited {
    color: #fff;
}

.wn-share .wn-share__button[data-service="facebook"] {
    background: #0866ff;
}

.wn-share .wn-share__button[data-service="line"] {
    background: #087c3e;
}

.wn-share .wn-share__button:hover {
    filter: brightness(0.9);
}

.wn-share a:focus-visible {
    outline: 3px solid #36c;
    outline-offset: 3px;
}

/* 左側のボタンは広い画面だけに表示 */
.wn-share--sidebar {
    display: none;
}

@media screen and (min-width: 1200px) {
    .skin-vector-2022 .wn-share--sidebar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        width: var(--wn-logo-size);
        margin: 0 0 16px;
        margin-left: calc(
            -14px + (var(--wn-menu-width) - var(--wn-logo-size)) / 2
        );
    }

    .wn-share--sidebar .wn-share__button {
        min-width: 0;
        padding: 6px 2px;
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .wn-share--sidebar .wn-share__official {
        grid-column: 1 / -1;
        display: block;
        padding: 4px 0;
        color: #36c;
        font-size: 12px;
        line-height: 20px;
        text-align: center;
        text-decoration: underline;
    }
}

@media print {
    .wn-share {
        display: none !important;
    }
}