MediaWiki:Common.css — различия между версиями

Материал из Указатель частей и соединений РККА 1941-1945
Перейти к:навигация, поиск
Строка 344: Строка 344:
 
background-color: #a6caf0;  
 
background-color: #a6caf0;  
 
}
 
}
 +
 +
@media screen and (min-width:768px) {
 +
.enum-on-main {
 +
width: 700px;
 +
}
 +
.enum-on-main-superwrapper {
 +
width: 33%;
 +
}
 +
}
 +
.enum-on-main-superwrapper {
 +
display: inline-block;
 +
box-sizing: border-box;
 +
vertical-align: top;
 +
}
 +
.enum-on-main-superwrapper:first-child {
 +
padding-right: 3px;
 +
}
 +
.enum-on-main-superwrapper:last-child {
 +
padding-left: 3px;
 +
}
 +
.enum-on-main-wrapper {
 +
display: inline-block;
 +
box-sizing: border-box;
 +
margin-bottom: 4px;
 +
border: 2px solid #a6caf0;
 +
width: 100%;
 +
vertical-align: middle;
 +
-moz-border-radius: 6px;
 +
-webkit-border-radius: 6px;
 +
border-radius: 6px;
 +
}
 +
@media screen and (min-width:768px) {
 +
.enum-on-main-wrapper.enum-on-main-2 {
 +
height: 46px;
 +
}
 +
.enum-on-main-wrapper.enum-on-main-3 {
 +
height: 71px;
 +
padding-top: 3px;
 +
}
 +
.enum-on-main-wrapper.enum-on-main-4 {
 +
height: 96px;
 +
padding-top: 5px;
 +
}
 +
}
 +
.enum-on-main-wrapper.enum-not-yet {
 +
background-color: #e8e8e8;
 +
}
 +
.enum-on-main-wrapper:hover {
 +
background-color: #a6caf0;
 +
}
 +
.enum-on-main-subwrapper {
 +
vertical-align: middle;
 +
height: 40px;
 +
display: inline-block;
 +
}
 +
.enum-on-main-number {
 +
font-weight: bold;
 +
font-size: 150%;
 +
width: 36px;
 +
vertical-align: middle;
 +
text-align: center;
 +
display: inline-block;
 +
}
 +
.enum-on-main-name {
 +
display: inline-block;
 +
vertical-align: middle;
 +
width: calc( 100% - 44px );
 +
}
 +
 
