<p> </p> <style> body { margin: 0; padding: 0; /* overflow: hidden; / / این خط حذف…
- User
.iframe-container { position: relative; width: 100%; height: 100vh; overflow: hidden; }
iframe { width: 100%; height: calc(100% + 529px); /* 14cm تبدیل به پیکسل / border: none; display: none; position: relative; top: -302px; / 8cm تبدیل به پیکسل */ }
.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; }
.description-button-top, .code-preview-button-top { display: block; width: 150px; color: white; text-align: center; padding: 10px; border-radius: 5px; cursor: pointer; font-size: 14px; transition: background-color 0.3s; position: fixed; top: 10px; z-index: 10001; text-decoration: none; }
.description-button-top { background-color: #546e7a; left: 10px; }
.code-preview-button-top { background-color: #4CAF50; right: 10px; }
.modal { display: none; position: fixed; z-index: 10002; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); overflow: auto; }
.modal-content { background-color: #fefefe; margin: 5% auto; padding: 20px; border: 1px solid #888; width: 90%; max-width: 900px; text-align: center; border-radius: 5px; position: relative; }
.modal-content h2 { margin-top: 0; }
.code-area { width: 100%; height: 300px; margin: 10px 0; padding: 10px; font-family: 'Courier New', Courier, monospace; direction: ltr; text-align: left; resize: vertical; font-size: 14px; background-color: #2d2d2d; color: #f8f8f2; border: 1px solid #444; border-radius: 5px; position: relative; }
/* افزودن آیکون به کادر کد */ .code-area::before { content: '💻'; position: absolute; top: 10px; left: 10px; font-size: 20px; }
.code-area::placeholder { color: #bbb; padding-left: 30px; /* فاصله برای آیکون */ }
.preview-area { width: 100%; height: 400px; margin: 10px 0; border: 1px solid #ccc; overflow: auto; background: white; }
.modal-button { margin: 5px; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; color: white; }
.preview-btn { background-color: #2196F3; }
.close-btn { background-color: #f44336; }
@media (max-width: 768px) { .description-button-top, .code-preview-button-top { width: 120px; padding: 8px; font-size: 12px; }
- Assistant