Шаблон:Infobox/styles.css: различия между версиями

Шаблон используемый на Wikimeat
мНет описания правки
мНет описания правки
Строка 1: Строка 1:
.infobox {
.infobox {
margin-top: 0rem;
border-spacing: 0;
    border-spacing: 0;
border-radius: 12px;
    border-radius: 12px;
z-index: 3;
    z-index: 3;
/* base-90 */
    /* base-90 */
background: #f8f9fa;
    background: #f8f9fa;
font-size: 0.875rem;
    font-size: 0.875rem;
text-align: left;
    text-align: left;
/* boxshadow-2 */
    /* boxshadow-2 */
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
overflow: visible;
    /* In case if tooltips go out of boundary */
    overflow: visible;
}
}


.infobox-col1 {
.infobox-col1 {
    width: 100%;
width: 100%;
    flex-direction: row !important;
flex-direction: row !important;
}
}


.infobox-col1 th {
.infobox-col1 th {
    width: 30%;
width: 30%;
}
}


.infobox-col1 td {
.infobox-col1 td {
    width: 70%;
width: 70%;
}
}


.infobox-col2 {
.infobox-col2 {
    width: 50%;
width: 50%;
}
}


.infobox-col3 {
.infobox-col3 {
    width: calc(100% / 3);
width: calc(100% / 3);
}
}


.infobox-col4 {
.infobox-col4 {
    width: 25%;
width: 25%;
}
}


.infobox-data {
.infobox-data {
    min-width: 25%;
min-width: 25%;
}
}


.infobox tbody {
.infobox tbody {
    display: flex;
display: flex;
    flex-wrap: wrap;
flex-wrap: wrap;
}
}


.infobox tr:first-of-type .mw-collapsible-toggle {
.infobox tr:first-of-type .mw-collapsible-toggle {
    display: none;
display: none;
    float: unset;
float: unset;
}
}


.infobox tr:first-of-type .mw-collapsible-toggle a.mw-collapsible-text {
.infobox tr:first-of-type .mw-collapsible-toggle a.mw-collapsible-text {
    position: absolute;
position: absolute;
    right: 0;
right: 0;
    border-radius: 0 12px;
border-radius: 0 12px;
    padding: 5px 15px;
padding: 5px 15px;
    background: #d33 !important;
background: #d33;
    color: white;
color: white;
    display: block;
display: block;
}
}


.infobox tr:first-of-type .mw-collapsible-toggle a.mw-collapsible-text:hover {
.infobox tr:first-of-type .mw-collapsible-toggle a.mw-collapsible-text:hover {
    background: #b32424 !important;
background: #b32424;
}
}


.infobox tr:first-of-type .mw-collapsible-toggle.mw-collapsible-toggle-collapsed a.mw-collapsible-text {
.infobox tr:first-of-type .mw-collapsible-toggle.mw-collapsible-toggle-collapsed a.mw-collapsible-text {
    background: #36c !important;
background: #36c;
}
}


.infobox tr:first-of-type .mw-collapsible-toggle.mw-collapsible-toggle-collapsed a.mw-collapsible-text:hover {
.infobox tr:first-of-type .mw-collapsible-toggle.mw-collapsible-toggle-collapsed a.mw-collapsible-text:hover {
    background: #2a4b8d !important;
background: #2a4b8d;
}
}


.infobox tr:first-of-type .mw-collapsible-toggle:before,
.infobox tr:first-of-type .mw-collapsible-toggle:before,
.infobox tr:first-of-type .mw-collapsible-toggle:after {
.infobox tr:first-of-type .mw-collapsible-toggle:after {
    content: none;
content: none;
}
}


.infobox tr:not(.infobox-image) {
.infobox tr:not(.infobox-image) {
    margin-top: 10px;
margin-top: 10px;
    display: flex;
display: flex;
    flex-direction: column;
flex-direction: column;
}
}


.infobox th,
.infobox th,
.infobox td {
.infobox td {
    padding: 0 20px;
padding: 0 20px;
}
}


