Difference between revisions of "MediaWiki:Common.css"

From RainMachine wiki page
Jump to: navigation, search
m
m
Line 109: Line 109:
 
     width: 80%;
 
     width: 80%;
 
}
 
}
 +
}
 +
#nav{
 +
    list-style:none;
 +
    font-weight:bold;
 +
    margin-bottom:10px;
 +
    float:left; /* Clear floats */
 +
    width:100%;
 +
    /* Bring the nav above everything else--uncomment if needed.
 +
    position:relative;
 +
    z-index:5;
 +
    */
 +
}
 +
#nav li{
 +
    float:left;
 +
    margin-right:10px;
 +
    position:relative;
 +
}
 +
#nav a{
 +
    display:block;
 +
    padding:5px;
 +
    color:#fff;
 +
    background:#333;
 +
    text-decoration:none;
 +
}
 +
#nav a:hover{
 +
    color:#fff;
 +
    background:#6b0c36;
 +
    text-decoration:underline;
 +
}
 +
 +
/*--- DROPDOWN ---*/
 +
#nav ul{
 +
    background:#fff; /* Adding a background makes the dropdown work properly in IE7+. Make this as close to your page's background as possible (i.e. white page == white background). */
 +
    background:rgba(255,255,255,0); /* But! Let's make the background fully transparent where we can, we don't actually want to see it if we can help it... */
 +
    list-style:none;
 +
    position:absolute;
 +
    left:-9999px; /* Hide off-screen when not needed (this is more accessible than display:none;) */
 +
}
 +
#nav ul li{
 +
    padding-top:1px; /* Introducing a padding between the li and the a give the illusion spaced items */
 +
    float:none;
 +
}
 +
#nav ul a{
 +
    white-space:nowrap; /* Stop text wrapping and creating multi-line dropdown items */
 +
}
 +
#nav li:hover ul{ /* Display the dropdown on hover */
 +
    left:0; /* Bring back on-screen when needed */
 +
}
 +
#nav li:hover a{ /* These create persistent hover states, meaning the top-most link stays 'hovered' even when your cursor has moved down the list. */
 +
    background:#6b0c36;
 +
    text-decoration:underline;
 +
}
 +
#nav li:hover ul a{ /* The persistent hover state does however create a global style for links even before they're hovered. Here we undo these effects. */
 +
    text-decoration:none;
 +
}
 +
#nav li:hover ul li a:hover{ /* Here we define the most explicit hover states--what happens when you hover each individual link. */
 +
    background:#333;
 
}
 
}

Revision as of 01:28, 9 June 2016

/* CSS placed here will be applied to all skins */
@import url(https://fonts.googleapis.com/css?family=Lato);
body {font-family: 'Lato', sans-serif;font-size:120%}
#firstHeading, #ca-nstab-main, #left-navigation { display: none; }
a:visited {color: #0645ad;}
.mw-body a.external:visited {color: #0645ad;}
div#mw-panel div.portal div.body ul li a:visited {color:#0645ad;}
pre {font-size:12px;}
h2 {font-size: 130%;line-height: 0.8em;color:#0645ad;}
/*Home starts*/
.homeContainer {text-align:center;border-bottom:1px solid #eee;padding-bottom:20px;}
.homeH1 {text-align:center;padding-bottom:15px;font-size: 2.625em;padding-top: 1em;}
.homeFeature, .homeFeatureLast {display:inline-block;width:380px;text-align:left;height:126px;vertical-align:top;padding:10px;padding-left:20px;cursor: pointer;color:#888;}
.homeFeatureLast {cursor:auto;}
.left {margin-right:15px;}
.homeFeature h3 {font-size: 1.1875em;}
.homeFeature a:link, .homeFeature a:visited {text-decoration:none; color:#888;}
.homeFeature a:hover {color:#0645ad;}
.homeFeature:hover {background-color:#fafafa;color:#0645ad;}
.homeFeatureLast:hover {background-color:transparent;color:#0645ad;}
/*Home ends*/
#content {margin-right:1em;border-right-width:1px;}
code {color:#000;letter-spacing: 2px;background-color:#fff;}
#yambe {font-size:75%;}

/*hidings and edits begin */
.rmLogo {
    margin: 1em;
    margin-left: 0em;
    border:0;
}
#mw-page-base {
    height: 6em;
    margin: 0 auto;
    width: 80%;
    background: transparent;
    }

div#footer ul li {
    display: none;
}

.searchInputField, .searchButton {
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    height: 2.2em;
    margin: 0 0 15px;
    padding: 0.5em;
    color: #30373b;
    font-size: 1.125em;
    border: 1px solid #eee;
    border-radius: 3px;
    background-color: #fff;
    -webkit-transition: border-color 0.1s;
    transition: border-color 0.1s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 40%;
}

.searchButton {
    color: #fff;
    border: 1px solid #3399cc;
    background-color: #3399cc;
    width: 80px;
    margin-left: 10px;
}

#p-search {
    text-align: center;
}

/* hidings and edits ends */
@media screen and (min-width: 982px) {
#mw-head-base {
    margin-left: 0em;
}
#mw-head-base {
    margin-top: 0em;
    margin-left: 0em;
    height: 0em;
}
div.vectorTabs span > a {
    float: left;
    display: none;
}
div#mw-head {
    display: none;
}
div#mw-panel {
    display: none;
}
}
@media screen and (min-width: 982px) {
div#content {
    margin-left: 0em; 
    padding: 0em; 
}
#mw-head-base {
    margin-left: 0em;
}
div#content {
    margin: 2em;
    padding: 1em;
    border: 1px solid #3399cc;
    margin: 0 auto;
    width: 80%;
}
}
#nav{
    list-style:none;
    font-weight:bold;
    margin-bottom:10px;
    float:left; /* Clear floats */
    width:100%;
    /* Bring the nav above everything else--uncomment if needed.
    position:relative;
    z-index:5;
    */
}
#nav li{
    float:left;
    margin-right:10px;
    position:relative;
}
#nav a{
    display:block;
    padding:5px;
    color:#fff;
    background:#333;
    text-decoration:none;
}
#nav a:hover{
    color:#fff;
    background:#6b0c36;
    text-decoration:underline;
}

/*--- DROPDOWN ---*/
#nav ul{
    background:#fff; /* Adding a background makes the dropdown work properly in IE7+. Make this as close to your page's background as possible (i.e. white page == white background). */
    background:rgba(255,255,255,0); /* But! Let's make the background fully transparent where we can, we don't actually want to see it if we can help it... */
    list-style:none;
    position:absolute;
    left:-9999px; /* Hide off-screen when not needed (this is more accessible than display:none;) */
}
#nav ul li{
    padding-top:1px; /* Introducing a padding between the li and the a give the illusion spaced items */
    float:none;
}
#nav ul a{
    white-space:nowrap; /* Stop text wrapping and creating multi-line dropdown items */
}
#nav li:hover ul{ /* Display the dropdown on hover */
    left:0; /* Bring back on-screen when needed */
}
#nav li:hover a{ /* These create persistent hover states, meaning the top-most link stays 'hovered' even when your cursor has moved down the list. */
    background:#6b0c36;
    text-decoration:underline;
}
#nav li:hover ul a{ /* The persistent hover state does however create a global style for links even before they're hovered. Here we undo these effects. */
    text-decoration:none;
}
#nav li:hover ul li a:hover{ /* Here we define the most explicit hover states--what happens when you hover each individual link. */
    background:#333;
}