پرش به محتوا

مدیاویکی:Common.css: تفاوت میان نسخه‌ها

از ویکی داد
جایگزینی صفحه با '←================================ ویکی‌داد — منابع و مآخذ ================================: .wd-references { direction: rtl; text-align: right; font-family: "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif; font-size: 13px; color: #52615e; } ←فهرست منابع: .wd-references ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0 !importa...'
برچسب: جایگزین شد
بدون خلاصۀ ویرایش
خط ۱: خط ۱:
/* ================================
```css
  ویکی‌داد — منابع و مآخذ
  ================================ */
 
.wd-references {
.wd-references {
     direction: rtl;
     direction: rtl;
خط ۱۰: خط ۷:
     color: #52615e;
     color: #52615e;
}
}
/* فهرست منابع */


.wd-references ol {
.wd-references ol {
     display: grid;
     display: grid;
     grid-template-columns: repeat(2, minmax(0, 1fr));
     grid-template-columns: repeat(2, minmax(0, 1fr));
     gap: 8px 16px;
     column-gap: 28px;
    row-gap: 2px;


     margin: 0 !important;
     margin: 0 !important;
خط ۲۵: خط ۲۰:
     counter-reset: wd-reference;
     counter-reset: wd-reference;
}
}
/* هر منبع */


.wd-references li {
.wd-references li {
     position: relative;
     position: relative;
     box-sizing: border-box;
     box-sizing: border-box;


     margin: 0 !important;
     margin: 0 !important;
     padding: 11px 42px 11px 13px !important;
     padding: 4px 27px 4px 0 !important;


     background: #f7f9f8;
     background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;


    border: 1px solid #e1e8e5;
     line-height: 1.9;
    border-right: 3px solid #168477;
     min-height: 0;
 
    border-radius: 8px;
 
     line-height: 2;
     min-height: 48px;


     counter-increment: wd-reference;
     counter-increment: wd-reference;
}
}
/* شماره منبع */


.wd-references li::before {
.wd-references li::before {
خط ۵۷: خط ۴۲:


     position: absolute;
     position: absolute;
 
     right: 0;
     right: 11px;
     top: 50%;
     top: 50%;


     transform: translateY(-50%);
     transform: translateY(-50%);


    width: 23px;
     color: #168477;
    height: 23px;
 
    display: flex;
    align-items: center;
    justify-content: center;
 
    background: #e3efeb;
     color: #245b55;
 
    border-radius: 50%;


     font-size: 11px;
     font-size: 11px;
     font-weight: 800;
     font-weight: 800;
}
}
/* لینک‌های منابع */


.wd-references a {
.wd-references a {
خط ۹۱: خط ۶۲:
     text-decoration: underline;
     text-decoration: underline;
}
}
/* لینک برگشت از منبع به متن */


.wd-references .mw-cite-backlink {
.wd-references .mw-cite-backlink {
     margin-right: 5px;
     margin-right: 4px;
     white-space: nowrap;
     white-space: nowrap;
}
}
خط ۱۰۴: خط ۷۲:
     font-weight: bold;
     font-weight: bold;
}
}
/* ================================
  موبایل
  ================================ */


@media (max-width: 700px) {
@media (max-width: 700px) {
خط ۱۱۴: خط ۷۷:
     .wd-references ol {
     .wd-references ol {
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
        column-gap: 0;
     }
     }


}
}
```

نسخهٔ ۱۱ سپتامبر ۲۰۲۶، ساعت ۱۹:۳۰

```css
.wd-references {
    direction: rtl;
    text-align: right;
    font-family: "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif;
    font-size: 13px;
    color: #52615e;
}

.wd-references ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 2px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
    counter-reset: wd-reference;
}

.wd-references li {
    position: relative;
    box-sizing: border-box;

    margin: 0 !important;
    padding: 4px 27px 4px 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;

    line-height: 1.9;
    min-height: 0;

    counter-increment: wd-reference;
}

.wd-references li::before {
    content: counter(wd-reference);

    position: absolute;
    right: 0;
    top: 50%;

    transform: translateY(-50%);

    color: #168477;

    font-size: 11px;
    font-weight: 800;
}

.wd-references a {
    color: #176c88;
    text-decoration: none;
}

.wd-references a:hover {
    color: #11695f;
    text-decoration: underline;
}

.wd-references .mw-cite-backlink {
    margin-right: 4px;
    white-space: nowrap;
}

.wd-references .mw-cite-backlink a {
    color: #168477;
    font-weight: bold;
}

@media (max-width: 700px) {

    .wd-references ol {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

}
```