Строка 94: Строка 92:
.infobox-header,
.infobox-header,
.infobox-button-bar {
.infobox-button-bar {
    width: 100%;
width: 100%;
}
}


.infobox-title th,
.infobox-title th,
.infobox-header th {
.infobox-header th {
    text-align: left !important;
text-align: left !important;
}
}


tr.infobox-title {
tr.infobox-title {
    margin-top: 20px !important;
margin-top: 20px !important;
    margin-bottom: 5px;
margin-bottom: 5px;
}
}


.infobox-title th {
.infobox-title th {
    font-size: 1.4rem;
font-size: 1.4rem;
    line-height: 1.4;
line-height: 1.4;
}
}


tr.infobox-header {
tr.infobox-header {
    padding-top: 15px;
padding-top: 15px;
    /* base-80 */
/* base-80 */
    border-top: 1px solid #eaecf0;
border-top: 1px solid #eaecf0;
}
}


tr.infobox-header {
tr.infobox-header {
    margin-top: 15px !important;
margin-top: 15px !important;
}
}


tr.infobox-button-bar {
tr.infobox-button-bar {
    margin-top: 25px !important;
margin-top: 25px !important;
}
}


.infobox-header th {
.infobox-header th {
    font-size: 1rem;
font-size: 1rem;
}
}


.infobox-button-bar th,
.infobox-button-bar th,
.infobox-image td {
.infobox-image td {
    padding: 0;
padding: 0;
}
}


.infobox-image td {
.infobox-image td {
    background: #eaecf0;
background: #eaecf0;
}
}


.infobox-image {
.infobox-image {
    border-radius: 12px 12px 0 0;
border-radius: 12px 12px 0 0;
    overflow: hidden;
overflow: hidden;
}
}


.infobox-data th {
.infobox-data th {
    /* base-30 */
/* base-30 */
    color: #72777d;
color: #72777d;
    font-weight: normal;
font-weight: normal;
    font-size: 0.8125rem;
font-size: 0.8125rem;
    letter-spacing: .75px;
letter-spacing: .75px;
}
}


.infobox-data td {
.infobox-data td {
    text-align: left!important;
text-align: left!important;
    font-weight: bold;
font-weight: bold;
}
}


Строка 164: Строка 162:
/* Screen0 */
/* Screen0 */
@media only screen and (max-width: 720px) {
@media only screen and (max-width: 720px) {
    .infobox {
.infobox {
        margin-bottom: 1.6rem !important;
margin-bottom: 1.6rem !important;
        padding: 0 !important;
padding: 0 !important;
    }
}
 
    .infobox tr:first-of-type .mw-collapsible-toggle {
.infobox tr:first-of-type .mw-collapsible-toggle {
        display: block;
display: block;
    }
}
 
    .infobox-image img {
.infobox-image img {
        width: 100vw !important;
width: 100vw !important;
        height: auto !important;
height: auto !important;
    }
}
}
}


.infobox-table {
.infobox-table {
z-index: 3 !important;
z-index: 3;
    width: 320px;
width: 320px;
    border-radius: 12px;
border-radius: 12px;
    border-spacing: 0;
border-spacing: 0;
    padding-bottom: 20px !important;
padding-bottom: 20px;
    background: #f8f9fa;
background: #f8f9fa;
    font-size: 0.875rem;
font-size: 0.875rem;
    text-align: left;
text-align: left;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
    overflow: hidden;
overflow: hidden;
}
}


.infobox-table tr:not(#infobox-table-img-bg) {
.infobox-table tr:not(#infobox-table-img-bg) {
    margin-top: 10px;
margin-top: 10px;
    display: flex;
display: flex;
}
}


.infobox-table th,
.infobox-table th,
.infobox-table td {
.infobox-table td {
    padding: 0 20px !important;
padding: 0 20px !important;
}
}


.infobox-table th,
.infobox-table th,
.infobox-table tr>td:first-child {
.infobox-table tr>td:first-child {
    font-weight: 700;
font-weight: 700;
}
}


