Difference between revisions of "MediaWiki:Common.css"

From SQLZOO
Jump to: navigation, search
 
(63 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
#mw-head-base {
 
  height:10em;
 
}
 
#p-googleadsense {
 
  margin-left:.5em;
 
}
 
/* Hide ads for login page */
 
body.ns-special div#p-googleadsense{
 
  display:none;
 
}
 
.qu {
 
    border-color: silver;
 
    border-style: solid;
 
    border-width: 1px;
 
    margin: 2ex 0.2ex 0.2ex;
 
    padding: 10px;
 
    clear:left; /* Andrew 2012-07-21 */
 
}
 
.ans, .def, .tidy, .setup, .params {
 
  display:none;
 
}
 
 
.hnt {
 
font-weight:bold;
 
color: #3b434e;
 
}
 
 
.hint {
 
color: #055C00;
 
}
 
 
.ecomm {
 
        margin-bottom: 0.5ex;
 
        margin-right: 0.5ex;
 
}
 
 
.qu textarea{
 
  width:auto;
 
}
 
 
/* Change by Andrew 2012-07-21 */
 
.qu form{
 
  clear:left;
 
}
 
 
div.res {
 
    border-style: inset;
 
    border-width: 1px;
 
    height: 20em;
 
    width:32em;
 
    overflow: auto;
 
    padding: 5px;
 
}
 
 
table{
 
  border-collapse:collapse;
 
  background:#d2e5d1;
 
  margin:1em 0 1.5em;
 
}
 
.res table{
 
  background:none;
 
}
 
table td{
 
  border:solid gray 1px;
 
  padding:.2em .7em;
 
}
 
 
h2{
 
  border-bottom:none;
 
}
 
 
span.id {
 
font-size: 300%;
 
display: block;
 
float: left;
 
padding: 0px 5px;
 
margin-right: 5px;
 
margin-top:0.8ex;
 
}
 
 
div.tutblock,
 
div.refblock,
 
div.resblock
 
{
 
  width:60ex;
 
  float:left;
 
  padding:1ex 1em 1em 2em;
 
  margin:2ex 2ex 2ex 0em;
 
}
 
div.resblock
 
{
 
  width:auto;
 
}
 
div.refblock+*{
 
}
 
div.tutblock h2,
 
div.refblock h2,
 
div.resblock h2{
 
  padding-top:1ex;
 
  text-align:left;
 
}
 
div.res.waiting{
 
  background-image:url(http://sqlzoo.net/w/wait30trans.gif);
 
  background-repeat:no-repeat;
 
  background-position: center center;
 
}
 
 
.r{
 
.r{
 
   text-align:right;
 
   text-align:right;
 
}
 
}
.res .showtxt{
+
.imper{
   color:blue;
+
   font-weight:bold;
  cursor:pointer;
+
 
}
 
}
.res .sqlans{
+
table.distractor,table.distractor caption{
   display:none;
+
   background:#f9f9f9;
 +
  float:left;
 +
  margin: 1ex;
 
}
 
}
/* ==== Designer style sheet starts here === */
+
table.distractor{
 
+
  border: solid thin #d0d0d0;
/* This skin overrides common.css */
+
 
+
/* SQL ZOO COLOR PALETTE:
+
 
+
    #dae5d9 - light green (bg color) [ alt: #d2e5d1 ]
+
    #161525 - dark blue
+
    #3b434e - light blue
+
    #ee8301 - orange [ darker alt: #ff530d ]
+
    #e3e3e3 - near white
+
    #4a787d - bright blue (links) [ alt: #668195 ]
+
    #c4c4c4 - light grey (sub menu links)
+
    #909898 - mid grey (sub menu description)
+
+
*/
+
+
/* =========================== GLOBAL SETTINGS: ============================= */
+
 
+
/* remove the Wiki markup */
+
#p-logo, #left-navigation, #p-cactions, #p-tb, #pt-mytalk, #pt-watchlist, #pt-mycontris, .editsection, #mw-usercsspreview, #contentSub {
+
    display:none;
+
 
}
 
}
body #mw-head-base {
+
table.object{
    background-image:none;
+
  clear:left;
 +
  margin: 1ex;
 
}
 
}
html, body, body #content,
+
#mw-panel .portal.first .body ul li {
#mw-page-base {
+
  text-align: right;
    background:#d2e5d1;
+
    font-family: "HelveticaNeue", "Helvetica Neue", "HelveticaNeueRoman", "HelveticaNeue-Roman", "Helvetica Neue Roman", "Helvetica", "Arial", sans-serif;
+
    color:#161525;
+
 
}
 
}
 
+
div#mw-panel div.portal.first{
a:link {
+
  margin-left:0px;
    color:#3b434e;
+
    text-decoration:none;
+
 
}
 
}
a:visited {color:#668195;}
+
div.body div.portal.first ul li a {
a:hover {color:#ff530d;}
+
  padding-right: 40px;
a:active {color:#e3e3e3;}
+
  display: inline-block;
 
+
  color: #3b434e;
 
+
 
+
/* ================================== ADMIN WIKI LINKS: */
+
 
+
 
+
 
+
/* reposition temporary admin links */
+
#mw-head {
+
    position:absolute;
+
 
}
 
}
#pt-userpage, #pt-anonuserpage, #pt-login, #pt-preferences, #pt-logout {
+
div#mw-panel div.portal.first div.body ul li a {
  background-size:1em;
+
  padding-right:25px;
  background-repeat:no-repeat;
+
  color: #3b434e;
  background-position:left center;
+
  padding:0 0 0 1.2em;
+
 
}
 
}
#pt-userpage, #pt-anonuserpage, #pt-login {
 
  background-image:url('http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/design/u4.png');
 
}
 
#pt-preferences {
 
  background-image:url('http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/design/settings.png');
 
}
 
#pt-logout {
 
  background-image:url('http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/design/logout.png');
 
  padding:0 0 0 1.25em;
 
}
 
#p-search {
 
  margin:0;
 
  padding:0;
 
  clear:right;
 
 
 
}
 
#p-search form, #p-search input {
 
    margin:0;
 
}
 
#p-search input#searchInput {
 
  -moz-border-radius:1em;
 
  -webkit-border-radius: 1em;
 
  border-radius: 1em;
 
  border:2px solid #3b434e;
 
}
 
#p-views {
 
  float:right;
 
  margin:0 0 -.5em 0;
 
  padding:0;
 
}
 
 
 
/* wiki editor links */
 
 
#right-navigation {
 
  margin: 1.9em .3em 0 0;
 
}
 
div.vectorTabs span {
 
  background:none;
 
}
 
div.vectorTabs span a {
 
  padding-top: .05em;
 
  color:#3b434e;
 
  text-shadow: 1px 1px 0 #E4EDE6;
 
}
 
div.vectorTabs span a:hover {
 
  color:#ee8301;
 
}
 
div.vectorTabs, div.vectorTabs ul {
 
  background:none;background-image:none;
 
}
 
