MediaWiki:Common.css: mudanças entre as edições

De Wikincat
Ir para navegação Ir para pesquisar
Sem resumo de edição
Etiqueta: Revertido
Sem resumo de edição
 
(20 revisões intermediárias por 2 usuários não estão sendo mostradas)
Linha 2: Linha 2:


/* Don't display some stuff on the main page */
/* Don't display some stuff on the main page */
.page-Wikincat_Home h1 { display: none; }
.page-Wikincat_Home h1 {
.page-Wikincat_Home #ca-talk { display: none; }
display: none;
}
.page-Wikincat_Home #ca-talk {
display: none;
}


/* Center */
/* Center */
.center { text-align: center; }
.center {
text-align: center;
div.center div, div.center p, div.center table, div.center form {
}
text-align: left;
div.center div,
margin-left: auto;
div.center p,
margin-right: auto;
div.center table,
div.center form {
text-align: left;
margin-left: auto;
margin-right: auto;
}
}


Linha 20: Linha 29:
}
}


.wikincatTable td, .wikincatTable th {
.wikincatTable td,
.wikincatTable th {
border: 1px solid #ddd;
border: 1px solid #ddd;
padding: 8px;
padding: 8px;
}
}


.wikincatTable tr:nth-child(even){background-color: #f2f2f2;}
.wikincatTable tr:nth-child(even) {
background-color: #f2f2f2;
}


.wikincatTable tr:hover {background-color: #ddd;}
.wikincatTable tr:hover {
background-color: #ddd;
}


.wikincatTable th {
.wikincatTable th {
Linha 33: Linha 47:
padding-bottom: 12px;
padding-bottom: 12px;
text-align: left;
text-align: left;
background-color: #4CAF50;
background-color: #4caf50;
color: white;
color: white;
}
}


/* Semantic Result Formats (filtered) */
/* Semantic Result Formats (filtered) */
.filtered { height: auto; }
.filtered {
height: auto;

.filtered-filters {
width: 25%;
background: #f9f9f9;
border-color: #f9f9f9;
/* border-radius: 5px; */
/* border-top-left-radius: 5px; */
/* border-top-right-radius: 5px; */
/* border-bottom-right-radius: 5px; */
/* border-bottom-left-radius: 5px; */
margin: 0 5px 0 0 !important;
padding: 5px;
float: left;
height: auto;
}
}


.filtered-views {
.filtered-filters {
width: 25%;
overflow: auto;
background: #f9f9f9;
overflow-x: auto;
border-color: #f9f9f9;
overflow-y: auto;
/* border-radius: 5px; */
padding: 0;
/* border-top-left-radius: 5px; */
margin: 0 0 0 0;
border: 0;
/* border-top-right-radius: 5px; */
/* border-bottom-right-radius: 5px; */
height: auto;
border-right-width: 0;
/* border-bottom-left-radius: 5px; */
margin: 0 5px 0 0 !important;
border-top-width: 0;
padding: 5px;
border-left-width: 0;
float: left;
border-bottom-width: 0;
height: auto;
}


.filtered-views {
overflow: auto;
overflow-x: auto;
overflow-y: auto;
padding: 0;
margin: 0 0 0 0;
border: 0;
height: auto;
border-right-width: 0;
border-top-width: 0;
border-left-width: 0;
border-bottom-width: 0;
}
}


.filtered-views-container {
.filtered-views-container {
padding: 0 0 0 0 !important;
padding: 0 0 0 0 !important;
}
}


.filtered-filters .filtered-value {
.filtered-filters .filtered-value {
/* border-radius: 5px; */
/* border-radius: 5px; */
margin: 5px 5px 11px 5px;
margin: 5px 5px 11px 5px;
border: 1px solid #a7d7f9;
border: 1px solid #a7d7f9;
}
}


.filtered .filtered-filters {
.filtered .filtered-filters {
border: 1px solid #ffffff;
border: 1px solid #ffffff;
}
}


.filtered .filtered-views {
.filtered .filtered-views {
border: 1px solid #ffffff !important;
border: 1px solid #ffffff !important;
}
}


.filtered-filters .filtered-value .filtered-value-label span {
.filtered-filters .filtered-value .filtered-value-label span {
background-color: #f9f9f9;
background-color: #f9f9f9;
font-weight: bold;
font-weight: bold;
padding-left: 10px;
padding-left: 10px;
padding-right: 10px;
padding-right: 10px;
}
}


.filtered-filters .filtered-value .filtered-value-switches {
.filtered-filters .filtered-value .filtered-value-switches {
font-size: 90%;
font-size: 90%;
font-weight: normal;
font-weight: normal;
border-bottom-color: #E8E8E8;
border-bottom-color: #e8e8e8;
}
}


.filtered-filters .filtered-value .filtered-value-hide {
.filtered-filters .filtered-value .filtered-value-hide {
position: relative;
position: relative;
top: -2em;
top: -2em;
width: 10px;
width: 10px;
padding-left: 10px;
padding-left: 10px;
padding-right: 10px;
padding-right: 10px;
padding-bottom: 0;
padding-bottom: 0;
margin-bottom: 0;
margin-bottom: 0;
text-align: center;
text-align: center;
background-color: #f9f9f9;
background-color: #f9f9f9;
cursor: pointer;
cursor: pointer;
font-size: 90%;
font-size: 90%;
}
}


.filtered-filters .filtered-value .filtered-value-show {
.filtered-filters .filtered-value .filtered-value-show {
position: relative;
position: relative;
top: -2em;
top: -2em;
width: 10px;
width: 10px;
padding-left: 10px;
padding-left: 10px;
padding-right: 10px;
padding-right: 10px;
margin-bottom: 10px;
margin-bottom: 10px;
background-color: #f9f9f9;
background-color: #f9f9f9;
cursor: pointer;
cursor: pointer;
text-align: center;
text-align: center;
font-size: 90%;
font-size: 90%;
}
}


.filtered-filters .filtered-value .filtered-value-option {
.filtered-filters .filtered-value .filtered-value-option {
padding: 2px;
padding: 2px;
background-color: #f9f9f9;
background-color: #f9f9f9;
display: block;
display: block;
width: 97%;
width: 97%;
}
}


.filtered .filtered-filters .filtered-filter .filtered-filter-label {
.filtered .filtered-filters .filtered-filter .filtered-filter-label {
background: #f9f9f9;
background: #f9f9f9;
}
}


.ns-0 #ca-talk { display: none; }
.ns-0 #ca-talk {
display: none;
.searchresult {color: #888888; }
}
.searchresult {
color: #888888;
}


/* DivTable.com */
/* DivTable.com */
.divTable{
.divTable {
display: table;
display: table;
width: 100%;
width: 100%;
}
}
.divTableRow {
.divTableRow {
display: table-row;
display: table-row;
}
}
.divTableHeading {
.divTableHeading {
background-color: #EEE;
background-color: #eee;
display: table-header-group;
display: table-header-group;
}
}
.divTableCell, .divTableHead {
.divTableCell,
.divTableHead {
border: 1px solid #999999;
border: 1px solid #999999;
display: table-cell;
display: table-cell;
padding: 3px 10px;
padding: 3px 10px;
}
}
.divTableHeading {
.divTableHeading {
background-color: #EEE;
background-color: #eee;
display: table-header-group;
display: table-header-group;
font-weight: bold;
font-weight: bold;
}
}
.divTableFoot {
.divTableFoot {
background-color: #EEE;
background-color: #eee;
display: table-footer-group;
display: table-footer-group;
font-weight: bold;
font-weight: bold;
}
}
.divTableBody {
.divTableBody {
display: table-row-group;
display: table-row-group;
}
}


Linha 176: Linha 196:
.smwbuiltin a,
.smwbuiltin a,
.smwbuiltin .new {
.smwbuiltin .new {
color: #ff8000;
color: #ff8000;
}
}
/* implementing tabs: https://www.w3schools.com/howto/howto_js_tabs.asp */
/* implementing tabs: https://www.w3schools.com/howto/howto_js_tabs.asp */
Linha 220: Linha 240:
https://alligator.io/css/collapsible */
https://alligator.io/css/collapsible */
.wrap-collapsible {
.wrap-collapsible {
margin-bottom: 10px
margin-bottom: 10px;
}
}


.wrap-collapsible input[type='checkbox'] {
.wrap-collapsible input[type="checkbox"] {
display: none;
display: none;
}
}
Linha 248: Linha 268:


.lbl-toggle::before {
.lbl-toggle::before {
content: ' ';
content: " ";
display: inline-block;
display: inline-block;


Linha 255: Linha 275:
border-left: 5px solid;
border-left: 5px solid;
vertical-align: middle;
vertical-align: middle;
margin-right: .7rem;
margin-right: 0.7rem;
transform: translateY(-2px);
transform: translateY(-2px);


transition: transform .2s ease-out;
transition: transform 0.2s ease-out;
}
}


Linha 268: Linha 288:
max-height: 0;
max-height: 0;
overflow: hidden;
overflow: hidden;
transition: max-height .25s ease-in-out;
transition: max-height 0.25s ease-in-out;
}
}