.infobox-table tr>td:first-child {
.infobox-table tr>td:first-child {
    color: #72777d;
color: #72777d;
    font-weight: normal;
font-weight: normal;
    font-size: 0.8125rem;
font-size: 0.8125rem;
    letter-spacing: .75px;
letter-spacing: .75px;
}
}


.infobox-table th,
.infobox-table th,
th.infobox-table-name {
th.infobox-table-name {
    color: #54595d;
color: #54595d;
}
}


.infobox-table th {
.infobox-table th {
    font-size: 1rem;
font-size: 1rem;
    text-align: left !important;
text-align: left !important;
    padding-top: 15px !important;
padding-top: 15px !important;
    border-top: 1px solid #eaecf0;
border-top: 1px solid #eaecf0;
}
}


th.infobox-table-name {
th.infobox-table-name {
    border: 0 !important;
border: 0 !important;
    font-size: 1.4rem !important;
font-size: 1.4rem !important;
    line-height: 1.4;
line-height: 1.4;
    margin-top: 10px;
margin-top: 10px;
    margin-bottom: 5px;
margin-bottom: 5px;
    padding-top: 0 !important;
padding-top: 0 !important;
}
}


.infobox-table-img {
.infobox-table-img {
    background: #eaecf0;
background: #eaecf0;
}
}


Строка 244: Строка 242:


.infobox-table-img img {
.infobox-table-img img {
    max-width: 100vw;
max-width: 100vw;
height: auto !important;
height: auto !important;
}
}


.infobox-table-img a.image {
.infobox-table-img a.image {
    background: 0 !important;
background: 0 !important;
}
}


Строка 258: Строка 256:


.infobox-button {
.infobox-button {
    display: block;
display: block;
    width: 100%;
width: 100%;
}
}


.infobox-button>div {
.infobox-button>div {
    display: flex;
display: flex;
    flex-wrap: wrap;
flex-wrap: wrap;
    justify-content: space-between;
justify-content: space-between;
}
}


.infobox-table .live>td:nth-child(2n) {
.infobox-table .live>td:nth-child(2n) {
    color: #00af89;
color: #00af89;
}
}


@media only screen and (max-width: 720px) {
@media only screen and (max-width: 720px) {
    .infobox-table {
.infobox-table {
        margin-bottom: 1.6rem !important;
margin-bottom: 1.6rem !important;
        padding-left: 0 !important;
padding-left: 0 !important;
        padding-right: 0 !important;
padding-right: 0 !important;
    }
}
}
}

Версия от 12:14, 5 апреля 2021

.infobox {
	border-spacing: 0;
	border-radius: 12px;
	z-index: 3;
	/* base-90 */
	background: #f8f9fa;
	font-size: 0.875rem;
	text-align: left;
	/* boxshadow-2 */
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
	overflow: visible;
}

.infobox-col1 {
	width: 100%;
	flex-direction: row !important;
}

.infobox-col1 th {
	width: 30%;
}

.infobox-col1 td {
	width: 70%;
}

.infobox-col2 {
	width: 50%;
}

.infobox-col3 {
	width: calc(100% / 3);
}

.infobox-col4 {
	width: 25%;
}

.infobox-data {
	min-width: 25%;
}

.infobox tbody {
	display: flex;
	flex-wrap: wrap;
}

.infobox tr:first-of-type .mw-collapsible-toggle {
	display: none;
	float: unset;
}

.infobox tr:first-of-type .mw-collapsible-toggle a.mw-collapsible-text {
	position: absolute;
	right: 0;
	border-radius: 0 12px;
	padding: 5px 15px;
	background: #d33;
	color: white;
	display: block;
}

.infobox tr:first-of-type .mw-collapsible-toggle a.mw-collapsible-text:hover {
	background: #b32424;
}

.infobox tr:first-of-type .mw-collapsible-toggle.mw-collapsible-toggle-collapsed a.mw-collapsible-text {
	background: #36c;
}