.rkka-editor {
 
.rkka-editor {
 
display: none;
 
display: none;
Строка 389: Строка 458:
 
display: inline-block;  
 
display: inline-block;  
 
margin: 0;
 
margin: 0;
 +
}
 +
 +
@media screen and (min-width:768px) {
 +
.phone-marker {
 +
display: none;
 +
}
 +
.enum-unit-wrapper, .enum-subu-wrapper {
 +
display: inline-block;
 +
width: 40%;
 +
}
 +
.enum-create-wrapper, .enum-death-wrapper {
 +
width: calc( 30% - 11.5ex - 8px );
 +
}
 +
.enum-time-wrapper {
 +
width: 20ex;
 +
}
 +
}
 +
@media screen and (max-width:767px) {
 +
.phone-marker {
 +
display: inline-block;
 +
width: 16px;
 +
}
 +
.enum-create-wrapper, .enum-death-wrapper, .enum-time-wrapper  {
 +
width: calc( 100% - 20px );
 +
}
 +
}
 +
 +
.enum-unitrow-wrapper, .enum-suburow-wrapper, .enum-end {
 +
width: 100%;
 +
}
 +
.enum-unitrow-wrapper, .enum-end {
 +
border-top: 1px solid #aaa;
 +
margin-top: 4px;
 +
padding-top: 4px;
 +
}
 +
.enum-end {
 +
margin-bottom: 1em;
 +
}
 +
.enum-suburow-wrapper {
 +
border-top: 1px solid #ddd;
 +
padding-top: 4px;
 +
}
 +
.enum-unit-wrapper, .enum-subu-wrapper {
 +
box-sizing: border-box;
 +
vertical-align: top;
 +
}
 +
.enum-subu-wrapper {
 +
padding-left: 2em;
 +
}
 +
.enum-set-wrapper {
 +
margin-top: 4px;
 +
padding-left: 2em;
 +
box-sizing: border-box;
 +
vertical-align: top;
 +
}
 +
.enum-create-wrapper, .enum-death-wrapper {
 +
display: inline-block;
 +
box-sizing: border-box;
 +
vertical-align: top;
 +
padding-left: 1ex;
 +
font-size: 85%;
 +
}
 +
.enum-time-wrapper {
 +
display: inline-block;
 +
box-sizing: border-box;
 +
vertical-align: top;
 +
padding-left: 1ex;
 +
}
 +
.enum-highlight {
 +
background-color: #fefe22;
 +
-moz-border-radius: 2px;
 +
-webkit-border-radius: 2px;
 +
border-radius: 2px;
 +
padding: 0 1px;
 +
 +
}
 +
.enum-toc {
 +
border: 1px dotted #bbb;
 +
background-color: #eee;
 +
padding: 6px;
 +
margin-bottom: 1em;
 +
}
 +
.enum-path {
 +
border-top: 1px dotted #ddd;
 +
border-bottom: 1px dotted #ddd;
 +
background-color: #eee;
 +
padding: 6px;
 +
margin-bottom: 0.5em;
 +
}
 +
.enum-path-on-unitpage {
 +
font-weight: bold;
 +
}
 +
.enum-path-on-unitpage .enum-toc-0 {
 +
font-size: 100%;
 +
}
 +
 +
.enum-header {
 +
font-size: 120%;
 +
padding: 6px;
 +
}
 +
.enum-numb {
 +
font-weight: bold;
 +
}
 +
.enum-header .enum-name {
 +
font-weight: bold;
 +
}
 +
.enum-toc-header {
 +
display: none;
 +
/* font-size: 125%;
 +
font-weight: bold;
 +
font-variant: small-caps;
 +
letter-spacing: 0.4ex;
 +
margin-bottom:4px;
 +
text-align: center;
 +
padding-left: 3em; */
 +
}
 +
.enum-toc-0 {
 +
font-size: 125%;
 +
}
 +
.enum-toc-1 {
 +
padding-left: 2em;
 +
}
 +
.enum-toc-2 {
 +
padding-left: 4em;
 +
}
 +
.enum-toc-3 {
 +
padding-left: 6em;
 +
}
 +
.enum-toc-4 {
 +
padding-left: 8em;
 +
}
 +
.enum-toc-part {
 +
border-top: 1px dotted #ddd;
 +
}
 +
#firstHeading i::before {
 +
content: "\A";
 +
white-space: pre;
 
}
 
}

Версия 16:55, 15 января 2020

