Common.css: Difference between revisions
An Avatar.Global Resource
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* begin experimental */ | |||
#header { | |||
padding: 120px 0; | |||
} | |||
.site-navigation ul { | |||
list-style: none; | |||
padding: 0; | |||
} | |||
.site-navigation ul li a { | |||
color: #A3A3A3; | |||
text-decoration: none; | |||
display: block; | |||
} | |||
.site-navigation ul li a:hover { | |||
font-weight: bold; | |||
color: black; | |||
} | |||
.site-navigation ul li a::after { | |||
content: ''; | |||
display: block; | |||
width: 0; | |||
height: 1px; | |||
background: #39393B; | |||
transition: width .3s; | |||
} | |||
.site-navigation ul li a:hover::after { | |||
width: 100%; | |||
transition: width .3s; | |||
} | |||
.site-navigation ul li ul { | |||
position: absolute; | |||
visibility: hidden; /* hides sub-menu */ | |||
opacity: 0; | |||
z-index: -1; | |||
-webkit-transition: all 0.4s; | |||
-o-transition: all 0.4s; | |||
transition: all 0.4s; | |||
} | |||
.site-navigation ul li ul li { | |||
padding: 20px 0; | |||
} | |||
.site-navigation ul li:hover ul { | |||
visibility: visible; /* shows sub-menu */ | |||
opacity: 1; | |||
z-index: 1; | |||
} | |||
.active { | |||
border-bottom: 1px solid #39393B; | |||
} | |||
@media only screen and (max-width : 1019px) { | |||
} | |||
@media only screen and (min-width : 1020px) { | |||
/* add ul so flex is on ul and move into desktop only media query */ | |||
.site-navigation ul { | |||
display: -webkit-box; | |||
display: -ms-flexbox; | |||
display: flex; | |||
-webkit-box-pack: justify; | |||
-ms-flex-pack: justify; | |||
justify-content: space-between; | |||
} | |||
/* move into desktop only media query */ | |||
.site-navigation ul li { | |||
display: inline-block; | |||
} | |||
/* move into desktop only media query */ | |||
.site-navigation ul li:not(:first-child) { | |||
margin-left: 2em; | |||
} | |||
/* add flex order in your media query for desktop only */ | |||
.site-navigation ul li.left-menu-item { | |||
order:1; /* add this */ | |||
} | |||
/* add flex order in your media query for desktop only */ | |||
.site-navigation ul li.logo { | |||
order:2; /* add this */ | |||
} | |||
/* add flex order in your media query for desktop only */ | |||
.site-navigation ul li.right-menu-item { | |||
order:3; /* add this */ | |||
} | |||
} | |||
/* end experimental */ | |||
div.topnav ul { | div.topnav ul { | ||
list-style-type: none; | list-style-type: none; | ||
Revision as of 19:54, 23 November 2018
/* CSS placed here will be applied to all skins */
/* begin experimental */
#header {
padding: 120px 0;
}
.site-navigation ul {
list-style: none;
padding: 0;
}
.site-navigation ul li a {
color: #A3A3A3;
text-decoration: none;
display: block;
}
.site-navigation ul li a:hover {
font-weight: bold;
color: black;
}
.site-navigation ul li a::after {
content: '';
display: block;
width: 0;
height: 1px;
background: #39393B;
transition: width .3s;
}
.site-navigation ul li a:hover::after {
width: 100%;
transition: width .3s;
}
.site-navigation ul li ul {
position: absolute;
visibility: hidden; /* hides sub-menu */
opacity: 0;
z-index: -1;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
}
.site-navigation ul li ul li {
padding: 20px 0;
}
.site-navigation ul li:hover ul {
visibility: visible; /* shows sub-menu */
opacity: 1;
z-index: 1;
}
.active {
border-bottom: 1px solid #39393B;
}
@media only screen and (max-width : 1019px) {
}
@media only screen and (min-width : 1020px) {
/* add ul so flex is on ul and move into desktop only media query */
.site-navigation ul {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
}
/* move into desktop only media query */
.site-navigation ul li {
display: inline-block;
}
/* move into desktop only media query */
.site-navigation ul li:not(:first-child) {
margin-left: 2em;
}
/* add flex order in your media query for desktop only */
.site-navigation ul li.left-menu-item {
order:1; /* add this */
}
/* add flex order in your media query for desktop only */
.site-navigation ul li.logo {
order:2; /* add this */
}
/* add flex order in your media query for desktop only */
.site-navigation ul li.right-menu-item {
order:3; /* add this */
}
}
/* end experimental */
div.topnav ul {
list-style-type: none;
margin: 0;
margin-bottom:28px;
padding: 0;
overflow: hidden;
background-color: #fffafa;
border-bottom: 1px solid #888
}
div.topnav li {
float: left;
;
}
div.topnav li a {
display: block;
color: #222;
text-align: center;
padding: 14px 16px;
text-decoration: none;
transition: .8s background-color;
}
div.nav ul {
list-style-type: none;
margin: 0;
margin-bottom:28px;
padding: 0;
overflow: hidden;
background-color: #fafffa;
border-bottom: 1px solid #888
}
div.nav li {
float: left;
;
}
div.nav li a {
display: block;
color: #222;
text-align: center;
padding: 14px 16px;
text-decoration: none;
transition: .8s background-color;
}
div.nav ul a:hover:not(.active) {
background-color: #f3fff3;
}
div.nav ul .active {
background-color:#fafafa;
}
div.toc-mobile h2 {
display:none
}
div.toc
{
display:none;
}
div.definition, div.definition p:first-of-type
{
padding: 15px;
border: 1px solid #eee;
}
@import url("https://fonts.googleapis.com/css?family=Noto+Sans|Noto+Serif")
body {font-family: "Noto Sans", sans-serif}
/* changes the default font used for MediaWiki to Noto Sans (does not include headings or monospaced text) */
div#content h1, div#content h2 {font-family: "Noto Serif", serif}
/* changes the default font used for MediaWiki headings to Noto Serif */
