Участник:Torgovec/песочница/Заглавная страница/styles.css: различия между версиями
Материал из Space Station 14 | Время приключений Вики
Дополнительные действия
Torgovec (обсуждение | вклад) Torgovec создал страницу Участник:Torgovec/песочница/Заглавная страница/styles.css с использованием нестандартной модели содержимого «Sanitized CSS» |
Torgovec (обсуждение | вклад) Перенос кода с MediaWiki:Template.css для тестов, пришлось изменить (Надеемся что не сломаем ничего) |
||
| Строка 1: | Строка 1: | ||
/*** Шаблон:JobBanWarn ***/ | |||
table.jobbanwarn { | |||
background: #ff000020; | |||
border-radius: 15px; | |||
text-align: center; | |||
margin: auto; | |||
} | |||
table.jobbanwarn td.first { | |||
font-size: 36px; | |||
color: red; | |||
padding: 7px; | |||
text-shadow: 0 0 black; | |||
} | |||
table.jobbanwarn td.second p { | |||
margin-bottom: 0; | |||
} | |||
/*** Шаблон:Заглавная/СРП/Модуль ***/ | |||
.mainpage-sop-mainrow, .mainpage-sop-row1, .mainpage-sop-row2 { | |||
display: flex; | |||
flex: 1 1 auto; | |||
justify-content: space-around; | |||
flex-wrap: wrap; | |||
} | |||
.mainpage-sop-block { | |||
position: relative; | |||
display: inline-block; | |||
width: 100px; | |||
height: 100px; | |||
overflow: visible; | |||
} | |||
.mainpage-sop-book { | |||
display: flex; | |||
align-items: center; | |||
max-width: fit-content; | |||
overflow: hidden; | |||
border-radius: 8px; | |||
transition: background 0.1s linear, width 0.15s cubic-bezier(1, 0, 1, 1); | |||
} | |||
.mainpage-sop-text { | |||
padding: 0 25px; | |||
white-space: nowrap; | |||
align-self: stretch; | |||
} | |||
.mainpage-sop-text p { | |||
font-family: "Boxfont_Round"; | |||
font-size: 2em; | |||
color: black; | |||
display: block; | |||
position: relative; | |||
} | |||
.mainpage-sop-text p:before, | |||
.mainpage-sop-text p:after { | |||
content: attr(title); | |||
color: #ffffff80; | |||
position: absolute; | |||
} | |||
.mainpage-sop-text p:before { | |||
top: 1px; | |||
left: 1px; | |||
} | |||
.mainpage-sop-text p:after { | |||
top: 2px; | |||
left: 2px; | |||
} | |||
.mainpage-sop-book.right { | |||
float: right; | |||
right: 0; | |||
flex-direction: row-reverse; | |||
} | |||
.mainpage-sop-book img { | |||
transition: all 0.15s; | |||
} | |||
.mainpage-sop-book img:hover { | |||
filter: brightness(1.5); | |||
transform: scale(1.2); | |||
} | |||
.mainpage-sop-book:hover { | |||
width: fit-content !important; | |||
background: #232323e6; | |||
z-index: 1; | |||
position: absolute; | |||
} | |||
/** Мобильная адаптация**/ | |||
@media(max-width: 980px) { | |||
div.mainpage-sop-book:hover { | |||
width: 100% !important; | |||
} | |||
.mainpage-sop-book:hover::after { | |||
padding: 2px 4px; | |||
font-family: 'Boxfont_Round'; | |||
font-size: 1em; | |||
line-height: 1.1em; | |||
text-align: center; | |||
bottom: 0; | |||
position: absolute; | |||
z-index: 3; | |||
width: 100%; | |||
height: 40%; | |||
content: attr(title); | |||
background: rgba(38, 38, 38, 0.95); | |||
} | |||
} | |||
/** Оформление отдельных элементов шаблона **/ | |||
/* Командование */ | |||
.cmd.mainpage-sop-book:hover { | |||
background: #0a1172e6; | |||
} | |||
.cmd .mainpage-sop-text p:before, | |||
.cmd .mainpage-sop-text p:after { | |||
color: #eeeeff80; | |||
} | |||
/* Служба безопасности */ | |||
.sec.mainpage-sop-book:hover { | |||
background: #B90E0Ae6; | |||
} | |||
.sec .mainpage-sop-text p:before, | |||
.sec .mainpage-sop-text p:after { | |||
color: #ffeeee80; | |||
} | |||
/* Юридический отдел */ | |||
.jud.mainpage-sop-book:hover { | |||
background: #432616e6; | |||
} | |||
.jud .mainpage-sop-text p:before, | |||
.jud .mainpage-sop-text p:after { | |||
color: #ffeedd80; | |||
} | |||
/* Инженерный отдел */ | |||
.eng.mainpage-sop-book:hover { | |||
background: #E26310e6; | |||
} | |||
.eng .mainpage-sop-text p:before, | |||
.eng .mainpage-sop-text p:after { | |||
color: #ffe7d780; | |||
} | |||
/* Отдел снабжения */ | |||
.crg.mainpage-sop-book:hover { | |||
background: #B56727e6; | |||
} | |||
.crg .mainpage-sop-text p:before, | |||
.crg .mainpage-sop-text p:after { | |||
color: #ffead880; | |||
} | |||
/* Научный отдел */ | |||
.rnd.mainpage-sop-book:hover { | |||
background: #710193e6; | |||
} | |||
.rnd .mainpage-sop-text p:before, | |||
.rnd .mainpage-sop-text p:after { | |||
color: #f4ceff80; | |||
} | |||
/* Медицинский отдел */ | |||
.med.mainpage-sop-book:hover { | |||
background: #228195e6; | |||
} | |||
.med .mainpage-sop-text p:before, | |||
.med .mainpage-sop-text p:after { | |||
color: #82e9ff80; | |||
} | |||
/* Сервисный отдел */ | |||
.srv.mainpage-sop-book:hover { | |||
background: #3a3852e6; | |||
} | |||
.srv .mainpage-sop-text p:before, | |||
.srv .mainpage-sop-text p:after { | |||
color: #a7a4c780; | |||
} | |||
/* Центральное командование */ | |||
.ccm.mainpage-sop-book:hover { | |||
background: #166b16e6; | |||
} | |||
.ccm .mainpage-sop-text p:before, | |||
.ccm .mainpage-sop-text p:after { | |||
color: #c6f9d380; | |||
} | |||
.item-slot .item { | |||
position: relative; | |||
} | |||
.item-slot .popup { | |||
opacity: 0; | |||
position: absolute; | |||
width: 0%; | |||
max-width: 360px; | |||
max-height: 180px; | |||
min-width: 0px; | |||
min-height: 0px; | |||
left: 80%; | |||
top: 0%; | |||
padding: 2px 6px; | |||
overflow: hidden; | |||
border: 2px solid #464966; | |||
background-color: #25272cf2; | |||
transition: opacity 0.05s linear, min-width 0.1s cubic-bezier(0, 0, 0.2, 1), min-height 0.1s cubic-bezier(0, 0, 0.2, 1); | |||
} | |||
.item-slot .item:hover .popup { | |||
opacity: 1; | |||
z-index: 1; | |||
min-width: 150px; | |||
width: max-content; | |||
min-height: 50px; | |||
} | |||
.item-slot .item:hover > span img { | |||
opacity: 0.25; | |||
transition: opacity 0.1s linear; | |||
} | |||
/*** Шаблон:Tooltip ***/ | |||
.toltip-block { | |||
position: relative; | |||
display: inline-block; | |||
cursor: help; | |||
} | |||
.toltip-popup-content { | |||
display: none; | |||
overflow: auto; | |||
min-width: 200px; | |||
max-width: 300px; | |||
min-height: 70px; | |||
max-height: 300px; | |||
position: absolute; | |||
bottom: 100%; | |||
color: var(--color-base); | |||
background-color: var(--color-surface-3); | |||
padding: 10px; | |||
border-radius: 8px; | |||
box-shadow: 2px 2px 6px 2px rgba(0, 0, 0, 0.2); | |||
} | |||
.toltip-block:hover .toltip-popup-content { | |||
display: block; | |||
} | |||
/*** Шаблон:КастомБокс ***/ | |||
.custom-box .citizen-overflow-wrapper { | |||
max-width: none; | |||
margin-top: 0 !important; | |||
border-top-left-radius: 0 !important; | |||
border-top-right-radius: 0 !important; | |||
} | |||
/*** Шаблон:ФонБаннер ***/ | |||
.article-banner { | |||
position: absolute; | |||
z-index: -2; | |||
top: 0; | |||
left: 0; | |||
} | |||
.article-banner img { | |||
width: 100vw; | |||
height: auto; | |||
min-width: 680px; | |||
} | |||
Версия от 06:46, 6 октября 2026
/*** Шаблон:JobBanWarn ***/
table.jobbanwarn {
background: #ff000020;
border-radius: 15px;
text-align: center;
margin: auto;
}
table.jobbanwarn td.first {
font-size: 36px;
color: red;
padding: 7px;
text-shadow: 0 0 black;
}
table.jobbanwarn td.second p {
margin-bottom: 0;
}
/*** Шаблон:Заглавная/СРП/Модуль ***/
.mainpage-sop-mainrow, .mainpage-sop-row1, .mainpage-sop-row2 {
display: flex;
flex: 1 1 auto;
justify-content: space-around;
flex-wrap: wrap;
}
.mainpage-sop-block {
position: relative;
display: inline-block;
width: 100px;
height: 100px;
overflow: visible;
}
.mainpage-sop-book {
display: flex;
align-items: center;
max-width: fit-content;
overflow: hidden;
border-radius: 8px;
transition: background 0.1s linear, width 0.15s cubic-bezier(1, 0, 1, 1);
}
.mainpage-sop-text {
padding: 0 25px;
white-space: nowrap;
align-self: stretch;
}
.mainpage-sop-text p {
font-family: "Boxfont_Round";
font-size: 2em;
color: black;
display: block;
position: relative;
}
.mainpage-sop-text p:before,
.mainpage-sop-text p:after {
content: attr(title);
color: #ffffff80;
position: absolute;
}
.mainpage-sop-text p:before {
top: 1px;
left: 1px;
}
.mainpage-sop-text p:after {
top: 2px;
left: 2px;
}
.mainpage-sop-book.right {
float: right;
right: 0;
flex-direction: row-reverse;
}
.mainpage-sop-book img {
transition: all 0.15s;
}
.mainpage-sop-book img:hover {
filter: brightness(1.5);
transform: scale(1.2);
}
.mainpage-sop-book:hover {
width: fit-content !important;
background: #232323e6;
z-index: 1;
position: absolute;
}
/** Мобильная адаптация**/
@media(max-width: 980px) {
div.mainpage-sop-book:hover {
width: 100% !important;
}
.mainpage-sop-book:hover::after {
padding: 2px 4px;
font-family: 'Boxfont_Round';
font-size: 1em;
line-height: 1.1em;
text-align: center;
bottom: 0;
position: absolute;
z-index: 3;
width: 100%;
height: 40%;
content: attr(title);
background: rgba(38, 38, 38, 0.95);
}
}
/** Оформление отдельных элементов шаблона **/
/* Командование */
.cmd.mainpage-sop-book:hover {
background: #0a1172e6;
}
.cmd .mainpage-sop-text p:before,
.cmd .mainpage-sop-text p:after {
color: #eeeeff80;
}
/* Служба безопасности */
.sec.mainpage-sop-book:hover {
background: #B90E0Ae6;
}
.sec .mainpage-sop-text p:before,
.sec .mainpage-sop-text p:after {
color: #ffeeee80;
}
/* Юридический отдел */
.jud.mainpage-sop-book:hover {
background: #432616e6;
}
.jud .mainpage-sop-text p:before,
.jud .mainpage-sop-text p:after {
color: #ffeedd80;
}
/* Инженерный отдел */
.eng.mainpage-sop-book:hover {
background: #E26310e6;
}
.eng .mainpage-sop-text p:before,
.eng .mainpage-sop-text p:after {
color: #ffe7d780;
}
/* Отдел снабжения */
.crg.mainpage-sop-book:hover {
background: #B56727e6;
}
.crg .mainpage-sop-text p:before,
.crg .mainpage-sop-text p:after {
color: #ffead880;
}
/* Научный отдел */
.rnd.mainpage-sop-book:hover {
background: #710193e6;
}
.rnd .mainpage-sop-text p:before,
.rnd .mainpage-sop-text p:after {
color: #f4ceff80;
}
/* Медицинский отдел */
.med.mainpage-sop-book:hover {
background: #228195e6;
}
.med .mainpage-sop-text p:before,
.med .mainpage-sop-text p:after {
color: #82e9ff80;
}
/* Сервисный отдел */
.srv.mainpage-sop-book:hover {
background: #3a3852e6;
}
.srv .mainpage-sop-text p:before,
.srv .mainpage-sop-text p:after {
color: #a7a4c780;
}
/* Центральное командование */
.ccm.mainpage-sop-book:hover {
background: #166b16e6;
}
.ccm .mainpage-sop-text p:before,
.ccm .mainpage-sop-text p:after {
color: #c6f9d380;
}
.item-slot .item {
position: relative;
}
.item-slot .popup {
opacity: 0;
position: absolute;
width: 0%;
max-width: 360px;
max-height: 180px;
min-width: 0px;
min-height: 0px;
left: 80%;
top: 0%;
padding: 2px 6px;
overflow: hidden;
border: 2px solid #464966;
background-color: #25272cf2;
transition: opacity 0.05s linear, min-width 0.1s cubic-bezier(0, 0, 0.2, 1), min-height 0.1s cubic-bezier(0, 0, 0.2, 1);
}
.item-slot .item:hover .popup {
opacity: 1;
z-index: 1;
min-width: 150px;
width: max-content;
min-height: 50px;
}
.item-slot .item:hover > span img {
opacity: 0.25;
transition: opacity 0.1s linear;
}
/*** Шаблон:Tooltip ***/
.toltip-block {
position: relative;
display: inline-block;
cursor: help;
}
.toltip-popup-content {
display: none;
overflow: auto;
min-width: 200px;
max-width: 300px;
min-height: 70px;
max-height: 300px;
position: absolute;
bottom: 100%;
color: var(--color-base);
background-color: var(--color-surface-3);
padding: 10px;
border-radius: 8px;
box-shadow: 2px 2px 6px 2px rgba(0, 0, 0, 0.2);
}
.toltip-block:hover .toltip-popup-content {
display: block;
}
/*** Шаблон:КастомБокс ***/
.custom-box .citizen-overflow-wrapper {
max-width: none;
margin-top: 0 !important;
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
}
/*** Шаблон:ФонБаннер ***/
.article-banner {
position: absolute;
z-index: -2;
top: 0;
left: 0;
}
.article-banner img {
width: 100vw;
height: auto;
min-width: 680px;
}