/* Размещённый здесь CSS будет применяться ко всем темам оформления */
.bs-ext-assoc-2, .bs-ext-assoc-3, .bs-ext-assoc-4, .bs-ext-assoc-5 {
	box-sizing: border-box;
	width: 100%;
	font-weight: bold;
	font-size: 100%; 
	line-height: 110%;
/*	text-transform: uppercase; */
	margin: 2px 0;
	border-width: 0; 
	padding: 2px 30px;
	-moz-border-radius: 0 8px 8px 0; 
	-webkit-border-radius: 0 8px 8px 0; 
	border-radius: 0 8px 8px 0;
}
.bs-int-assoc {
	border: 2px solid #FDFDFD; 
	padding: 0 6px;
	margin: 0;
	background-color: #FDFDFD; 
	display:inline-table; 
	-moz-border-radius: 8px; 
	-webkit-border-radius: 8px; 
	border-radius: 8px;
}
.bs-ext-assoc-2 {
	background-color: #0f2f4f;
	font-size: 130%;
}
.bs-ext-assoc-3 {
	background-color: #30508f;
	font-size: 125%;
	font-weight: normal;
}
.bs-ext-assoc-4 {
	background-color: #5080cf;
}
.bs-ext-assoc-5 {
	background-color: #9fcfff;
	 font-size: 92%;
}
.bs-tab-wrap .bs-int-assoc {
	text-transform: none;
}
.bs-lvl-2, .bs-lvl-3, .bs-lvl-4, .bs-lvl-5 {
	box-sizing: border-box;
	width: 100%;
	font-weight: bold;
	font-size: 100%; /*95%;*/
	padding: 3px 1em; /* 0.3em 1em; */
	line-height: 110%;
	margin: 2px;
	-moz-border-radius: 4px; 
	-webkit-border-radius: 4px; 
	border-radius: 4px;
	text-transform: uppercase;
}
.bs-lvl-2 {
	background-color: #ffb59e;
}
.bs-lvl-3 {
	background-color: #ffdcd1;
}
.bs-lvl-4 {
	background-color: #99caff;
}
.bs-lvl-5 {
	background-color: #cce5ff;
}
.bs-tab-wrap .bs-lvl-2, .bs-tab-wrap .bs-lvl-3, .bs-tab-wrap .bs-lvl-4, .bs-tab-wrap .bs-lvl-5 {
	margin: 0;
	text-transform: none;
}
.bs-raw-wrap {
	width: 100%;
}
.bs-tab-wrap {
	box-sizing: border-box;
/*	width: 20%;
	display: inline-block; */
	vertical-align: top;
	padding: 1px;
}
@media screen and (min-width:768px) {
	.bs-tab-wrap {
		width: 20%;
		display: inline-block;
	}	
}
@media screen and (max-width:767px) {
	.bs-tab-wrap {
		width: 100%;
		display: block;
	}	
}
.bs-tab-1, .bs-tab-2, .bs-tab-3, .bs-tab-4, .bs-tab-5, .bs-tab-5a, .bs-tab-5b {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 3px;
	font-size: 100%;
	line-height: 110%;
	border-width: 1px 1px 1px 3px;
	border-style: solid;
	vertical-align: top;
	-moz-border-radius: 4px; 
	-webkit-border-radius: 4px; 
	border-radius: 4px;
}
/*.bs-tab-1>p, .bs-tab-2>p, .bs-tab-3>p, .bs-tab-4>p, .bs-tab-5>p  {
	margin: 0;	
}*/
.bs-tab-wrap p {
	margin: 0;	
}
.bs-tab-wrap s {
	color: red;	
}
.bs-tab-wrap .striked {
	color: black;
	cursor: help;
}
.bs-tab-1 {
	background-color: #eeeeee;
	border-color: #cccccc;
}
.bs-tab-2 {
	background-color: #f8eeee;
	border-color: #ffcccc;
}
.bs-tab-3 {
	background-color: #edf0df /*#eef8ee*/;
	border-color: #b3b652 /*#addfad*/;
}
.bs-tab-4 {
	background-color: #eeeef8;
	border-color: #ccccff;
}
.bs-tab-5 {
	background-color: #f5e5d7 /*#f8f8ee*/;
	border-color: #e09a53 /*#ffffcc*/;
	margin-bottom: 1px;
}
.bs-tab-5a {
	background-color: #fdeaea;
	border-color: #ffaaaa;
}
.bs-tab-5b {
	background-color: transparent;
	border: 1px dotted #aaa;
	font-style: italic;
}
.bs-total-stored {
	box-sizing: border-box;
	width: 100%;
	font-size:80%;
	padding: 3px 3px 0 3px;
	margin: 2px;
	border-top: 1px solid #aaa;
}
.bs-total-stored-tab {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 3px;
	font-size: 80%;
	line-height: 105%;
	border: 1px dotted #aaa;
	vertical-align: top;
	-moz-border-radius: 4px; 
	-webkit-border-radius: 4px; 
	border-radius: 4px;
}
.marker {
	background-color: #ffff00;
}

.mil-ref-o, .mil-ref-m {
	vertical-align: top; 
	position: relative; 
	top: -0.25em;
	font-size: 80%;
	background-color: #adffff; 
	padding: 1px 4px 0 3px;	
	-moz-border-radius: 6px; 
	-webkit-border-radius: 6px; 
	border-radius: 6px;
}

.timeline {
	width: 2%; 
	box-sizing: border-box; 
	margin:0; 
	float: left;
	border-style: solid;
	border-width: 10px 0;
}
.timeline.tl-n {
	border-color: transparent;
}
.timeline.tl-0 {
	border-color: #ccc;
}
.timeline.tl-1 {
	border-color: #99f;
}
.timeline.tl-2 {
	border-color: #33f;
}
.tl-sc {
	float: left; 
	box-sizing: border-box; 
	margin: 0; 
	padding: 1px 4px; 
	line-height: 100%; 
	color: black; 
	font-weight: bold;  
	font-size: 9px; 
}
.tl-sc.sc-a {
	width: 12%;
	background-color: #a9a;
}
.tl-sc.sc-b {
	width: 12%;
	background-color: #bab;
}
.tl-sc.sc-c {
	width: 4%;
	background-color: #a9a;
}
.tnumes {
	color:blue;
/*	font-variant-numeric: tabular-nums;
	-moz-font-feature-settings:"tnum" 1; 
	-moz-font-feature-settings: "tnum=1";
	-ms-font-feature-settings:"tnum" 1; 
	-o-font-feature-settings:"tnum" 1; 
	-webkit-font-feature-settings:"tnum" 1; 
	font-feature-settings:"tnum" 1;	*/
	  font-variant-numeric: tabular-nums;
  -moz-font-feature-settings: "tnum";
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
}
.xover {
	background-color:#dcf1fa;
}
.xover>b:first-child, .xover>u:first-child {
	background-color: #ffc2cc;
}
.childs>u:first-child {
	text-decoration: none;
}

