« Modèle:Infobox/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
.infobox-table { | .infobox-table { | ||
border: 1px solid | z-index: 3 !important; | ||
border- | overflow: hidden; | ||
width: 400px; | |||
max-width: 100%; | |||
margin-bottom: var( --space-md ); | |||
padding-bottom: 20px !important; | |||
background: var( --color-surface-1 ); | |||
border: 1px solid var( --border-color-base ); | |||
border-radius: var( --border-radius-medium ); | |||
border-spacing: 0; | border-spacing: 0; | ||
font-size: 0.875rem; | |||
text-align: left; | |||
display: block; | |||
} | } | ||
.infobox- | .infobox-table tr:not( #infobox-table-img-bg ) { | ||
display: flex; | |||
margin-top: 10px; | |||
font-weight: | } | ||
font-size: | |||
.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-subtle ); | |||
font-size: 0.8125rem; | |||
font-weight: normal; | |||
letter-spacing: 0.75px; | |||
} | } | ||
.infobox- | .infobox-table th, | ||
th.infobox-table-name { | |||
color: var( --color-emphasized ); | |||
} | } | ||
.infobox- | .infobox-table th { | ||
padding-top: 15px !important; | |||
font-size: | border-top: 1px solid; | ||
border-color: var( --border-color-base ); | |||
font-size: 1rem; | |||
text-align: left !important; | |||
} | } | ||
.infobox- | 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- | .infobox-table-img { | ||
background: var( --background-color-button-quiet--hover ); | |||
} | } | ||
.infobox- | .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- | .infobox-button { | ||
display: block; | |||
width: 100%; | |||
width: | |||
} | } | ||
.infobox- | .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; | |||
} | |||
} | } |