MediaWiki:Common.css: различия между версиями
Страница интерфейса MediaWiki
Дополнительные действия
Admin (обсуждение | вклад) Нет описания правки |
Admin (обсуждение | вклад) Нет описания правки |
||
| Строка 16: | Строка 16: | ||
width: 100% !important; | width: 100% !important; | ||
} | } | ||
/* Зеленый, желтый, оранжевый, красный, темно-красный */ | |||
.td-bg1 { background-color: #d9ead3; } | .td-bg1 { background-color: #d9ead3; } | ||
| Строка 28: | Строка 31: | ||
.th-bg4 { background-color: #e06666; } | .th-bg4 { background-color: #e06666; } | ||
.th-bg5 { background-color: #cc0000; } | .th-bg5 { background-color: #cc0000; } | ||
/* Вертикальный табс */ | |||
.vtabs { | .vtabs { | ||
| Строка 77: | Строка 83: | ||
display: block; | display: block; | ||
} | } | ||
/* Сворачиваемая панель */ | |||
.colstr-panel { | .colstr-panel { | ||
| Строка 84: | Строка 92: | ||
box-shadow: 0 2px 4px rgba(0,0,0,0.1); | box-shadow: 0 2px 4px rgba(0,0,0,0.1); | ||
font-family: sans-serif; | font-family: sans-serif; | ||
overflow: hidden; | |||
} | } | ||
| Строка 103: | Строка 112: | ||
.colstr-content { | .colstr-content { | ||
max-height: 0; | |||
opacity: 0; | |||
overflow: hidden; | |||
transition: max-height 0.4s ease, opacity 0.4s ease; | |||
padding: 0 14px; | |||
} | } | ||
.colstr-panel.open .colstr-content { | .colstr-panel.open .colstr-content { | ||
max-height: 500px; | |||
opacity: 1; | |||
padding: 10px 14px; | |||
} | } | ||
.colstr- | .colstr-header .arrow { | ||
margin-left: auto; | |||
transition: transform 0.3s; | transition: transform 0.3s; | ||
} | } | ||
| Строка 118: | Строка 132: | ||
.colstr-panel.open .arrow { | .colstr-panel.open .arrow { | ||
transform: rotate(180deg); | transform: rotate(180deg); | ||
} | } | ||
Версия от 03:46, 4 августа 2025
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
.law-td {
text-decoration: underline;
}
.law-td:hover {
cursor: pointer;
color: #1d4e8a;
}
.law-selected {
outline: 1px solid #529ff1;
}
.law-object table {
width: 100% !important;
}
/* Зеленый, желтый, оранжевый, красный, темно-красный */
.td-bg1 { background-color: #d9ead3; }
.td-bg2 { background-color: #fff2cc; }
.td-bg3 { background-color: #f9cb9c; }
.td-bg4 { background-color: #f4cccc; }
.td-bg5 { background-color: #e89b9b; }
.th-bg1 { background-color: #93c47d; }
.th-bg2 { background-color: #ffd966; }
.th-bg3 { background-color: #e69138; }
.th-bg4 { background-color: #e06666; }
.th-bg5 { background-color: #cc0000; }
/* Вертикальный табс */
.vtabs {
display: flex;
width: 100%;
border: 1px solid #ccc;
border-radius: 6px;
overflow: hidden;
}
.vtabs-buttons {
display: flex;
flex-direction: column;
width: 220px;
background-color: #f0f0f0;
border-right: 1px solid #ccc;
}
.vtabs-button {
padding: 12px 16px;
cursor: pointer;
font-weight: bold;
color: #333;
border-bottom: 1px solid #ddd;
transition: background 0.2s, color 0.2s;
}
.vtabs-button:hover {
background-color: #e0e0e0;
}
.vtabs-button.active {
background-color: #fff;
color: #2a6ddf;
border-left: 4px solid #2a6ddf;
}
.vtabs-content-wrapper {
flex-grow: 1;
padding: 20px;
background: #fff;
}
.vtabs-content {
display: none;
}
.vtabs-content.active {
display: block;
}
/* Сворачиваемая панель */
.colstr-panel {
border: 1px solid #ccc;
border-radius: 8px;
margin: 10px 0;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
font-family: sans-serif;
overflow: hidden;
}
.colstr-header {
background-color: #f4f4f4;
padding: 10px 14px;
cursor: pointer;
font-weight: bold;
display: flex;
justify-content: space-between;
align-items: center;
border-radius: 8px 8px 0 0;
transition: background-color 0.3s;
}
.colstr-header:hover {
background-color: #eaeaea;
}
.colstr-content {
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.4s ease, opacity 0.4s ease;
padding: 0 14px;
}
.colstr-panel.open .colstr-content {
max-height: 500px;
opacity: 1;
padding: 10px 14px;
}
.colstr-header .arrow {
margin-left: auto;
transition: transform 0.3s;
}
.colstr-panel.open .arrow {
transform: rotate(180deg);
}