MediaWiki:Common.css: Difference between revisions
From Variscite Wiki
No edit summary |
m (1 revision imported) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
li { | li { | ||
margin-bottom: 1em !important; | margin-bottom: .1em !important; | ||
} | |||
.p-navbar.not-collapsible .navbar-nav .dropdown-menu { | |||
position: relative; | |||
} | |||
/* History menu */ | |||
.history-menu { | |||
display: none; | |||
} | |||
@media all and ( min-width: 576px ) { | |||
.history-menu { | |||
display: inline; | |||
} | |||
} | |||
/* Underline From Center */ | |||
.hvr-underline-from-center { | |||
display: inline-block; | |||
vertical-align: middle; | |||
-webkit-transform: translateZ(0); | |||
transform: translateZ(0); | |||
box-shadow: 0 0 1px rgba(0, 0, 0, 0); | |||
-webkit-backface-visibility: hidden; | |||
backface-visibility: hidden; | |||
-moz-osx-font-smoothing: grayscale; | |||
position: relative; | |||
overflow: hidden; | |||
} | |||
.hvr-underline-from-center:before { | |||
content: ""; | |||
position: absolute; | |||
z-index: -1; | |||
left: 50%; | |||
right: 50%; | |||
bottom: 0; | |||
background: #0055a5; | |||
height: 4px; | |||
-webkit-transition-property: left, right; | |||
transition-property: left, right; | |||
-webkit-transition-duration: 0.3s; | |||
transition-duration: 0.3s; | |||
-webkit-transition-timing-function: ease-out; | |||
transition-timing-function: ease-out; | |||
} | |||
.hvr-underline-from-center:hover:before, .hvr-underline-from-center:focus:before, .hvr-underline-from-center:active:before { | |||
left: 0; | |||
right: 0; | |||
} | |||
#catlinks { | |||
display: none; | |||
} | } |
Latest revision as of 23:20, 5 December 2023
/* CSS placed here will be applied to all skins */
li {
margin-bottom: .1em !important;
}
.p-navbar.not-collapsible .navbar-nav .dropdown-menu {
position: relative;
}
/* History menu */
.history-menu {
display: none;
}
@media all and ( min-width: 576px ) {
.history-menu {
display: inline;
}
}
/* Underline From Center */
.hvr-underline-from-center {
display: inline-block;
vertical-align: middle;
-webkit-transform: translateZ(0);
transform: translateZ(0);
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-moz-osx-font-smoothing: grayscale;
position: relative;
overflow: hidden;
}
.hvr-underline-from-center:before {
content: "";
position: absolute;
z-index: -1;
left: 50%;
right: 50%;
bottom: 0;
background: #0055a5;
height: 4px;
-webkit-transition-property: left, right;
transition-property: left, right;
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-transition-timing-function: ease-out;
transition-timing-function: ease-out;
}
.hvr-underline-from-center:hover:before, .hvr-underline-from-center:focus:before, .hvr-underline-from-center:active:before {
left: 0;
right: 0;
}
#catlinks {
display: none;
}