User:James Hare/vector.css
Jump to navigation
Jump to search
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* Hide the interface outside the content area */
body
{
width: 68.75em;
margin: auto;
}
#mw-page-base,
#mw-head-base,
#mw-navigation,
#firstHeading,
#contentSub,
#jump-to-nav,
#footer {
display: none;
}
@media screen {
.mw-body-content {
font-size: 1em;
}
.mw-body p {
margin: 0;
}
}
div#content {
margin-left:0 !important;
border:0 !important;
}
#content {
border: 0.0625em solid #e6e6e6;
margin: 5.063em 0 1.25em;
padding: 2.5em 4.875em;
}
h1,
h2,
h3,
h4,
h5,
h6,
h6 {
font-family: Georgia, serif;
border-bottom: none;
}
#fake-header {
/* Fake the header and override #content styles */
position: absolute;
top: -6.3755em;
left: -4.9375em;
right: -5.8755em;
line-height: 41px;
font-family: Arial;
font-weight: bold;
}
#fake-header #logo {
height: 41px;
}
#fake-header ul {
list-style: none;
margin: 0;
float: right;
line-height: inherit;
}
#fake-header ul li {
margin: 0;
float: left;
text-transform: uppercase;
}
#fake-header ul li a {
color: black;
padding: 0.5em 0.75em;
}
#fake-header ul li a:hover {
text-decoration: none;
background-color: #DDD;
}
#fake-header ul li.active a {
color: white;
background-color: black;
}
#fake-header ul li.active a:hover {
color: black;
background-color: #DDD;
}
#fake-footer {
/* Fake the footer and override #content styles */
position: absolute;
bottom: -10.0625em;
left: -4.9375em;
right: -4.9375em;
font-family: Arial;
margin-bottom: 1.25em;
/* Two useless properties, but they help visualize spacing */
height: 5.5em;
margin-top: 0.75em;
}
#fake-footer a {
color: black;
}
#fake-footer ul {
list-style: none;
margin: 0;
}
#fake-footer ul li {
margin: 0;
padding: 0.5em 0;
line-height: 1.75;
}
#fake-footer #fake-footer-icons {
float: right;
}
#fake-footer #fake-footer-icons li {
float: left;
margin-left: 0.5em;
}
#fake-footer #fake-footer-places li {
float: left;
margin-right: 1.5em;
text-transform: uppercase;
}
#fake-footer #fake-footer-info {
font-size: 0.825em;
color: #555;
}
#fake-footer #fake-footer-places, #fake-footer-info
{
float: left;
}
/*
* ===================
* zero.content.less
* ===================
*/
body
{
font-size: 16px;
font-family: Georgia, serif;
}
h1 {
font-size: 2.5em;
line-height: 1.25;
}
h2 {
font-size: 1.875em;
line-height: 1.267;
}
h3 {
font-size: 1.5em;
line-height: 1.333;
}
h4 {
font-size: 1.25em;
line-height: 1.4;
}
h5,
h6 {
font-size: 1.125em;
line-height: 1.444;
}
p {
font-size: 1em;
line-height: 1.5;
color: #444;
}
hr {
margin: 20px 0;
}
.caption {
font-style: italic;
font-size: .875em;
line-height: 1.5;
margin-top: 1em;
color: #777777;
}
.arrow-link {
display: block;
font-family: Arial;
font-size: 1.125em;
line-height: 1.111em;
margin-top: 1.778em;
padding-left: 1.3em;
color: #347bff;
background: url(https://zero.wikimedia.org/w/img_auth.php/3/3b/Arrow-circle-right.svg) no-repeat;
}
.stat {
display: table-cell;
font-family: Arial;
font-size: 1.5em;
line-height: 1.25;
color: #555555;
width: 6.667em;
}
.stat .stat-icon {
background-color: #347bff;
color: #00af89;
width: 50px;
height: 50px;
}
.stat .stat-icon.stat-icon-phone {
background: 50px url(https://zero.wikimedia.org/w/img_auth.php/0/0c/Circle-mobile.svg);
}
.stat .stat-icon.stat-icon-subs {
background: 50px url(https://zero.wikimedia.org/w/img_auth.php/2/24/Circle-users.svg);
}
.stat .stat-icon.stat-icon-views {
background: 50px url(https://zero.wikimedia.org/w/img_auth.php/c/cb/Circle-views.svg);
}
.stat .stat-text {
padding-top: .75em;
}
.clearbox {
clear: both;
}
#big-image {
width: 68.625em;
height: 30.538125em;
margin: -2.5em -4.875em 0;
display: table;
float: left;
background: 0 20% / 68.625em url(https://upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Johannesburg_-_Wikipedia_Zero_-_258A9925.jpg/1098px-Johannesburg_-_Wikipedia_Zero_-_258A9925.jpg);
}
#big-image #overlay-text {
display: table-cell;
vertical-align: bottom;
padding: 0 1.5em 1em;
font-size: 1.5em;
font-style: italic;
line-height: 2;
color: white;
background-color: rgba(0, 0, 0, 0.3);
background: -webkit-gradient(linear, left bottom, right top, from(rgba(0, 0, 0, 0.3)), to(rgba(0, 0, 0, 0)));
background: -webkit-linear-gradient(left bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
background: -moz-linear-gradient(left bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
background: -ms-linear-gradient(left bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
background: -o-linear-gradient(left bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
background: linear-gradient(to right top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}
#big-image #overlay-text #overlay-text-shout {
font-style: normal;
font-size: 1.5em;
line-height: 1;
}
#mission-container {
margin: 1.75em 0 2.25em;
}
#mission-container #mission {
color: #777777;
margin: 0;
}
#mission-container #mission .highlight-text {
color: #00af89;
}
#partner-benefit-container {
border-top: 2px solid #dddddd;
border-bottom: 2px solid #dddddd;
padding: 2.5em 0;
}
#partner-benefit-container #video-container {
float: right;
width: 22.813em;
}
#partner-benefit-container h2 {
margin-top: 0;
}
#partner-benefit-container p {
width: 32.5em;
}
#map-container {
margin-top: 2.5em;
}
#map-container #map {
position: absolute;
right: 0;
}
#map-container #countries-served-container {
font-family: Arial;
color: #00af89;
}
#map-container #countries-served-container #countries-served-number {
font-size: 10em;
line-height: .75;
}
#map-container #countries-served-container #countries-served-text {
font-size: 2.5em;
}
#map-container #stats-container {
display: table;
margin-top: 1.375em;
}
/*
* ===================
* zero.dashboard.less
* ===================
*/
#portal-dashboard {
margin: 0 -4.875em;
justify-content: space-around;
font-family: Arial;
}
#portal-dashboard h2 {
margin-top: 0;
}
#portal-dashboard h3,
#portal-dashboard h4,
#portal-dashboard h5,
#portal-dashboard h6 {
font-weight: normal;
}
.icon {
height: 1.5em;
padding-left: 1.25em;
}
.icon.status-constructive {
background: 0 / 1em url(https://zero.wikimedia.org/w/img_auth.php/e/e6/Check-1.svg) no-repeat;
}
.icon.status-pending {
background: 0 / 1em url(https://zero.wikimedia.org/w/img_auth.php/4/45/Pending.svg) no-repeat;
}
.icon.status-destructive {
background: 0 / 1em url(https://zero.wikimedia.org/w/img_auth.php/a/af/Status-circle.svg) no-repeat;
}
.flex-container {
display: flex;
}
.flex {
flex-grow: 1;
}
#overall-status {
display: inline-block;
}
#overall-status,
.status-container {
text-transform: uppercase;
margin: 5px 0 15px;
font-size: 0.9em;
}
.status-constructive {
color: #00af89;
}
.status-pending {
color: #ffb50d;
}
.status-destructive {
color: #d11d13;
}
#dashboard-sidebar {
width: 16.25em;
margin-left: 10px;
}
#dashboard-content {
width: 48.75em;
}
#docs-container .flex {
width: 15em;
}
#analytics-button {
float: right;
}
#testing-config {
flex-grow: 1;
min-width: 50%;
}
#testing-description {
margin-right: 1.563em;
}
#testing-wrapper-l {
flex-grow: 1;
margin-right: 10px;
}
#testing-wrapper-r {
flex-grow: 1;
margin: 10px;
}
#testing-timer-container {
background-color: #f6f6f6;
text-align: center;
border: 1px solid #ccc;
}
#testing-timer-container .timer-text {
font-size: 2.75em;
font-family: Arial;
}
#testing-timer-container #testing-timer-hr {
background: none;
border: none;
width: 1.1em;
}
#testing-trigger {
width: 100%;
}
#testing-desc-running {
color: #00af89;
}
.mw-ui-container #userloginForm {
border: 0;
margin: 40px 0 0;
padding: 0;
font-family: sans-serif;
}
.mw-ui-container .mw-ui-vform {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 290px;
margin: 0 auto;
}
.mw-ui-container .mw-ui-vform .mw-ui-vform-field {
display: block;
margin: 0 0 15px;
padding: 0;
width: 100%;
}
.mw-ui-container .mw-ui-input {
-webkit-appearance: none;
border: 1px solid #CCC;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
padding: .4em .3em .2em .6em;
display: block;
vertical-align: middle;
border-radius: 2px;
color: inherit;
background-color: inherit;
font-family: inherit;
font-size: inherit;
line-height: inherit;
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
transition: border linear 0.2s, box-shadow linear 0.2s;
}
.mw-ui-container .mw-ui-flush-right {
float: right;
padding-right: 0;
margin-right: 0;
}
.mw-ui-container .mw-ui-checkbox {
display: inline-block;
vertical-align: middle;
}
.mw-ui-container .mw-ui-checkbox:not(#noop) {
position: relative;
line-height: 2em;
}
.mw-ui-container .mw-ui-checkbox:not(#noop) * {
font: inherit;
vertical-align: middle;
}
.mw-ui-container .mw-ui-checkbox:not(#noop) input[type="checkbox"] {
opacity: 0;
width: 2em;
height: 2em;
max-width: none;
margin-right: 0.4em;
}
.mw-ui-container .mw-ui-checkbox:not(#noop) input[type="checkbox"] + label::before {
content: '';
cursor: pointer;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
position: absolute;
left: 0;
border-radius: 2px;
width: 2em;
height: 2em;
background-color: #fff;
border: 1px solid #777;
}
.mw-ui-container .mw-ui-checkbox:not(#noop) input[type="checkbox"]:checked + label::before {
background-image: url("//bits.wikimedia.org/static-1.25wmf13/resources/src/mediawiki.ui/components/images/checked.png?2014-12-17T20:20:00Z");
background-image: -webkit-linear-gradient(transparent, transparent), url("data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22…0B78C%22%20stroke-width%3D%223%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E%0A");
background-image: -webkit-linear-gradient(transparent, transparent), url("//bits.wikimedia.org/static-1.25wmf13/resources/src/mediawiki.ui/components/images/checked.svg?2014-12-17T20:20:00Z");
background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22…0B78C%22%20stroke-width%3D%223%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E%0A");
background-image: linear-gradient(transparent, transparent), url("//bits.wikimedia.org/static-1.25wmf13/resources/src/mediawiki.ui/components/images/checked.svg?2014-12-17T20:20:00Z");
-o-background-size: 1.8em 1.8em;
-webkit-background-size: 1.8em 1.8em;
background-size: 1.8em 1.8em;
background-repeat: no-repeat;
background-position: center center;
background-origin: border-box;
}