o1-mini-2024-09-12· OpenAI
WildChat-4.8M (AI2)
<p> </p> <style> /* تنظیمات پایه برای body و html / html, body { margin: 0;…
- User
/* متغیر CSS برای ارتفاع نمایشگر */ :root { --vh: 100%; } /* حالت عادی */ .iframe-container.normal { position: relative; width: 100%; height: 100vh; overflow: hidden; } .iframe-container.normal iframe { width: 100%; height: 100%; border: none; display: none; position: relative; top: 0; } /* حالت تمام صفحه */ .iframe-container.fullscreen { position: fixed; top: 0; left: 0; width: 100%; height: calc(var(--vh) * 100); /* استفاده از متغیر --vh */ overflow: hidden; /* مخفی کردن بخشهای اضافی */ z-index: 1; /* ترتیب نمایش */ } .iframe-container.fullscreen iframe { position: absolute; top: -192.75px; /* پنهان کردن ۵.۱ سانتیمتر بالای صفحه (192.75px) */ left: 0; width: 100%; height: calc((var(--vh) * 100) + 192.75px + 38px); /* افزایش ارتفاع iframe به اندازه ۵.۱ سانتیمتر بالا و ۱ سانتیمتر پایین */ border: none; display: block; } /* استایلهای مشترک */ .loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 10000; } .loading-message { margin-bottom: 20px; font-size: 18px; } .progress { width: 80%; max-width: 400px; height: 20px; background-color: #ddd; border-radius: 5px; overflow: hidden; } .progress-bar { height: 100%; width: 0; background-color: #4caf50; transition: width 1s; } .error-message { display: none; color: red; margin-top: 20px; font-size: 16px; text-align: center; } #retryButton { display: none; margin-top: 10px; padding: 10px 20px; font-size: 16px; cursor: pointer; background-color: #4caf50; color: white; border: none; border-radius: 5px; } /* استایل پنجره سفارشی (modal) */ .modal { display: none; position: fixed; z-index: 10002; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); } .modal-content { background-color: #fefefe; margin: 15% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 500px; text-align: center; border-radius: 5px; } .modal-button { margin-top: 20px; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; } .cancel-btn { background-color: #f44336; color: white; } .image-container { display: flex; flex-wrap: wrap; justify-content: center; } .image-item { margin: 10px; text-align: center; } .image-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; margin-bottom: 5px; } .image-item button { background-color: #4CAF50; color: white; padding: 5px 10px; border: none; border-radius: 5px; cursor: pointer; font-size: 12px; } .image-item button:hover { background-color: #45a049; } @media (max-width: 768px) { /* تنظیمات واکنشگرا برای عناصر دیگر در صورت نیاز */ } @keyframes pulse { 0% { transform: translateY(-50%) scale(1); } 50% { transform: translateY(-50%) scale(1.1); } 100% { transform: translateY(-50%) scale(1); } } /* Overlay برای مخفی کردن بخشهای اضافی */ .overlay-top { position: fixed; top: 0; left: 0; width: 100%; height: 192.75px; /* ارتفاع ۵.۱ سانتیمتر (192.75px) */ background-color: transparent; /* رنگ پسزمینه شفاف */ z-index: 900; /* زیر iframe-container */ pointer-events: none; /* اجازه دادن به اسکرول از طریق iframe */ display: none; /* مخفی در حالت عادی */ } .overlay-bottom { position: fixed; bottom: 0; left: 0; width: 100%; height: 38px; /* ارتفاع ۱ سانتیمتر (38px) */ background-color: transparent; /* رنگ پسزمینه شفاف */ z-index: 900; /* زیر iframe-container */ pointer-events: none; /* اجازه دادن به اسکرول از طریق iframe */ display: none; /* مخفی در حالت عادی */ } </style> - Assistant
در این سایت:
- بالا: ۵٫۱ سانتیمتر مخفی شده است.
- پایین: ۱ سانتیمتر مخفی شده است.