MediaWiki:Common.css: различия между версиями
Перейти к навигации
Перейти к поиску
Gevron (обсуждение | вклад) м |
Gevron (обсуждение | вклад) м |
||
| Строка 55: | Строка 55: | ||
border-width:0.2em; | border-width:0.2em; | ||
border-radius:0.5em; | border-radius:0.5em; | ||
| − | + | max-width:1330%; | |
} | } | ||
.lawTable * a, | .lawTable * a, | ||
| Строка 103: | Строка 103: | ||
background-color:#CCCCCC; | background-color:#CCCCCC; | ||
border-color:#E5E5E5; | border-color:#E5E5E5; | ||
| + | } | ||
| + | .lawTable-vert { | ||
| + | writing-mode: sideways-lr; | ||
| + | height:184px; | ||
} | } | ||
Версия 12:57, 31 октября 2022
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
.tooltip{
position: relative;
}
.tooltiptext {
position: absolute;
display: block;
z-index: 2;
width: 250px;
padding: 10px;
visibility: hidden;
opacity: 0;
white-space: normal;
text-align: left;
transition: all 0.2s;
border: 1px solid #aaa;
background-color: #ffdd66;
}
.tooltiptable {
position: absolute;
display: block;
z-index: 2;
max-width:600px;
width:max-content;
padding: 10px;
top:11pt;
right:-55px;
visibility: hidden;
opacity: 0;
white-space: normal;
text-align: left;
transition: all 0.2s;
border: 1px solid #666;
background-color: #ff6666;
}
.tooltip:hover>.tooltiptext {
visibility: visible;
opacity: 1;
}
.tooltip:hover>.tooltiptable {
visibility: visible;
opacity: 1;
}
/* Таблица кодов нарушений */
.lawTable {
text-align:center;
background:black;
border-color:white;
border-style:outset;
border-width:0.2em;
border-radius:0.5em;
max-width:1330%;
}
.lawTable * a,
.lawTable * a:visited {
color:black;
}
.lawTable * a:active {
color:#0b0080;
}
.lawTable * th {
background:#F2F2F2;
font-weight:bold;
border-color:#CCCCCC;
border-style:double;
border-width:0.2em;
border-radius:0.3em;
box-shadow: 0 0 0.3em #999;
}
.lawTable * td{
font-weight:bold;
border-style:solid;
border-width:0.2em;
border-radius:0.3em;
box-shadow: 0 0 0.3em #999;
}
.lawTable * td:nth-of-type(1) {
background-color:#b6d7a8;
border-color:#b6d7a8;
}
.lawTable * td:nth-of-type(2) {
background-color:#2A9633;
border-color:#0F961A;
}
.lawTable * td:nth-of-type(3) {
background-color:#FFAA19;
border-color:#FFA500;
}
.lawTable * td:nth-of-type(4) {
background-color:#EE6A34;
border-color:#ED571C;
}
.lawTable * td:nth-of-type(5) {
background-color:#BF2626;
border-color:#BF1313;
}
.lawTable * td:nth-of-type(6) {
background-color:#CCCCCC;
border-color:#E5E5E5;
}
.lawTable-vert {
writing-mode: sideways-lr;
height:184px;
}