div.vectorTabs ul {
 
  height:1.2em;
 
  border:thin solid rgba(33,33,33,0.7);
 
  -moz-box-shadow: 0px 0px 2px #333333;
 
  -webkit-box-shadow: 0px 0px 2px #333333;
 
  box-shadow: 0px 0px 2px #333333;
 
  -webkit-border-radius: 1.5em;
 
  -moz-border-radius: 1.5em;
 
  border-radius: 1.5em;
 
  background: #e3ede3; /* Old browsers */
 
  background: -moz-linear-gradient(-45deg, #e3ede3 1%, #dae5d9 100%); /* FF3.6+ */
 
  background: -webkit-gradient(linear, left top, right bottom, color-stop(1%,#e3ede3), color-stop(100%,#dae5d9)); /* Chrome,Safari4+ */
 
  background: -webkit-linear-gradient(-45deg, #e3ede3 1%,#dae5d9 100%); /* Chrome10+,Safari5.1+ */
 
  background: -o-linear-gradient(-45deg, #e3ede3 1%,#dae5d9 100%); /* Opera 11.10+ */
 
  background: -ms-linear-gradient(-45deg, #e3ede3 1%,#dae5d9 100%); /* IE10+ */
 
  background: linear-gradient(135deg, #e3ede3 1%,#dae5d9 100%); /* W3C */
 
}
 
div.vectorTabs ul li {
 
  background:none;background-image:none;
 
  border:none; border-right:thin solid rgba(33,33,33,0.7);
 
  -moz-box-shadow:inset 2px 2px 12px #e7f0e7;
 
  -webkit-box-shadow:inset 2px 2px 12px #e7f0e7;
 
  box-shadow:inset 2px 2px 12px #e7f0e7;
 
}
 
div.vectorTabs ul li:first-child {
 
  -webkit-border-radius: 1.5em 0 0 1.5em;
 
  -moz-border-radius: 1.5em 0 0 1.5em;
 
    border-radius: 1.5em 0 0 1.5em;
 
    padding-left:.6em;
 
}
 
div.vectorTabs ul li:last-child {
 
  -webkit-border-radius: 0 1.5em 1.5em 0;
 
  -moz-border-radius: 0 1.5em 1.5em 0;
 
    border-radius: 0 1.5em 1.5em 0;
 
    border-right:none;
 
    padding-right:.5em;
 
}
 
div.vectorTabs li.selected {
 
    background: #f7bc79; /* Old browsers */
 
    background: -moz-linear-gradient(top,  #f7bc79 0%, #ee8301 41%); /* FF3.6+ */
 
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f7bc79), color-stop(41%,#ee8301)); /* Chrome,Safari4+ */
 
    background: -webkit-linear-gradient(top,  #f7bc79 0%,#ee8301 41%); /* Chrome10+,Safari5.1+ */
 
    background: -o-linear-gradient(top,  #f7bc79 0%,#ee8301 41%); /* Opera 11.10+ */
 
    background: -ms-linear-gradient(top,  #f7bc79 0%,#ee8301 41%); /* IE10+ */
 
    background: linear-gradient(to bottom,  #f7bc79 0%,#ee8301 41%); /* W3C */
 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7bc79', endColorstr='#ee8301',GradientType=0 ); /* IE6-9 */
 
  -moz-box-shadow:none;
 
  -webkit-box-shadow:none;
 
    box-shadow:none;
 
}
 
div.vectorTabs li.selected a {
 
    text-shadow: 1px 1px 0 #f7bc79;
 
    cursor:default;
 
}
 
div.vectorTabs li.selected a:hover {
 
    color:#3b434e;
 
}
 
div.vectorTabs ul li:first-child.selected {
 
    background:none;
 
    filter:none; /* IE6-9 */
 
}
 
div.vectorTabs ul li:first-child.selected a {
 
    text-shadow: 1px 1px 0 #E4EDE6;
 
    color:#8190A8;
 
}
 
 
/* Zoo advertising */
 
 
#zoolinks{
 
  position:relative;
 
  clear:both;
 
  float:right;
 
  margin:.5em .4em 0 0;
 
  z-index:0;
 
 
 
}
 
#zoolinks li{
 
  display:inline;
 
  margin-left:1em;
 
}
 
#zoolinks a {
 
  padding:0 0 1em 0;
 
  font-weight:bold;
 
  -moz-transition:all .5s; /* Firefox 4 */
 
  -webkit-transition:all .5s; /* Safari and Chrome */
 
  -o-transition:all .5s; /* Opera */
 
  transition:all .5s; /* Opera */
 
}
 
#zoolinks #css_link {
 
  top:-.1em;
 
  font-size:1.2em;
 
  font-family: 'Helvetica Neue',Helvetica, sans-serif;
 
  line-height: 1em;
 
  color: #ee8301;
 
  text-shadow:0px 0px 0 rgb(224,117,-13),1px 1px 0 rgb(210,103,-27),2px 2px 0 rgb(196,89,-41),3px 3px 0 rgb(181,74,-56),4px 4px 0 rgb(167,60,-70),5px 5px 0 rgb(153,46,-84), 6px 6px 0 rgb(139,32,-98),7px 7px 6px rgba(0,0,0,0.6),7px 7px 1px rgba(0,0,0,0.5),0px 0px 6px rgba(0,0,0,.2);
 
 
 
 
}
 
#zoolinks #css_link:hover {
 
    color:orange;
 
    font-size:1.4em;
 
}
 
#zoolinks #java_link{
 
    background-image:url('http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/design/java.png');
 
    background-size:1.5em;
 
    background-repeat:no-repeat;
 
    background-position:right top;
 
    padding-right:1.6em;
 
    margin-left:.1em;
 
    font-weight:normal;
 
    color: #3b434e;
 
}
 
 
#zoolinks #linux_link {
 
    background-image:url('http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/design/penguin.png');
 
    background-size:1.8em;
 
    background-repeat:no-repeat;
 
    background-position:right top;
 
    padding-right:1.75em;
 
    margin-left:-.6em;
 
    color: #3b434e;
 
}
 
#zoolinks #java_link:hover {
 
    font-size:1.2em;
 
    color: #fff;
 
    text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135;
 
}
 
#zoolinks #linux_link:hover {
 
  font-size:1.2em;
 
  color: #ee8301;
 
}
 
#zoolinks a#sql_hacks {
 
    margin: -.6em 0em 0 -.8em;
 
    opacity: 0.8;
 
    padding: 0;
 
    position:relative;
 
    float: right;
 
    -webkit-transform:scale(0.7);
 
    -moz-transform:scale(0.7);
 
    -o-transform:scale(0.7);
 
    transform:scale(0.7);
 
    -moz-box-shadow: 2px 2px 4px #333333;
 
    -webkit-box-shadow: 2px 2px 4px #333333;
 
    box-shadow: 2px 2px 4px #333333;
 
 
    -moz-transition:all .5s; /* Firefox 4 */
 
    -webkit-transition:all .5s; /* Safari and Chrome */
 
    -o-transition:all .5s; /* Opera */
 
    transition:all .5s; /* Opera */
 
}
 
 
#zoolinks a#sql_hacks:hover {
 
    opacity:1;
 
    -webkit-transform:scale(1);
 
    -moz-transform:scale(1);
 
    -o-transform:scale(1);
 
    transform:scale(1);
 
    -moz-box-shadow: 5px 5px 2px #666666;
 
    -webkit-box-shadow: 5px 5px 2px #666666;
 
    box-shadow: 8px 8px 12px #666666;
 
    height:auto;
 
}
 
 
 
/* ================================== HEADER: */
 
 
 
 
#mw-page-base {
 
    height:8.30em;
 
    background: -moz-linear-gradient(top,  rgba(171,183,157,1) 0%, rgba(223,229,222,0.9) 10%, rgba(223,229,222,0) 100%); /* FF3.6+ */
 
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(171,183,157,1)), color-stop(10%,rgba(223,229,222,0.9)), color-stop(100%,rgba(223,229,222,0))); /* Chrome,Safari4+ */
 
    background: -webkit-linear-gradient(top,  rgba(171,183,157,1) 0%,rgba(223,229,222,0.9) 10%,rgba(223,229,222,0) 100%); /* Chrome10+,Safari5.1+ */
 
    background: -o-linear-gradient(top,  rgba(171,183,157,1) 0%,rgba(223,229,222,0.9) 10%,rgba(223,229,222,0) 100%); /* Opera 11.10+ */
 
    background: -ms-linear-gradient(top,  rgba(171,183,157,1) 0%,rgba(223,229,222,0.9) 10%,rgba(223,229,222,0) 100%); /* IE10+ */
 
    background: linear-gradient(to bottom,  rgba(171,183,157,1) 0%,rgba(223,229,222,0.9) 10%,rgba(223,229,222,0) 100%); /* W3C */
 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#C9D6C9', endColorstr='#00dfe5de',GradientType=0 ); /* IE6-9 */
 
}
 
#mp-logo {
 
    position:absolute; left:1em; top:0.2em; z-index:+1;
 
}
 
#mp-logo img {
 
    width:20.5em;
 
}
 
#logo-desc {
 
    font-family: Helvetica, Arial, sans-serif;
 
    font-weight:bold;
 
    font-size: 1.670em;
 
    color: #3b434e;
 
    margin:.2em 0 0 0; padding:0;
 
}
 
/* fix ff misbehaviour */
 
@-moz-document url-prefix() {
 
#logo-desc {font-size: 1.7em;}
 
}
 
/* fix ff win misbehaviour */
 
.win.gecko #logo-desc { margin-top:.2px; }
 
/* fix webkit misbahaviour */
 
@media screen and (-webkit-min-device-pixel-ratio:0) {
 
    #logo-desc { margin-top: -0px; }
 
}
 
#logo-desc span {
 
    color: #ee8301;
 
}
 
#logo-desc span span {
 
    color: #161525; font-weight:normal;
 
}
 
h1, h1#logo-desc, #mw-head-base a  {
 
    border:none; text-decoration:none;
 
}
 
