Шаблон:Кобра/styles.css: различия между версиями
Перейти к навигации
Перейти к поиску
Rodion (обсуждение | вклад) Нет описания правки Метка: отменено |
Rodion (обсуждение | вклад) Нет описания правки Метка: ручная отмена |
||
| Строка 1: | Строка 1: | ||
/* | .center { /* Minerva skin doesn't provide this */ | ||
. | text-align: center; | ||
} | |||
.cobra-banner-image { | |||
max-width: 100%; | |||
height: 100%; | |||
object-fit: contain; | |||
margin-top: 1vh; | |||
} | |||
.cobra-subtitle { | |||
text-align: center; | |||
} | |||
.cobra-header { | |||
display: flex; | |||
flex-direction:row; | |||
flex-wrap: wrap; | |||
text-align:center; /* noflex */ | |||
padding: 5px; | |||
margin-bottom:1em; | |||
} | } | ||
. | .cobra-header + .cobra-header { | ||
margin-top: -2em; | |||
} | } | ||
. | .cobra-header > .cobra-tab { | ||
display:inline-block; /* noflex */ | |||
flex:1 1 0; | |||
align-self: flex-end; | |||
vertical-align:bottom; /* noflex */ | |||
text-align:center; | |||
font-size:larger; | |||
margin: 5px; | |||
} | } | ||
.cobra-tab > .black-marker { | |||
. | visibility: hidden; | ||
background-color: #808080; | |||
height: 0.6em; | |||
} | } | ||
.cobra-tab.selected > .black-marker { | |||
. | visibility: visible; | ||
} | } | ||
@media (max-width:550px) { | |||
. | .cobra-header { | ||
flex-direction:column; | |||
padding:0; | |||
margin-top: 0!important; /* cancels out the sibling styling */ | |||
} | |||
.cobra-header > .cobra-tab { | |||
width: 100%; | |||
margin:0; | |||
} | |||
/* At smaller sizes we make the hr the green marker */ | |||
.cobra-tab > .black-marker { | |||
display:none; | |||
} | |||
.cobra-tab > p { | |||
margin:0 2vw 0 2vw; | |||
} | |||
.cobra-tab.selected > hr { | |||
background-color: #808080; | |||
height: 5px; | |||
} | |||
} | } | ||
@media (min-width:551px) { | |||
.cobra-subtitle { | |||
@media ( | font-size:155%; | ||
} | |||
} | } | ||
Текущая версия от 22:14, 24 октября 2025
.center { /* Minerva skin doesn't provide this */
text-align: center;
}
.cobra-banner-image {
max-width: 100%;
height: 100%;
object-fit: contain;
margin-top: 1vh;
}
.cobra-subtitle {
text-align: center;
}
.cobra-header {
display: flex;
flex-direction:row;
flex-wrap: wrap;
text-align:center; /* noflex */
padding: 5px;
margin-bottom:1em;
}
.cobra-header + .cobra-header {
margin-top: -2em;
}
.cobra-header > .cobra-tab {
display:inline-block; /* noflex */
flex:1 1 0;
align-self: flex-end;
vertical-align:bottom; /* noflex */
text-align:center;
font-size:larger;
margin: 5px;
}
.cobra-tab > .black-marker {
visibility: hidden;
background-color: #808080;
height: 0.6em;
}
.cobra-tab.selected > .black-marker {
visibility: visible;
}
@media (max-width:550px) {
.cobra-header {
flex-direction:column;
padding:0;
margin-top: 0!important; /* cancels out the sibling styling */
}
.cobra-header > .cobra-tab {
width: 100%;
margin:0;
}
/* At smaller sizes we make the hr the green marker */
.cobra-tab > .black-marker {
display:none;
}
.cobra-tab > p {
margin:0 2vw 0 2vw;
}
.cobra-tab.selected > hr {
background-color: #808080;
height: 5px;
}
}
@media (min-width:551px) {
.cobra-subtitle {
font-size:155%;
}
}