MediaWiki:Common.css: различия между версиями
Страница интерфейса MediaWiki
DeRecnad (обсуждение | вклад) мНет описания правки |
DeRecnad (обсуждение | вклад) мНет описания правки |
||
Строка 17: | Строка 17: | ||
{display:none !important} | {display:none !important} | ||
*/ | */ | ||
.home-header { | |||
position: relative; | |||
margin-top: -1rem; | |||
margin-bottom: 2rem; | |||
padding-top: 1rem; | |||
line-height: 1.375; | |||
} | |||
.home-header:before { | |||
content: ""; | |||
position: absolute; | |||
top: 1rem; | |||
bottom: 4.75rem; | |||
left: 0; | |||
right: 0; | |||
opacity: 0.1; | |||
/*background-image: url(https://starcitizen.tools/resources/assets/sitelogo.svg); */ | |||
background-repeat: no-repeat; | |||
background-position: right; | |||
} | |||
.home-header__pretitle { | |||
margin-bottom: calc(0.5 * 1rem); | |||
color: hsl(220,25%,65%); | |||
font-size: 0.875rem; | |||
text-transform: uppercase; | |||
letter-spacing: 0.05em; | |||
} | |||
.home-header__title { | |||
margin: 0; | |||
font-size: 3rem; | |||
text-transform: uppercase; | |||
letter-spacing: 0.025em; | |||
line-height: 1; | |||
} | |||
.home-header__subtitle { | |||
margin-top: calc(0.5 * 1rem); | |||
font-size: 0.875rem; | |||
} | |||
.home-header__search { | |||
padding: 1rem; | |||
margin-top: calc(1.25 * 1rem); | |||
margin-bottom: 1rem; | |||
margin-left: auto; | |||
margin-right: auto; | |||
border: 1px solid; | |||
border-color: rgba(255,255,255,0.08); | |||
border-radius: 9999px; | |||
cursor: pointer; | |||
font-size: 0.875rem; | |||
font-weight: 500; | |||
text-align: center; | |||
} | |||
.home-header__search:hover { | |||
background-color: rgba(255,255,255,0.07000000000000001); | |||
} | |||
.home-header__searchIcon img { | |||
margin-right: 1rem; | |||
opacity: 0.4; | |||
} | |||
/* Fix vertical alignment problem */ | |||
.home-header__search .keyboard-key { | |||
display: inline; | |||
padding-top: 0.1em; | |||
padding-bottom: 0.1em; | |||
} | |||
html.skin-citizen-dark .home-header:before, | |||
html.skin-citizen-dark .home-header__searchIcon img { | |||
filter: invert( 1 ); | |||
} | |||
@media ( hover: none ) { | |||
.desktoponly { | |||
display: none; | |||
} | |||
} |
Версия от 10:29, 1 августа 2024
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
@import url('node_modules/@wikimedia/codex/mixins/css-icon.less');
/* Пример стилей для иконок */
.cdx-icon {
display: inline-block;
width: 1em;
height: 1em;
fill: currentColor;
vertical-align: middle;
}
/*
body.page-Заглавная_страница #siteSub,
body.page-Заглавная_страница #contentSub,
body.page-Заглавная_страница h1.firstHeading
{display:none !important}
*/
.home-header {
position: relative;
margin-top: -1rem;
margin-bottom: 2rem;
padding-top: 1rem;
line-height: 1.375;
}
.home-header:before {
content: "";
position: absolute;
top: 1rem;
bottom: 4.75rem;
left: 0;
right: 0;
opacity: 0.1;
/*background-image: url(https://starcitizen.tools/resources/assets/sitelogo.svg); */
background-repeat: no-repeat;
background-position: right;
}
.home-header__pretitle {
margin-bottom: calc(0.5 * 1rem);
color: hsl(220,25%,65%);
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.home-header__title {
margin: 0;
font-size: 3rem;
text-transform: uppercase;
letter-spacing: 0.025em;
line-height: 1;
}
.home-header__subtitle {
margin-top: calc(0.5 * 1rem);
font-size: 0.875rem;
}
.home-header__search {
padding: 1rem;
margin-top: calc(1.25 * 1rem);
margin-bottom: 1rem;
margin-left: auto;
margin-right: auto;
border: 1px solid;
border-color: rgba(255,255,255,0.08);
border-radius: 9999px;
cursor: pointer;
font-size: 0.875rem;
font-weight: 500;
text-align: center;
}
.home-header__search:hover {
background-color: rgba(255,255,255,0.07000000000000001);
}
.home-header__searchIcon img {
margin-right: 1rem;
opacity: 0.4;
}
/* Fix vertical alignment problem */
.home-header__search .keyboard-key {
display: inline;
padding-top: 0.1em;
padding-bottom: 0.1em;
}
html.skin-citizen-dark .home-header:before,
html.skin-citizen-dark .home-header__searchIcon img {
filter: invert( 1 );
}
@media ( hover: none ) {
.desktoponly {
display: none;
}
}