#language {
 
    position:absolute;
 
    left:-1em;
 
    top:-.6em;
 
    z-index:+5;
 
}
 
#language li {
 
    display:inline-block;
 
    margin:0 .5em 0 0
 
}
 
#language ul li a img {
 
    opacity:0.5;
 
}
 
#language ul li a:hover img {
 
    opacity:1;
 
}
 
 
 
/* ================================== MAIN MENU */
 
 
 
 
#main_menu {
 
    font-family: "Arial", sans-serif;
 
    font-size: .95em;
 
    margin:0;
 
    padding:0;
 
    line-height: 100%;
 
    color:#e3e3e3;
 
    background: #161525; /* Old browsers */
 
    background: -moz-linear-gradient(top,  #363d49 0%, #363d49 18%, #161525 69%, #161525 100%); /* FF3.6+ */
 
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#363d49), color-stop(18%,#363d49), color-stop(69%,#161525), color-stop(100%,#161525)); /* Chrome,Safari4+ */
 
    background: -webkit-linear-gradient(top,  #363d49 0%,#363d49 18%,#161525 69%,#161525 100%); /* Chrome10+,Safari5.1+ */
 
    background: -o-linear-gradient(top,  #363d49 0%,#363d49 18%,#161525 69%,#161525 100%); /* Opera 11.10+ */
 
    background: -ms-linear-gradient(top,  #363d49 0%,#363d49 18%,#161525 69%,#161525 100%); /* IE10+ */
 
    background: linear-gradient(to bottom,  #363d49 0%,#363d49 18%,#161525 69%,#161525 100%); /* W3C */
 
}
 
.stickableMenu {
 
    position: absolute; top:11.5em; left:.6em;
 
    -webkit-border-radius: 1.5em;
 
    -moz-border-radius:1.5em;
 
  border-radius: 1.5em;
 
    box-shadow: 0px 0px 0px #3b434e;
 
}
 
.stickableMenu:hover {                                                      /* not perfect, needs js */
 
    -webkit-border-radius: 1.1em 1.1em 0 0;
 
    -moz-border-radius: 1.1em 1.1em 0 0;
 
    border-radius: 1.1em 1.1em 0 0;
 
    -moz-box-shadow: 1px 1px 3px #3b434e;
 
    -webkit-box-shadow: 1px 1px 3px #3b434e;
 
    box-shadow: 1px 1px 3px #3b434e;
 
 
    -moz-transition:all .7s; /* Firefox 4 */
 
    -webkit-transition:all .7s; /* Safari and Chrome */
 
    -o-transition:all .7s; /* Opera */
 
    transition:all .7s; /* Opera */
 
}
 
.fixedMenu {
 
    position: fixed; top: 0; left:0;
 
    z-index:+5;
 
    -webkit-border-radius: 0 0 1.5em 0;
 
    -moz-border-radius:0 0 1.5em 0;
 
    border-radius: 0 0 1.5em 0;
 
    -moz-box-shadow: 1px 1px 3px #3b434e;
 
    -webkit-box-shadow: 1px 1px 3px #3b434e;
 
    box-shadow: 1px 1px 3px #3b434e;
 
}
 
.fixedMenu:hover {
 
    -webkit-border-radius: 0 1.1em 0 0;
 
    -moz-border-radius: 0 1.1em 0 0;
 
    border-radius: 0 1.1em 0 0;
 
}
 
#main_menu li {
 
    z-index:+2;
 
    margin:0;
 
    padding:0;
 
    float: left;
 
    position: relative;
 
    list-style: none;
 
}
 
/* main level link */
 
#main_menu a {
 
    color: #e3e3e3;
 
    text-decoration: none;
 
    display: block;
 
    padding:.6em 1.3em .6em 0;
 
    margin: 0;
 
    background-image:url('http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/ic_down.png');
 
    background-repeat:no-repeat;
 
    background-position:right center;
 
}
 
#main_menu > li:first-child a {
 
    margin-left:+1.4em;
 
}
 
#main_menu li > a { 
 
  margin-right:+.4em;
 
 
#main_menu > li:last-child a {
 
    margin-right:+1.4em;
 
}
 
/* main level link hover */
 
#main_menu .current a, #main_menu li:hover > a {
 
    color: #ee8301;
 
    background-image:url('http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/ic_down_hover.png');
 
}
 
/* sub levels link description */
 
#main_menu ul li:hover, #main_menu li:hover li {
 
  color: #909898;
 
}
 
/* sub levels link hover */
 
#main_menu ul li:hover a, #main_menu li:hover li a {
 
  color: #c4c4c4;
 
  font-weight:bold;
 
  margin:-.7em 0 -.8em 0;
 
/*
 
  background-image:url('http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/progress_bar.png');
 
  background-size:3.5em;
 
*/
 
  background-image:none;
 
}
 
#main_menu li:hover li a:hover {
 
  color: #ee8301;
 
/*
 
  background-image:url('http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/progress_bar_hover.png');
 
*/
 
  background-image:none;
 
}
 
 
/* ============================== style for menu progress bar */
 
 
 
.progressbarbg1 {
 
.progressbarbg1 {
   width: 8ex;
+
  position: absolute;
   height: 1.6ex;
+
  right: 0px;
   background:black;
+
   width: 4.5ex;
   border-radius: 1ex;
+
   height: 1ex;
   border:2.5px solid #92A599;
+
   background: black;
  /* add some position settings here #92A599  #8FA397 */
+
   border-radius: 0.7ex;
  float:right;
+
   border: 0.2ex solid #92A599;
   margin:-1em 0 0 0;
+
   margin: -1em 0 0 0;
 
}
 
}
 
.progressbar1 {
 
.progressbar1 {
   width: 7ex;
+
   width: 3.93ex;
   height: 1ex;
+
   height: 0.6ex;
 
   position: relative;
 
   position: relative;
   top: 0.3ex;
+
   top: 0.2ex;
   left: .3ex;
+
   left: .2ex;
 
   background: #92A599;
 
   background: #92A599;
   border-radius: 1ex;
+
   border-radius: 0.6ex;
   border-width: 1px;
+
   border-width: 0px;
 
   border-color: #000000;
 
   border-color: #000000;
 
}
 
}
  
/* remove indicators from reference sub menu */
+
#cog-cont ul{
#main_menu ul#mm3 li a, #main_menu ul#mm3 li:hover a {
+
  position:absolute;
  background-image:none;
+
  background-color:white;
 +
  border:solid thin black;
 +
  padding:1em;
 +
  right:1em;
 +
  top:32px;
 +
  list-style:none;
 
}
 
}
/* level 2 list */
+
#cog-cont ul li{
#main_menu li ul {
+
    /*display: none;*/
+
visibility: hidden;
+
opacity: 0;
+
    position: absolute; top: 1.8em;
+
    min-width:35em;
+
    font-size:.85em;
+
    margin: 0;
+
    padding: 1.65em 1.5em .5em 1.5em;
+
    background: #161525; /* Old browsers */
+
    background: -moz-linear-gradient(top,  #161525 0%, #000000 57%); /* FF3.6+ */
+
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#161525), color-stop(57%,#000000)); /* Chrome,Safari4+ */
+
    background: -webkit-linear-gradient(top,  #161525 0%,#000000 57%); /* Chrome10+,Safari5.1+ */
+
    background: -o-linear-gradient(top,  #161525 0%,#000000 57%); /* Opera 11.10+ */
+
    background: -ms-linear-gradient(top,  #161525 0%,#000000 57%); /* IE10+ */
+
    background: linear-gradient(to bottom,  #161525 0%,#000000 57%); /* W3C */
+
    -webkit-border-radius:  0 2em 2em 2em;
+
    -moz-border-radius: 0 2em 2em 2em;
+
    border-radius:  0 2em 2em 2em;
+
    -moz-box-shadow: 2px 4px 12px #000000;
+
    -webkit-box-shadow: 2px 4px 12px #000000;
+
    box-shadow: 2px 4px 12px #000000;
+
    /*
+
transition:visibility .25s linear .25s, opacity .25s linear .25s;
+
-moz-transition:visibility .25s linear .25s, opacity .25s linear .25s;
+
-webkit-transition:visibility .25s linear .25s, opacity .25s linear .25s;
+
-o-transition:visibility .25s linear .25s, opacity .25s linear .25s;
+
    */
+
 
}
 
}
/* needs to be adjusted for each introduced ul */
+
#p-personal{
#main_menu li #mm2 {left:-7.9em;}
+
  right:50px;
#main_menu li #mm3 {left:-16.8em;}
+
@-moz-document url-prefix() {
+
    #main_menu li #mm2 { left:-8.1em; }
+
    #main_menu li #mm3 { left:-17.1em; }
+
}
+
.win.gecko #main_menu li #mm2 { left:-7.9em; }
+
.win.gecko #main_menu li #mm3 { left:-16.85em; }
+
 
+
.ie #main_menu li #mm2 { left:-8.15em; }
+
.ie #main_menu li #mm3 { left:-17.15em; }
+
 
+
.mac.webkit #main_menu li #mm2 { left:-8em; }
+
.mac.webkit #main_menu li #mm3 { left:-16.95em; }
+
 
+
#selector[id=selector] { color: red; }
+
 
+
#main_menu li:hover ul> li {
+
    border-bottom:thin solid #acbbaf;
+
    margin:0 0 .45em 0;
+
    padding: 0 0 .4em 0;
+
 
}
 
}
#main_menu li:hover ul > li:last-child {
+
.tease{
    border-bottom:none;
+
  color:#1d365d;
 +
  font-style:italic;
 +
  cursor:pointer;
 +
  padding: 0.2ex;
 
}
 
}
/* dropdown */
+
h1{
#main_menu li:hover > ul {
+
font-family:sans-serif;
display: block;
+
visibility: visible;
+
opacity: 1;
+
 
}
 
}
#main_menu ul li {
+
table.db_ref {
float: none;
+
  border-collapse:collapse;
margin: 0;
+
padding: 0;
+
 
}
 
}
 
