Skip to content

Instantly share code, notes, and snippets.

@wesleyhales
Created April 7, 2012 22:54
Show Gist options
  • Save wesleyhales/2332690 to your computer and use it in GitHub Desktop.
Save wesleyhales/2332690 to your computer and use it in GitHub Desktop.
common.css
.clearlink {
background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
background-position: center center;
cursor: pointer;
/*zoom: 1;*/
position: absolute;
right: 0.25em;
top: 50%;
margin: 1px;
height: 12px;
width: 12px;
margin-top: -6px;
z-index: 2;
border: 0px solid;
display: none;
}
html[dir="rtl"] .clearlink {
left: 0.25em;
right: auto;
}
.divclearable {
border: 1px solid #888;
display: block;
/*zoom: 1;*/
vertical-align: middle;
position: relative;
z-index: 2;
}
table {
/*border-spacing: 0 !important;*/
max-width: 100%;
/*border-collapse: collapse !important;*/
border: 1px solid #cccccc;
padding: 3px;
margin-bottom: 15px;
}
table.gallery .thumb[style] {
border: 0;
/*padding: 0 !important;*/
/*width: auto !important;*/
margin: 0 auto;
}
/*table.geography[style] td[style*="text-align"],*/
/*table.geography[style] td[colspan="2"] {*/
/*text-align: left !important;*/
/*margin-left: 0 !important;*/
/*margin-right: 0 !important;*/
/*}*/
table.toc h2 {
border: 0;
padding: 0;
margin-top: 5px;
}
table.gallery th,
table.gallery td {
display: block;
border: 0;
border-bottom: 1px solid #cccccc;
}
table[style] {
float: none !important;
margin-left: 0 !important;
width: 100% !important;
}
table.navbox td.navbox-group {
background: #ddddff;
width: 25%;
padding: 3px;
}
table.gallery {
background: #f9f9f9;
border-bottom: 0;
}
table.navbox {
font-size: 0.9em;
width: 100% !important;
}
table.gallery .gallerytext {
margin-top: -12px;
text-align: center;
}
table.navbox th.navbox-title {
background: #ccccff;
padding: 5px;
}
/*table.navbox div[style*="padding"] {*/
/*padding-left: 0 !important;*/
/*padding-right: 0 !important;*/
/*}*/
table.gallery .gallerybox[style] {
width: auto !important;
margin-bottom: -16px;
}
table td,
table th {
border: 1px solid #cccccc;
padding: 3px;
}
table th {
word-break: normal;
}
.mwm-message.mwm-notice {
background: #FFFFFF;
font-size: 1.1em;
color: #000000;
}
.mwm-message.mwm-notice a {
text-decoration: underline;
font-weight: bold;
color: #000000;
}
button.show {
display: none;
}
.togglingEnabled button.show {
display: inline-block;
}
.togglingEnabled .content_block,
.togglingEnabled .section_anchors,
button.section_heading.hide {
display: none;
}
.mwm-notice {
padding: 5px;
background: #dddddd;
-webkit-border-radius: 5px;
margin-top: 5px;
text-align: center;
border: 1px solid gray;
}
table table {
border: 0;
margin-bottom: 0;
}
table table td,
table table th {
border: 0;
padding: 0;
}
table.toc {
background: #f9f9f9;
}
table.navbox td.navbox-abovebelow {
padding: 3px;
}
table.navbox td.navbox-group + td {
padding: 3px;
}
/*table.navbox div[style*="padding"] a {*/
/*white-space: normal;*/
/*}*/
/*table.navbox span[style*="white"] {*/
/*white-space: normal; !important;*/
/*}*/
table.navbox td,
table.navbox th {
padding: 0;
}
table.navbox table {
margin-bottom: 0;
}
table.wikitable th {
background: #f3f3f3;
}
table.infobox {
background: #f9f9f9;
}
table.infobox th,
table.infobox td {
border: 0;
}
table.infobox td[colspan="3"],
table.infobox th[colspan="3"] {
border: 1px solid #cccccc;
}
table.geography[style] th {
text-align: left;
}
/*table.geography[style] td[style*="text-align"] div[style],*/
/*table.geography[style] td[colspan="2"] div[style] {*/
/*text-align: left !important;*/
/*}*/
table.admin {
width: 300px;
}
html {
font-size: 100%;
}
body {
font-size: 0.8em;
margin: 0;
line-height: 1;
color: black;
background: white;
font-family: sans-serif;
}
p,
li,
dl,
#featured_article {
line-height: 1.65;
}
/*pre {*/
/*white-space: normal;*/
/*}*/
a {
text-decoration: none;
color: #002bb8;
}
a:visited {
color: #5a3696;
}
a:active {
color: #faa700;
}
a:hover {
text-decoration: underline;
}
a.new,
a.new:visited,
a.new:hover {
color: red;
}
a.back_to_top,
a.back_to_top:visited {
margin-top: 7px;
color: blue;
}
.links {
float: left;
padding: 10px;
}
#contentSub,
.dablink {
margin-bottom: 10px;
}
#firstHeading {
font-size: 1.7em;
}
h2 {
font-size: 1.3em;
border-bottom: 1px solid #aaaaaa;
padding-top: 0.3em;
}
.section_anchors a {
display: block;
}
.section_anchor {
height: 1px;
width: 1px;
}
.printonly,
.geo-multi-punct,
.geo-nondefault {
display: none;
}
#featured_article .noprint,
.today .noprint {
display: none;
}
.thumb {
border: 1px solid #cccccc;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
background: #f9f9f9;
margin-bottom: 10px;
text-align: center;
}
.thumb .thumbinner[style] {
margin: 5px auto;
max-width: 100%;
/*width: auto !important;*/
}
.thumb img {
/*max-width: 100% !important;*/
/*width: auto !important;*/
}
.thumb .thumbcaption {
width: 100%;
margin: 5px 10px 0;
text-align: center;
/*width: auto !important;*/
}
img.thumbborder {
border: 1px solid #cccccc;
}
.floatright {
float: right;
}
.floatleft {
float: left;
}
#content_wrapper.home h1#firstHeading {
display: none;
}
#header {
margin: 8px 8px 0 8px;
position: relative;
}
#content_wrapper {
clear: both;
margin: 0 8px;
}
#footer {
margin: 0 8px;
clear: both;
}
#logo {
position: absolute;
top: 4px;
left: 5px;
}
#zero-language-search.search_bar,
#searchbox {
width: auto;
position: relative;
padding: 7px 32px 7px 44px; /* WARNING: check #results left and right */
border: 1px solid #cccccc;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
}
#zero-language-search.search_bar {
padding: 8px 32px 8px 0px;
}
#searchbox form {
margin-bottom: 0;
}
html[dir="rtl"] #searchbox {
padding: 5px 44px 5px 32px
}
#searchbox #form {
padding-right: 34px;
width: 100%;
}
html[dir="rtl"] #logo,
.goButton {
position: absolute;
right: 2px;
left: auto;
}
.goButton {
top: 2px;
border: 0;
background: url(images/s.gif) no-repeat top left;
background-size: 27px 25px;
height: 25px;
width: 27px;
padding-bottom: 0;
text-indent: -999px;
}
html[dir="rtl"] .goButton {
right: auto;
left: 2px;
}
#searchbox a,
#searchbox img {
border: 0px;
vertical-align: middle;
position: absolute;
}
#search:focus {
outline: none;
}
#searchbox #searchField {
width: auto;
}
#nav {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
clear: both;
display: none;
border: 1px solid #cccccc;
border-top: 0px;
margin: -1px 0 0 0;
background: white;
padding: 0 5px 5px 5px;
position: relative;
float: left;
}
html[dir="rtl"] #nav {
float: right;
}
#languageselection {
margin-right: 35px;
}
html[dir="rtl"] #languageselection {
margin-right: 0;
margin-left: 35px;
}
#nav form,
#nav button {
display: inline-block;
}
#nav .button,
#nav button {
background: url(images/buttonbg.gif) no-repeat center;
border: 0;
padding: 8px;
color: black;
display: inline-block;
background-size: 100% 100%;
}
#disableButtons {
text-align: center;
}
#disableButtons button {
background: url(images/buttonbg.gif) no-repeat center;
border: 0;
height: 23px;
width: 83px;
}
#disableButtons #backButton {
margin-top: 5em;
}
.mwm-message.mwm-notice {
font-size: 1.1em;
}
#image_wrapper {
margin: 8px 0 8px -3px;
}
#footer {
padding-top: 1em;
}
#footer #perm {
padding-top: 2em;
font-size: 90%;
}
#footer #copyright {
padding: 1em 0;
font-size: 80%;
}
ol.references > li:target,
sup.reference:target,
span.citation:target,
cite:target {
background-color: #ddeeff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment