MediaWiki

Common.css: Difference between revisions

From Cambridge Larp Society

No edit summary
No edit summary
Line 158: Line 158:
 
}
 
}
   
.f-dropdown::before {
+
.f-dropdown::before, .f-dropdown::after {
content: "";
 
 
display: none;
 
display: none;
width: 0;
 
height: 0;
 
border: inset 6px;
 
border-color: transparent transparent white transparent;
 
border-bottom-style: solid;
 
position: absolute;
 
top: -12px;
 
left: 10px;
 
z-index: 99;
 
 
}
 
}
   

Revision as of 19:25, 21 June 2016

/* Custom Foreground menubar colors */
.top-bar,
.top-bar .name h1 a,
.top-bar-section ul,
.top-bar-section ul li.active > a,
.top-bar-section li a:not(.button),
.top-bar-section .has-form {
   background: #333;
   color: #FFFFFF;
}

#navwrapper > .top-bar {
   margin: 0;
   box-shadow: 0px 0px 6px -2px black;
   z-index: 1;
}

.top-bar-section > ul > .divider,
.top-bar-section > ul > [role="separator"] {
  border-color: #333;
}

.top-bar-section ul li ul.dropdown li.hover > a {
   box-shadow:0px 10px 6px -10px black inset,0px -10px 6px -10px black inset;
   background:#111;
}

.top-bar-section > ul > li.hover > a{
   box-shadow: 10px 0px 6px -10px black inset, -10px 0px 6px -10px black inset;
   background:#222;
}

.top-bar-section ul li ul.dropdown li > a {
	background:#222;
}

.top-bar-section ul li ul.dropdown{
	box-shadow:0px 0px 6px -2px black;
	z-index: -1;
}
.has-dropdown {
	z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
   color: #e65001;
   font-family: "Trebuchet MS", "Helvetica Neue";
}

h1 {
   font-size: 1.8em;
}

h2.title{
   font-size: 2em;
}

h2 > span {
   display: inline;
}
h2 {
   margin-top: 0.9em;
   font-size: 1.5em;
}

h3 {
   margin-top: 0.9em;
}

.ns-subject h3{
   font-size: 1.15em;
}

h4 {
   font-size: 1em;
}


p {
   margin-bottom: 0.6em;
   font-family: "Calibri";
   font-size: 1.04em;
}

h1.title-name {
   white-space: nowrap;
}

#footer-lastmod, #footer-viewcount, #tagline {
   display: none;
}

#toc {
   float:right;
   font-size:0.8em;
   padding: 0 8px 8px;
   background: #f9f9f9;
   border: thin solid #aaa;
   margin: 0px 0px 8px 16px;
   max-width: 30vw;
   border-radius: 4px;
   word-wrap: break-word;
   hyphens: auto;
}

#toctitle {
    font-size: 0.8em;
}

#toctitle > .toctoggle {
   display: none;
}

#toctitle > h2 {
   color: #555;
}

#toc#toc ul {
   color: #aaa;
   margin: 0 0 0 1em;
}

#toc .tocnumber {
   display: none;
}

body {
   background: radial-gradient(circle, #78a21b, #224c41) fixed;
}

#page-content {
   width: 800px;
   min-width: 70%;
   max-width: 100%;
   margin: -45px auto;
   background: white;
   box-shadow: 0px 0px 8px -2px black;
   padding: 45px 25px;
   min-height: 100vh;
}

.row {
   max-width: 100%;
}

@media only screen and (max-width:58.75em) {
   .top-bar-section ul li ul.dropdown li.hover > a,
   .top-bar-section > ul > li.hover > a,
   .top-bar-section ul li ul.dropdown,
   #navwrapper > .top-bar,
   #page-content {
      box-shadow: none;
      font-size: 0.9em;
   }
   body {
      background: white;
   }
}

.f-dropdown::before, .f-dropdown::after {
    display: none;
}

#drop1 {
   right: 15px !important;
   left: unset !important;
}