+
.db_ref th{
/* clearfix */
+
  text-align:left;
#main_menu:after {
+
content: ".";
+
display: block;
+
clear: both;
+
visibility: hidden;
+
line-height: 0;
+
height: 0;
+
 
}
 
}
#main_menu {
+
.db_ref th,.db_ref td{
display: inline-block;
+
  border:solid thin black;
 +
  padding-left:0.6ex;
 +
  padding-right:0.6ex;
 
}
 
}
html[xmlns] #main_menu {
+
.db_ref .r{
display: block;
+
  text-align:right;
 
}
 
}
* html #main_menu {
+
.def,.ans{
height: 1%;
+
  display:none;
 
}
 
}
 
+
span.id {
 
+
  font-size: 300%;
 
+
  padding-right: 1ex;
/* ================================== SIDE MENU: */
+
 
+
 
+
 
+
body #mw-panel {
+
    margin-top:3.3em;
+
 
}
 
}
#mw-panel #p-Reference h5,
+
.qu,.ht {
body #mw-panel div.portal h5 {
+
  border-top: thin solid #ee8301;
    font-size: 1.3em;
+
  margin-bottom: 9em;
    font-stretch:normal;
+
    font-weight:bold;
+
    margin:0; padding: 0 0 0 0.6em;
+
    color:#161525;
+
 
}
 
}
#mw-panel #p-Reference li a {
+
div.setup,div.tidy,div.params{
    color:#3b434e;
+
  display:none;
 
}
 
}
#mw-panel #p-Reference li a:hover {
+
div.res {
    color:#ff530d;
+
  margin-top:1ex;
    padding-left:1.1em;
+
  background: #dae5d9;
    background-image:url('http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/side_pointer2.png');
+
  color: #3b434e;
    background-size:.8em;
+
  border: none;
    background-repeat:no-repeat;
+
  padding: 1em;
    background-position:left center;
+
  border-radius: 0.5ex;
 +
  box-shadow: 1px 1px 3px #3b434e;
 +
  border-style: inset;
 +
  border-width: 1px;
 +
  height: 20em;
 +
  overflow: auto;
 
}
 
}
body #mw-panel #p-Reference .body,
+
div.res.waiting{
body #mw-panel div.portal div.body {
+
  background-image:url(/design/ajax-loader.gif);
  background-image:none;  
+
  background-repeat:no-repeat;
 +
  background-position: center center;
 
}
 
}
.fixedRef {  
+
textarea.sql {
    position: fixed; top:3em; left:0;
+
  width: 100%;
    width:10em;
+
  box-shadow: 1px 1px 3px #3b434e;
 +
  border-style: inset;
 +
  border-width: 1px;
 +
  border-radius: 1ex;
 +
  padding: 0.5ex;
 +
  margin-bottom: 0.5ex;
 
}
 
}
#mw-panel .portal {
+
button{
  height:4.4em;  
+
  background-image: linear-gradient(to bottom,#337ab7 0,#265a88 100%);
 +
  background-color:#306aa0;
 +
  color:white;
 +
  padding: 10px 16px;
 +
  font-size: 18px;
 +
  line-height: 1.3;
 +
  border-radius: 6px;
 +
  border-color: #245580;
 +
  border-width:1px;
 +
  cursor:pointer;
 
}
 
}
#mw-panel .portal .body ul li {
+
.reset {
    text-align:right;
+
  display: inline;
 +
  border: solid 1px;
 +
  margin-left: 6em;
 +
  padding: .5ex;
 +
  border-radius: .5ex;
 +
  cursor:pointer;
 
}
 
}
#engine {
+
.qcorrect{
    background:#161525;
+
  background-image: url(/design/done9.png);
    color:#e3e3e3;
+
    width: 9em; height: 2.4em;
+
    margin:.65em 0 0 0;
+
    text-align:left center;
+
 
}
 
}
 
+
.qincorrect {
/* ================================== CONTENT: */
+
  background-image:url(/design/undone9.png);
 
+
div#content a.zoo_external {
+
    color: #161525;
+
 
}
 
}
div#content a.zoo_external:hover {
+
.qcorrect, .qincorrect {
    color: #ee8301;
+
  width: 3em;
 +
  height: 3em;
 +
  position: absolute;
 +
  margin: 0em 0 0 5em;
 +
  background-size: 3em;
 +
  background-repeat: no-repeat;
 +
  background-position: center;
 
}
 
}
div#content a.zoo_external, div#content a.zoo_external[href^="gopher://"] {
+
#p-logo>a{
    background: url("http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/ex-link2.png") no-repeat scroll right center transparent;
+
  background-position:center top;
    padding-right: 18px;
+
 
}
 
}
div#content a.zoo_external:hover, div#content a.zoo_external:hover[href^="gopher://"] {
+
table{
    background: url("http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/ex-link.png") no-repeat scroll right center transparent;
+
  border-collapse:collapse;
    padding-right: 18px;
+
 
}
 
}
#firstHeading {
+
table.sqlans{
    font-size: 1.3em;
+
  display:none;
    font-weight:bold;
+
    text-align:center;
+
    color:#161525;
+
    margin:0 0 .9em 0;
+
    padding:0;
+
    border:none;
+
    border-bottom:thin solid #ee8301;
+
 
}
 
}
.mw-content-ltr {
+
td,th {
    margin-left:1em;
+
  border: solid gray 1px;
 +
  padding: .2em .7em;
 +
  vertical-align: top;
 
}
 
}
/* homepage slogan */
+
.showtxt{
.slogan {
+
  color:blue;
    font-size: 1.3em;
+
  cursor:pointer;
    font-weight:normal;
+
    color:#3b434e;
+
    margin-left:-.5em;
+
 
}
 
}
.slogan span {
+
#napier-ad {
    font-weight:bold;
+
  width: 728px;
    color:#161525;
+
  height: 90px;
}
+
  display: inline-block;
div.tutblock,
+
   margin-left: 11em;
