Шаблона:InfoboxOld/styles.css: Роздїлы міджі ревізіями

Матеріал з Коцкопедія
starcitizen>Alistair3149
(fix button overlap)
м (29 ревізій: Template:InfoboxOld/styles.css)
 
(Не показані 18 проміжних версій 2 користувачів)
Рядок 1: Рядок 1:
.infobox-table {
.infobox-table {
z-index: 3 !important;
z-index: 3 !important;
    width: 450px;
overflow: hidden;
    border-radius: 12px;
width: 400px;
    border-spacing: 0;
max-width: 100%;
    padding-bottom: 20px !important;
margin-bottom: var( --space-md );
    background: #f8f9fa;
padding-bottom: 20px !important;
    font-size: 0.875rem;
background: var( --color-surface-2 );
    text-align: left;
border-radius: var( --border-radius--medium );
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
border-spacing: 0;
    overflow: hidden;
font-size: 0.875rem;
text-align: left;
display: block;
}
}


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


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


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


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


.infobox-table th,
.infobox-table th,
th.infobox-table-name {
th.infobox-table-name {
    color: #54595d;
color: var( --color-base--emphasized );
}
}


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


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


.infobox-table-img {
.infobox-table-img {
    background: #eaecf0;
background: var( --background-color-quiet--hover );
}
}


Рядок 64: Рядок 67:


.infobox-table-img img {
.infobox-table-img img {
    max-width: 100vw;
max-width: 100%;
height: auto !important;
height: auto !important;
}
/* Neutral background for all transprent SVG */
.infobox-table-img img[ src$='.svg' ] {
background: #eaecf0;
}
}


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


.infobox-button {
.infobox-table .image:hover img {
    display: block;
transform: scale( 1.1 );
    width: 100%;
}
}


.infobox-button>div {
.infobox-table ul,
    display: flex;
.infobox-table ol {
    flex-wrap: wrap;
margin-top: 0;
    justify-content: space-between;
}
}


.infobox-table .live>td:nth-child(2n) {
.infobox-button {
    color: #00af89;
display: block;
width: 100%;
}
}


@media only screen and (max-width: 720px) {
.infobox-button > div {
    .infobox-table {
display: flex;
        margin-bottom: 1.6rem !important;
flex-wrap: wrap;
        padding-left: 0 !important;
justify-content: space-between;
        padding-right: 0 !important;
    }
}
}


@media (prefers-color-scheme: dark) {
@media only screen and ( max-width: 720px ) {
    .infobox-table {
.infobox-table {
        background: #24272f;
margin-right: auto;
    }
margin-left: auto;
 
}
    .infobox-table th,
    th.infobox-table-name {
        color: #c1c2c5;
    }
 
    .infobox-table th {
    border-color: #2e3138;
    }
 
    .infobox-table tr>td:first-child {
        color: #a0a1a5;
    }
 
    .infobox-table-img {
        background: #2b2f36;
    }
}
}

Точна ревізія на 23:38, 23 октовбра 2023

.infobox-table {
	z-index: 3 !important;
	overflow: hidden;
	width: 400px;
	max-width: 100%;
	margin-bottom: var( --space-md );
	padding-bottom: 20px !important;
	background: var( --color-surface-2 );
	border-radius: var( --border-radius--medium );
	border-spacing: 0;
	font-size: 0.875rem;
	text-align: left;
	display: block;
}

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

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

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

.infobox-table tr > td:first-child {
	color: var( --color-base--subtle );
	font-size: 0.8125rem;
	font-weight: normal;
	letter-spacing: 0.75px;
}

.infobox-table th,
th.infobox-table-name {
	color: var( --color-base--emphasized );
}

.infobox-table th {
	padding-top: 15px !important;
	border-top: 1px solid;
	border-color: var( --border-color-base );
	font-size: 1rem;
	text-align: left !important;
}

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

.infobox-table-img {
	background: var( --background-color-quiet--hover );
}

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

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

/* Neutral background for all transprent SVG */
.infobox-table-img img[ src$='.svg' ] {
	background: #eaecf0;
}

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

.infobox-table .image:hover img {
	transform: scale( 1.1 );
}

.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;
}

@media only screen and ( max-width: 720px ) {
	.infobox-table {
		margin-right: auto;
		margin-left: auto;
	}
}