Toggle menu
Toggle preferences 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
Created page with "Genel Infobox Stilleri: .infobox { float: right; width: 300px; border: 1px solid var(--cdx-color-border, #a2a9b1); background-color: var(--cdx-color-background-secondary, #f8f9fa); margin: 0 0 1em 1.5em; font-size: 90%; line-height: 1.4; } .infobox-title { background-color: var(--cdx-color-background-accent-subtle, #eaf3ff); border-bottom: 1px solid var(--cdx-color-border-subtle, #c8ccd1); font-size: 1.4em; font-weight: bold; text-align: center; padding: 0.5em; colo..."
 
No edit summary
Line 1: Line 1:
/* Genel Infobox Stilleri */
.tg-infobox {
.infobox { float: right; width: 300px; border: 1px solid var(--cdx-color-border, #a2a9b1); background-color: var(--cdx-color-background-secondary, #f8f9fa); margin: 0 0 1em 1.5em; font-size: 90%; line-height: 1.4; }
    position: relative;
.infobox-title { background-color: var(--cdx-color-background-accent-subtle, #eaf3ff); border-bottom: 1px solid var(--cdx-color-border-subtle, #c8ccd1); font-size: 1.4em; font-weight: bold; text-align: center; padding: 0.5em; color: var(--cdx-color-text-primary, #202122); }
    width: 320px;
.infobox-image { padding: 10px; text-align: center; }
    padding: 16px 0;
.infobox-caption { font-size: 0.9em; font-style: italic; color: var(--cdx-color-text-secondary, #54595d); padding: 0 10px 10px 10px; text-align: center; border-bottom: 1px solid var(--cdx-color-border-subtle, #c8ccd1); }
    border: 1px solid #aaa;
.infobox-header { background-color: var(--cdx-color-background-accent-soft, #dcebff); font-weight: bold; text-align: center; padding: 0.4em; color: var(--cdx-color-text-primary, #202122); }
    border-radius: 12px;
.infobox .infobox-label { font-weight: bold; text-align: left; padding: 0.4em 0.6em; width: 35%; vertical-align: top; }
    border-spacing: 0;
.infobox .infobox-data { padding: 0.4em 0.6em; width: 65%; vertical-align: top; }
    color: #222;
    background-color: #f9f9f9;
    line-height: 1.3;
    font-size: 14px;
}
 
.tg-infobox th,
.tg-infobox td {
    padding: 0;
    vertical-align: top;
}
 
.tg-infobox tr > *:first-child {
    padding-left: 16px;
}
.tg-infobox tr > *:last-child {
    padding-right: 16px;
}
 
.tg-infobox-title {
    font-size: 20px;
    padding-bottom: 4px;
    color: #333;
    line-height: 1.1;
    text-align: center;
}
 
.tg-infobox-image {
    text-align: center;
    padding: 0 !important;
    transform: translateY(-16px);
    overflow: hidden;
}
 
.tg-infobox-caption {
    text-align: center;
    color: #777;
    font-size: 12px;
    padding-top: 4px;
    padding-bottom: 4px;
}
 
.tg-infobox-label {
    padding: 8px;
    text-align: start;
}
 
.tg-infobox-data {
    padding: 8px;
}
 
@media (max-width: 640px) {
    .tg-infobox {
        width: 100%;
    }
}

Revision as of 21:04, 12 June 2025

.tg-infobox {
    position: relative;
    width: 320px;
    padding: 16px 0;
    border: 1px solid #aaa;
    border-radius: 12px;
    border-spacing: 0;
    color: #222;
    background-color: #f9f9f9;
    line-height: 1.3;
    font-size: 14px;
}

.tg-infobox th,
.tg-infobox td {
    padding: 0;
    vertical-align: top;
}

.tg-infobox tr > *:first-child {
    padding-left: 16px;
}
.tg-infobox tr > *:last-child {
    padding-right: 16px;
}

.tg-infobox-title {
    font-size: 20px;
    padding-bottom: 4px;
    color: #333;
    line-height: 1.1;
    text-align: center;
}

.tg-infobox-image {
    text-align: center;
    padding: 0 !important;
    transform: translateY(-16px);
    overflow: hidden;
}

.tg-infobox-caption {
    text-align: center;
    color: #777;
    font-size: 12px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.tg-infobox-label {
    padding: 8px;
    text-align: start;
}

.tg-infobox-data {
    padding: 8px;
}

@media (max-width: 640px) {
    .tg-infobox {
        width: 100%;
    }
}