div.refblock,
+
  background-image: url(http://sqlzoo.net/design/iidi_leaderboard.gif);
div.resblock {
+
    border:none;
+
    margin-top:.2em;
+
    margin-bottom:0;
+
    margin-left:-1em;
+
    -webkit-border-radius: 1.5em;
+
    -moz-border-radius:1.5em;
+
    border-radius: 1.5em;
+
}
+
/* add extra margin so the resources block floats under tutorials */
+
div.refblock {
+
    margin-bottom:+4em;
+
}
+
/* fix webkit misbahaviour */
+
@media screen and (-webkit-min-device-pixel-ratio:0) {
+
   div.tutblock,
+
  div.refblock,
+
  div.resblock { margin-top:.6em; }
+
}
+
div.tutblock:hover,
+
div.refblock:hover,
+
div.resblock:hover  {
+
  -moz-box-shadow: 1px 1px 1px #3b434e;
+
  -webkit-box-shadow: 1px 1px 1px #3b434e;
+
  box-shadow: 1px 1px 1px #3b434e;
+
  background:#dae5d9;
+
  transition:background 1s;
+
  -moz-transition:background 1s; /* Firefox 4 */
+
  -webkit-transition:background 2s; /* Safari and Chrome */
+
  -o-transition:background 1s; /* Opera */
+
}
+
div.tutblock:hover h2,
+
div.refblock:hover h2,
+
div.resblock:hover h2 {
+
  color:#ee8301;
+
  border-bottom: 1px solid #ee8301;
+
}
+
div.tutblock:hover dl,
+
div.refblock:hover dl,
+
div.resblock:hover dl {
+
  margin-top: -1px;
+
}
+
.mw-content-ltr h2 {
+
    font-size:1.2em;
+
    font-weight:bold;
+
    color:#3b434e;
+
}
+
.mw-content-ltr a {
+
    color:#161525;
+
}
+
.mw-content-ltr .tutblock a:hover,
+
.mw-content-ltr .refblock a:hover,
+
.mw-content-ltr .resblock a:hover {
+
    color:#ee8301;
+
    background-image:url('http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/side_pointer2.png');
+
    background-size:.8em;
+
    background-repeat:no-repeat;
+
    background-position:left center;
+
    margin-left:-1.1em; padding-left:+1.1em;
+
}
+
/* this shouldn't be necessarry - investigate further */
+
.mw-content-ltr .refblock a:hover {
+
    margin-left:-2em; padding-left:+2em;
+
}
+
 
+
.mw-content-ltr .tutblock dl dt,
+
.mw-content-ltr .refblock dl dt,
+
.mw-content-ltr .resblock dl dt  {
+
    margin:0 0 -.1em 0; padding:0;
+
    font-weight:bold;
+
    color:#3b434e;
+
}
+
.mw-content-ltr .resblock dl dt  {
+
    margin:0; padding:0;
+
}
+
.mw-content-ltr .tutblock dl dt::first-letter,
+
.mw-content-ltr .refblock dl dt::first-letter {
+
    color:#3b434e;
+
}
+
 
+
.mw-content-ltr .tutblock dl dt:hover:first-letter,
+
.mw-content-ltr .refblock dl dt:hover:first-letter,
+
.mw-content-ltr .resblock dl dt:hover:first-letter  {
+
    color:#161525;
+
}
+
.mw-content-ltr .tutblock dl dd,
+
.mw-content-ltr .refblock dl dd,
+
.mw-content-ltr .resblock dl dd  {
+
    margin:0 0 .7em 0;
+
    padding:0 1em 0 0;
+
    line-height:105%;
+
    color:#3b434e;
+
}
+
.mw-content-ltr .tutblock dl dd a,
+
.mw-content-ltr .refblock dl dd a,
+
.mw-content-ltr .resblock dl dd a  {
+
    font-weight:bold;
+
    color:#3b434e;
+
}
+
.mw-content-ltr .tutblock dl dd a:hover,
+
.mw-content-ltr .refblock dl dd a:hover,
+
.mw-content-ltr .resblock dl dd a:hover  {
+
    background-image:none;
+
    margin-left:-1.1em; padding-left:-1.1em;
+
}
+
.mw-content-ltr .resblock dl dd a  {
+
    font-weight:bold;
+
    color:#161525;
+
}
+
 
+
 
+
/* ================================== TUTORIALS HEADER: */
+
 
+
 
+
 
+
.ref_section {
+
    background:none; border:none;
+
    -moz-border-radius:.8em;
+
    -webkit-border-radius:.8em;
+
    border-radius:.8em;
+
 
+
}
+
.db_ref {
+
    *border-collapse: collapse; /* IE7 and lower */
+
    border-spacing:0;
+
    border:none;
+
    color:#dae5d9;
+
    display: inline-block;
+
    -moz-border-radius: .8em;
+
    -webkit-border-radius: .8em;
+
    border-radius: .8em;
+
}
+
.db_ref caption {
+
    color:#161525;
+
    background:#d2e5d1;
+
    display: block;
+
}
+
.db_ref tr:hover {
+
    color:#161525;
+
    background:#e3e3e3;
+
    -o-transition: all 0.1s ease-in-out;
+
    -webkit-transition: all 0.1s ease-in-out;
+
    -moz-transition: all 0.1s ease-in-out;
+
    -ms-transition: all 0.1s ease-in-out;
+
    transition: all 0.1s ease-in-out;   
+
}   
+
   
+
.db_ref td, .db_ref th {
+
    border-left: 1px solid #3b434e;
+
    border-top: none;
+
    padding:.1em .7em .1em .5em;
+
}
+
.db_ref tr { 
+
    background:#3b434e;
+
}
+
.db_ref tr:first-child,
+
.db_ref tr:last-child { 
+
    background:none;
+
 
}
 
}
 
/*
 
/*
.db_ref td {
+
* Allow question and result to be side by side when the screen is big enough
    background:#3b434e;
+
}
+
 
*/
 
*/
.db_ref th {
+
@media (max-width:1000px){
    background-color:#161525;
+
#napier-ad {
    color:#e3e3e3;
+
  display: none;
    padding:.2em .7em .2em .5em;
+
 
}
 
}
 
.db_ref td:first-child, .db_ref th:first-child {
 
    border-left:none;
 
}
 
.db_ref td[colspan] { 
 
    border:none;
 
    background:#3b434e;
 
}
 
.db_ref td[colspan]:hover { 
 
    font-weight:bold;
 
    color:#161525;
 
    background:#d2e5d1;
 
}
 
.db_ref th:first-child {
 
    -moz-border-radius: .8em 0 0 0;
 
    -webkit-border-radius: .8em 0 0 0;
 
    border-radius: .8em 0 0 0;
 
 
}
 
}
  
.db_ref th:last-child {
+
@media (min-width:1000px){
     -moz-border-radius: 0 .8em 0 0;
+
  .qu>div,.ht>div{
     -webkit-border-radius: 0 .8em 0 0;
+
     width:46%;
     border-radius: 0 .8em 0 0;
+
     display:inline-block;
 +
    vertical-align:top;
 +
     margin-top:1ex;
 +
  }
 +
  .qu>div:first-child{
 +
  }
 +
  .qu>div.res,ht>div.res.ht{
 +
    margin-left:1%;
 +
  }
 
}
 
}
 
+
@media (max-width: 768px) {
.db_ref th:only-child{
+
  div#mw-panel{
     -moz-border-radius: .8em .8em 0 0;
+
     display: none;
    -webkit-border-radius: .8em .8em 0 0;
+
  }
     border-radius: .8em .8em 0 0;
+
  #left-navigation {
 +
    left: 0;
 +
  }
 +
  #mw-head-base,
 +
  div#content,
 +
  div#footer {
 +
     margin-left: 0;
 +
  }
 +
  .db_ref{
 +
  }
 
}
 
}
  
.db_ref tr:last-child td:first-child {
+
.quiz .q {
    -moz-border-radius: 0 0 0 .8em;
+
  margin-top:4em;
    -webkit-border-radius: 0 0 0 .8em;
+
  padding-top: 0.8em;
    border-radius: 0 0 0 .8em;
+
  padding-bottom: 0.8em;
 +
  border-radius:1em;
 
}
 
}
  
.db_ref tr:last-child td:last-child {
+
.quiz .q .d{
    -moz-border-radius: 0 0 .8em 0;
+
  border:blue solid thin;
    -webkit-border-radius: 0 0 .8em 0;
+
  margin-top:1em;
    border-radius: 0 0 .8em 0;
+
  cursor:pointer;
 +
}
 +
.quiz .q div.d{
 +
  padding:.5em .5em .5em 1em;
 
}
 
}
.db_ref tr:last-child td:last-child[colspan] {
+
.quiz .q .d:hover{
  -moz-border-radius:0 0 .8em .8em;
+
  border:black solid thin;
    -webkit-border-radius:0 0 .8em .8em;
+
  box-shadow: 0px 0px 5px 1ex rgba(50, 50, 50, 0.75);
    border-radius:0 0 .8em .8em;
+
 
}
 
}
.fixedDbRef {  
+
.quiz .q .d.picked{
    position: fixed; top:-1em; right:-2em;
+
  box-shadow: 0ex 0ex 4px 1ex #CFD1BA;
    -moz-box-shadow: 1px 1px 3px #3b434e;
+
    -webkit-box-shadow: 1px 1px 3px #3b434e;
+
    box-shadow: 1px 1px 3px #3b434e;
+
    opacity:0.5;
+
    -webkit-transform:scale(0.8);
+
    -moz-transform:scale(0.8);
+
    -o-transform:scale(0.8);
+
    transform:scale(0.8);
+
   
+
    -moz-transition:all 1s; /* Firefox 4 */
+
    -webkit-transition:all 1s; /* Safari and Chrome */
+
    -o-transition:all 1s; /* Opera */
+
    transition:all 1s; /* Opera */
+
   
+
 
}
 
}
.fixedDbRef:hover {
+
.quiz .q .d.picked::before{
    top:0; right:0;
+
  content: '\25CB';
    opacity:1;
+
  padding:0.3em;
    -webkit-transform:scale(1);
+
  background:white;
    -moz-transform:scale(1);
+
  border:solid black thin;
    -o-transform:scale(1);
+
    transform:scale(1);
+
}
+
 
+
 
+
 
+
/* ================================== TUTORIALS CONTENT: */
+
 
+
 
+
 
+
.ref_section {
+
        float:right;
+
        margin-left:1em
+
}
+
.mw-content-ltr #toc, .mw-content-ltr .toc, .mw-content-ltr .tochidden {
+
    -webkit-border-radius: 1em;
+
    -moz-border-radius:1em;
+
    border-radius: 1em;
+
    border-collapse: separate;
+
    padding:0 .5em 0 .5em;
+
}
+
.mw-content-ltr table#toc td, .mw-content-ltr .toc td, .mw-content-ltr .tochidden td {
+
    border:none; margin:0; padding:0;
