Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox/styles.css: Difference between revisions

Template page
Content added Content deleted
No edit summary
No edit summary
Line 1: Line 1:
.infobox-table {
.infobox {
width: 100%;
z-index: 3 !important;
max-width: 400px;
overflow: hidden;
background: var(--color-surface-2);
width: 400px;
border-radius: var(--border-radius--medium);
max-width: 100%;
font-family: Arial, sans-serif;
/*margin-bottom: 1.6rem;*/
line-height: 1.375;
padding-bottom: 20px !important;
background: var( --color-surface-2 );
color: #ffffff;
margin-bottom: 16px;
border-radius: var( --border-radius--medium );
padding-bottom: 20px !important;
border-spacing: 0;
box-shadow: var( --box-shadow-card );
font-size: 0.875rem;
text-align: left;
}
}


.infobox__header {
.infobox-table tr:not( #infobox-table-img-bg ) {
padding: 16px;
display: flex;
background-color: #273647;
margin-top: 10px;
border-bottom: 1px solid #2a3b47;
text-align: center;
}
}


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


.infobox__subtitle {
.infobox-table th,
font-size: 14px;
.infobox-table tr > td:first-child {
color: #b0bec5;
font-weight: 600;
}
}


.infobox__image img {
.infobox-table tr > td:first-child {
width: 100%;
color: var( --color-base--subtle );
height: auto;
font-size: 0.8125rem;
border-bottom: 1px solid #2a3b47;
font-weight: normal;
letter-spacing: 0.75px;
}
}


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


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


.infobox__label {
th.infobox-table-name {
font-weight: bold;
padding-top: 0 !important;
margin-bottom: 8px;
border: 0 !important;
color: #d4e4f2;
margin-top: 10px;
margin-bottom: 5px;
font-size: 1.4rem !important;
line-height: 1.4;
}
}


.infobox__data {
.infobox-table-img {
margin-bottom: 8px;
background: var( --background-color-quiet--hover );
}
}


.infobox__link a {
.infobox-table .infobox-table-img {
color: #64b5f6;
padding: 0 !important;
text-decoration: none;
}
}


.infobox__link a:hover {
.infobox-table-img img {
text-decoration: underline;
max-width: 100%;
height: auto !important;
}
}


.infobox__grid--cols-2 {
/* Neutral background for all transprent SVG */
display: grid;
.infobox-table-img img[ src$='.svg' ] {
grid-template-columns: repeat(2, 1fr);
background: #eaecf0;
gap: 8px;
}
}


.infobox__grid--cols-3 {
.infobox-table-img a.image {
display: grid;
background: 0 !important;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
}


.infobox__section--tabber {
.infobox-table .image:hover img {
border-top: 1px solid #2a3b47;
transform: scale( 1.1 );
padding-top: 16px;
}
}


.infobox__sectionTitle {
.infobox-table ul,
font-size: 16px;
.infobox-table ol {
font-weight: bold;
margin-top: 0;
color: #d4e4f2;
}
}


.infobox__section--metadata {
.infobox-button {
background-color: #2a3b47;
display: block;
padding: 16px;
width: 100%;
border-radius: 8px;
}
}


.infobox__section--actions {
.infobox-button > div {
background-color: #2a3b47;
display: flex;
padding: 16px;
flex-wrap: wrap;
border-radius: 8px;
justify-content: space-between;
}
}


.infobox__footer {
@media only screen and ( max-width: 720px ) {
background-color: #2a3b47;
.infobox-table {
padding: 16px;
margin-right: auto;
border-radius: 8px;
margin-left: auto;
}
}

.infobox__button {
background-color: #3572a5;
color: #ffffff;
text-align: center;
padding: 8px;
border-radius: 4px;
cursor: pointer;
}

.infobox__button:hover {
background-color: #285e84;
}

.infobox__buttonLabel {
display: flex;
align-items: center;
gap: 8px;
}

.infobox__linkButton a {
color: #64b5f6;
}

.infobox__linkButton a:hover {
text-decoration: underline;
}
}

Revision as of 05:47, 17 May 2024

.infobox {
    width: 100%;
    max-width: 400px;
    background: var(--color-surface-2);
    border-radius: var(--border-radius--medium);
    font-family: Arial, sans-serif;
    line-height: 1.375;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 20px !important;
}

.infobox__header {
    padding: 16px;
    background-color: #273647;
    border-bottom: 1px solid #2a3b47;
    text-align: center;
}

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

.infobox__subtitle {
    font-size: 14px;
    color: #b0bec5;
}

.infobox__image img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #2a3b47;
}

.infobox__content {
    padding: 16px;
}

.infobox__section {
    margin-bottom: 16px;
}

.infobox__label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #d4e4f2;
}

.infobox__data {
    margin-bottom: 8px;
}

.infobox__link a {
    color: #64b5f6;
    text-decoration: none;
}

.infobox__link a:hover {
    text-decoration: underline;
}

.infobox__grid--cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.infobox__grid--cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.infobox__section--tabber {
    border-top: 1px solid #2a3b47;
    padding-top: 16px;
}

.infobox__sectionTitle {
    font-size: 16px;
    font-weight: bold;
    color: #d4e4f2;
}

.infobox__section--metadata {
    background-color: #2a3b47;
    padding: 16px;
    border-radius: 8px;
}

.infobox__section--actions {
    background-color: #2a3b47;
    padding: 16px;
    border-radius: 8px;
}

.infobox__footer {
    background-color: #2a3b47;
    padding: 16px;
    border-radius: 8px;
}

.infobox__button {
    background-color: #3572a5;
    color: #ffffff;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
}

.infobox__button:hover {
    background-color: #285e84;
}

.infobox__buttonLabel {
    display: flex;
    align-items: center;
    gap: 8px;
}

.infobox__linkButton a {
    color: #64b5f6;
}

.infobox__linkButton a:hover {
    text-decoration: underline;
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.