Difference between revisions of "MediaWiki:Mobile.css"
Jump to navigation
Jump to search
Meepledrone (talk | contribs) m (Adding classes to hide template edit icons) Tags: Mobile edit Mobile web edit |
Meepledrone (talk | contribs) m (Added styles for expansion symbols) |
||
Line 586: | Line 586: | ||
.templateedit a { | .templateedit a { | ||
text-decoration: none; | text-decoration: none; | ||
} | |||
/* | |||
==== Symbol Box & Symbol Column ==== | |||
*/ | |||
.wica-symbol-box { | |||
display: inline-block; | |||
/*height: 20px;*/ | |||
padding: 0px 2px; | |||
margin-right: 1ex; | |||
} | |||
.wica-symbol-column { | |||
width: 30px; | |||
min-width: 30px; | |||
max-width: 30px; | |||
} | } |
Revision as of 13:25, 19 October 2022
/* CSS placed here will affect users of the mobile site */
/* === Boxes === */
div.wica-box-header.wica-placing-tile.wica-visible {
background:#5C7A1B;
margin-top: 0px;
padding:0px 10px 2px;
border: 2px solid #5C7A1B;
border-radius: 10px 10px 0px 0px;
-moz-border-radius: 10px 10px 0px 0px;
-webkit-border-radius: 10px 10px 0px 0px;
}
div.wica-box-body.wica-placing-tile.wica-visible {
background:#CFE183;
margin-bottom: 0px;
padding:0px 10px 2px;
border: 2px solid #5C7A1B;
border-radius: 0px 0px 10px 10px;
-moz-border-radius: 0px 0px 10px 10px;
-webkit-border-radius: 0px 0px 10px 10px;
}
div.wica-box-header.wica-placing-meeple.wica-visible {
background:#0072BC;
margin-top: 0px;
padding:0px 10px 2px;
border: 2px solid #0072BC;
border-radius: 10px 10px 0px 0px;
-moz-border-radius: 10px 10px 0px 0px;
-webkit-border-radius: 10px 10px 0px 0px;
}
div.wica-box-body.wica-placing-meeple.wica-visible {
background:#C7EBFC;
margin-bottom: 0px;
padding:0px 10px 2px;
border: 2px solid #0072BC;
border-radius: 0px 0px 10px 10px;
-moz-border-radius: 0px 0px 10px 10px;
-webkit-border-radius: 0px 0px 10px 10px;
}
div.wica-box-header.wica-scoring.wica-visible {
background:#9E2322;
margin-top: 0px;
padding:0px 10px 2px;
border: 2px solid #9E2322;
border-radius: 10px 10px 0px 0px;
-moz-border-radius: 10px 10px 0px 0px;
-webkit-border-radius: 10px 10px 0px 0px;
}
div.wica-box-body.wica-scoring.wica-visible {
background:#FBC9C3;
margin-bottom: 0px;
padding:0px 10px 2px;
border: 2px solid #9E2322;
border-radius: 0px 0px 10px 10px;
-moz-border-radius: 0px 0px 10px 10px;
-webkit-border-radius: 0px 0px 10px 10px;
}
div.wica-box-header.wica-additional-actions.wica-visible {
background:#D3C400;
margin-top: 0px;
padding:0px 10px 2px;
border: 2px solid #D3C400;
border-radius: 10px 10px 0px 0px;
-moz-border-radius: 10px 10px 0px 0px;
-webkit-border-radius: 10px 10px 0px 0px;
}
div.wica-box-body.wica-additional-actions.wica-visible {
background:#FFF799;
margin-bottom: 0px;
padding:0px 10px 2px;
border: 2px solid #D3C400;
border-radius: 0px 0px 10px 10px;
-moz-border-radius: 0px 0px 10px 10px;
-webkit-border-radius: 0px 0px 10px 10px;
}
div.wica-box-header.wica-dragon-movement.wica-visible {
background:#B64685;
margin-top: 0px;
padding:0px 10px 2px;
border: 2px solid #B64685;
border-radius: 10px 10px 0px 0px;
-moz-border-radius: 10px 10px 0px 0px;
-webkit-border-radius: 10px 10px 0px 0px;
}
div.wica-box-body.wica-dragon-movement.wica-visible {
background:#EBC6DA;
margin-bottom: 0px;
padding:0px 10px 2px;
border: 2px solid #B64685;
border-radius: 0px 0px 10px 10px;
-moz-border-radius: 0px 0px 10px 10px;
-webkit-border-radius: 0px 0px 10px 10px;
}
div.wica-top-spacing.wica-visible {
margin-top: 10px;
}
div.wica-bottom-spacing.wica-visible {
margin-bottom: 10px;
}
div.wica-box-header.wica-repeat-block.wica-visible {
border: 3px dotted #c8ccd1;
padding: 2px 10px 2px;
border-radius: 20px 20px 0px 0px;
-moz-border-radius: 20px 20px 0px 0px;
-webkit-border-radius: 20px 20px 0px 0px;
}
div.wica-box-body.wica-repeat-block.wica-visible {
border-left: 3px dotted #c8ccd1;
border-right: 3px dotted #c8ccd1;
border-bottom: 3px dotted #c8ccd1;
padding: 10px; border-radius: 0px 0px 20px 20px;
-moz-border-radius: 0px 0px 20px 20px;
-webkit-border-radius: 0px 0px 20px 20px;
}
div.wica-box-body.wica-repeat-step.wica-visible {
border: 3px dotted #9E2322;
padding: 5px;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
margin: 10px 0px;
}
div.wica-box-body.wica-repeat-action.wica-visible {
border: 3px dotted #D3C400;
padding: 5px;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
margin: 10px 0px;
}
span.fake-h4 {
font-weight: bold;
font-size: 100%;
padding-top: 0.5em;
margin: 0px !important;
border-bottom: 0px;
display: block;
font-family: sans-serif;
line-height: 0.5em;
}
ol.wica-list {
list-style: lower-latin outside;
padding-left: 2em;
}
ol.wica-list ul {
/* margin-left: 0em; */
/* padding-left: 0px; */
}
/* === Counters === */
.wica-counter-reset {
counter-reset: section-counter;
}
.wica-counter-show::before {
counter-increment: section-counter;
content: counter(section-counter);
}
/* === Graphics === */
/*
div.showC1_Graphics img,
div.showC2_Graphics img,
div.showWE_Graphics img
{
max-width: 100% !important;
width: auto !important;
height: auto !important;
}
*/
/* === White box === */
.wica-white-box {
background: #ffffff;
border: 1px solid black;
padding-left: 3px;
padding-right: 3px;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
/* === Green box === */
.wica-green-box {
background: #0a7534;
border: 1px solid #0a7534;
color: #ffffff;
padding-left: 3px;
padding-right: 3px;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
/* === Black box === */
.wica-black-box {
background: #000000;
border: 1px solid #000000;
color: #ffffff;
padding-left: 3px;
padding-right: 3px;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
/* === Banners === */
.wica-banner,
/* h3
, h4*/ {
background-image: url("http://wikicarpedia.com/images/4/46/Section_Separator.jpg");
background-size: auto 36px;
padding-left: 0.5em !important;
margin-top: 15px !important;
margin-bottom: 15px !important;
filter: brightness(0.9);
}
.wica-banner-icon {
/* position: relative;
top: -65px;
margin-right: 10px; */
}
.wica-banner-spacer {
/* display: none; */
clear: both;
}
.wica-banner-icon-subsection {
margin-right: 10px;
}
.wica-banner-spacer-subsection {
clear: both;
}
/* === Figure reference === */
span.wica-mark-yes:after {
color: #00C000;
font-size: 1.5em;
/* content: '\02714'; big */
content: '\02713'; /* small */
}
span.wica-mark-no:after {
color: red;
font-size: 1.5em;
font-weight: bold;
/* content: '\02716'; big */
content: '\000D7'; /* small */
}
span.wica-mark-n-a:after {
color: DodgerBlue;
font-size: 1.5em;
font-weight: bold;
content: '\02212';
}
span.wica-mark-undefined:after {
color: orange;
font-size: 1.5em;
font-weight: bold;
content: '?';
}
/*
.wica-highlight span.wica-mark-yes:after {
color: inherit;
font-size: 1.5em;
content: '\02714'; /-* big *-/
/-* content: '\02713'; small *-/
}
.wica-highlight span.wica-mark-no:after {
color: inherit;
font-size: 1.5em;
font-weight: bold;
content: '\02716'; /-* big *-/
/-* content: '\000D7'; small *-/
}
.wica-highlight span.wica-mark-n-a:after {
color: inherit;
font-size: 1.5em;
font-weight: bold;
content: '\02212';
}
.wica-highlight span.wica-mark-undefined:after {
color: inherit;
font-size: 1.5em;
font-weight: bold;
content: '?';
}
*/
tr.wica-highlight > td,
tr.wica-highlight > th,
td.wica-highlight,
th.wica-highlight {
background-color: #f0f0ff;
}
/* === Wica-table === */
table.wica-table {
background-color:#f8f9fa;
color:#222;
margin:1em 0;
border:1px solid #a2a9b1;
border-collapse:collapse;
width: 100% !important;
}
table.wica-table > tr > th,
table.wica-table > tr > td,
table.wica-table > * > tr > th,
table.wica-table > * > tr > td {
border:1px solid #a2a9b1;
padding:0.2em 0.4em;
}
table.wica-table > tr > th,
table.wica-table > * > tr > th {
background-color:#eaecf0;
text-align:center;
}
table.wica-table > caption {
font-weight:bold;
}
table.wica-table > tbody {
display: table;
width: 100%;
}
/* == Accessibility labels == */
.cite-accessibility-label {
display: none;
}
/* === Styles for Expansion Selector Help === */
span.help-h3 {
font-weight: bold;
font-size: 1.2em;
padding-top: 0.5em;
margin: 0px !important;
border-bottom: 0px;
display: block;
font-family: sans-serif;
line-height: 1.6;
}
span.help-h4 {
font-weight: bold;
font-size: 100%;
padding-top: 0.5em;
margin: 0px !important;
border-bottom: 0px;
display: block;
font-family: sans-serif;
line-height: 1.6;
}
/* == Styles for annotated block texts == */
.wica-text-block {
}
div.wica-text-block > p:first-of-type {
margin-top: 0px;
}
.wica-text-block.wica-full {
margin-bottom: 10px;
}
.wica-text-block.wica-half {
}
.wica-annotation-box {
background-color: rgba(240, 240, 240, 0.6);
border: 2px dotted #cccccc;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
padding: 5px;
}
.wica-annotation-box.wica-full {
margin-top: 0px;
margin-bottom: 0px;
width: -moz-available; /* WebKit-based browsers will ignore this. */
width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
width: fill-available;
width: calc(100% - 14px);
}
.wica-annotation-box.wica-half {
margin-top: 0px;
margin-bottom: 0px;
width: -moz-available; /* WebKit-based browsers will ignore this. */
width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
width: fill-available;
width: calc(100% - 14px);
}
.wica-clear-full {
display: none;
}
.wica-clear-half {
}
@media screen and (min-width: 600px) {
.wica-text-block.wica-half {
width: 45%;
float: left;
}
.wica-annotation-box.wica-half {
width: 50%;
float: right;
}
}
@media screen and (max-width: 600px) {
.wica-clear-half {
display: none;
}
}
.wica-nesting-0 {
}
.wica-nesting-1 {
width: calc(100% - 36px) !important;
margin-left: 22px;
}
.wica-nesting-2 {
width: calc(100% - 56px) !important;
margin-left: 42px;
}
/**
==== Overriding deafult styles ====
**/
h4, h5, h6 {
font-weight: bold;
display: block !important;
}
/* CSS Hover Gallery for Mediawiki
*
* @author: Unknown
* current version crafted together by [[User:Christharp]] from several CSS sites. For my website:[http://www.yellpedia.com/wiki/Main_Page Yellpedia]
*/
.zoom_img img{
-moz-transition:-moz-transform 0.1s ease-in;
-webkit-transition:-webkit-transform 0.1s ease-in;
-o-transition:-o-transform 0.1s ease-in;
transition:transform 0.1 ease-in;
}
.zoom_img img:hover{
-moz-transform:scale(2);
-webkit-transform:scale(2);
-o-transform:scale(2);
transform:scale(2);
}
/**
Adjustment for icons and drawer
**/
.drawer.references-drawer {
background-color: #ffffff !important;
color: inherit !important;
}
.content img.wica-icon {
vertical-align: baseline !important;
}
/*
.anti_zoom_img img:hover {
-moz-transition:-moz-transform 0.1s ease-in;
-webkit-transition:-webkit-transform 0.1s ease-in;
-o-transition:-o-transform 0.1s ease-in;
transition:transform 0.1 ease-in;
-moz-transform:scale(4);
-webkit-transform:scale(4);
-o-transform:scale(4);
transform:scale(4);
position: relative;
z-index: 10;
}
*/
.anti_zoom_img img{
-moz-transform:scale(1);
-webkit-transform:scale(1);
-o-transform:scale(1);
transform:scale(1);
width: 40px !important;
height: auto !important;
position: relative;
}
.anti_zoom_img ul.gallery {
margin: 0px !important;
padding: 2px !important;
}
.anti_zoom_img ul.gallery li.gallerybox, .anti_zoom_img ul.gallery li.gallerybox div {
width: 40px !important;
height: auto !important;
margin: 0px !important;
}
/*
==== Remove template edit icons ====
*/
.templateedit {
display: none;
text-decoration: none;
}
.templateedit a {
text-decoration: none;
}
/*
==== Symbol Box & Symbol Column ====
*/
.wica-symbol-box {
display: inline-block;
/*height: 20px;*/
padding: 0px 2px;
margin-right: 1ex;
}
.wica-symbol-column {
width: 30px;
min-width: 30px;
max-width: 30px;
}