|
|
| خط ۱: |
خط ۱: |
| /* ========================================================= | | /* ================================ |
| WIKIDAD | | ویکیداد — منابع و مآخذ |
| Stage A — Base Persian UI
| | ================================ */ |
| MediaWiki:Common.css
| |
| ========================================================= */ | |
|
| |
|
| | | .wd-references { |
| /* ---------------------------------------------------------
| |
| 1. WIKIDAD VARIABLES
| |
| --------------------------------------------------------- */
| |
| | |
| :root {
| |
| --wd-primary: #168477;
| |
| --wd-primary-dark: #11695f;
| |
| --wd-primary-soft: #eaf6f4;
| |
| | |
| --wd-gold: #c49a3a;
| |
| | |
| --wd-text: #263238;
| |
| --wd-text-soft: #68777b;
| |
| | |
| --wd-bg: #ffffff;
| |
| --wd-bg-soft: #f7f9f8;
| |
| | |
| --wd-border: #dfe7e5;
| |
| | |
| --wd-link: #176c88;
| |
| | |
| --wd-radius: 10px;
| |
| | |
| --wd-shadow:
| |
| 0 3px 14px rgba(20, 60, 55, 0.07);
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| 2. GLOBAL
| |
| --------------------------------------------------------- */
| |
| | |
| html {
| |
| direction: rtl;
| |
| }
| |
| | |
| body {
| |
| direction: rtl; | | direction: rtl; |
| text-align: right; | | text-align: right; |
| | | font-family: "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif; |
| background: var(--wd-bg);
| |
| | |
| color: var(--wd-text);
| |
| | |
| font-family:
| |
| "Vazirmatn",
| |
| "IRANSansX",
| |
| "IRANSans",
| |
| Tahoma,
| |
| Arial,
| |
| sans-serif;
| |
| | |
| font-size: 16px;
| |
| | |
| line-height: 1.95;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| 3. LINKS
| |
| --------------------------------------------------------- */
| |
| | |
| a {
| |
| color: var(--wd-link);
| |
| }
| |
| | |
| a:hover {
| |
| color: var(--wd-primary-dark);
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| 4. PAGE BACKGROUND
| |
| --------------------------------------------------------- */
| |
| | |
| #mw-page-base {
| |
| background:
| |
| linear-gradient(
| |
| to bottom,
| |
| #edf7f5 0,
| |
| #ffffff 150px
| |
| ) !important;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| 5. MAIN PAGE CONTAINER
| |
| --------------------------------------------------------- */
| |
| | |
| #content {
| |
| background: #ffffff;
| |
| | |
| border: 1px solid var(--wd-border);
| |
| | |
| border-radius: var(--wd-radius);
| |
| | |
| box-shadow: var(--wd-shadow);
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| 6. MAIN CONTENT
| |
| --------------------------------------------------------- */
| |
| | |
| #bodyContent,
| |
| .mw-body-content {
| |
| font-family: | |
| "Vazirmatn",
| |
| "IRANSansX",
| |
| "IRANSans",
| |
| Tahoma,
| |
| Arial,
| |
| sans-serif;
| |
| | |
| color: var(--wd-text);
| |
| | |
| line-height: 2;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| 7. PAGE TITLE
| |
| --------------------------------------------------------- */
| |
| | |
| #firstHeading {
| |
| color: var(--wd-primary-dark);
| |
| | |
| font-family:
| |
| "Vazirmatn",
| |
| "IRANSansX",
| |
| "IRANSans",
| |
| Tahoma,
| |
| Arial,
| |
| sans-serif;
| |
| | |
| font-size: 30px;
| |
| | |
| font-weight: 800;
| |
| | |
| line-height: 1.6;
| |
| | |
| border-bottom: none;
| |
| | |
| margin-bottom: 24px;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| 8. HEADINGS
| |
| --------------------------------------------------------- */
| |
| | |
| .mw-body-content h2 {
| |
| color: var(--wd-primary-dark);
| |
| | |
| font-size: 23px;
| |
| | |
| font-weight: 800;
| |
| | |
| border-bottom:
| |
| 2px solid var(--wd-primary-soft);
| |
| | |
| padding-bottom: 8px;
| |
| | |
| margin-top: 34px;
| |
| }
| |
| | |
| .mw-body-content h3 {
| |
| color: var(--wd-primary);
| |
| | |
| font-size: 20px;
| |
| | |
| font-weight: 700;
| |
| | |
| margin-top: 28px;
| |
| }
| |
| | |
| .mw-body-content h4 {
| |
| color: var(--wd-text);
| |
| | |
| font-size: 18px;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| 9. HEADER
| |
| --------------------------------------------------------- */
| |
| | |
| #mw-head {
| |
| font-family:
| |
| "Vazirmatn",
| |
| "IRANSansX",
| |
| "IRANSans",
| |
| Tahoma,
| |
| Arial,
| |
| sans-serif;
| |
| }
| |
| | |
| | |
| /* Header background */
| |
| | |
| #mw-head {
| |
| background: #ffffff;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| 10. PERSONAL MENU
| |
| --------------------------------------------------------- */
| |
| | |
| #p-personal {
| |
| font-size: 13px; | | font-size: 13px; |
| | color: #52615e; |
| } | | } |
|
| |
|
| #p-personal a {
| |
| color: var(--wd-text-soft);
| |
| }
| |
|
| |
|
| #p-personal a:hover {
| | /* فهرست منابع */ |
| color: var(--wd-primary);
| |
| }
| |
|
| |
|
| | .wd-references ol { |
| | display: grid; |
| | grid-template-columns: repeat(2, minmax(0, 1fr)); |
| | gap: 8px 16px; |
|
| |
|
| /* ---------------------------------------------------------
| | margin: 0 !important; |
| 11. SEARCH BOX
| | padding: 0 !important; |
| --------------------------------------------------------- */
| |
|
| |
|
| #p-search {
| | list-style: none !important; |
| font-family: | | counter-reset: wd-reference; |
| "Vazirmatn",
| |
| "IRANSansX",
| |
| "IRANSans",
| |
| Tahoma,
| |
| Arial,
| |
| sans-serif;
| |
| } | | } |
|
| |
|
| #searchInput {
| |
| font-family:
| |
| "Vazirmatn",
| |
| "IRANSansX",
| |
| "IRANSans",
| |
| Tahoma,
| |
| Arial,
| |
| sans-serif;
| |
|
| |
|
| font-size: 14px;
| | /* هر منبع */ |
|
| |
|
| border: | | .wd-references li { |
| 1px solid var(--wd-border);
| | position: relative; |
|
| |
|
| border-radius: 8px; | | box-sizing: border-box; |
|
| |
|
| background: #ffffff; | | margin: 0 !important; |
| | padding: 11px 42px 11px 13px !important; |
|
| |
|
| color: var(--wd-text); | | background: #f7f9f8; |
|
| |
|
| padding: 8px 12px; | | border: 1px solid #e1e8e5; |
| | | border-right: 3px solid #168477; |
| transition: | |
| border-color .2s ease,
| |
| box-shadow .2s ease;
| |
| }
| |
| | |
| #searchInput:focus { | |
| border-color: var(--wd-primary);
| |
|
| |
|
| box-shadow:
| |
| 0 0 0 3px rgba(22,132,119,.12);
| |
|
| |
| outline: none;
| |
| }
| |
|
| |
|
| |
| /* ---------------------------------------------------------
| |
| 12. SEARCH BUTTON
| |
| --------------------------------------------------------- */
| |
|
| |
| #searchButton {
| |
| border-radius: 8px; | | border-radius: 8px; |
|
| |
|
| border-color: var(--wd-primary); | | line-height: 2; |
| | | min-height: 48px; |
| color: var(--wd-primary);
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| 13. TOP NAVIGATION
| |
| --------------------------------------------------------- */
| |
| | |
| #mw-panel {
| |
| font-family:
| |
| "Vazirmatn",
| |
| "IRANSansX",
| |
| "IRANSans",
| |
| Tahoma,
| |
| Arial,
| |
| sans-serif;
| |
| }
| |
| | |
| | |
| /* Sidebar headings */
| |
| | |
| #mw-panel .portal h3 {
| |
| color: var(--wd-primary-dark);
| |
| | |
| font-size: 14px;
| |
| | |
| font-weight: 800;
| |
| }
| |
| | |
| | |
| /* Sidebar links */
| |
| | |
| #mw-panel .portal a {
| |
| color: var(--wd-text-soft);
| |
| | |
| font-size: 14px;
| |
| }
| |
| | |
| #mw-panel .portal a:hover {
| |
| color: var(--wd-primary);
| |
| | |
| text-decoration: none;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| 14. PORTLET MENUS
| |
| --------------------------------------------------------- */
| |
| | |
| .vector-menu-portal {
| |
| font-family: | |
| "Vazirmatn",
| |
| "IRANSansX",
| |
| "IRANSans",
| |
| Tahoma,
| |
| Arial,
| |
| sans-serif;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| 15. CONTENT LINKS
| |
| --------------------------------------------------------- */
| |
| | |
| .mw-body-content a {
| |
| color: var(--wd-link);
| |
|
| |
|
| transition: | | counter-increment: wd-reference; |
| color .15s ease;
| |
| } | | } |
|
| |
|
| .mw-body-content a:hover {
| |
| color: var(--wd-primary-dark);
| |
|
| |
|
| text-decoration: underline;
| | /* شماره منبع */ |
| }
| |
|
| |
|
| | .wd-references li::before { |
| | content: counter(wd-reference); |
|
| |
|
| /* ---------------------------------------------------------
| |
| 16. PARAGRAPHS
| |
| --------------------------------------------------------- */
| |
|
| |
| .mw-body-content p {
| |
| margin-top: 0;
| |
|
| |
| margin-bottom: 16px;
| |
| }
| |
|
| |
|
| |
| /* ---------------------------------------------------------
| |
| 17. LISTS
| |
| --------------------------------------------------------- */
| |
|
| |
| .mw-body-content ul,
| |
| .mw-body-content ol {
| |
| padding-right: 28px;
| |
|
| |
| padding-left: 0;
| |
| }
| |
|
| |
| .mw-body-content li {
| |
| margin-bottom: 7px;
| |
| }
| |
|
| |
|
| |
| /* ---------------------------------------------------------
| |
| 18. TABLE OF CONTENTS
| |
| --------------------------------------------------------- */
| |
|
| |
| #toc {
| |
| background: var(--wd-bg-soft);
| |
|
| |
| border:
| |
| 1px solid var(--wd-border);
| |
|
| |
| border-right:
| |
| 4px solid var(--wd-primary);
| |
|
| |
| border-radius:
| |
| var(--wd-radius);
| |
|
| |
| padding: 15px 20px;
| |
|
| |
| box-shadow:
| |
| 0 2px 10px rgba(20,60,55,.04);
| |
| }
| |
|
| |
| #toc .toctitle {
| |
| color: var(--wd-primary-dark);
| |
|
| |
| font-weight: 800;
| |
| }
| |
|
| |
|
| |
| /* ---------------------------------------------------------
| |
| 19. CATEGORIES
| |
| --------------------------------------------------------- */
| |
|
| |
| .catlinks {
| |
| background: var(--wd-bg-soft);
| |
|
| |
| border:
| |
| 1px solid var(--wd-border);
| |
|
| |
| border-radius:
| |
| 8px;
| |
|
| |
| padding: 10px 14px;
| |
|
| |
| margin-top: 30px;
| |
|
| |
| font-size: 13px;
| |
| }
| |
|
| |
|
| |
| /* ---------------------------------------------------------
| |
| 20. FOOTER
| |
| --------------------------------------------------------- */
| |
|
| |
| #footer {
| |
| font-family:
| |
| "Vazirmatn",
| |
| "IRANSansX",
| |
| "IRANSans",
| |
| Tahoma,
| |
| Arial,
| |
| sans-serif;
| |
|
| |
| color: var(--wd-text-soft);
| |
|
| |
| border-top:
| |
| 1px solid var(--wd-border);
| |
|
| |
| margin-top: 40px;
| |
| }
| |
|
| |
| #footer a {
| |
| color: var(--wd-link);
| |
| }
| |
|
| |
|
| |
| /* ---------------------------------------------------------
| |
| 21. EDIT / TOOL LINKS
| |
| --------------------------------------------------------- */
| |
|
| |
| #p-cactions a,
| |
| #p-views a,
| |
| #p-cactions li,
| |
| #p-views li {
| |
| font-family:
| |
| "Vazirmatn",
| |
| "IRANSansX",
| |
| "IRANSans",
| |
| Tahoma,
| |
| Arial,
| |
| sans-serif;
| |
| }
| |
|
| |
|
| |
| /* ---------------------------------------------------------
| |
| 22. EDIT SECTION
| |
| --------------------------------------------------------- */
| |
|
| |
| .mw-editsection {
| |
| font-size: 12px;
| |
|
| |
| font-weight: normal;
| |
| }
| |
|
| |
| .mw-editsection a {
| |
| color: var(--wd-link);
| |
| }
| |
|
| |
|
| |
| /* ---------------------------------------------------------
| |
| 23. BLOCKQUOTES
| |
| --------------------------------------------------------- */
| |
|
| |
| blockquote {
| |
| background:
| |
| var(--wd-bg-soft);
| |
|
| |
| border-right:
| |
| 4px solid var(--wd-primary);
| |
|
| |
| border-left:
| |
| none;
| |
|
| |
| border-radius:
| |
| 8px;
| |
|
| |
| padding:
| |
| 14px 18px;
| |
|
| |
| color:
| |
| var(--wd-text-soft);
| |
| }
| |
|
| |
|
| |
| /* ---------------------------------------------------------
| |
| 24. TABLES
| |
| --------------------------------------------------------- */
| |
|
| |
| .wikitable {
| |
| border:
| |
| 1px solid var(--wd-border);
| |
|
| |
| border-collapse:
| |
| collapse;
| |
|
| |
| width: 100%;
| |
|
| |
| font-family:
| |
| "Vazirmatn",
| |
| "IRANSansX",
| |
| "IRANSans",
| |
| Tahoma,
| |
| Arial,
| |
| sans-serif;
| |
| }
| |
|
| |
| .wikitable th {
| |
| background:
| |
| var(--wd-primary-soft);
| |
|
| |
| color:
| |
| var(--wd-primary-dark);
| |
|
| |
| border:
| |
| 1px solid var(--wd-border);
| |
|
| |
| padding:
| |
| 10px 14px;
| |
| }
| |
|
| |
| .wikitable td {
| |
| border:
| |
| 1px solid var(--wd-border);
| |
|
| |
| padding:
| |
| 10px 14px;
| |
| }
| |
|
| |
|
| |
| /* ---------------------------------------------------------
| |
| 25. MOBILE
| |
| --------------------------------------------------------- */
| |
|
| |
| @media (max-width: 700px) {
| |
|
| |
| body {
| |
| font-size: 15px;
| |
| }
| |
|
| |
| #firstHeading {
| |
| font-size: 24px;
| |
| }
| |
|
| |
| .mw-body-content h2 {
| |
| font-size: 20px;
| |
| }
| |
|
| |
| .mw-body-content h3 {
| |
| font-size: 18px;
| |
| }
| |
|
| |
| #content {
| |
| border-radius: 0;
| |
|
| |
| border-left: none;
| |
| border-right: none;
| |
|
| |
| box-shadow: none;
| |
| }
| |
| }
| |
|
| |
|
| |
| /* ---------------------------------------------------------
| |
| 26. TEST MARKER
| |
| --------------------------------------------------------- */
| |
|
| |
| /*
| |
| اگر این فایل درست بارگذاری شده باشد،
| |
| رنگ عنوان صفحه باید سبز تیره شود.
| |
| */
| |
|
| |
|
| |
| /* =========================================================
| |
| WIKIDAD — HOMEPAGE
| |
| صفحه اصلی ویکیداد
| |
| ========================================================= */
| |
|
| |
| .wd-home {
| |
| direction: rtl;
| |
| max-width: 1180px;
| |
| margin: -8px auto 40px;
| |
| color: #263238;
| |
| }
| |
|
| |
| /* ---------- Hero ---------- */
| |
|
| |
| .wd-hero {
| |
| position: relative;
| |
| overflow: hidden;
| |
| padding: 48px 42px 44px;
| |
| margin-bottom: 38px;
| |
| border-radius: 20px;
| |
| background: linear-gradient(135deg, #0f665d 0%, #168477 55%, #23978a 100%);
| |
| color: #fff;
| |
| box-shadow: 0 8px 30px rgba(20, 70, 65, 0.16);
| |
| }
| |
|
| |
| .wd-hero::before {
| |
| content: "§";
| |
| position: absolute;
| |
| left: 45px;
| |
| top: -25px;
| |
| font-family: Georgia, serif;
| |
| font-size: 190px;
| |
| line-height: 1;
| |
| color: rgba(255,255,255,0.07);
| |
| pointer-events: none;
| |
| }
| |
|
| |
| .wd-hero-title {
| |
| position: relative;
| |
| z-index: 1;
| |
| margin-bottom: 5px;
| |
| font-size: 42px;
| |
| font-weight: 800;
| |
| letter-spacing: -1px;
| |
| }
| |
|
| |
| .wd-hero-subtitle {
| |
| position: relative;
| |
| z-index: 1;
| |
| margin-bottom: 30px;
| |
| font-size: 18px;
| |
| font-weight: 400;
| |
| color: rgba(255,255,255,0.92);
| |
| }
| |
|
| |
| /* ---------- Search ---------- */
| |
|
| |
| .wd-search-box {
| |
| position: relative;
| |
| z-index: 2;
| |
| max-width: 780px;
| |
| }
| |
|
| |
| .wd-search-box .mw-inputbox-form {
| |
| display: flex;
| |
| align-items: stretch;
| |
| gap: 8px;
| |
| }
| |
|
| |
| .wd-search-box input[type="text"] {
| |
| flex: 1;
| |
| min-width: 0;
| |
| height: 54px;
| |
| padding: 0 20px;
| |
| border: 0;
| |
| border-radius: 11px;
| |
| background: #fff;
| |
| color: #263238;
| |
| font-family: inherit;
| |
| font-size: 16px;
| |
| box-shadow: 0 3px 15px rgba(0,0,0,0.12);
| |
| }
| |
|
| |
| .wd-search-box input[type="text"]::placeholder {
| |
| color: #8a9699;
| |
| }
| |
|
| |
| .wd-search-box input[type="submit"] {
| |
| height: 54px;
| |
| padding: 0 28px;
| |
| border: 0;
| |
| border-radius: 11px;
| |
| background: #c49a3a;
| |
| color: #fff;
| |
| font-family: inherit;
| |
| font-size: 16px;
| |
| font-weight: 700;
| |
| cursor: pointer;
| |
| transition: 0.2s ease;
| |
| }
| |
|
| |
| .wd-search-box input[type="submit"]:hover {
| |
| background: #ad842c;
| |
| transform: translateY(-1px);
| |
| }
| |
|
| |
| /* ---------- Section titles ---------- */
| |
|
| |
| .wd-section-title {
| |
| position: relative;
| |
| margin: 34px 0 18px;
| |
| padding-right: 15px;
| |
| color: #11695f;
| |
| font-size: 22px;
| |
| font-weight: 800;
| |
| }
| |
|
| |
| .wd-section-title::before {
| |
| content: "";
| |
| position: absolute; | | position: absolute; |
| right: 0;
| |
| top: 4px;
| |
| bottom: 4px;
| |
| width: 5px;
| |
| border-radius: 5px;
| |
| background: #c49a3a;
| |
| }
| |
|
| |
| /* ---------- Main cards ---------- */
| |
|
| |
|
| .wd-main-grid {
| | right: 11px; |
| display: grid;
| | top: 50%; |
| grid-template-columns: repeat(4, 1fr); | |
| gap: 18px; | |
| }
| |
|
| |
|
| .wd-card {
| | transform: translateY(-50%); |
| position: relative; | |
| min-height: 215px;
| |
| padding: 25px 22px;
| |
| border: 1px solid #e0e7e5;
| |
| border-radius: 15px;
| |
| background: #fff;
| |
| box-shadow: 0 4px 18px rgba(20,60,55,0.07);
| |
| transition: transform 0.2s ease, box-shadow 0.2s ease;
| |
| }
| |
|
| |
|
| .wd-card:hover {
| | width: 23px; |
| transform: translateY(-4px); | | height: 23px; |
| box-shadow: 0 9px 28px rgba(20,60,55,0.12); | |
| }
| |
|
| |
|
| .wd-card-icon {
| |
| display: flex; | | display: flex; |
| align-items: center; | | align-items: center; |
| justify-content: center; | | justify-content: center; |
| width: 48px;
| |
| height: 48px;
| |
| margin-bottom: 17px;
| |
| border-radius: 12px;
| |
| background: #eef7f5;
| |
| color: #168477;
| |
| font-family: Georgia, serif;
| |
| font-size: 25px;
| |
| font-weight: 700;
| |
| }
| |
|
| |
|
| .wd-card-title {
| | background: #e3efeb; |
| margin-bottom: 10px; | | color: #245b55; |
| color: #11695f;
| |
| font-size: 18px;
| |
| font-weight: 800;
| |
| }
| |
| | |
| .wd-card-text {
| |
| min-height: 62px;
| |
| color: #667477; | |
| font-size: 14px;
| |
| line-height: 1.9;
| |
| }
| |
| | |
| .wd-card-link {
| |
| margin-top: 15px;
| |
| color: #176c88;
| |
| font-size: 13px;
| |
| font-weight: 700;
| |
| }
| |
|
| |
|
| /* رنگ اختصاصی کارتها */
| | border-radius: 50%; |
|
| |
|
| .wd-courts .wd-card-icon {
| | font-size: 11px; |
| background: #eef4fa;
| |
| color: #3978ad;
| |
| }
| |
| | |
| .wd-opinions .wd-card-icon {
| |
| background: #f8f2e8;
| |
| color: #a9783b;
| |
| }
| |
| | |
| .wd-terms .wd-card-icon {
| |
| background: #f3eff8;
| |
| color: #8064a2;
| |
| }
| |
| | |
| /* ---------- Popular laws ---------- */
| |
| | |
| .wd-popular-grid {
| |
| display: grid;
| |
| grid-template-columns: repeat(4, 1fr);
| |
| gap: 15px;
| |
| }
| |
| | |
| .wd-popular-card {
| |
| padding: 20px;
| |
| border: 1px solid #e0e7e5;
| |
| border-radius: 13px;
| |
| background: #f8faf9;
| |
| transition: 0.2s ease;
| |
| }
| |
| | |
| .wd-popular-card:hover {
| |
| background: #fff;
| |
| border-color: #b8d6d1;
| |
| box-shadow: 0 5px 18px rgba(20,60,55,0.08);
| |
| }
| |
| | |
| .wd-popular-card a {
| |
| display: block;
| |
| margin-bottom: 7px;
| |
| color: #176c88 !important;
| |
| font-size: 17px; | |
| font-weight: 800; | | font-weight: 800; |
| } | | } |
|
| |
|
| .wd-popular-card span {
| |
| display: block;
| |
| color: #788487;
| |
| font-size: 12px;
| |
| line-height: 1.8;
| |
| }
| |
|
| |
|
| /* ---------- Information boxes ---------- */ | | /* لینکهای منابع */ |
|
| |
|
| .wd-info-row { | | .wd-references a { |
| display: grid;
| | color: #176c88; |
| grid-template-columns: 1fr 1fr;
| |
| gap: 18px;
| |
| margin-top: 30px;
| |
| }
| |
| | |
| .wd-info-box {
| |
| padding: 23px 25px;
| |
| border: 1px solid #e1e7e5;
| |
| border-radius: 14px;
| |
| background: #fff;
| |
| }
| |
| | |
| .wd-info-title {
| |
| margin-bottom: 8px;
| |
| color: #11695f;
| |
| font-size: 17px;
| |
| font-weight: 800;
| |
| }
| |
| | |
| .wd-info-box p {
| |
| margin: 0;
| |
| color: #667477; | |
| font-size: 14px;
| |
| line-height: 2;
| |
| }
| |
| | |
| /* ---------- Remove unnecessary margins inside homepage ---------- */
| |
| | |
| .wd-home p {
| |
| margin-top: 0;
| |
| }
| |
| | |
| .wd-home a {
| |
| text-decoration: none; | | text-decoration: none; |
| } | | } |
|
| |
|
| /* ---------- Responsive ---------- */
| | .wd-references a:hover { |
| | |
| @media (max-width: 1000px) {
| |
| | |
| .wd-main-grid,
| |
| .wd-popular-grid {
| |
| grid-template-columns: repeat(2, 1fr);
| |
| }
| |
| | |
| }
| |
| | |
| @media (max-width: 650px) {
| |
| | |
| .wd-home {
| |
| margin: 0 8px 30px;
| |
| }
| |
| | |
| .wd-hero {
| |
| padding: 32px 22px;
| |
| border-radius: 15px;
| |
| }
| |
| | |
| .wd-hero-title {
| |
| font-size: 32px;
| |
| }
| |
| | |
| .wd-hero-subtitle {
| |
| font-size: 15px;
| |
| }
| |
| | |
| .wd-search-box .mw-inputbox-form {
| |
| display: block;
| |
| }
| |
| | |
| .wd-search-box input[type="text"],
| |
| .wd-search-box input[type="submit"] {
| |
| width: 100%;
| |
| box-sizing: border-box;
| |
| }
| |
| | |
| .wd-search-box input[type="submit"] {
| |
| margin-top: 8px;
| |
| }
| |
| | |
| .wd-main-grid,
| |
| .wd-popular-grid,
| |
| .wd-info-row {
| |
| grid-template-columns: 1fr;
| |
| }
| |
| | |
| }
| |
| | |
| | |
| /* =========================================================
| |
| WIKIDAD — CUSTOM SIDEBAR
| |
| ========================================================= */
| |
| | |
| #mw-panel {
| |
| direction: rtl;
| |
| font-family: "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif;
| |
| }
| |
| | |
| /* عنوانهای منو */
| |
| | |
| #mw-panel .portal > h3,
| |
| #mw-panel .vector-menu-heading {
| |
| margin: 18px 8px 8px;
| |
| padding: 8px 10px;
| |
| border-right: 4px solid #c49a3a;
| |
| border-radius: 0 6px 6px 0;
| |
| color: #11695f; | | color: #11695f; |
| background: #f5f8f7; | | text-decoration: underline; |
| font-size: 14px;
| |
| font-weight: 800;
| |
| } | | } |
|
| |
|
| /* حذف ظاهر پیشفرض لیست */
| |
|
| |
|
| #mw-panel .portal ul,
| | /* لینک برگشت از منبع به متن */ |
| #mw-panel .vector-menu-content-list {
| |
| margin: 0;
| |
| padding: 0;
| |
| }
| |
|
| |
|
| /* آیتمهای منو */
| | .wd-references .mw-cite-backlink { |
| | |
| #mw-panel .portal li,
| |
| #mw-panel .vector-menu-content-list li {
| |
| margin: 3px 0;
| |
| }
| |
| | |
| /* لینکهای منو */
| |
| | |
| #mw-panel .portal a,
| |
| #mw-panel .vector-menu-content-list a {
| |
| display: block;
| |
| margin: 0 5px;
| |
| padding: 9px 13px;
| |
| border-radius: 8px;
| |
| color: #3d5052;
| |
| font-size: 13px;
| |
| text-decoration: none;
| |
| transition: all 0.18s ease;
| |
| }
| |
| | |
| /* حالت Hover */
| |
| | |
| #mw-panel .portal a:hover,
| |
| #mw-panel .vector-menu-content-list a:hover {
| |
| padding-right: 17px;
| |
| background: #eef6f4;
| |
| color: #11695f;
| |
| }
| |
| | |
| /* صفحه فعلی */
| |
| | |
| #mw-panel .portal .selected a,
| |
| #mw-panel .vector-menu-content-list .selected a {
| |
| background: #e7f2ef;
| |
| color: #11695f;
| |
| font-weight: 700;
| |
| border-right: 3px solid #168477;
| |
| }
| |
| | |
| /* فاصله بین بخشها */
| |
| | |
| #mw-panel .portal {
| |
| margin-bottom: 12px;
| |
| }
| |
| | |
| /* ابزارها کمی کمرنگتر */
| |
| | |
| #p-tb a,
| |
| #p-tb .vector-menu-content-list a {
| |
| color: #687678;
| |
| font-size: 12px;
| |
| }
| |
| | |
| /* در موبایل */
| |
| | |
| @media (max-width: 720px) {
| |
| | |
| #mw-panel .portal a,
| |
| #mw-panel .vector-menu-content-list a {
| |
| padding: 10px 12px;
| |
| }
| |
| | |
| }
| |
| | |
| /* =========================================================
| |
| WIKIDAD — LAW ARTICLE BOX
| |
| ========================================================= */
| |
| | |
| .law-page {
| |
| direction: rtl;
| |
| text-align: right;
| |
| font-family: "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif;
| |
| line-height: 2;
| |
| color: #263238;
| |
| }
| |
| | |
| .law-article-box {
| |
| direction: rtl;
| |
| text-align: right;
| |
| margin: 25px 0;
| |
| padding: 25px 28px;
| |
| background: linear-gradient(135deg, #f1f8f6, #ffffff);
| |
| border: 1px solid #dce9e6;
| |
| border-right: 6px solid #168477;
| |
| border-radius: 12px;
| |
| box-shadow: 0 4px 18px rgba(20, 60, 55, 0.07);
| |
| }
| |
| | |
| .law-article-number {
| |
| margin-bottom: 12px;
| |
| color: #11695f;
| |
| font-size: 21px;
| |
| font-weight: 800;
| |
| }
| |
| | |
| .law-article-text {
| |
| color: #263f3c;
| |
| font-size: 16px;
| |
| line-height: 2.2;
| |
| }
| |
| | |
| /* =========================================================
| |
| ویکیداد — تستهای تعاملی
| |
| ========================================================= */
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| عنوان و نوع سؤال
| |
| --------------------------------------------------------- */
| |
| | |
| .wd-test-question {
| |
| direction: rtl;
| |
| text-align: right;
| |
| }
| |
| | |
| .wd-test-source {
| |
| display: inline;
| |
| margin-right: 5px; | | margin-right: 5px; |
|
| |
| font-size: 12px;
| |
| font-weight: normal;
| |
|
| |
| color: #8064a2;
| |
|
| |
| white-space: nowrap; | | white-space: nowrap; |
| } | | } |
|
| |
|
| | | .wd-references .mw-cite-backlink a { |
| /* ---------------------------------------------------------
| |
| گزینههای تست
| |
| --------------------------------------------------------- */
| |
| | |
| .wd-test-options {
| |
| display: flex;
| |
| flex-direction: column;
| |
| gap: 9px;
| |
| }
| |
| | |
| .wd-test-options ul {
| |
| margin: 0 !important;
| |
| padding: 0 !important;
| |
| }
| |
| | |
| .wd-test-options li {
| |
| list-style: none !important;
| |
| margin: 0 !important;
| |
| padding: 0 !important;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| ظاهر اصلی گزینه
| |
| --------------------------------------------------------- */
| |
| | |
| .wd-test-option {
| |
| display: flex;
| |
| align-items: center;
| |
| | |
| width: 100%;
| |
| box-sizing: border-box;
| |
| | |
| padding: 12px 15px;
| |
| | |
| background: #ffffff;
| |
| border: 1px solid #dfe7e5;
| |
| border-radius: 8px;
| |
| | |
| color: #37474f !important;
| |
| | |
| font-family:
| |
| "Vazirmatn",
| |
| "IRANSans",
| |
| Tahoma,
| |
| Arial,
| |
| sans-serif;
| |
| | |
| font-size: 15px;
| |
| line-height: 1.9;
| |
| | |
| text-align: right;
| |
| | |
| cursor: pointer;
| |
| user-select: none;
| |
| | |
| transition:
| |
| background 0.15s ease,
| |
| border-color 0.15s ease,
| |
| transform 0.15s ease;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| حالت Hover
| |
| --------------------------------------------------------- */
| |
| | |
| .wd-test-option:hover {
| |
| background: #f7faf9;
| |
| border-color: #168477;
| |
| | |
| transform: translateY(-1px);
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| مربع کنار گزینه
| |
| --------------------------------------------------------- */
| |
| | |
| .wd-test-option::before {
| |
| content: "□";
| |
| | |
| flex: 0 0 auto;
| |
| | |
| margin-left: 11px;
| |
| | |
| font-size: 21px;
| |
| line-height: 1;
| |
| | |
| color: #78909c;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| گزینه انتخابشده
| |
| --------------------------------------------------------- */
| |
| | |
| .wd-test-option.wd-selected::before {
| |
| content: "☑";
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| پاسخ صحیح
| |
| --------------------------------------------------------- */
| |
| | |
| .wd-test-option.wd-correct {
| |
| background: #edf8f2;
| |
| border-color: #4b9b57;
| |
| | |
| color: #276b35 !important;
| |
| }
| |
| | |
| .wd-test-option.wd-correct::before {
| |
| color: #4b9b57;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| پاسخ غلط
| |
| --------------------------------------------------------- */
| |
| | |
| .wd-test-option.wd-wrong {
| |
| background: #fff1f1;
| |
| border-color: #c85b5b;
| |
| | |
| color: #9a3f3f !important;
| |
| }
| |
| | |
| .wd-test-option.wd-wrong::before {
| |
| content: "☒";
| |
| | |
| color: #c85b5b;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| پیام نتیجه
| |
| --------------------------------------------------------- */
| |
| | |
| .wd-test-result-message.wd-result-correct {
| |
| color: #287653;
| |
| }
| |
| | |
| .wd-test-result-message.wd-result-wrong {
| |
| color: #a04444;
| |
| }
| |
| | |
| | |
| /* ---------------------------------------------------------
| |
| وقتی پاسخ صحیح داده شد
| |
| --------------------------------------------------------- */
| |
| | |
| .wd-test.wd-test-finished .wd-test-option {
| |
| cursor: default;
| |
| }
| |
| | |
| .wd-test.wd-test-finished .wd-test-option:hover {
| |
| transform: none;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| ویکیداد — Responsive Design
| |
| نسخه جامع برای موبایل، تبلت و دسکتاپ
| |
| ========================================================= */
| |
| | |
| | |
| /* =========================================================
| |
| 1. تنظیمات پایه
| |
| ========================================================= */
| |
| | |
| html {
| |
| box-sizing: border-box;
| |
| }
| |
| | |
| *,
| |
| *:before,
| |
| *:after {
| |
| box-sizing: inherit;
| |
| }
| |
| | |
| img {
| |
| max-width: 100%;
| |
| height: auto;
| |
| }
| |
| | |
| table {
| |
| max-width: 100%;
| |
| }
| |
| | |
| body {
| |
| overflow-x: hidden;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 2. محتوای اصلی ویکی
| |
| ========================================================= */
| |
| | |
| .mw-body,
| |
| #content,
| |
| .mw-content-container {
| |
| max-width: 100%;
| |
| }
| |
| | |
| .mw-body {
| |
| overflow-wrap: break-word;
| |
| }
| |
| | |
| .mw-parser-output {
| |
| max-width: 100%;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 3. صفحات حقوقی
| |
| ========================================================= */
| |
| | |
| .law-page {
| |
| width: 100%;
| |
| max-width: 100%;
| |
| margin: 0 auto;
| |
| padding: 0;
| |
| direction: rtl;
| |
| text-align: right;
| |
| font-family:
| |
| "Vazirmatn",
| |
| "IRANSans",
| |
| Tahoma,
| |
| Arial,
| |
| sans-serif;
| |
| line-height: 2;
| |
| }
| |
| | |
| | |
| /* جلوگیری از بیرونزدگی عناصر */
| |
| | |
| .law-page > *,
| |
| .law-page div,
| |
| .law-page section {
| |
| max-width: 100%;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 4. صفحه اصلی
| |
| ========================================================= */
| |
| | |
| .wd-home {
| |
| width: 100%;
| |
| max-width: 100%;
| |
| direction: rtl;
| |
| text-align: right;
| |
| }
| |
| | |
| | |
| /* گریدهای صفحه اصلی */
| |
| | |
| .wd-main-grid,
| |
| .wd-popular-grid {
| |
| width: 100%;
| |
| }
| |
| | |
| | |
| /* جلوگیری از شکستن بد کارتها */
| |
| | |
| .wd-main-grid > *,
| |
| .wd-popular-grid > * {
| |
| min-width: 0;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 5. جعبه ماده
| |
| ========================================================= */
| |
| | |
| .law-article-box {
| |
| width: 100%;
| |
| max-width: 100%;
| |
| overflow: hidden;
| |
| }
| |
| | |
| .law-article-text {
| |
| overflow-wrap: break-word;
| |
| word-break: normal;
| |
| }
| |
| | |
| .law-article-number {
| |
| flex-shrink: 0;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 6. جعبههای محتوایی
| |
| ========================================================= */
| |
| | |
| .related-laws-box,
| |
| .term-box,
| |
| .judgment-box,
| |
| .advisory-box,
| |
| .explanation-box {
| |
| width: 100%;
| |
| max-width: 100%;
| |
| overflow: hidden;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 7. تیترهای داخل صفحات
| |
| ========================================================= */
| |
| | |
| .law-page h1,
| |
| .law-page h2,
| |
| .law-page h3,
| |
| .law-page h4 {
| |
| overflow-wrap: break-word;
| |
| }
| |
| | |
| .law-page h2 {
| |
| line-height: 1.9;
| |
| }
| |
| | |
| .law-page h3 {
| |
| line-height: 2;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 8. لینکها
| |
| ========================================================= */
| |
| | |
| .law-page a {
| |
| overflow-wrap: break-word;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 9. جداول
| |
| ========================================================= */
| |
| | |
| .law-page table {
| |
| width: 100%;
| |
| max-width: 100%;
| |
| border-collapse: collapse;
| |
| }
| |
| | |
| .law-page td,
| |
| .law-page th {
| |
| overflow-wrap: break-word;
| |
| }
| |
| | |
| | |
| /* اگر جدول خیلی عریض باشد */
| |
| | |
| .law-page .wikitable {
| |
| display: block;
| |
| width: 100%;
| |
| overflow-x: auto;
| |
| -webkit-overflow-scrolling: touch;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 10. تستها
| |
| ========================================================= */
| |
| | |
| .wd-test {
| |
| width: 100%;
| |
| max-width: 100%;
| |
| }
| |
| | |
| .wd-test-question {
| |
| overflow-wrap: break-word;
| |
| }
| |
| | |
| .wd-test-option {
| |
| min-width: 0;
| |
| overflow-wrap: break-word;
| |
| }
| |
| | |
| .wd-test-answer {
| |
| max-width: 100%;
| |
| overflow-wrap: break-word;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 11. Sidebar
| |
| ========================================================= */
| |
| | |
| #mw-panel {
| |
| max-width: 100%;
| |
| }
| |
| | |
| .vector-menu-portal {
| |
| max-width: 100%;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 12. فرم جستجو
| |
| ========================================================= */
| |
| | |
| input,
| |
| textarea,
| |
| select,
| |
| button {
| |
| max-width: 100%;
| |
| }
| |
| | |
| input[type="search"],
| |
| input[type="text"] {
| |
| box-sizing: border-box;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 13. موبایل
| |
| حداکثر عرض 767px
| |
| ========================================================= */
| |
| | |
| @media screen and (max-width: 767px) {
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| بدنه
| |
| ----------------------------------------------------- */
| |
| | |
| body {
| |
| font-size: 16px;
| |
| overflow-x: hidden;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| محتوای اصلی
| |
| ----------------------------------------------------- */
| |
| | |
| .mw-body {
| |
| padding-left: 12px !important;
| |
| padding-right: 12px !important;
| |
| }
| |
| | |
| #content {
| |
| padding-left: 0 !important;
| |
| padding-right: 0 !important;
| |
| }
| |
| | |
| .mw-parser-output {
| |
| font-size: 16px;
| |
| line-height: 2.15;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| صفحه حقوقی
| |
| ----------------------------------------------------- */
| |
| | |
| .law-page {
| |
| font-size: 16px;
| |
| line-height: 2.15;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| تیترهای اصلی
| |
| ----------------------------------------------------- */
| |
| | |
| .law-page h1 {
| |
| font-size: 24px;
| |
| line-height: 1.8;
| |
| }
| |
| | |
| .law-page h2 {
| |
| font-size: 20px;
| |
| line-height: 1.9;
| |
| margin-top: 28px;
| |
| margin-bottom: 14px;
| |
| }
| |
| | |
| .law-page h3 {
| |
| font-size: 18px;
| |
| line-height: 1.9;
| |
| }
| |
| | |
| .law-page h4 {
| |
| font-size: 17px;
| |
| line-height: 1.9;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| جعبه ماده
| |
| ----------------------------------------------------- */
| |
| | |
| .law-article-box {
| |
| margin-top: 18px !important;
| |
| margin-bottom: 22px !important;
| |
| | |
| padding: 16px !important;
| |
| | |
| border-radius: 10px !important;
| |
| }
| |
| | |
| | |
| .law-article-number {
| |
| font-size: 18px !important;
| |
| }
| |
| | |
| | |
| .law-article-text {
| |
| font-size: 16px !important;
| |
| line-height: 2.3 !important;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| عنوان وضعیت ماده
| |
| ----------------------------------------------------- */
| |
| | |
| .law-article-box [style*="border-radius:16px"] {
| |
| font-size: 11px !important;
| |
| padding: 3px 9px !important;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| دکمههای قبل / فهرست / بعد
| |
| ----------------------------------------------------- */
| |
| | |
| .law-article-box [style*="justify-content:space-between"] {
| |
| gap: 6px !important;
| |
| }
| |
| | |
| .law-article-box [style*="justify-content:space-between"] > div {
| |
| font-size: 12px !important;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| شرح ماده
| |
| ----------------------------------------------------- */
| |
| | |
| .explanation-box {
| |
| margin-top: 22px !important;
| |
| margin-bottom: 22px !important;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| همه باکسهای محتوایی
| |
| ----------------------------------------------------- */
| |
| | |
| .related-laws-box,
| |
| .term-box,
| |
| .judgment-box,
| |
| .advisory-box,
| |
| .explanation-box {
| |
| margin-top: 22px !important;
| |
| margin-bottom: 22px !important;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| متن داخل باکسها
| |
| ----------------------------------------------------- */
| |
| | |
| .related-laws-box,
| |
| .term-box,
| |
| .judgment-box,
| |
| .advisory-box,
| |
| .explanation-box {
| |
| font-size: 15.5px;
| |
| line-height: 2.15;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| اصطلاحات
| |
| ----------------------------------------------------- */
| |
| | |
| .term-box {
| |
| padding-left: 0;
| |
| padding-right: 0;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| تستها
| |
| ----------------------------------------------------- */
| |
| | |
| .wd-test {
| |
| margin-top: 25px !important;
| |
| margin-bottom: 28px !important;
| |
| }
| |
| | |
| | |
| .wd-test-question {
| |
| font-size: 17px !important;
| |
| line-height: 2.2 !important;
| |
| }
| |
| | |
| | |
| .wd-test-source {
| |
| font-size: 11px !important;
| |
| margin-right: 4px !important;
| |
| }
| |
| | |
| | |
| .wd-test-option {
| |
| padding: 13px 13px !important;
| |
| | |
| font-size: 16px !important;
| |
| | |
| line-height: 2 !important;
| |
| | |
| min-height: 50px;
| |
| }
| |
| | |
| | |
| .wd-test-option::before {
| |
| margin-left: 9px;
| |
| font-size: 21px;
| |
| }
| |
| | |
| | |
| .wd-test-result-message {
| |
| font-size: 15px !important;
| |
| }
| |
| | |
| | |
| .wd-test-answer {
| |
| font-size: 15px !important;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| صفحه اصلی
| |
| ----------------------------------------------------- */
| |
| | |
| .wd-home {
| |
| width: 100%;
| |
| font-size: 16px;
| |
| }
| |
| | |
| | |
| /* هیرو */
| |
| | |
| .wd-hero {
| |
| width: 100% !important;
| |
| padding: 24px 16px !important;
| |
| margin-bottom: 24px !important;
| |
| }
| |
| | |
| | |
| .wd-hero-title {
| |
| font-size: 28px !important;
| |
| line-height: 1.7 !important;
| |
| }
| |
| | |
| | |
| .wd-hero-subtitle {
| |
| font-size: 15px !important;
| |
| line-height: 2 !important;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| جستجوی صفحه اصلی
| |
| ----------------------------------------------------- */
| |
| | |
| .wd-search-box {
| |
| width: 100% !important;
| |
| max-width: 100% !important;
| |
| margin-top: 18px !important;
| |
| }
| |
| | |
| | |
| .wd-search-box form {
| |
| width: 100% !important;
| |
| }
| |
| | |
| | |
| .wd-search-box input[type="search"],
| |
| .wd-search-box input[type="text"] {
| |
| width: 100% !important;
| |
| max-width: 100% !important;
| |
| min-height: 48px !important;
| |
| font-size: 16px !important;
| |
| }
| |
| | |
| | |
| .wd-search-box input[type="submit"],
| |
| .wd-search-box button {
| |
| min-height: 46px !important;
| |
| font-size: 15px !important;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| گریدهای صفحه اصلی
| |
| ----------------------------------------------------- */
| |
| | |
| .wd-main-grid,
| |
| .wd-popular-grid {
| |
| display: grid !important;
| |
| grid-template-columns: 1fr !important;
| |
| gap: 12px !important;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| کارتهای صفحه اصلی
| |
| ----------------------------------------------------- */
| |
| | |
| .wd-main-grid > *,
| |
| .wd-popular-grid > * {
| |
| width: 100% !important;
| |
| min-width: 0 !important;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| عنوان بخشهای صفحه اصلی
| |
| ----------------------------------------------------- */
| |
| | |
| .wd-section-title {
| |
| font-size: 19px !important;
| |
| line-height: 1.9 !important;
| |
| margin-top: 26px !important;
| |
| margin-bottom: 14px !important;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| اطلاعات پایین صفحه اصلی
| |
| ----------------------------------------------------- */
| |
| | |
| .wd-info-row {
| |
| display: grid !important;
| |
| grid-template-columns: 1fr !important;
| |
| gap: 12px !important;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| منوها
| |
| ----------------------------------------------------- */
| |
| | |
| .vector-menu-portal {
| |
| font-size: 15px;
| |
| }
| |
| | |
| | |
| .vector-menu-portal a {
| |
| line-height: 2;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| تصاویر
| |
| ----------------------------------------------------- */
| |
| | |
| .mw-parser-output img {
| |
| max-width: 100%;
| |
| height: auto;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| کدها
| |
| ----------------------------------------------------- */
| |
| | |
| pre,
| |
| code {
| |
| max-width: 100%;
| |
| overflow-x: auto;
| |
| }
| |
| | |
| | |
| pre {
| |
| font-size: 13px;
| |
| line-height: 1.8;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| نقلقول
| |
| ----------------------------------------------------- */
| |
| | |
| blockquote {
| |
| margin-left: 0;
| |
| margin-right: 0;
| |
| padding-left: 12px;
| |
| padding-right: 12px;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| لیستها
| |
| ----------------------------------------------------- */
| |
| | |
| .law-page ul,
| |
| .law-page ol {
| |
| padding-right: 24px;
| |
| padding-left: 0;
| |
| }
| |
| | |
| | |
| /* -----------------------------------------------------
| |
| جلوگیری از بزرگ شدن عرض صفحه
| |
| ----------------------------------------------------- */
| |
| | |
| .mw-parser-output > div,
| |
| .mw-parser-output > section {
| |
| max-width: 100%;
| |
| }
| |
| | |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 14. موبایل خیلی کوچک
| |
| حداکثر عرض 480px
| |
| ========================================================= */
| |
| | |
| @media screen and (max-width: 480px) {
| |
| | |
| | |
| body {
| |
| font-size: 16px;
| |
| }
| |
| | |
| | |
| .mw-parser-output {
| |
| font-size: 16px;
| |
| }
| |
| | |
| | |
| .law-page {
| |
| font-size: 16px;
| |
| }
| |
| | |
| | |
| /* عنوان ماده */
| |
| | |
| .law-article-number {
| |
| font-size: 17px !important;
| |
| }
| |
| | |
| | |
| /* متن ماده */
| |
| | |
| .law-article-text {
| |
| font-size: 16px !important;
| |
| line-height: 2.25 !important;
| |
| }
| |
| | |
| | |
| /* عنوان تست */
| |
| | |
| .wd-test-question {
| |
| font-size: 16px !important;
| |
| line-height: 2.2 !important;
| |
| }
| |
| | |
| | |
| /* منبع تست */
| |
| | |
| .wd-test-source {
| |
| font-size: 10.5px !important;
| |
| }
| |
| | |
| | |
| /* گزینهها */
| |
| | |
| .wd-test-option {
| |
| padding: 12px !important;
| |
| font-size: 15.5px !important;
| |
| line-height: 2 !important;
| |
| }
| |
| | |
| | |
| /* هیرو */
| |
| | |
| .wd-hero {
| |
| padding: 20px 14px !important;
| |
| }
| |
| | |
| | |
| .wd-hero-title {
| |
| font-size: 25px !important;
| |
| }
| |
| | |
| | |
| .wd-hero-subtitle {
| |
| font-size: 14px !important;
| |
| }
| |
| | |
| | |
| /* باکس ماده */
| |
| | |
| .law-article-box {
| |
| padding: 14px !important;
| |
| }
| |
| | |
| | |
| /* فاصلههای داخلی */
| |
| | |
| .law-page [style*="padding:22px"],
| |
| .law-page [style*="padding:24px"] {
| |
| padding: 16px !important;
| |
| }
| |
| | |
| | |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 15. تبلت
| |
| 768 تا 1023 پیکسل
| |
| ========================================================= */
| |
| | |
| @media screen and (min-width: 768px) and (max-width: 1023px) {
| |
| | |
| | |
| body {
| |
| font-size: 16px;
| |
| }
| |
| | |
| | |
| .mw-body {
| |
| padding-left: 24px !important;
| |
| padding-right: 24px !important;
| |
| }
| |
| | |
| | |
| .law-page {
| |
| font-size: 16px;
| |
| }
| |
| | |
| | |
| .law-article-text {
| |
| font-size: 16px;
| |
| line-height: 2.2;
| |
| }
| |
| | |
| | |
| .wd-main-grid {
| |
| grid-template-columns: repeat(2, 1fr) !important;
| |
| }
| |
| | |
| | |
| .wd-popular-grid {
| |
| grid-template-columns: repeat(2, 1fr) !important;
| |
| }
| |
| | |
| | |
| .wd-test-option {
| |
| font-size: 15px;
| |
| }
| |
| | |
| | |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 16. بهبود لمس در موبایل
| |
| ========================================================= */
| |
| | |
| @media (hover: none) and (pointer: coarse) {
| |
| | |
| a {
| |
| -webkit-tap-highlight-color: rgba(22, 132, 119, 0.12);
| |
| }
| |
| | |
| | |
| .wd-test-option {
| |
| min-height: 50px;
| |
| }
| |
| | |
| | |
| button,
| |
| input[type="submit"],
| |
| input[type="button"] {
| |
| min-height: 44px;
| |
| }
| |
| | |
| }
| |
| | |
| | |
| /* =========================================================
| |
| 17. جلوگیری از اسکرول افقی ناخواسته
| |
| ========================================================= */
| |
| | |
| @media screen and (max-width: 767px) {
| |
| | |
| #mw-page-base,
| |
| #mw-head-base,
| |
| #mw-head,
| |
| #content,
| |
| #footer,
| |
| .mw-body,
| |
| .mw-parser-output,
| |
| .law-page,
| |
| .wd-home {
| |
| max-width: 100vw;
| |
| }
| |
| | |
| }
| |
| | |
| /* =========================================================
| |
| ویکیداد — مخفی کردن Sidebar در موبایل
| |
| ========================================================= */
| |
| | |
| @media screen and (max-width: 767px) {
| |
| | |
| /* سایدبار اصلی Vector */
| |
| #mw-panel {
| |
| display: none !important;
| |
| }
| |
| | |
| /* جلوگیری از رزرو فضای سایدبار */
| |
| #content,
| |
| .mw-body,
| |
| .mw-workspace-container,
| |
| .mw-body-content {
| |
| margin-right: 0 !important;
| |
| margin-left: 0 !important;
| |
| }
| |
| | |
| /* محتوای اصلی تمام عرض */
| |
| #content {
| |
| width: 100% !important;
| |
| max-width: 100% !important;
| |
| }
| |
| | |
| .mw-body {
| |
| width: 100% !important;
| |
| max-width: 100% !important;
| |
| }
| |
| | |
| }
| |
| | |
| | |
| /* =========================================================
| |
| ویکیداد — فهرست مواد قوانین
| |
| ساختار:
| |
| قانون → فصل → مبحث → ماده
| |
| ========================================================= */
| |
| | |
| | |
| /* =========================================================
| |
| صفحه فهرست قانون
| |
| ========================================================= */
| |
| | |
| .wd-law-index {
| |
| direction: rtl;
| |
| text-align: right;
| |
| margin: 30px 0;
| |
| font-family: "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif;
| |
| color: #263238;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| سربرگ قانون
| |
| ========================================================= */
| |
| | |
| .wd-law-index-head {
| |
| padding: 22px 24px 20px;
| |
| background: #f4f8f7;
| |
| border: 1px solid #dfe7e5;
| |
| border-right: 6px solid #168477;
| |
| border-radius: 12px;
| |
| box-shadow: 0 3px 14px rgba(20, 60, 55, 0.05);
| |
| }
| |
| | |
| .wd-law-index-title {
| |
| font-size: 24px;
| |
| font-weight: 800;
| |
| color: #11695f;
| |
| line-height: 1.9;
| |
| }
| |
| | |
| .wd-law-index-description {
| |
| margin-top: 5px;
| |
| font-size: 14px;
| |
| color: #607d8b;
| |
| line-height: 2;
| |
| }
| |
| | |
| .wd-law-index-meta {
| |
| display: flex;
| |
| flex-wrap: wrap;
| |
| align-items: center;
| |
| gap: 8px;
| |
| margin-top: 15px;
| |
| font-size: 12px;
| |
| color: #687980;
| |
| }
| |
| | |
| .wd-law-index-meta > span:not(.wd-law-index-status) {
| |
| padding-left: 12px;
| |
| border-left: 1px solid #d5dfdc;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| وضعیت قانون
| |
| ========================================================= */
| |
| | |
| .wd-law-index-status {
| |
| display: inline-block;
| |
| padding: 3px 10px;
| |
| border-radius: 14px;
| |
| font-weight: bold;
| |
| line-height: 1.6;
| |
| }
| |
| | |
| .wd-law-index-status.معتبر {
| |
| background: #edf7f2;
| |
| border: 1px solid #c9e5d8;
| |
| color: #287653;
| |
| }
| |
| | |
| .wd-law-index-status.اصلاحشده {
| |
| background: #fff8e8;
| |
| border: 1px solid #ead9a9;
| |
| color: #80651f;
| |
| }
| |
| | |
| .wd-law-index-status.منسوخ {
| |
| background: #f9eeee;
| |
| border: 1px solid #e4c8c8;
| |
| color: #9a4545;
| |
| }
| |
| | |
| | |
| /* =========================================================
| |
| فصل
| |
| ========================================================= */
| |
| | |
| .wd-law-chapter {
| |
| margin: 34px 0 0;
| |
| }
| |
| | |
| .wd-law-chapter-clickable {
| |
| display: flex;
| |
| align-items: center;
| |
| justify-content: space-between;
| |
| gap: 15px;
| |
| | |
| width: 100%;
| |
| box-sizing: border-box;
| |
| | |
| padding: 15px 8px 14px;
| |
| | |
| border-top: 2px solid #168477;
| |
| border-bottom: 1px solid #dfe7e5;
| |
| | |
| text-decoration: none !important;
| |
| color: inherit !important;
| |
| | |
| cursor: pointer;
| |
| | |
| transition:
| |
| background 0.15s ease,
| |
| padding 0.15s ease;
| |
| }
| |
| | |
| .wd-law-chapter-clickable:hover {
| |
| background: #f6faf8;
| |
| padding-right: 14px;
| |
| padding-left: 2px;
| |
| }
| |
| | |
| .wd-law-chapter-main {
| |
| flex: 1;
| |
| min-width: 0;
| |
| }
| |
| | |
| .wd-law-chapter-title {
| |
| display: block;
| |
| | |
| font-size: 18px;
| |
| font-weight: 800;
| |
| | |
| color: #11695f;
| |
| | |
| line-height: 1.9;
| |
| }
| |
| | |
| .wd-law-chapter-description {
| |
| display: block;
| |
| | |
| margin-top: 3px;
| |
| | |
| font-size: 12px;
| |
| color: #7b898f;
| |
| | |
| line-height: 1.9;
| |
| }
| |
| | |
| .wd-law-chapter-arrow {
| |
| flex: 0 0 auto;
| |
| | |
| color: #9aa8ad;
| |
| font-size: 17px;
| |
| }
| |
| | |
| .wd-law-chapter-clickable:hover .wd-law-chapter-arrow {
| |
| color: #168477; | | color: #168477; |
| }
| |
|
| |
|
| |
| /* =========================================================
| |
| مبحث
| |
| ========================================================= */
| |
|
| |
| .wd-law-topic {
| |
| margin: 18px 0 0;
| |
| }
| |
|
| |
| .wd-law-topic-clickable {
| |
| display: flex;
| |
| align-items: center;
| |
| justify-content: space-between;
| |
| gap: 15px;
| |
|
| |
| width: 100%;
| |
| box-sizing: border-box;
| |
|
| |
| padding: 13px 16px;
| |
|
| |
| background: #f8f6f1;
| |
|
| |
| border: 1px solid #e5dfd2;
| |
| border-right: 4px solid #c49a3a;
| |
|
| |
| border-radius: 8px;
| |
|
| |
| text-decoration: none !important;
| |
| color: inherit !important;
| |
|
| |
| cursor: pointer;
| |
|
| |
| transition:
| |
| background 0.15s ease,
| |
| border-color 0.15s ease,
| |
| transform 0.15s ease;
| |
| }
| |
|
| |
| .wd-law-topic-clickable:hover {
| |
| background: #fbf9f4;
| |
| border-right-color: #a98128;
| |
| transform: translateX(-2px);
| |
| }
| |
|
| |
| .wd-law-topic-main {
| |
| flex: 1;
| |
| min-width: 0;
| |
| }
| |
|
| |
| .wd-law-topic-title {
| |
| display: block;
| |
|
| |
| font-size: 15px;
| |
| font-weight: 800;
| |
|
| |
| color: #765b1e;
| |
|
| |
| line-height: 1.9;
| |
| }
| |
|
| |
| .wd-law-topic-description {
| |
| display: block;
| |
|
| |
| margin-top: 2px;
| |
|
| |
| font-size: 12px;
| |
| color: #8a8175;
| |
|
| |
| line-height: 1.9;
| |
| }
| |
|
| |
| .wd-law-topic-arrow {
| |
| flex: 0 0 auto;
| |
|
| |
| color: #b29a67;
| |
| font-size: 15px;
| |
| }
| |
|
| |
| .wd-law-topic-clickable:hover .wd-law-topic-arrow {
| |
| color: #80651f;
| |
| }
| |
|
| |
|
| |
| /* =========================================================
| |
| سه ستون مواد
| |
| ========================================================= */
| |
|
| |
| .wd-law-items-grid {
| |
| display: grid !important;
| |
|
| |
| grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
| |
|
| |
| column-gap: 24px;
| |
| row-gap: 0;
| |
|
| |
| width: 100%;
| |
|
| |
| margin-top: 12px;
| |
| }
| |
|
| |
|
| |
| /* =========================================================
| |
| هر ماده
| |
| ========================================================= */
| |
|
| |
| .wd-law-items-grid > .wd-law-item {
| |
| display: block !important;
| |
|
| |
| width: 100%;
| |
| min-width: 0;
| |
|
| |
| margin: 0;
| |
| }
| |
|
| |
|
| |
| /* کل ردیف ماده */
| |
|
| |
| .wd-law-item-clickable {
| |
| display: flex;
| |
|
| |
| align-items: center;
| |
|
| |
| width: 100%;
| |
| min-height: 56px;
| |
|
| |
| box-sizing: border-box;
| |
|
| |
| gap: 9px;
| |
|
| |
| padding: 8px 3px;
| |
|
| |
| border-bottom: 1px solid #e7eceb;
| |
|
| |
| text-decoration: none !important;
| |
| color: inherit !important;
| |
|
| |
| cursor: pointer;
| |
|
| |
| transition:
| |
| background 0.15s ease,
| |
| padding 0.15s ease;
| |
| }
| |
|
| |
| .wd-law-item-clickable:hover {
| |
| background: #f7faf9;
| |
|
| |
| padding-right: 8px;
| |
| padding-left: 0;
| |
| }
| |
|
| |
|
| |
| /* شماره ماده */
| |
|
| |
| .wd-law-item-number {
| |
| flex: 0 0 54px;
| |
|
| |
| font-size: 13px;
| |
| font-weight: 800;
| |
|
| |
| color: #176c88;
| |
|
| |
| line-height: 1.8;
| |
|
| |
| white-space: nowrap;
| |
| }
| |
|
| |
|
| |
| /* بخش متن */
| |
|
| |
| .wd-law-item-text {
| |
| flex: 1;
| |
|
| |
| min-width: 0;
| |
|
| |
| display: block;
| |
| }
| |
|
| |
|
| |
| /* عنوان */
| |
|
| |
| .wd-law-item-title {
| |
| display: block;
| |
|
| |
| font-size: 13px;
| |
| font-weight: 700;
| |
|
| |
| color: #37474f;
| |
|
| |
| line-height: 1.8;
| |
|
| |
| white-space: nowrap;
| |
| overflow: hidden;
| |
| text-overflow: ellipsis;
| |
| }
| |
|
| |
|
| |
| /* خلاصه */
| |
|
| |
| .wd-law-item-summary {
| |
| display: block;
| |
|
| |
| font-size: 12px;
| |
|
| |
| color: #607d8b;
| |
|
| |
| line-height: 1.8;
| |
|
| |
| white-space: nowrap;
| |
| overflow: hidden;
| |
| text-overflow: ellipsis;
| |
| }
| |
|
| |
|
| |
| /* وضعیت ماده */
| |
|
| |
| .wd-law-item-status {
| |
| flex: 0 0 auto;
| |
|
| |
| padding: 2px 6px;
| |
|
| |
| border-radius: 10px;
| |
|
| |
| font-size: 9px;
| |
| font-weight: bold; | | font-weight: bold; |
|
| |
| line-height: 1.5;
| |
|
| |
| white-space: nowrap;
| |
| }
| |
|
| |
| .wd-law-item-status.معتبر {
| |
| background: #edf7f2;
| |
| color: #287653;
| |
| }
| |
|
| |
| .wd-law-item-status.اصلاحشده {
| |
| background: #fff8e8;
| |
| color: #80651f;
| |
| }
| |
|
| |
| .wd-law-item-status.منسوخ {
| |
| background: #f9eeee;
| |
| color: #9a4545;
| |
| }
| |
|
| |
|
| |
| /* فلش */
| |
|
| |
| .wd-law-item-arrow {
| |
| flex: 0 0 auto;
| |
|
| |
| color: #a8b3b6;
| |
|
| |
| font-size: 13px;
| |
| }
| |
|
| |
| .wd-law-item-clickable:hover .wd-law-item-arrow {
| |
| color: #168477;
| |
| }
| |
|
| |
|
| |
| /* =========================================================
| |
| حذف فاصله و بولتهای اضافی MediaWiki
| |
| ========================================================= */
| |
|
| |
| .wd-law-index-content ul {
| |
| margin: 0 !important;
| |
| padding: 0 !important;
| |
| list-style: none !important;
| |
| }
| |
|
| |
| .wd-law-index-content li {
| |
| margin: 0 !important;
| |
| padding: 0 !important;
| |
| list-style: none !important;
| |
| } | | } |
|
| |
|
|
| |
|
| /* ========================================================= | | /* ================================ |
| موبایل | | موبایل |
| ========================================================= */ | | ================================ */ |
|
| |
|
| @media screen and (max-width: 767px) { | | @media (max-width: 700px) { |
|
| |
|
| .wd-law-index { | | .wd-references ol { |
| margin: 20px 0;
| | grid-template-columns: 1fr; |
| }
| |
| | |
| .wd-law-index-head {
| |
| padding: 18px 16px;
| |
| border-right-width: 4px;
| |
| border-radius: 9px;
| |
| }
| |
| | |
| .wd-law-index-title {
| |
| font-size: 20px;
| |
| }
| |
| | |
| .wd-law-index-description {
| |
| font-size: 13px;
| |
| }
| |
| | |
| .wd-law-index-meta {
| |
| gap: 6px;
| |
| font-size: 11px;
| |
| }
| |
| | |
| .wd-law-chapter {
| |
| margin-top: 27px;
| |
| }
| |
| | |
| .wd-law-chapter-title {
| |
| font-size: 16px;
| |
| }
| |
| | |
| .wd-law-topic-title {
| |
| font-size: 14px;
| |
| }
| |
| | |
| /* موبایل = یک ستون */
| |
| | |
| .wd-law-items-grid {
| |
| grid-template-columns: 1fr !important; | |
| }
| |
| | |
| .wd-law-item-clickable {
| |
| min-height: 54px;
| |
| gap: 8px;
| |
| padding: 8px 3px;
| |
| }
| |
| | |
| .wd-law-item-number {
| |
| flex-basis: 55px;
| |
| font-size: 12px;
| |
| }
| |
| | |
| .wd-law-item-title {
| |
| font-size: 13px;
| |
| } | | } |
|
| |
|
| .wd-law-item-summary {
| |
| font-size: 11px;
| |
| }
| |
|
| |
| .wd-law-item-status {
| |
| display: none;
| |
| }
| |
|
| |
| }
| |
|
| |
| .wd-breadcrumb {
| |
| direction: rtl;
| |
| display: flex;
| |
| align-items: center;
| |
| flex-wrap: wrap;
| |
| gap: 8px;
| |
| margin: -4px 0 12px;
| |
| padding: 6px 0;
| |
| font-family: "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif;
| |
| }
| |
|
| |
| .wd-breadcrumb-item,
| |
| .wd-breadcrumb-current {
| |
| display: inline-block;
| |
| padding: 6px 12px;
| |
| background: #ffffff;
| |
| border: 1px solid #cfded9;
| |
| border-radius: 7px;
| |
| font-size: 12px;
| |
| line-height: 1.7;
| |
| box-shadow: 0 1px 4px rgba(20, 60, 55, 0.04);
| |
| }
| |
|
| |
| .wd-breadcrumb-item a {
| |
| color: #28706a !important;
| |
| text-decoration: none !important;
| |
| font-weight: 600;
| |
| }
| |
|
| |
| .wd-breadcrumb-item:hover {
| |
| background: #f1f7f4;
| |
| border-color: #8fb9ae;
| |
| }
| |
|
| |
| .wd-breadcrumb-arrow {
| |
| color: #8b9995;
| |
| font-size: 13px;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| .wd-breadcrumb-current {
| |
| background: #e5f0ec;
| |
| border-color: #a9c9c0;
| |
| color: #245b55;
| |
| font-weight: 800;
| |
| }
| |
|
| |
| /* کاهش فاصلههای ناخواسته اطراف Breadcrumb */
| |
| .wd-breadcrumb {
| |
| margin: 0 !important;
| |
| padding: 0 !important;
| |
| }
| |
|
| |
| .wd-breadcrumb-item,
| |
| .wd-breadcrumb-current {
| |
| margin: 0 !important;
| |
| }
| |
|
| |
| .wd-breadcrumb-arrow {
| |
| margin: 0 !important;
| |
| } | | } |