.bracket-start, .bracket-stop, .bracket-middle, .bracket-none {
	width: 8px; 
	display: inline-block; 
	margin: 0; 
	box-sizing: border-box;
}
.bracket-start {
	border: solid red;
	border-width: 4px 0 0 4px;
	-moz-border-radius: 6px 0; 
	-webkit-border-radius: 6px 0; 
	border-radius: 6px 0;
}
.bracket-stop {
	border: solid red;
	border-width: 0 0 4px 4px;
	-moz-border-radius: 0 6px; 
	-webkit-border-radius: 0 6px; 
	border-radius: 0 6px;
}
.bracket-middle {
	border: solid red;
	border-width: 0 0 0 4px;
}
.no-double-warning .bracket-start, .no-double-warning .bracket-stop, .no-double-warning .bracket-middle {
	border-color: gray;
}
.bs-children p {
	line-height: 150%;
	margin: 6px 0 1px 0;
}
.idx-button-regular, .idx-button-empty {
	width:3em; 
	height:3em; 
	display:inline-block; 
	border:1px solid transparent; 
	margin:2px 2px 0 0; 
	text-align:center; 
	vertical-align: top; 
	padding-top:10px; 
	line-height:95%;
	font-weight: bold;
	-moz-border-radius: 4px; 
	-webkit-border-radius: 4px; 
	border-radius: 4px;
}
.idx-button-regular {
	background-color: #cadbba; 
	cursor: pointer;	
}
.idx-button-empty {
	background-color: #cccccc;
	color: #666666;
}
.idx-dropdown p {
	margin: 2px 3px 4px 6px;
	line-height: 97%;
}
.idx-button-text {
	height:2em; 
	display:inline-block; 
	border:1px solid transparent; 
	margin:6px 2px 0 0; 
	text-align:center; 
	vertical-align: top; 
	padding:6px 10px; 
	line-height:95%;
	font-weight: bold;
	-moz-border-radius: 4px; 
	-webkit-border-radius: 4px; 
	border-radius: 4px;
	background-color: #cadbba; 
}

.date-btn {
	width: 50px; 
	height: 50px; 
	background-color: transparent; 
	margin: 1px 1px 2px 2px; 
	border: 2px solid #a6caf0; 
	display: inline-block; 
	box-sizing: border-box; 
	vertical-align: top; 
	-moz-border-radius: 8px; 
	-webkit-border-radius: 8px; 
	border-radius: 8px; 
}
.date-btn:hover {
	background-color: #a6caf0; 
}

@media screen and (min-width:768px) {
	.enum-on-main {
		width: 700px;
	}
	.enum-on-main-superwrapper {
		width: 33%;
	}
}
.enum-on-main-superwrapper {
	display: inline-block;
	box-sizing: border-box; 
	vertical-align: top; 
}
.enum-on-main-superwrapper:first-child {
	padding-right: 3px;
}
.enum-on-main-superwrapper:last-child {
	padding-left: 3px;
}
.enum-on-main-wrapper {
	display: inline-block;
	box-sizing: border-box; 
	margin-bottom: 4px;
	border: 2px solid #a6caf0; 
	width: 100%;
	vertical-align: middle; 
	-moz-border-radius: 6px; 
	-webkit-border-radius: 6px; 
	border-radius: 6px; 
}
@media screen and (min-width:768px) {
	.enum-on-main-wrapper.enum-on-main-2 {
		height: 46px; 
	}
	.enum-on-main-wrapper.enum-on-main-3 {
		height: 71px;
		padding-top: 3px;
	}
	.enum-on-main-wrapper.enum-on-main-4 {
		height: 96px;
		padding-top: 5px;
	}
}
.enum-on-main-wrapper.enum-not-yet {
	background-color: #e8e8e8;
}
.enum-on-main-wrapper:hover {
	background-color: #a6caf0;
}
.enum-on-main-subwrapper {
	vertical-align: middle; 
	height: 40px;
	display: inline-block;
}	
.enum-on-main-number {
	font-weight: bold;
	font-size: 150%;
	width: 36px;
	vertical-align: middle; 
	text-align: center;
	display: inline-block;
}
.enum-on-main-name {
	display: inline-block;
	vertical-align: middle; 
	width: calc( 100% - 44px );
}

