MediaWiki:Extra.css: различия между версиями
Страница интерфейса MediaWiki
Дополнительные действия
м Исправление ошибки |
M&B (обсуждение | вклад) Перенос на Extra |
||
(не показаны 22 промежуточные версии 1 участника) | |||
Строка 1: | Строка 1: | ||
/*** | /*** Блок оформления слота - минимализм ***/ | ||
. | .minimal-slot:hover { | ||
border-image: url("https://wiki.adventurestation.space/images/e/ed/Minimal-slot_highlight.png") 128 stretch; | |||
} | } | ||
. | .minimal-slot { | ||
border: 12px solid #242230; | |||
border-image: url("https://wiki.adventurestation.space/images/a/af/Minimal-slot-border.png") 128 stretch; | |||
border-radius: 10px 25px; | |||
background-image: url("https://wiki.adventurestation.space/images/b/b2/Minimal-slot-background.png"); | |||
background-size: 2.6px; | |||
} | } | ||
. | /*** Чередование строк в таблице ***/ | ||
background-color: | .alternation tr:nth-child(even) { | ||
background-color: var(--color-surface-1); | |||
} | } | ||
. | /*** Инфобоксы ***/ | ||
/* Мобильная адаптация */ | |||
@media(max-width: 700px) { | |||
div.infobox { | |||
float: none; | |||
margin: 16px; | |||
width: auto; | |||
} | |||
} | } | ||
/** | /* Основные селекторы */ | ||
. | .infobox { | ||
display: flex; | |||
flex-direction: column; | |||
flex-wrap: nowrap; | |||
float: right; | |||
margin-left: 16px; | |||
width: 318px; | |||
background: #000; | |||
} | |||
.inf-title { | |||
padding: 2px 4px; | |||
background-color: var(--color-surface-1); | |||
text-align: center; | |||
font-size: 1.8em; | |||
} | |||
div.infobox > p { | |||
text-align: center; /* Костыль для позиционирования изображений внутри инфобокса*/ | |||
} | |||
.inf-row { | |||
display: flex; | |||
flex-direction: row; | |||
flex-wrap: nowrap; | |||
align-items: center; | |||
padding: 6px 6px; | |||
border-bottom: solid black 1px; | |||
background-color: var(--color-surface-2); | |||
} | |||
.inf-row:last-child { | |||
border-bottom: none; | |||
} | |||
.inf-row:hover { | |||
background-color: var(--color-surface-2--hover); | |||
} | |||
.inf-label { | |||
flex: 1 2 35%; | |||
text-align: left; | |||
font-weight: bold; | |||
} | } | ||
.inf-data { | |||
flex: 3 1 65%; | |||
padding-left: 6px; | |||
text-align: left; | |||
} | } | ||
.inf-header { | |||
padding: 2px 4px; | |||
text-align: center; | |||
font-size: 1.2em; | |||
font-weight: bold; | |||
background-color: var(--color-surface-4); | |||
} | } | ||
/** | /*ADD M&B*/ | ||
. | |||
/* Табличка start */ | |||
.fancy-table { | |||
border-collapse: collapse; | |||
width: 100%; | |||
font-family: Arial, sans-serif; | |||
} | } | ||
.fancy-table th, | |||
. | .fancy-table td { | ||
background-color | border: 1px solid; | ||
padding: 6px; | |||
position: relative; | |||
transition: background-color 0.3s, box-shadow 0.3s; | |||
} | } | ||
/* | /* Hover для заголовков — старый эффект */ | ||
. | .fancy-table th:hover { | ||
background-color: rgba(81, 29, 129, 0.733); | |||
color: white; | |||
} | } | ||
. | /* Hover для ячеек — старый эффект */ | ||
.fancy-table td:hover { | |||
box-shadow: inset 0px 0px 15px rgba(0,0,0,0.3); | |||
transition: linear 0.3s; | |||
} | } | ||
. | /* Нижняя линия при hover */ | ||
.fancy-table td::before { | |||
content: ""; | |||
position: absolute; | |||
bottom: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 3px; | |||
background-color: currentColor; | |||
transform: scaleX(0); | |||
transform-origin: left; | |||
transition: transform 0.3s ease; | |||
} | } | ||
. | .fancy-table td:hover::before { | ||
transform: scaleX(1); | |||
} | } | ||
/* Табличка end */ | |||
/*END M&B*/ |
Текущая версия от 21:21, 9 сентября 2025
/*** Блок оформления слота - минимализм ***/
.minimal-slot:hover {
border-image: url("https://wiki.adventurestation.space/images/e/ed/Minimal-slot_highlight.png") 128 stretch;
}
.minimal-slot {
border: 12px solid #242230;
border-image: url("https://wiki.adventurestation.space/images/a/af/Minimal-slot-border.png") 128 stretch;
border-radius: 10px 25px;
background-image: url("https://wiki.adventurestation.space/images/b/b2/Minimal-slot-background.png");
background-size: 2.6px;
}
/*** Чередование строк в таблице ***/
.alternation tr:nth-child(even) {
background-color: var(--color-surface-1);
}
/*** Инфобоксы ***/
/* Мобильная адаптация */
@media(max-width: 700px) {
div.infobox {
float: none;
margin: 16px;
width: auto;
}
}
/* Основные селекторы */
.infobox {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
float: right;
margin-left: 16px;
width: 318px;
background: #000;
}
.inf-title {
padding: 2px 4px;
background-color: var(--color-surface-1);
text-align: center;
font-size: 1.8em;
}
div.infobox > p {
text-align: center; /* Костыль для позиционирования изображений внутри инфобокса*/
}
.inf-row {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
padding: 6px 6px;
border-bottom: solid black 1px;
background-color: var(--color-surface-2);
}
.inf-row:last-child {
border-bottom: none;
}
.inf-row:hover {
background-color: var(--color-surface-2--hover);
}
.inf-label {
flex: 1 2 35%;
text-align: left;
font-weight: bold;
}
.inf-data {
flex: 3 1 65%;
padding-left: 6px;
text-align: left;
}
.inf-header {
padding: 2px 4px;
text-align: center;
font-size: 1.2em;
font-weight: bold;
background-color: var(--color-surface-4);
}
/*ADD M&B*/
/* Табличка start */
.fancy-table {
border-collapse: collapse;
width: 100%;
font-family: Arial, sans-serif;
}
.fancy-table th,
.fancy-table td {
border: 1px solid;
padding: 6px;
position: relative;
transition: background-color 0.3s, box-shadow 0.3s;
}
/* Hover для заголовков — старый эффект */
.fancy-table th:hover {
background-color: rgba(81, 29, 129, 0.733);
color: white;
}
/* Hover для ячеек — старый эффект */
.fancy-table td:hover {
box-shadow: inset 0px 0px 15px rgba(0,0,0,0.3);
transition: linear 0.3s;
}
/* Нижняя линия при hover */
.fancy-table td::before {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 3px;
background-color: currentColor;
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s ease;
}
.fancy-table td:hover::before {
transform: scaleX(1);
}
/* Табличка end */
/*END M&B*/