الگو:جعبه اطلاعات مرکز آموزشی/styles.css

نسخهٔ تاریخ ‏۲۶ ژوئیهٔ ۲۰۲۶، ساعت ۰۷:۴۴ توسط Modir (بحث | مشارکت‌ها) (صفحه‌ای تازه حاوی «========================================================================== Wiki Alborz Infobox TemplateStyles Compatible ==========================================================================: .education-infobox { width: 100%; max-width: 320px; float: left; clear: left; margin: 0 0 1em 1em; border: 1px solid #a2a9b1; border-collapse: collapse; background: #ffffff; color: #20212...» ایجاد کرد)
(تفاوت) → نسخهٔ قدیمی‌تر | نمایش نسخهٔ فعلی (تفاوت) | نسخهٔ جدیدتر ← (تفاوت)
/* ==========================================================================
   Wiki Alborz Infobox
   TemplateStyles Compatible
   ========================================================================== */

.education-infobox {
    width: 100%;
    max-width: 320px;

    float: left;
    clear: left;

    margin: 0 0 1em 1em;

    border: 1px solid #a2a9b1;
    border-collapse: collapse;

    background: #ffffff;
    color: #202122;

    font-size: 88%;
    line-height: 1.5;
}

.education-infobox th,
.education-infobox td {
    padding: .45em .65em;
    vertical-align: top;
}

.education-infobox table {
    width: 100%;
    border-collapse: collapse;
}

/* ==========================================================================
   Links
   ========================================================================== */

.education-infobox a {
    color: #0645ad;
    text-decoration: none;
}

.education-infobox a:visited {
    color: #0b0080;
}

.education-infobox a:hover {
    text-decoration: underline;
}

.education-infobox img {
    max-width: 100%;
    height: auto;
    border: 0;
}
/* ==========================================================================
   Header
   ========================================================================== */

.education-infobox-title {
    background: #3366cc;
    color: #ffffff;

    font-size: 115%;
    font-weight: bold;

    text-align: center;

    padding: .75em;

    border-bottom: 1px solid #a2a9b1;
}

.education-infobox-title a,
.education-infobox-title a:visited {
    color: #ffffff;
    text-decoration: none;
}

.education-infobox-title a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Image
   ========================================================================== */

.education-infobox-image {
    text-align: center;
    background: #ffffff;
    padding: .75em;
}

.education-infobox-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.education-infobox-image .thumbcaption {
    margin-top: .5em;
    font-size: 90%;
    color: #54595d;
    text-align: center;
}

/* ==========================================================================
   Header separator
   ========================================================================== */

.education-infobox-title,
.education-infobox-image {
    border-bottom: 1px solid #c8ccd1;
}
/* ==========================================================================
   Group Headers
   ========================================================================== */

.education-infobox-group {
    background: #eaecf0;

    color: #202122;

    font-weight: bold;
    text-align: center;

    padding: .5em;

    border-top: 1px solid #a2a9b1;
    border-bottom: 1px solid #a2a9b1;
}

/* ==========================================================================
   Labels
   ========================================================================== */

.education-infobox th:not(.education-infobox-title):not(.education-infobox-group) {
    width: 38%;

    background: #f8f9fa;

    font-weight: bold;
    text-align: right;

    border: 1px solid #eaecf0;
}

/* ==========================================================================
   Values
   ========================================================================== */

.education-infobox td {
    background: #ffffff;

    text-align: right;

    border: 1px solid #eaecf0;

    word-wrap: break-word;
}

/* ==========================================================================
   Last Row
   ========================================================================== */

.education-infobox tr:last-child th,
.education-infobox tr:last-child td {
    border-bottom: 1px solid #a2a9b1;
}
/* ==========================================================================
   Lists
   ========================================================================== */

.education-infobox ul,
.education-infobox ol {
    margin: .3em 0;
    padding-right: 1.2em;
    padding-left: 0;
}

.education-infobox li {
    margin: .15em 0;
}

/* ==========================================================================
   Text Formatting
   ========================================================================== */

.education-infobox td {
    white-space: normal;
    word-wrap: break-word;
}

.education-infobox .nowrap {
    white-space: nowrap;
}

.education-infobox .center {
    text-align: center;
}

.education-infobox .left {
    text-align: left;
}

.education-infobox .right {
    text-align: right;
}

/* ==========================================================================
   Numeric values
   ========================================================================== */

.education-infobox .number,
.education-infobox .coordinates,
.education-infobox .geo {
    direction: ltr;
    unicode-bidi: embed;
    white-space: nowrap;
    text-align: left;
}

/* ==========================================================================
   Empty values
   ========================================================================== */

.education-infobox .empty {
    color: #72777d;
    font-style: italic;
}
/* ==========================================================================
   Contact & External Links
   ========================================================================== */

.education-infobox td a.external,
.education-infobox td a.extiw,
.education-infobox td a {
    word-break: break-word;
}

/* ==========================================================================
   References
   ========================================================================== */

.education-infobox sup.reference {
    font-size: 80%;
    vertical-align: super;
}

/* ==========================================================================
   Horizontal Lists
   ========================================================================== */

.education-infobox .hlist ul,
.education-infobox .hlist ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-infobox .hlist li {
    display: inline;
}

.education-infobox .hlist li:after {
    content: " • ";
}

.education-infobox .hlist li:last-child:after {
    content: "";
}

/* ==========================================================================
   Plain Lists
   ========================================================================== */

.education-infobox .plainlist ul,
.education-infobox .plainlist ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-infobox .plainlist li {
    margin: .15em 0;
}

/* ==========================================================================
   Nested Tables
   ========================================================================== */

.education-infobox td table {
    width: 100%;
    border-collapse: collapse;
    margin: .25em 0;
}

.education-infobox td table th,
.education-infobox td table td {
    border: 1px solid #eaecf0;
    padding: .3em .45em;
}
/* ==========================================================================
   MediaWiki Compatibility
   ========================================================================== */

.education-infobox .mw-file-description {
    display: inline-block;
}

.education-infobox .mw-file-element {
    max-width: 100%;
    height: auto;
}

.education-infobox .thumbimage {
    max-width: 100%;
    height: auto;
}

.education-infobox .thumbcaption {
    font-size: 90%;
    color: #54595d;
    text-align: center;
    margin-top: .4em;
}

/* ==========================================================================
   Coordinates
   ========================================================================== */

.education-infobox .geo,
.education-infobox .coordinates {
    direction: ltr;
    unicode-bidi: embed;
    white-space: nowrap;
}

/* ==========================================================================
   Boolean values
   ========================================================================== */

.education-infobox .boolean-yes {
    font-weight: bold;
}

.education-infobox .boolean-no {
    color: #72777d;
}

/* ==========================================================================
   Icons
   ========================================================================== */

.education-infobox .icon {
    vertical-align: middle;
    margin-left: .3em;
}

/* ==========================================================================
   Utility classes
   ========================================================================== */

.education-infobox .small {
    font-size: 90%;
}

.education-infobox .large {
    font-size: 110%;
}

.education-infobox .hidden {
    display: none;
}
/* ==========================================================================
   Responsive Layout
   ========================================================================== */

@media screen and (max-width: 720px) {

    .education-infobox {
        float: none;
        clear: both;

        width: 100%;
        max-width: 100%;

        margin: 1em 0;

        font-size: 90%;
    }

    .education-infobox th,
    .education-infobox td {
        padding: .5em;
    }

    .education-infobox th:not(.education-infobox-title):not(.education-infobox-group) {
        width: 40%;
    }

    .education-infobox-title {
        font-size: 110%;
    }

    .education-infobox-image img {
        max-width: 100%;
        height: auto;
    }
}

/* ==========================================================================
   Small Mobile
   ========================================================================== */

@media screen and (max-width: 480px) {

    .education-infobox {
        font-size: 85%;
    }

    .education-infobox th,
    .education-infobox td {
        padding: .4em;
    }

    .education-infobox th:not(.education-infobox-title):not(.education-infobox-group) {
        width: 42%;
    }

    .education-infobox-title {
        font-size: 105%;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {

    .education-infobox {
        float: none;
        width: 100%;
        max-width: 100%;

        border: 1px solid #000;
    }

    .education-infobox a {
        color: #000;
        text-decoration: none;
    }
}
/* ==========================================================================
   RTL Support
   ========================================================================== */

.education-infobox {
    direction: rtl;
}

.education-infobox th,
.education-infobox td {
    direction: rtl;
    text-align: right;
}

/* ==========================================================================
   Image Alignment
   ========================================================================== */

.education-infobox-image {
    text-align: center;
}

.education-infobox-image img {
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   File Links
   ========================================================================== */

.education-infobox .mw-file-description {
    display: inline-block;
    max-width: 100%;
}

.education-infobox .mw-file-element {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Caption
   ========================================================================== */

.education-infobox caption {
    display: none;
}

/* ==========================================================================
   Clear Floats
   ========================================================================== */

.education-infobox::after {
    content: "";
    display: block;
    clear: both;
}

/* ==========================================================================
   Final Touches
   ========================================================================== */

.education-infobox tr:first-child th {
    border-top: 0;
}

.education-infobox tr:last-child td,
.education-infobox tr:last-child th {
    border-bottom: 0;
}

.education-infobox td:empty,
.education-infobox th:empty {
    display: none;
}