MediaWiki:Common.css: различия между версиями
Материал из Энциклосамсонии
Перейти к навигацииПерейти к поиску
м |
Instalol (обсуждение | вклад) |
||
| Строка 89: | Строка 89: | ||
overflow: hidden; | overflow: hidden; | ||
transform: scale(0.9); | transform: scale(0.9); | ||
} | |||
/* Стили для красивой кнопки */ | |||
.button-template { | |||
display: inline-block; | |||
padding: 8px 20px; | |||
font-weight: bold; | |||
text-align: center; | |||
text-decoration: none; | |||
color: white; | |||
background: linear-gradient(45deg, #4CAF50, #45A049); | |||
border-radius: 5px; | |||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); | |||
transition: background 0.3s ease, box-shadow 0.3s ease; | |||
cursor: pointer; | |||
border: none; | |||
user-select: none; | |||
} | |||
.button-template:hover { | |||
background: linear-gradient(45deg, #45A049, #4CAF50); | |||
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); | |||
text-decoration: none; | |||
color: white; | |||
} | |||
.button-template:active { | |||
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.4); | |||
} | |||
.button-template a { | |||
color: inherit; | |||
text-decoration: none; | |||
display: block; | |||
} | } | ||
Версия от 12:33, 23 сентября 2025
.pmargin p {
margin: 0;
}
.pmargin figure {
margin: 0;
}
.mainpage-catalogue ul {
column-count: 2;
}
.mainpage-container .mw-heading {
margin-top: 0px;
padding-top: 0px;
}
.mainpage-container .mw-changeslist-legend {
display: none;
}
.mainpage-warning .mw-heading {
border-bottom: 1px solid IndianRed;
}
a[href$="/Instalol"],
a[href$=":Instalol"] {
color: #6FD80A;
}
#p-logo {
margin-bottom: 0;
margin-top: 30px;
}
.pmargin > .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem {
display: none;
}
.pmargin .CategoryTreePageBullet {
display: none;
}
.pmargin .CategoryTreeChildren {
margin-left: 22.4px;
}
.pmargin .CategoryTreeItem {
display: list-item;
}
.mainpage-yellow {
border: 1px solid yellow;
background-color: LightYellow;
}
.mainpage-yellow .mw-heading2 {
border-bottom-color: Khaki;
}
.mainpage-red {
border: 1px solid red;
background-color: LightPink;
}
.mainpage-red .mw-heading2 {
border-bottom-color: IndianRed;
}
.mainpage-yellow > .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeChildren > .CategoryTreeSection {
width: fit-content;
}
.mainpage-yellow > .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeChildren {
column-count: 2;
}
.mainpage-green {
border: 1px solid green;
background-color: #d8FBd8;
}
.mainpage-green .mw-heading2 {
border-bottom-color: #b8FBb8;
}
img {
transition: transform 0.2s ease;
}
img:hover {
overflow: hidden;
transform: scale(0.9);
}
/* Стили для красивой кнопки */
.button-template {
display: inline-block;
padding: 8px 20px;
font-weight: bold;
text-align: center;
text-decoration: none;
color: white;
background: linear-gradient(45deg, #4CAF50, #45A049);
border-radius: 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
transition: background 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
border: none;
user-select: none;
}
.button-template:hover {
background: linear-gradient(45deg, #45A049, #4CAF50);
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
text-decoration: none;
color: white;
}
.button-template:active {
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.4);
}
.button-template a {
color: inherit;
text-decoration: none;
display: block;
}