credit:style

クレジット付き評価モジュール

開発:

改良:

使い方:

このコードは評価モジュールの代わりに使われます。

[[include credit:start]]
**タイトル:** SCP-XXX - タイトル
**著者:** [[*user 作者のアカウント名]]
**オリジナル:** オリジナル記事へのリンク
**訳者:** [[*user 訳者のアカウント名]]
**画像:** ライセンスがある画像のクレジット
[[include credit:otherwise]]
新しいウィンドウで現れる選択的クレジットを表記する場所です。略すには「[[include credit:otherwise]]」を消してください。
[[include credit:end]]

注意:ページのプレビューからページを保存するまでモジュールが正しく表示されないことがあります。それはバグではありません。


@import url('http://cdnjs.cloudflare.com/ajax/libs/cc-icons/1.2.1/css/cc-icons.min.css');
 
#u-credit-view, #u-credit-otherwise {
    width: 100%;
    height: 100%;
    top: 0px;
    bottom: 0;
    left: 0;
    right: 0;
    position: fixed;
    display: flex;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    z-index: 10;
}
#u-credit-view:not(:target), #u-credit-otherwise:not(:target) {
    opacity: 0;
    display: none;
 
}
#u-credit-view:target, #u-credit-otherwise:target {
    opacity: 1;
        animation-duration: 0.3s;
      animation-name: fade-in;
      -moz-animation-duration: 0.5s;
      -moz-animation-name: fade-in;
      -webkit-animation-duration: 0.5s;
      -webkit-animation-name: fade-in;
}
@keyframes fade-in {
      0% {
        display: none;
        opacity: 0;
      }
      1% {
        display: block;
        opacity: 0;
      }
      100% {
        display: block;
        opacity: 1;
      }
    }
    @-moz-keyframes fade-in {
      0% {
        display: none;
        opacity: 0;
      }
      1% {
        display: block;
        opacity: 0;
      }
      100% {
        display: block;
        opacity: 1;
      }
    }
    @-webkit-keyframes fade-in {
      0% {
        display: none;
        opacity: 0;
      }
      1% {
        display: block;
        opacity: 0;
      }
      100% {
        display: block;
        opacity: 1;
      }
    }
.fader{
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.fader iframe{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.modalcontainer{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 400px;
    height: 200px;
    margin: auto;
}
.modalbox{
    min-width: 400px;
    padding-bottom: 1em;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(102, 0, 0, .5);
}
#u-credit-otherwise .modalbox {
    background-color: #fff;
}
 
.modalbox .modalbox-title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 50px;
    background: #ccc;
    margin-bottom: 14px;
    border-radius: 5px 5px 0 0;
}
 
.modalbox .modalbox-title.heritage h2 {
    display: flex;
    align-items: center;
}
 
.modalbox .modalbox-title.heritage h2:before {
    content: "";
    background: url('http://scp-jp.wdfiles.com/local--files/heritage-collection-jp/heritage-emblem.png') no-repeat;
    background-size: 40px, 40px;
    display: inline-flex;
    width: 40px;
    height: 40px;
    margin-right: 0.3em;
}
 
.modalbox .credit {
    margin: 2em;
}
.modalbox .credit:not(:first-child) {
    margin-top: 0;
}
.modalbox .credit:not(:last-child) {
    margin-bottom: 0;
}
.modalbox .credit.otherwise {
    overflow-y: scroll;
    height: 150px;
}
#u-credit-view .credit-back {
    display:none;
}
#u-credit-otherwise .creditBottomRate {
    display:none;
}
 
@media (max-width: 767px) {
#u-credit-view {
    height: 100%;
    top: 0;
}
.modalcontainer{
    min-width: 300px;
}
.modalbox{
    min-width: 300px;
}
}
#u-credit-view-button {
    display: block;
    text-align: right;
}
.Dendo{
    display: none;
    justify-content: center;
    margin-top: 0.5em;
    padding-top: 1em;
    border-top: 2px solid #633;
}
.Dendo .heritage-rating-module{
    float:right;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    vertical-align: top;
    margin: 0;
}
 
.modalbox .modalbox-ratemodule {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1em;
}
 
.modalbox .modalbox-ratemodule .page-rate-widget-box {
    display: flex;
}
 