.rkka-editor {
	display: none;
}
.toctitle, .toctoggle {
	display: none;
}
.toc-wrapper {
	float:right;
	width: 320px;
	border: 1px solid #dfdfdf;
	padding: 0.1em;
	background-color: #fafafa;
	margin: 0.2em 0 0 2em;
}
.rkka-text {
	font-size:130%; 
	line-height:150%; 
}

.amb-inc {
	background-color: #fafdfa;
}
.amb-inc th {
	background-color: #f5f8f5;
}
.amb-exc {
	background-color: #fdfafa;
}
.amb-exc th {
	background-color: #f8f5f5;
}
.tree-level {
	margin-left: 0.5em;
	border-left: 1px dotted #aaa; 
	padding-left:3ex;
}
.tree-level .line {
	line-height: 105%;
	margin: 0 0 6px 0;
}
.date-field {
	width: 8ex; 
	text-align: center; 
	display: inline-block; 
	margin: 0;
}

@media screen and (min-width:768px) {
	.phone-marker {
		display: none;
	}
	.enum-unit-wrapper, .enum-subu-wrapper {
		display: inline-block;
		width: 40%;
	}
	.enum-create-wrapper, .enum-death-wrapper {
		width: calc( 30% - 11.5ex - 8px );
	}
	.enum-time-wrapper {
		width: 20ex;
	}
}
@media screen and (max-width:767px) {
	.phone-marker {
		display: inline-block;
		width: 16px;
	}
	.enum-create-wrapper, .enum-death-wrapper, .enum-time-wrapper  {
		width: calc( 100% - 20px );
	}
}

.enum-unitrow-wrapper, .enum-suburow-wrapper, .enum-end {
	width: 100%;
}
.enum-unitrow-wrapper, .enum-end {
	border-top: 1px solid #aaa;
	margin-top: 4px;
	padding-top: 4px;
}
.enum-end {
	margin-bottom: 1em;
}
.enum-suburow-wrapper {
	border-top: 1px solid #ddd; 
	padding-top: 4px;
}
.enum-unit-wrapper, .enum-subu-wrapper {
	box-sizing: border-box; 
	vertical-align: top;
}
.enum-subu-wrapper {
	padding-left: 2em;
}
.enum-set-wrapper {
	margin-top: 4px;
	padding-left: 2em;
	box-sizing: border-box;
	vertical-align: top;
}
.enum-create-wrapper, .enum-death-wrapper {
	display: inline-block;
	box-sizing: border-box; 
	vertical-align: top;
	padding-left: 1ex;
	font-size: 85%;
}
.enum-time-wrapper {
	display: inline-block;
	box-sizing: border-box; 
	vertical-align: top;
	padding-left: 1ex;
}
.enum-highlight {
	background-color: #fefe22;
	-moz-border-radius: 2px; 
	-webkit-border-radius: 2px; 
	border-radius: 2px; 
	padding: 0 1px;
	
}
.enum-toc {
	border: 1px dotted #bbb;
	background-color: #eee;
	padding: 6px;
	margin-bottom: 1em;
}
.enum-path {
	border-top: 1px dotted #ddd;
	border-bottom: 1px dotted #ddd;
	background-color: #eee;
	padding: 6px;
	margin-bottom: 0.5em;
}
.enum-path-on-unitpage {
	font-weight: bold;
}
.enum-path-on-unitpage .enum-toc-0 {
	font-size: 100%;
}

.enum-header {
	font-size: 120%;
	padding: 6px;
}
.enum-numb {
	font-weight: bold;
}
.enum-header .enum-name {
	font-weight: bold;
}
.enum-toc-header {
	display: none;
/*	font-size: 125%;
	font-weight: bold;
	font-variant: small-caps;
	letter-spacing: 0.4ex;
	margin-bottom:4px;
	text-align: center;
	padding-left: 3em; */
}
.enum-toc-0 {
	font-size: 125%;
}
.enum-toc-1 {
	padding-left: 2em;
}
.enum-toc-2 {
	padding-left: 4em;
}
.enum-toc-3 {
	padding-left: 6em;
}
.enum-toc-4 {
	padding-left: 8em;
}
.enum-toc-part {
	border-top: 1px dotted #ddd;
}
#firstHeading i::before {
	content: "\A";
	white-space: pre;
}