Linha 281: Linha 301:


/* WSSearchFront extension */
/* WSSearchFront extension */
.wssearch--hit__date, .wssearch--hit__body {
.wssearch--hit__date,
.wssearch--hit__body {
display: none;
display: none;
}
}


Linha 316: Linha 337:
/* Design de etiquetas */
/* Design de etiquetas */


/* dejavu-mono-latin-400-normal */
.labelPrintContainer {
@font-face {
height: 237.3mm;
font-family: 'DejaVu Mono';
width: 208.2mm;
font-style: normal;
border: 0.1mm solid blue;
font-display: swap;
padding-top: 2cm;
font-weight: 400;
display: flex;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/dejavu-mono@latest/latin-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/dejavu-mono@latest/latin-400-normal.woff) format('woff');
flex-direction: column;
}
flex-wrap: wrap;

align-content: center;
.labelContainer {
justify-content: flex-start;
height: 237.3mm;
width: 208.2mm;
border: 0.1mm solid blue;
padding-top: 17mm;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: flex-start;
}
}


.labelUnit {
.labelUnit {
height: 33.9mm;
height: 33.3mm;
width: 101.6mm;
width: 101.2mm;
/* border: 0.1mm solid red; */
border: 0.1mm solid red;
/* border-radius: 5px; */
border-radius: 2mm;
padding: 2cm;
margin-left: 2.5mm;
font-size: 100%;
border-radius: 5px;
font-family: 'DejaVu Mono';
margin-right: 2.5mm;
margin-left: 2.5mm;
}
}