.modalbox.heritage {
    background: linear-gradient(to bottom, #fff6f0, #fff);
    border: #633 solid 7px;
    box-shadow: 2px 2px 6px rgba(204, 192, 102, .8), -2px -2px 6px rgba(204, 192, 102, .8);
}
 
#u-credit-otherwise .modalbox.heritage {
    background: linear-gradient(to bottom, #fff6f0, #fff);
    box-shadow: 2px 2px 6px rgba(204, 192, 102, .8), -2px -2px 6px rgba(204, 192, 102, .8);
}
 
.modalbox.heritage .modalbox-title {
    background: linear-gradient(to bottom, #633, #966);
    color: #fff;
    border-radius: 0;
}
 
.creditRate {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    align-items: center;
    float:right;
    margin-bottom:10px;
    margin-right:2em;
}
 
.creditRate .page-rate-widget-box {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
 
.creditRate .heritage-rating-module {
    float: right;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    vertical-align: top;
    margin: 0;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, .5);
    padding: 0 5px;
}
 
.creditRate .heritage-rating-module .page-rate-widget-box{
    margin:0;
}
 
.creditRate .audio-img-block {
    top: 0;
}
 
.rate-box-with-credit-button{
    background-color: #633 !important;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0,0,0,.5);
}
 
.rate-box-with-credit-button .page-rate-widget-box{
    box-shadow: none;
}
.rate-box-with-credit-button .creditButton {
    display: inline-block;
}
 
.creditRate .rateBox{
    display:inline-flex;
}
 
.creditButton{
    font-size: 0.8em;
}
.creditButton a{
    width: 17px;
    margin-left: -5px;
    padding: 0 5px 0 3px;
    color: #fff6f0;
    border-left: solid 1px #966;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
}
.creditButton a:hover {
    color: #966;
}
 
.heritage-rating-module .creditButton {
    display: flex;
    justify-content: center;
    align-items: center;
}
 
.heritage-rating-module .creditButton a{
    margin-left: 0;
    margin-right: -5px;
}
.heritage-rating-module .creditButton a:hover {
    color: #966;
}
 
.heritage-rating-module .heritage-emblem {
    width: 20px;
    height: 20px;
}
 
.heritage-rating-module .heritage-emblem a {
    width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
 
.heritage-rating-module .heritage-emblem img {
    width: 20px;
    height: 20px;
}
 
.heritage-rating-module .page-rate-widget-box span {
    box-sizing: content-box;
}
 
.modalbox .page-rate-widget-box {
    margin-right: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
 
.credit-back .back a {
    display: none;
}
.credit-back .back a::before {
    content: "クレジット";
}
 
.page-rate-widget-box span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 18px;
    box-sizing: border-box;
}
 
.page-rate-widget-box .rate-points {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
    font-weight: bolder;
    font-size: 11px;
    border: none;
}
 
.page-rate-widget-box .cancel {
    padding: 0 2px 0 3px;
    border: none;
}
 
.page-rate-widget-box .cancel a {
    font-family: 'FontAwesome';
    font-weight: 400;
    font-size: 0;
    color: #fff6f0;
    padding: 3px 5px;
    height: 12px;
}
 
.page-rate-widget-box .cancel a:hover {
    color: #966;
}
 
.page-rate-widget-box .cancel a:before {
    content: '\f00d';
    font-size: 10px;
}
 
.page-rate-widget-box .rateup a, .page-rate-widget-box .ratedown a {
display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0;
    font-family: 'FontAwesome';
    font-weight: 400;
    padding: 2px 5px;
    height: 16px;
    box-sizing: border-box;
}
 
.page-rate-widget-box .rateup a:before {
    content: '\f067';
    font-size: 10px;
 
}
 
.page-rate-widget-box .ratedown a:before {
    content: '\f068';
    font-size: 10px;
}
 
#page-content div.creditRate, #page-content div.creditRate div {
    max-width: none;
}
 
.modalbox .heritage-rating-module .page-rate-widget-box .rateup, 
.modalbox .heritage-rating-module .page-rate-widget-box .ratedown {
    box-sizing: border-box;
}
特に指定がない限り、このサイトのコンテンツには次のライセンスが適用されます: Creative Commons Attribution-ShareAlike 3.0 License