MediaWiki:Common.css
From Variscite Wiki
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
li {
margin-bottom: .1em !important;
}
.p-navbar.not-collapsible .navbar-nav .dropdown-menu {
position: relative;
}
/* Multilevel menu */
.mainmenu .active a,.mainmenu .active a:focus,.mainmenu .active a:hover,.mainmenu li a:hover,
.mainmenu ul li a:focus ,.navbar-default .navbar-nav>.show>a, .navbar-default .navbar-nav>.show>a:focus,
.navbar-default .navbar-nav>.show>a:hover {
background: rgba(255,255,255,.16); color: var(--warning) !important; outline: 0;
}
.mainmenu > li > a:focus, .mainmenu > li > a:active, .mainmenu > li > a:hover {
background: #fff !important
}
.mainmenu ul {
margin-bottom: 0 !important;
margin-top: 0 !important;
}
.mainmenu ul ul, .mainmenu ul ul ul {
box-shadow: none !important;
}
.mainmenu li { margin-bottom: 0 !important }
.top-navbar .dropdown-menu .dropdown-menu.show {
background: rgba(255,255,255,.08);
}
.top-navbar .dropdown-menu .dropdown-menu .dropdown-menu li a {
padding-left: 30px !important;
}
.mainmenu .dropdown-menu #navbarDropdown::after {
float: right;
margin-top: 8px;
transform: rotate(-90deg);
}
.mainmenu .active a::after,.mainmenu .active a:focus::after,.mainmenu .active a:hover::after,.mainmenu li a:hover::after,
.mainmenu li a:focus::after ,.navbar-default .navbar-nav>.show>a::after, .navbar-default .navbar-nav>.show>a:focus::after,
.navbar-default .navbar-nav>.show>a:hover::after {
transform: rotate(0deg) !important;
}
/* 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;
}