+
}
+
.extra_space {
+
 
+
}
+
.mw-headline {
+
    margin-bottom:-2em;
+
}
+
 
+
 
+
 
+
/* ============================== PROGRESS PANEL */
+
 
+
 
+
 
+
.progress_panel {
+
  display:inline-block;
+
  border:thin solid rgba(33,33,33,0.7);
+
  -webkit-border-radius: 3em 2em 3em 2em / 2em 1em 2em 1em;
+
  -moz-border-radius: 3em 2em 3em 2em / 2em 1em 2em 1em;
+
  border-radius: 3em 2em 3em 2em / 2em 1em 2em 1em;
+
  background: #e3ede3; /* Old browsers */
+
  background: -moz-linear-gradient(-45deg, #e3ede3 1%, #dae5d9 100%); /* FF3.6+ */
+
  background: -webkit-gradient(linear, left top, right bottom, color-stop(1%,#e3ede3), color-stop(100%,#dae5d9)); /* Chrome,Safari4+ */
+
  background: -webkit-linear-gradient(-45deg, #e3ede3 1%,#dae5d9 100%); /* Chrome10+,Safari5.1+ */
+
  background: -o-linear-gradient(-45deg, #e3ede3 1%,#dae5d9 100%); /* Opera 11.10+ */
+
  background: -ms-linear-gradient(-45deg, #e3ede3 1%,#dae5d9 100%); /* IE10+ */
+
  background: linear-gradient(135deg, #e3ede3 1%,#dae5d9 100%); /* W3C */
+
  -moz-box-shadow: 0px 0px 2px #333333;
+
  -webkit-box-shadow: 0px 0px 2px #333333;
+
  box-shadow: 0px 0px 2px #333333;
+
 
+
}
+
.progress_panel > div {
+
    padding:1.2em 1.5em 1.5em 1.2em;
+
    background:#D2DDD2;
+
    -webkit-border-radius: 3em 2em 3em 2em / 2em 1em 2em 1em;
+
    -moz-border-radius: 3em 2em 3em 2em / 2em 1em 2em 1em;
+
    border-radius: 3em 2em 3em 2em / 2em 1em 2em 1em;
+
    -moz-box-shadow:inset 2px 2px 12px #e7f0e7;
+
    -webkit-box-shadow:inset 2px 2px 12px #e7f0e7;
+
    box-shadow:inset 2px 2px 12px #e7f0e7;
+
}
+
.progress_panel .summary {
+
    color: #3b434e;
+
    font-size: 0.85em;
+
    font-weight: normal;
+
    text-shadow: 1px 1px 0 #E4EDE6;
+
    margin: 0.5em 0;
+
    padding:0;
+
    line-height: 140%;
+
}
+
.progressbarbg {
+
    background:#161525;
+
    border-radius: 2ex 2ex 2ex 2ex;
+
    height: 2em;
+
    width: 50ex;
+
    border-bottom:2px solid #d2e5d1;
+
    border-right: 2px solid #d2e5d1;
+
    -moz-box-shadow: 2px 2px 3px #1a1a1a;
+
    -webkit-box-shadow: 2px 2px 3px #1a1a1a;
+
    box-shadow: 2px 2px 3px #1a1a1a;
+
}
+
.progressbar {
+
    position: relative;
+
    left: 1ex; top: 1ex;
+
    width: 48ex;
+
    height: 1em;
+
    background: #323832; /* Old browsers */
+
    background: -moz-linear-gradient(left, #323832 0%, #bfcebe 90%, #e9ffe7 100%); /* FF3.6+ */
+
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#323832), color-stop(90%,#bfcebe), color-stop(100%,#e9ffe7)); /* Chrome,Safari4+ */
+
    background: -webkit-linear-gradient(left, #323832 0%,#bfcebe 90%,#e9ffe7 100%); /* Chrome10+,Safari5.1+ */
+
    background: -o-linear-gradient(left, #323832 0%,#bfcebe 90%,#e9ffe7 100%); /* Opera 11.10+ */
+
    background: -ms-linear-gradient(left, #323832 0%,#bfcebe 90%,#e9ffe7 100%); /* IE10+ */
+
    background: linear-gradient(to right, #323832 0%,#bfcebe 90%,#e9ffe7 100%); /* W3C */
+
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#323832', endColorstr='#e9ffe7',GradientType=1 ); /* IE6-9 */
+
    border-radius: 1ex 1ex 1ex 1ex;
+
    -moz-box-shadow: 2px 0 2px #4D4D4D;
+
    -webkit-box-shadow: 2px 0 2px #4D4D4D;
+
    box-shadow: 2px 0 2px #4D4D4D; 
+
}
+
 
+
/* ======================= CORRECT/INCORRECT INDICATOR */
+
 
+
.qcorrect, .qincorrect {
+
  width:3em;
+
  height:3em;
+
 
   position:absolute;
 
   position:absolute;
   left:-1em;
+
   text-align:center;
   margin: -0.5em 0 0 1em;
+
  vertical-align: middle;
   background-size:3em;
+
   left:-0.9em;
   background-repeat:no-repeat;
+
   margin-top:-0.9em;
   background-position:center;
+
   width:1em;
 +
   height:1em;
 
}
 
}
.qcorrect {
+
.quiz .q .d.picked.mark-correct::before{
   background-image:url('http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/design/done9.png');
+
   content: '\2713';
 +
  background-color:green;
 
}
 
}
.qincorrect {
+
.quiz .q .d.picked.mark-wrong::before{
   background-image:url('http://socweb8.napier.ac.uk/~09011004/zoo_tutorials/design/undone9.png');
+
   content: '\2717';
 +
  background-color:red;
 
}
 
}
  
 
+
.quiz .feedback{
/* ======================= TUTS USER INPUT */
+
  margin: 1em 0;
 
+
  padding:1em;
/* Prevent floating after a .qu */
+
  border:solid thin black;
.qu+*{
+
  font-size:large;
   clear:left;
+
   box-shadow: .2ex .2ex #CFD1BA;
 
}
 
}
 
+
   
.qu {
+
td.sign{
    border:none;
+
vertical-align: middle;
    border-top:thin solid #ee8301;
+
display:none;
    margin: 2ex 0.2ex 0.2ex;
+
    padding: 10px;
+
}
+
.qu span.id {
+
    margin-bottom:.5em;
+
}
+
.mw-content-ltr p,
+
.qu p {
+
    margin-bottom:1em;
+
}
+
.quf {
+
    margin:0 0 1em 0;
+
}
+
.quf textarea {
+
    -webkit-border-radius:3em 1.2em 3em 1.2em / 3em 1.5em 4em 0;
+
    -moz-border-radius:3em 1.2em 3em 1.2em / 3em 1.5em 4em 0;
+
    border-radius:3em 1.2em 3em 1.2em / 3em 1.5em 4em 0;
+
    border-top:1.6em solid #3b434e;
+
    border-bottom:2em solid #3b434e;
+
    border-right:1.6em solid #3b434e;
+
    border-left:1.3em solid #3b434e;
+
    background:#e3e3e3;
+
    margin:.5em 0 -1em 0em;
+
    padding:.5em 0 0 .5em;
+
    width: 29.5em;
+
    overflow:auto;
+
}
+
.mac.webkit .quf textarea { width: 34.5em }
+
.win.gecko .quf textarea { width: 30em; }
+
.mac.gecko .quf textarea { width: 28.5em; }
+
.ie .quf textarea { width: 27em; }
+
.opera .quf textarea { width: 35.5em; }
+
.win.opera .quf textarea { width: 30em; }
+
 
+
 
+
.submitSQL {
+
    margin:-1.1em 0 0 0em; /* win ff */
+
    padding:.5em 1em .5em 1em;
+
    color:#e3e3e3;
+
    height:auto;
+
    background: #161525; /* Old browsers */
+
    background: -moz-linear-gradient(top, #363d49 0%, #363d49 18%, #161525 69%, #161525 100%); /* FF3.6+ */
+
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#363d49), color-stop(18%,#363d49), color-stop(69%,#161525), color-stop(100%,#161525)); /* Chrome,Safari4+ */
+
    background: -webkit-linear-gradient(top,  #363d49 0%,#363d49 18%,#161525 69%,#161525 100%); /* Chrome10+,Safari5.1+ */
+
    background: -o-linear-gradient(top,  #363d49 0%,#363d49 18%,#161525 69%,#161525 100%); /* Opera 11.10+ */
+
    background: -ms-linear-gradient(top,  #363d49 0%,#363d49 18%,#161525 69%,#161525 100%); /* IE10+ */
+
    background: linear-gradient(to bottom,  #363d49 0%,#363d49 18%,#161525 69%,#161525 100%); /* W3C */
+
    border:1em solid #3b434e;
+
    -webkit-border-radius:2.5em;
+
    -moz-border-radius:2.5em;
+
    border-radius:2.5em;
+
    z-index:+1;
+
}
+
.webkit .submitSQL { margin:-1.1em 0 0 0em; }
+
.mac.gecko .submitSQL { margin:-1.1em 0 0 0em; }
+
.ie .submitSQL { margin:-1em 0 0 0em; }
+
.opera .submitSQL { margin:-1em 0 0 0em; }
+
.submitSQL:hover {
+
    color:#ffffff;
+
    background:#161525;
+
    -webkit-background-clip: padding-box;
+
    -moz-background-clip:    padding;
+
    background-clip:        padding-box;
+
}
+
.quf .reset {
+
  cursor:pointer;
+
  display:inline-block;
+
  -moz-border-radius:0 0 1em 1em;
+
  -webkit-border-radius:0 0 1em 1em;
+
  border-radius:0 0 1em 1em;
+
  background:#3B434E;
+
  color:#e3e3e3;
+
  left: 12.6em;
+
  padding: 0 1.2em 0.2em;
+
  position: relative;
+
  top: 0;
+
}
+
.quf .reset:hover {
+
  color:#ee8301;
+
}
+
.win.webkit .quf .reset { left: 12em; }
+
.win.gecko .quf .reset { left: 12em; }
+
.ie .quf .reset { left: 10em; }
+
 
+
div.res {
+
    background:#dae5d9;
+
    color:#3b434e;
+
    border:none;
+
    padding:1em;
+
    -webkit-border-radius: 1.5em;
+
    -moz-border-radius:1.5em;
+
    border-radius: 1.5em;
+
    -moz-box-shadow: 1px 1px 3px #3b434e;
+
    -webkit-box-shadow: 1px 1px 3px #3b434e;
+
    box-shadow: 1px 1px 3px #3b434e;
+
    display:inline-block;
+
    margin-left: 1.5em;
+
}
+
 
+
//Connor 23/7/12 Highlighting for the multiple choice answers.
+
tr.proposal:hover{
+
  background-color:rgb(150,150,200)
+
}
+
 
+
.lsclear{
+
  color: #D90000;
+
  font-weight: bold;
+
  cursor:pointer;
+
/* designer override */
+
  border: 3px solid #E3E3E3;
+
  background: #EE8301;
+
  padding: 6px 12px;
+
  margin-left:.5em;
+
  -webkit-border-radius: 22px;
+
  -moz-border-radius: 22px;
+
  border-radius: 22px;
+
  text-shadow: -1px -1px 0 rgba(50, 50, 50, 0.75);
+
  color: #e3e3e3;
+
  font-size: 1em;
+
  font-family: Helvetica, Arial, Sans-Serif;
+
  font-weight:normal;
+
  text-decoration: none;
+
  vertical-align: middle;
+
  -webkit-box-shadow: 1px 1px 5px rgba(50, 50, 50, 0.75);
+
  -moz-box-shadow:    1px 1px 5px rgba(50, 50, 50, 0.75);
+
  box-shadow:        1px 1px 5px rgba(50, 50, 50, 0.75);
+
  display:inline-block;
+
}
+
.lsclear:hover {
+
  background: #161525;
+
  color: #EE8301;
+
  border-color: #EE8301;
+
}
+
 
+
/* ===================== FOOTER */
+
 
+
div#footer {
+
    background-image: none;
+
    border-top:thin solid #EE8301;
+
    direction: ltr;
+
    margin-left: 11em;
+
    margin-top: 0;
+
    padding: 0.75em;
+
}
+
div#footer ul {
+
    margin-left:.5em;
+
}
+
/* ===================== this overrides boys css to adjust the design */
+
 
+
 
+
 
+
span.id {
+
    font-size:3em;
+
    font-weight:bold;
+
    color:#161525;
+
}
+
.imper {
+
    margin-bottom:1em;
+
    font-weight:bold;
+
}
+
.mw-content-ltr a {
+
    color:#161525;
+
    font-weight:bold;
+
}
+
.qu a {
+
    font-weight:bold;
+
}
+
.mw-content-ltr a:hover {
+
    color:#ee8301;
+
}
+
.qu a:hover {
+
    color:#ee8301;
+
}
+
 
+
.quizlink  a{
+
    margin-left:.5em;
+
    font-weight:bold;
+
    color:#e3e3e3;
+
    background:#3b434e;
+
    padding:.5em 1.5em;
+
    -moz-border-radius:2em;
+
    -webkit-border-radius:2em;
+
    border-radius:2em;
+
    display:inline-block;
+
    box-shadow: 1px 1px 5px rgba(50, 50, 50, 0.75);
+
    border: 3px solid #E3E3E3;
+
}
+
.quizlink a:hover {
+
    color:#ee8301;
+
    background:#161525;
+
    border-color:#ee8301;
+
}
+
code {
+
    color:#ee8301;
+
    background:none;
+
    border: 1px solid #EE8301;
+
    -moz-border-radius:2em;
+
    -webkit-border-radius:2em;
+
    border-radius:2em;
+
    padding: 0.1em 0.5em 0;   
+
}
+
h2 code {
+
    border: 2px solid #EE8301;
+
}
+
.mw-content-ltr pre {
+
    border:none;
+
    background:#dae5d9;
+
    padding: 1.1em 1em 1em 2em;
+
    -moz-border-radius:.5em;
+
    -webkit-border-radius:.5em;
+
    border-radius:.5em;
+
    -moz-box-shadow:inset 5px 5px 11px rgba(33,33,33,0.7);
+
    -webkit-box-shadow:inset 5px 5px 11px rgba(33,33,33,0.7);
+
    box-shadow:inset 5px 5px 11px rgba(33,33,33,0.7);
+
}
+
 
+
.NoBorder td{
+
  border:none;
+
}
+
 
+
.Bordered td{
+
  border:solid;
+
  border-width:1px;
+
}
+
/*Connor 7/8/12 Gets rid of the table lines for a table many tables have been entered into.*/
+
 
+
/*Simple styling for lists of references*/
+
 
+
.tutlist {
+
  width:40ex;
+
  float:right;
+
  margin-left: 1.5em;
+
  padding: 1em;
+
  -moz-box-shadow: 1px 1px 3px #3B434E;
+
  -webkit-box-shadow: 1px 1px 3px #3B434E;
+
  box-shadow: 1px 1px 3px #3B434E;
+
  background:#dae5d9;
+
  transition:background 1s;
+
  -moz-transition:background 1s; /* Firefox 4 */
+
  -webkit-transition:background 2s; /* Safari and Chrome */
+
  -o-transition:background 1s; /* Opera */
+
  border-radius: 1.5em;
+
  color: #EE8301;
+
}
+
 
+
.fc {
+
  color: #EE8301;
+
  text-decoration:underline;
+
}
+
 
+
#userloginForm,
+
#userloginForm table {
+
  color:#e3e3e3;
+
}
+
#userloginForm {
+
    -moz-box-shadow: 5px 5px 8px #3b434e;
+
    -webkit-box-shadow: 3px 6px 10px #3b434e;
+
    box-shadow: 5px 5px 8px #3b434e;
+
    background: #161525; /* Old browsers */
+
    background: -moz-linear-gradient(top,  #363d49 0%, #363d49 18%, #161525 69%, #161525 100%); /* FF3.6+ */
+
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#363d49), color-stop(18%,#363d49), color-stop(69%,#161525), color-stop(100%,#161525)); /* Chrome,Safari4+ */
+
    background: -webkit-linear-gradient(top,  #363d49 0%,#363d49 18%,#161525 69%,#161525 100%); /* Chrome10+,Safari5.1+ */
+
    background: -o-linear-gradient(top,  #363d49 0%,#363d49 18%,#161525 69%,#161525 100%); /* Opera 11.10+ */
+
    background: -ms-linear-gradient(top,  #363d49 0%,#363d49 18%,#161525 69%,#161525 100%); /* IE10+ */
+
    background: linear-gradient(to bottom,  #363d49 0%,#363d49 18%,#161525 69%,#161525 100%); /* W3C */
+
    -webkit-border-radius: 1.5em;
+
    -moz-border-radius:1.5em;
+
    border-radius: 1.5em;
+
    border:solid 5px #e3e3e3;
+
}
+
#userloginForm a {
+
    color:#ee8301;
+
}
+
#userloginForm a:hover {
+
    color:#FF9E44;
+
    text-shadow: 0 0 6px #E17F19;
+
}
+
#userloginForm a {
+
    color:#ee8301;
+
}
+
#userloginForm table,
+
#userloginForm table td {
+
    border:none;
+
    background:none;
+
}
+
#userloginForm input {
+
    background:#e3e3e3;
+
    padding:0 .5em;
+
    -webkit-border-radius: .5em;
+
    -moz-border-radius:.5em;
+
    border-radius: .5em;
+
}
+
#userloginForm h2 {
+
    color:#ee8301
+
}
+
 
+
/* increase link recognition */
+
.mw-content-ltr a {
+
    text-decoration: underline;
+
}
+
div.tutblock a, div.refblock a, div.resblock a, .tutlist a, .quizlink a {
+
    text-decoration: none;
+
 
}
 
}

Latest revision as of 09:48, 1 May 2015

.r{
  text-align:right;
}
.imper{
  font-weight:bold;
}
table.distractor,table.distractor caption{
  background:#f9f9f9;
  float:left;
  margin: 1ex;
}
table.distractor{
  border: solid thin #d0d0d0;
}
table.object{
  clear:left;
  margin: 1ex;
}
#mw-panel .portal.first .body ul li {
  text-align: right;
}
div#mw-panel div.portal.first{
  margin-left:0px;
}
div.body div.portal.first ul li a {
  padding-right: 40px;
  display: inline-block;
  color: #3b434e;
}
div#mw-panel div.portal.first div.body ul li a {
  padding-right:25px;
  color: #3b434e;
}
.progressbarbg1 {
  position: absolute;
  right: 0px;
  width: 4.5ex;
  height: 1ex;
  background: black;
  border-radius: 0.7ex;
  border: 0.2ex solid #92A599;
  margin: -1em 0 0 0;
}
.progressbar1 {
  width: 3.93ex;
  height: 0.6ex;
  position: relative;
  top: 0.2ex;
  left: .2ex;
  background: #92A599;
  border-radius: 0.6ex;
  border-width: 0px;
  border-color: #000000;
}
 
#cog-cont ul{
  position:absolute;
  background-color:white;
  border:solid thin black;
  padding:1em;
  right:1em;
  top:32px;
  list-style:none;
}
#cog-cont ul li{
}
#p-personal{
  right:50px;
}
.tease{
  color:#1d365d;
  font-style:italic;
  cursor:pointer;
  padding: 0.2ex;
}
h1{
 font-family:sans-serif;
}
table.db_ref {
  border-collapse:collapse;
}
.db_ref th{
  text-align:left;
}
.db_ref th,.db_ref td{
  border:solid thin black;
  padding-left:0.6ex;
  padding-right:0.6ex;
}
.db_ref .r{
  text-align:right;
}
.def,.ans{
  display:none;
}
span.id {
  font-size: 300%;
  padding-right: 1ex;
}
.qu,.ht {
  border-top: thin solid #ee8301;
  margin-bottom: 9em;
}
div.setup,div.tidy,div.params{
  display:none;
}
div.res {
  margin-top:1ex;
  background: #dae5d9;
  color: #3b434e;
  border: none;
  padding: 1em;
  border-radius: 0.5ex;
  box-shadow: 1px 1px 3px #3b434e;
  border-style: inset;
  border-width: 1px;
  height: 20em;
  overflow: auto;
}
div.res.waiting{
  background-image:url(/design/ajax-loader.gif);
  background-repeat:no-repeat;
  background-position: center center;
}
textarea.sql {
  width: 100%;
  box-shadow: 1px 1px 3px #3b434e;
  border-style: inset;
  border-width: 1px;
  border-radius: 1ex;
  padding: 0.5ex;
  margin-bottom: 0.5ex;
}
button{
  background-image: linear-gradient(to bottom,#337ab7 0,#265a88 100%);
  background-color:#306aa0;
  color:white;
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.3;
  border-radius: 6px;
  border-color: #245580;
  border-width:1px;
  cursor:pointer;
}
.reset {
  display: inline;
  border: solid 1px;
  margin-left: 6em;
  padding: .5ex;
  border-radius: .5ex;
  cursor:pointer;
}
.qcorrect{
  background-image: url(/design/done9.png);
}
.qincorrect {
  background-image:url(/design/undone9.png);
}
.qcorrect, .qincorrect {
  width: 3em;
  height: 3em;
  position: absolute;
  margin: 0em 0 0 5em;
  background-size: 3em;
  background-repeat: no-repeat;
  background-position: center;
}
#p-logo>a{
  background-position:center top;
}
table{
  border-collapse:collapse;
}
table.sqlans{
  display:none;
}
td,th {
  border: solid gray 1px;
  padding: .2em .7em;
  vertical-align: top;
}
.showtxt{
  color:blue;
  cursor:pointer;
}
#napier-ad {
  width: 728px;
  height: 90px;
  display: inline-block;
  margin-left: 11em;
  background-image: url(http://sqlzoo.net/design/iidi_leaderboard.gif);
}
/*
 * Allow question and result to be side by side when the screen is big enough
*/
@media (max-width:1000px){
#napier-ad {
  display: none;
}
}
 
@media (min-width:1000px){
  .qu>div,.ht>div{
    width:46%;
    display:inline-block;
    vertical-align:top;
    margin-top:1ex;
  }
  .qu>div:first-child{
  }
  .qu>div.res,ht>div.res.ht{
    margin-left:1%;
  }
}
@media (max-width: 768px) {
  div#mw-panel{
    display: none;
  }
  #left-navigation {
    left: 0;
  }
  #mw-head-base,
  div#content,
  div#footer {
    margin-left: 0;
  }
  .db_ref{
  }
}
 
.quiz .q {
  margin-top:4em;
  padding-top: 0.8em;
  padding-bottom: 0.8em;
  border-radius:1em;
}
 
.quiz .q .d{
  border:blue solid thin;
  margin-top:1em;
  cursor:pointer;
} 
.quiz .q div.d{
  padding:.5em .5em .5em 1em;
}
.quiz .q .d:hover{
  border:black solid thin;
  box-shadow: 0px 0px 5px 1ex rgba(50, 50, 50, 0.75);
}
.quiz .q .d.picked{
  box-shadow: 0ex 0ex 4px 1ex #CFD1BA;
}
.quiz .q .d.picked::before{
  content: '\25CB';
  padding:0.3em;
  background:white;
  border:solid black thin;
  position:absolute;
  text-align:center;
  vertical-align: middle;
  left:-0.9em;
  margin-top:-0.9em;
  width:1em;
  height:1em;
}
.quiz .q .d.picked.mark-correct::before{
  content: '\2713';
  background-color:green;
}
.quiz .q .d.picked.mark-wrong::before{
  content: '\2717';
  background-color:red;
}
 
.quiz .feedback{
  margin: 1em 0;
  padding:1em;
  border:solid thin black;
  font-size:large;
  box-shadow: .2ex .2ex #CFD1BA;
}
 
td.sign{
vertical-align: middle;
display:none;
}