Шаблон:Infobox buttons/styles.css

Версия от 01:50, 21 декабря 2021; MrGorun (обсуждение | вклад) (MrGorun изменил модель содержимого страницы Шаблон:Infobox buttons/styles.css с «обычный текст» на «Sanitized CSS»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
.infobox-extlink-list {
	position: absolute;
    margin-top: -100px;
    margin-left: -15px;
    padding: 15px 0;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    z-index: -1;
    border-radius: 12px;
    box-shadow: 0px -5px 10px -5px rgba(0,0,0,0.78);
    transition: opacity 0.2s ease,box-shadow 0.2s ease;
    text-align: left;
    overflow: hidden;
        
/*    position: absolute;*/
/*    margin-top: -400px;*/
/*    padding: 15px 0;*/
/*    width: 100%;*/
/*    visibility: hidden;*/
/*    opacity: 0;*/
/*    z-index: -1;*/
/*    background: white;*/
/*border-radius: 12px 12px 0 0;*/
        /*-webkit-box-shadow: 0px -5px 10px -5px rgba(0,0,0,0.78);*/
        /*-moz-box-shadow: 0px -5px 10px -5px rgba(0,0,0,0.78);*/
/*        box-shadow: 0px -5px 10px -5px rgba(0,0,0,0.78);*/
/*    transition: opacity 0.2s ease, box-shadow 0.2s ease;*/
/*    text-align: left;*/
/*    overflow: hidden;*/
    /* Clip background icon */
}

.infobox-button:hover .infobox-extlink-list {
    opacity: 1;
    z-index: 10;
    visibility: visible;
}

.infobox-button-bottom>span {
    display: block;
	border-radius: 0 0 12px 12px;
    padding: 10px 20px;
}

.infobox-button-top>span {
    display: block;
	border-radius: 12px 12px 0 0;
    padding: 10px 20px;
}

.infobox-button-common {
    background: #8e8677;
    color: #bbaf98;
}
.infobox-button-uncommon {
    background: linear-gradient(to bottom right,#cac8c8 10%,#aba8a4 55%);
    color: #887676;
}
.infobox-button-rare {
	background: linear-gradient(to bottom right,#4e9245 10%,#2c691e 65%);
    color: #65ab56;
}
.infobox-button-ultrarare {
	background: linear-gradient(to bottom right,#149cfa 0%,#054490 55%);
    color: #57a0f9;
}
.infobox-button-epic {
    background: linear-gradient(to bottom right,#644796 10%,#763886 65%);
    color: #b96fcc;
}
.infobox-button-legendary {
    background: linear-gradient(to bottom right,#fed058 0%,#ec7c0d 55%);
    color: #ffc286;
}
.infobox-button-mythic {
	background: linear-gradient(to bottom right,#55f3e1 0%,#359271 55%);
    color: #51f3b9;
}
.infobox-button-divine {
	background: linear-gradient(to bottom right,#504c56 0%,#333222 55%);
    color: #777666;
}
.infobox-button-godlike {
	background: linear-gradient(to bottom right,#ec1341 0%,#6b1526 55%);
	color: #a56572;
}
.infobox-button-eternal {
	background: linear-gradient(to bottom right,#ee68dc 0%,#842c7b 55%);
    color: #ca5dbe;
}
.infobox-button-galactic {
    background: linear-gradient(to bottom right,#effb3d 0%,#778d30 55%);
    color: #c8de81;
}

.infobox-extlink-title {
    display: block;
    padding: 0 20px;
    margin: 5px 0;
    font-size: 1rem;
}

.infobox-extlink-list ul {
    margin: 0 0 10px 0;
    padding: 0 10px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.infobox-extlink a {
    display: block;
    /* Override external link and file icons */
    padding: 5px 10px !important;
    border-radius: 4px;
    background-image: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.infobox-extlink a:hover {
    background-color: #eaecf0 !important;
}

.infobox-extlink a:active {
    background-color: #eaf3ff !important;
}

.infobox-extlink-title:before {
    display: block;
    position: absolute;
    width: 120px;
    height: 120px;
    margin-top: 5px;
    right: 20px;
    opacity: .1;
    z-index: -1;
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
}

.infobox-extlink-title-rsi:before {
    content: "";
    /* TemplateStyles does not like internal link for some reason */
     /*background-image: url(https://starcitizen.tools/images/4/40/RSItm.svg); */
}


.infobox-extlink-title-community:before {
    content: "";
    /* TemplateStyles does not like internal link for some reason */
      /*background-image: url(https://starcitizen.tools/images/3/3f/MadeByTheCommunity.svg); */
}

    .infobox-button>span {
        filter: saturate(0.8);
    }

    .infobox-extlink-list {
        background: #33363d;
    }

    .infobox-extlink-title:before {
        filter: invert(1);
    }

    .infobox-extlink a:hover {
        background-color: #2b2f36 !important;
    }