.labelUnit table {
.labelUnit table {
height: 100%;
height: 95%;
width: 100%;
width: 98%;
}
}


.labelUnit table tr:nth-child(1) td:nth-child(1) {
.labelUnit table tr:nth-child(1) td:nth-child(1) {
vertical-align: top;
vertical-align: top;
font-weight: bold;
font-weight: 900;
}
}


Linha 352: Linha 380:
line-height: 0.9;
line-height: 0.9;
width: 61mm;
width: 61mm;
font-size: smaller;
font-size: 0.775em;
}
}


.labelUnit table tr:nth-child(2) td:nth-child(1) {
.labelUnit table tr:nth-child(2) td:nth-child(1) {
line-height: 0.9;
line-height: 0.9;
text-align:right;
text-align: right;
}
}


.labelUnit table tr:nth-child(3) {
.labelUnit table tr:nth-child(3) {
line-height: 0.9;
line-height: 0.9;
font-size: smaller;
font-size: 0.775em;
}
}

Edição atual tal como às 14h08min de 14 de setembro de 2024

/** o código CSS colocado aqui será aplicado a todos os temas */

/* Don't display some stuff on the main page */
.page-Wikincat_Home h1 {
  display: none;
}
.page-Wikincat_Home #ca-talk {
  display: none;
}

/* Center */
.center {
  text-align: center;
}
div.center div,
div.center p,
div.center table,
div.center form {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

/* wikincatTable */

.wikincatTable {
  border-collapse: collapse;
  width: 100%;
}

.wikincatTable td,
.wikincatTable th {
  border: 1px solid #ddd;
  padding: 8px;
}

.wikincatTable tr:nth-child(even) {
  background-color: #f2f2f2;
}

.wikincatTable tr:hover {
  background-color: #ddd;
}

.wikincatTable th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #4caf50;
  color: white;
}

/* Semantic Result Formats (filtered) */
.filtered {
  height: auto;
}

.filtered-filters {
  width: 25%;
  background: #f9f9f9;
  border-color: #f9f9f9;
  /* border-radius: 5px; */
  /* border-top-left-radius: 5px; */
  /* border-top-right-radius: 5px; */
  /* border-bottom-right-radius: 5px; */
  /* border-bottom-left-radius: 5px; */
  margin: 0 5px 0 0 !important;
  padding: 5px;
  float: left;
  height: auto;
}

.filtered-views {
  overflow: auto;
  overflow-x: auto;
  overflow-y: auto;
  padding: 0;
  margin: 0 0 0 0;
  border: 0;
  height: auto;
  border-right-width: 0;
  border-top-width: 0;
  border-left-width: 0;
  border-bottom-width: 0;
}

.filtered-views-container {
  padding: 0 0 0 0 !important;
}

.filtered-filters .filtered-value {
  /* border-radius: 5px; */
  margin: 5px 5px 11px 5px;
  border: 1px solid #a7d7f9;
}

.filtered .filtered-filters {
  border: 1px solid #ffffff;
}

.filtered .filtered-views {
  border: 1px solid #ffffff !important;
}

.filtered-filters .filtered-value .filtered-value-label span {
  background-color: #f9f9f9;
  font-weight: bold;
  padding-left: 10px;
  padding-right: 10px;
}

.filtered-filters .filtered-value .filtered-value-switches {
  font-size: 90%;
  font-weight: normal;
  border-bottom-color: #e8e8e8;
}

.filtered-filters .filtered-value .filtered-value-hide {
  position: relative;
  top: -2em;
  width: 10px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 0;
  margin-bottom: 0;
  text-align: center;
  background-color: #f9f9f9;
  cursor: pointer;
  font-size: 90%;
}

