Difference between revisions of "Template:InfoboxOld/styles.css"
Template page
Alistair3149 (talk | contribs) (Rounded corner) |
Alistair3149 (talk | contribs) (Add hover state) |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
.infobox-table { | .infobox-table { | ||
− | width: | + | z-index: 3 !important; |
+ | width: 400px; | ||
+ | max-width: 100%; | ||
border-radius: 12px; | border-radius: 12px; | ||
border-spacing: 0; | border-spacing: 0; | ||
padding-bottom: 20px !important; | padding-bottom: 20px !important; | ||
− | background: | + | background: var( --background-color-framed ); |
font-size: 0.875rem; | font-size: 0.875rem; | ||
text-align: left; | text-align: left; | ||
Line 27: | Line 29: | ||
.infobox-table tr>td:first-child { | .infobox-table tr>td:first-child { | ||
− | color: | + | color: var( --color-base--subtle ); |
+ | font-weight: normal; | ||
+ | font-size: 0.8125rem; | ||
+ | letter-spacing: .75px; | ||
} | } | ||
.infobox-table th, | .infobox-table th, | ||
th.infobox-table-name { | th.infobox-table-name { | ||
− | color: | + | color: var( --color-base--emphasized ); |
} | } | ||
Line 39: | Line 44: | ||
text-align: left !important; | text-align: left !important; | ||
padding-top: 15px !important; | padding-top: 15px !important; | ||
− | border-top: 1px solid | + | border-top: 1px solid; |
+ | border-color: var( --border-color-base ); | ||
} | } | ||
Line 52: | Line 58: | ||
.infobox-table-img { | .infobox-table-img { | ||
− | background: | + | background: var( --background-color-quiet--hover ); |
+ | } | ||
+ | |||
+ | .infobox-table .infobox-table-img { | ||
+ | padding: 0 !important; | ||
} | } | ||
.infobox-table-img img { | .infobox-table-img img { | ||
− | width: | + | 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 { | .infobox-table-img a.image { | ||
background: 0 !important; | background: 0 !important; | ||
+ | } | ||
+ | |||
+ | .infobox-table .image:hover img { | ||
+ | transform: scale( 1.1 ); | ||
+ | } | ||
+ | |||
+ | .infobox-table ul, | ||
+ | .infobox-table ol { | ||
+ | margin-top: 0; | ||
} | } | ||
Line 73: | Line 97: | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
justify-content: space-between; | justify-content: space-between; | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
@media only screen and (max-width: 720px) { | @media only screen and (max-width: 720px) { | ||
.infobox-table { | .infobox-table { | ||
− | margin | + | margin-left: auto; |
− | + | margin-right: auto; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
} | } |
Revision as of 19:08, 5 August 2021
.infobox-table {
z-index: 3 !important;
width: 400px;
max-width: 100%;
border-radius: 12px;
border-spacing: 0;
padding-bottom: 20px !important;
background: var( --background-color-framed );
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: var( --color-base--subtle );
font-weight: normal;
font-size: 0.8125rem;
letter-spacing: .75px;
}
.infobox-table th,
th.infobox-table-name {
color: var( --color-base--emphasized );
}
.infobox-table th {
font-size: 1rem;
text-align: left !important;
padding-top: 15px !important;
border-top: 1px solid;
border-color: var( --border-color-base );
}
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: 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-left: auto;
margin-right: auto;
}
}