@font-face { font-family: "vazir"; src: url("/vazir/Vazirmatn-Regular.woff2"); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: "vazir"; src: url("/vazir/Vazirmatn-Medium.woff2"); font-weight: 500; font-style: normal; font-display: swap; } @font-face { font-family: "vazir"; src: url("/vazir/Vazirmatn-Bold.woff2"); font-weight: 700; font-style: normal; font-display: swap; } @font-face { font-family: "vazir"; src: url("/vazir/Vazirmatn-SemiBold.woff2"); font-weight: 600; font-style: normal; font-display: swap; } @font-face { font-family: "vazir"; src: url("/vazir/Vazirmatn-Light.woff2"); font-weight: 300; font-style: normal; font-display: swap; } :root { font-family: vazir, system-ui, Avenir, Helvetica, Arial, sans-serif; line-height: 1.5; color-scheme: light dark; color: rgba(255, 255, 255, 0.87); background-color: #242424; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } * { box-sizing: border-box; } body { background-color: #fff; min-height: 92vh; overflow: hidden; /* جلوگیری از اسکرول کل صفحه */ margin: 0; padding: 0; } .mainBox { background-color: #373fd6; color: #fff; text-align: center; height: 50px; display: flex; align-items: center; justify-content: space-between; font-size: 2rem; padding: 0 24px; } /* تنظیم ارتفاع کلی صفحه با کسر نوارهای تلویزیون */ .contentBox { width: 100%; height: calc(100vh - 60px); display: flex; flex-direction: column; gap: 5px; box-sizing: border-box; /* حتما اضافه شود */ padding: 10px; } .contentBoxRow { background-color: #d9dbfc; width: 100%; height: 100%; /* مهم: این خط اضافه شد تا فرزندان کنار هم قرار بگیرند */ display: flex; align-items: center; /* عمودی وسط چین */ gap: 20px; /* فاصله بین دایره وضعیت و اسلایدر */ overflow: hidden; min-height: 0; /* بسیار مهم برای فیکس شدن ارتفاع در فلکس */ flex: 1; } /* استایل باکس وضعیت (دایره سمت راست) */ .statusBox { /* ارتفاع را خودکار بگذارید تا توسط فلکس کنترل شود یا 100% */ height: 100%; display: flex; align-items: center; justify-content: center; /* اگر می‌خواهید عرض ثابت داشته باشد */ flex-shrink: 0; width: 180px; } /* استایل دایره وضعیت */ .status { border-radius: 50%; background-color: #a2a6f7; /* جایگزین aspect-ratio برای تلویزیون */ width: 160px; height: 160px; text-align: center; color: #373fd6; font-size: 2rem; font-weight: bold; /* جایگزین place-items برای تلویزیون */ display: flex; justify-content: center; align-items: center; padding: 0 8px; box-sizing: border-box; word-wrap: break-word; /* برای شکستن کلمات طولانی */ } /* استایل ردیف اطلاعات (اسلایدر) */ .infoRow { flex: 1; /* باقی فضای خالی را پر کند */ height: 100%; overflow: hidden; position: relative; } .infoBox { background-color: white; border: 1px solid #ccc; height: 100%; border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-direction: column; } .info-row-1 { display: flex; align-items: center; justify-content: center; column-gap: 3px; } .info-row-1 span:first-child { font-size: 16px; color: #575656; } .info-row-1 span:nth-child(2) { font-size: 18px; direction: ltr !important; color: #000; } /* CLASSES */ .container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1rem; } .grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; } .col-1 { grid-column: span 1; } .col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-9 { grid-column: span 9; } .col-10 { grid-column: span 10; } .col-11 { grid-column: span 11; } .col-12 { grid-column: span 12; } @media screen and (max-width: 1024px) { /* .mainBox { font-size: 20px; } */ /* .contentBox { grid-template-rows: repeat(4, minmax(0, 1fr)) !important; gap: 4px !important; } */ /* .status { font-size: 1.2rem; width: 90px; } */ .info-row-1 span:first-child { font-size: 13px; color: #575656; } .info-row-1 span:nth-child(2) { font-size: 14px; direction: ltr !important; color: #000; } } .infoRow .swiper { width: 90% !important; height: 100% !important; z-index: 40; } .swiper .swiper-button-prev svg { color: #000; width: 30px !important; height: 30px !important; } .infoRow .infoSliderNavigation { position: absolute; width: 100%; height: 100%; z-index: 10; display: flex; align-items: center; justify-content: space-between; } #infoSliderNavigationNext { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); cursor: pointer; } #infoSliderNavigationPrev { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); cursor: pointer; } #infoSliderNavigationPrev svg { transform: rotate(-180deg) !important; }