「MediaWiki:Common.css」の版間の差分

提供: ナショナルチーム
ナビゲーションに移動 検索に移動
 
(同じ利用者による、間の43版が非表示)
1行目: 1行目:
/* ここに記述したCSSはすべての外装に反映されます */
/* ここに記述したCSSはすべての外装に反映されます */


.fixed01 {
.legend {
page-break-inside: avoid;
break-inside: avoid-column;
}
 
.fixed00 {
   position: sticky;
   position: sticky;
   left: 0;
   left: 0;
   text-align: left;
   text-align: left;
   background-color: #f8f9fa;
   background-color: #f8f9fa;
  &:before{
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
  }
}
}


.fixed02 {
.fixed01 {
   position: sticky;
   position: sticky;
   left: 0;
   left: 0;
   text-align: center;
   text-align: left;
}
 
.fixed10 {
  position: sticky;
  left: 201px;
   background-color: #f8f9fa;
   background-color: #f8f9fa;
   &:before{
}
    content: "";
 
    position: absolute;
table.static-row-numbers {
    top: -1px;
  counter-reset: rowNumber;
    left: -1px;
}
    width: 100%;
body.skin-minerva .static-row-numbers2.sortable {
    height: 100%;
  counter-reset: rowNumber -1;
    border: 1px solid #ccc;
}
   }
body.skin-minerva .static-row-numbers2.sortable.static-row-header-two {
  counter-reset: rowNumber -2;
}
table.static-row-numbers tr::before {
  display: table-cell;
   padding: 0 0.5em;
  text-align: right;
}
table.static-row-numbers tr::before {
  content: "";
}
body:not(.skin-minerva) .static-row-numbers.sortable tbody tr:not(.static-row-header):not(.static-row-numbers-norank)::before,
body.skin-minerva .static-row-numbers tbody tr:not(:first-child):not(.static-row-header):not(.static-row-numbers-norank)::before,
table.static-row-numbers:not(.sortable) tbody tr:not(:first-child):not(.static-row-header):not(.static-row-numbers-norank)::before {
  counter-increment: rowNumber;
  content: counter(rowNumber);
  vertical-align: inherit;
}
 
/*
table.static-row-numbers.sortable thead tr::before,
table.static-row-numbers tr.static-row-header::before,
body.skin-minerva .static-row-numbers tbody tr:first-child::before,
table.static-row-numbers:not(.sortable) tbody tr:first-child::before,
body.skin-minerva .static-row-numbers.static-row-header-two tbody tr:nth-child(2)::before,
table.static-row-numbers.static-row-header-two:not(.sortable) tbody tr:nth-child(2)::before {
  content: "";
}*/
 
.static-row-header-hash thead tr::before {
  content: "#";
}
.static-row-header-row thead tr::before {
  content: "Row";
}
.static-row-numbers.wikitable tr::before {
  background-color: #eaecf0;
}
body:not(.skin-minerva) .static-row-numbers.mw-datatable:not(.wikitable) tr::before {
  background-color: #eaeeff;
}
table.static-row-numbers.wikitable tbody tr:not(.static-row-header)::before ,
body:not(.skin-minerva) .static-row-numbers.mw-datatable:not(.wikitable) tbody tr::before {
  border:1px solid #a2a9b1;
}
.static-row-numbers-period2 tbody tr::before {
   content: counter(rowNumber) ".";
}
.srn-white-background {
  background: #fff;
}
.static-row-numbers tr:hover {
  background: #eaf3ff;
}
}

2023年8月17日 (木) 19:33時点における最新版

/* ここに記述したCSSはすべての外装に反映されます */

.legend {
	page-break-inside: avoid;
	break-inside: avoid-column;
}

.fixed00 {
  position: sticky;
  left: 0;
  text-align: left;
  background-color: #f8f9fa;
}

.fixed01 {
  position: sticky;
  left: 0;
  text-align: left;
}

.fixed10 {
  position: sticky;
  left: 201px;
  background-color: #f8f9fa;
}

table.static-row-numbers {
  counter-reset: rowNumber;
}
body.skin-minerva .static-row-numbers2.sortable {
  counter-reset: rowNumber -1;
}
body.skin-minerva .static-row-numbers2.sortable.static-row-header-two {
  counter-reset: rowNumber -2;
} 
table.static-row-numbers tr::before {
  display: table-cell;
  padding: 0 0.5em;
  text-align: right;
}
table.static-row-numbers tr::before {
  content: "";
}
body:not(.skin-minerva) .static-row-numbers.sortable tbody tr:not(.static-row-header):not(.static-row-numbers-norank)::before,
body.skin-minerva .static-row-numbers tbody tr:not(:first-child):not(.static-row-header):not(.static-row-numbers-norank)::before,
table.static-row-numbers:not(.sortable) tbody tr:not(:first-child):not(.static-row-header):not(.static-row-numbers-norank)::before {
  counter-increment: rowNumber;
  content: counter(rowNumber);
  vertical-align: inherit;
}

/*
table.static-row-numbers.sortable thead tr::before,
table.static-row-numbers tr.static-row-header::before,
body.skin-minerva .static-row-numbers tbody tr:first-child::before,
table.static-row-numbers:not(.sortable) tbody tr:first-child::before,
body.skin-minerva .static-row-numbers.static-row-header-two tbody tr:nth-child(2)::before,
table.static-row-numbers.static-row-header-two:not(.sortable) tbody tr:nth-child(2)::before {
  content: "";
}*/

.static-row-header-hash thead tr::before {
  content: "#";
}
.static-row-header-row thead tr::before {
  content: "Row";
}
.static-row-numbers.wikitable tr::before {
  background-color: #eaecf0;
}
body:not(.skin-minerva) .static-row-numbers.mw-datatable:not(.wikitable) tr::before {
  background-color: #eaeeff;
}
table.static-row-numbers.wikitable tbody tr:not(.static-row-header)::before ,
body:not(.skin-minerva) .static-row-numbers.mw-datatable:not(.wikitable) tbody tr::before {
  border:1px solid #a2a9b1;	
}
.static-row-numbers-period2 tbody tr::before {
  content: counter(rowNumber) ".";
}
.srn-white-background {
   background: #fff;
}
.static-row-numbers tr:hover {
   background: #eaf3ff;
}