Difference between revisions of "MediaWiki:Mobile.css"

From Wikicarpedia
Jump to navigation Jump to search
m (Testing)
m (Added styles for Annotation boxes)
Line 395: Line 395:
   font-family: sans-serif;
   font-family: sans-serif;
   line-height: 1.6;
   line-height: 1.6;
}
/* == Styles for annotated block texts == */
.wica-text-block {
  float: left;
}
.wica-text-block.wica-half {
}
.wica-annotation-box {
  float: right;
  background-color: rgba(240, 240, 240, 0.6);
  border: 2px dotted #cccccc;
  border-radius: 10px;
  padding: 5px;
}
.wica-annotation-box.wica-full {
  margin-top: 10px;
  margin-bottom: 10px;
  width: -webkit-fill-available;
}
.wica-annotation-box.wica-half {
  margin-bottom: 10px;
  width: -webkit-fill-available;
}
@media screen and (min-width: 600px) {
  .wica-text-block.wica-half {
    width: 45%;
  }
 
  .wica-annotation-box.wica-half {
    width: 50%;
    margin-bottom: 10px;
  }
}
}

Revision as of 09:38, 2 July 2020

/* 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;
}


/* === 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 {
  float: left;
}

.wica-text-block.wica-half {
}

.wica-annotation-box {
  float: right; 
  background-color: rgba(240, 240, 240, 0.6); 
  border: 2px dotted #cccccc; 
  border-radius: 10px; 
  padding: 5px;
}

.wica-annotation-box.wica-full {
  margin-top: 10px;
  margin-bottom: 10px;
  width: -webkit-fill-available;
}

.wica-annotation-box.wica-half {
  margin-bottom: 10px;
  width: -webkit-fill-available;
}

@media screen and (min-width: 600px) {

  .wica-text-block.wica-half {
    width: 45%;
  }
  
  .wica-annotation-box.wica-half {
    width: 50%; 
    margin-bottom: 10px;
  }

}