.filtered-filters .filtered-value .filtered-value-show {
  position: relative;
  top: -2em;
  width: 10px;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 10px;
  background-color: #f9f9f9;
  cursor: pointer;
  text-align: center;
  font-size: 90%;
}

.filtered-filters .filtered-value .filtered-value-option {
  padding: 2px;
  background-color: #f9f9f9;
  display: block;
  width: 97%;
}

.filtered .filtered-filters .filtered-filter .filtered-filter-label {
  background: #f9f9f9;
}

.ns-0 #ca-talk {
  display: none;
}
.searchresult {
  color: #888888;
}

/* DivTable.com */
.divTable {
  display: table;
  width: 100%;
}
.divTableRow {
  display: table-row;
}
.divTableHeading {
  background-color: #eee;
  display: table-header-group;
}
.divTableCell,
.divTableHead {
  border: 1px solid #999999;
  display: table-cell;
  padding: 3px 10px;
}
.divTableHeading {
  background-color: #eee;
  display: table-header-group;
  font-weight: bold;
}
.divTableFoot {
  background-color: #eee;
  display: table-footer-group;
  font-weight: bold;
}
.divTableBody {
  display: table-row-group;
}

/* SMW special properties */
.smwbuiltin a,
.smwbuiltin .new {
  color: #ff8000;
}
/* implementing tabs: https://www.w3schools.com/howto/howto_js_tabs.asp */

/* Style the tab */
.wikincatTab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons inside the tab */
.wikincatTab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

/* Change background color of buttons on hover */
.wikincatTab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.wikincatTab .active {
  background-color: #ccc;
}

/* Style the tab content */
.wikincatTabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

/* Collapsible content from
https://alligator.io/css/collapsible */
.wrap-collapsible {
  margin-bottom: 10px;
}

.wrap-collapsible input[type="checkbox"] {
  display: none;
}

.lbl-toggle {
  display: block;

  text-align: center;

  padding: 5px;

  color: #4d4d4d;
  background-color: #eaecf0;

  cursor: pointer;
  border: 1px solid #a1a9b0;
  border-radius: 3px;
  transition: all 0.25s ease-out;
}

.lbl-toggle:hover {
  color: #202e87;
}

.lbl-toggle::before {
  content: " ";
  display: inline-block;

  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid;
  vertical-align: middle;
  margin-right: 0.7rem;
  transform: translateY(-2px);

  transition: transform 0.2s ease-out;
}

.toggle:checked + .lbl-toggle::before {
  transform: rotate(90deg) translateX(-3px);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-in-out;
}

.toggle:checked + .lbl-toggle + .collapsible-content {
  max-height: 100%;
}

.toggle:checked + .lbl-toggle {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

/* WSSearchFront extension */
.wssearch--hit__date,
.wssearch--hit__body {
  display: none;
}

/* NumerAlpha extension behaviour via CSS
.numeralpha-numeral {
  counter-reset: numeral;
}

.increment-numeralpha-numeral::before {
  counter-increment: numeral;
  content: counter(numeral, decimal) ". ";
}

.numeralpha-roman {
  counter-reset: roman;
}

.increment-numeralpha-roman::before {
  counter-increment: roman;
  content: counter(roman, upper-roman) ". ";
}

.numeralpha-alpha {
  counter-reset: alpha;
}

.increment-numeralpha-alpha::before {
  counter-increment: alpha;
  content: counter(alpha, lower-alpha) ". ";
}
*/

/* Design de etiquetas */

/* dejavu-mono-latin-400-normal */
@font-face {
  font-family: 'DejaVu Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/dejavu-mono@latest/latin-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/dejavu-mono@latest/latin-400-normal.woff) format('woff');
}

.labelContainer {
  height: 237.3mm;
  width: 208.2mm;
  border: 0.1mm solid blue;
  padding-top: 17mm;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.labelUnit {
  height: 33.3mm;
  width: 101.2mm;
  border: 0.1mm solid red;
  border-radius: 2mm;
  margin-left: 2.5mm;
  font-size: 100%;
  font-family: 'DejaVu Mono';
}

.labelUnit table {
  height: 95%;
  width: 98%;
}

.labelUnit table tr:nth-child(1) td:nth-child(1) {
  vertical-align: top;
  font-weight: 900;
}

.labelUnit table tr:nth-child(1) td:nth-child(2) {
  line-height: 0.9;
  width: 61mm;
  font-size: 0.775em;
}

.labelUnit table tr:nth-child(2) td:nth-child(1) {
  line-height: 0.9;
  text-align: right;
}

.labelUnit table tr:nth-child(3) {
  line-height: 0.9;
  font-size: 0.775em;
}