.infobox tr:first-of-type .mw-collapsible-toggle.mw-collapsible-toggle-collapsed a.mw-collapsible-text:hover {
	background: #2a4b8d;
}

.infobox tr:first-of-type .mw-collapsible-toggle:before,
.infobox tr:first-of-type .mw-collapsible-toggle:after {
	content: none;
}

.infobox tr:not(.infobox-image) {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
}

.infobox th,
.infobox td {
	padding: 0 20px;
}

.infobox-title,
.infobox-header,
.infobox-button-bar {
	width: 100%;
}

.infobox-title th,
.infobox-header th {
	text-align: left !important;
}

tr.infobox-title {
	margin-top: 20px !important;
	margin-bottom: 5px;
}

.infobox-title th {
	font-size: 1.4rem;
	line-height: 1.4;
}

tr.infobox-header {
	padding-top: 15px;
	/* base-80 */
	border-top: 1px solid #eaecf0;
}

tr.infobox-header {
	margin-top: 15px !important;
}

tr.infobox-button-bar {
	margin-top: 25px !important;
}

.infobox-header th {
	font-size: 1rem;
}

.infobox-button-bar th,
.infobox-image td {
	padding: 0;
}

.infobox-image td {
	background: #eaecf0;
}

.infobox-image {
	border-radius: 12px 12px 0 0;
	overflow: hidden;
}

.infobox-data th {
	/* base-30 */
	color: #72777d;
	font-weight: normal;
	font-size: 0.8125rem;
	letter-spacing: .75px;
}

.infobox-data td {
	text-align: left!important;
	font-weight: bold;
}

.infobox-data ul,
.infobox-data ol {
	margin-top: 0;
}

/* Screen0 */
@media only screen and (max-width: 720px) {
	.infobox {
		margin-bottom: 1.6rem !important;
		padding: 0 !important;
	}
	
	.infobox tr:first-of-type .mw-collapsible-toggle {
		display: block;
	}
	
	.infobox-image img {
		width: 100vw !important;
		height: auto !important;
	}
}

.infobox-table {
	z-index: 3;
	width: 320px;
	border-radius: 12px;
	border-spacing: 0;
	padding-bottom: 20px;
	background: #f8f9fa;
	font-size: 0.875rem;
	text-align: left;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
	overflow: hidden;
}

.infobox-table tr:not(#infobox-table-img-bg) {
	margin-top: 10px;
	display: flex;
}

.infobox-table th,
.infobox-table td {
	padding: 0 20px !important;
}

.infobox-table th,
.infobox-table tr>td:first-child {
	font-weight: 700;
}

.infobox-table tr>td:first-child {
	color: #72777d;
	font-weight: normal;
	font-size: 0.8125rem;
	letter-spacing: .75px;
}

.infobox-table th,
th.infobox-table-name {
	color: #54595d;
}

.infobox-table th {
	font-size: 1rem;
	text-align: left !important;
	padding-top: 15px !important;
	border-top: 1px solid #eaecf0;
}

th.infobox-table-name {
	border: 0 !important;
	font-size: 1.4rem !important;
	line-height: 1.4;
	margin-top: 10px;
	margin-bottom: 5px;
	padding-top: 0 !important;
}

.infobox-table-img {
	background: #eaecf0;
}

.infobox-table .infobox-table-img {
	padding: 0 !important;
}

.infobox-table-img img {
	max-width: 100vw;
	height: auto !important;
}

.infobox-table-img a.image {
	background: 0 !important;
}

.infobox-table ul,
.infobox-table ol {
	margin-top: 0;
}

.infobox-button {
	display: block;
	width: 100%;
}

.infobox-button>div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.infobox-table .live>td:nth-child(2n) {
	color: #00af89;
}

@media only screen and (max-width: 720px) {
	.infobox-table {
		margin-bottom: 1.6rem !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}
🍪 Наш веб-сайт использует файлы cookie для того, чтобы сделать ваш опыт использования сайта лучше и анализа использования сайта