[ Root System Explorer ]
Location:
Root
/
var
/
www
/
vhosts
/
wdi.co.th
/
dev.wdi.co.th
/
css
+ Folder
+ File
Upload
Editing: Home-Page.css
body { font-family: 'Barlow', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; background-color: #f8f8f8; } .carousel-container { width: 100%; height: 100%; overflow: hidden; position: relative; margin: 0 auto; max-width: 100%; } .carousel-slides { display: flex; transition: transform 0.5s ease; height: 100%; } .carousel-slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; overflow: hidden; max-width: 100%; z-index: 0; } .carousel-slide img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); max-height: 100%; } @media (max-width: 768px) { .carousel-slide img { max-width: 100%; height: 180px; margin: 0 auto; object-fit: cover; object-position: center; } } @media (max-width: 768px) { .carousel-container { width: 100%; height: 20vh; overflow: hidden; position: relative; margin: 0 auto; max-width: 100%; } } .carousel-buttons { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); padding: 0 10px; box-sizing: border-box; } .carousel-buttons button { background-color: rgba(0, 0, 0, 0.5); border: none; color: white; font-size: 24px; cursor: pointer; border-radius: 50%; width: 40px; height: 40px; } .carousel-dots { position: absolute; bottom: 15px; /* ระยะจากขอบล่างของรูป */ width: 100%; text-align: center; pointer-events: auto; user-select: none; z-index: 10; } .carousel-dots .dot { display: inline-block; width: 12px; height: 12px; margin: 0 6px; background-color: rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer; transition: background-color 0.3s ease; border: 1px solid #fff; } .carousel-dots .dot.active { background-color: rgba(242, 0, 0, 0.9); border-color: #fff; } .qr-code-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; justify-content: center; max-width: 100%; margin: 0 auto; } .qr-code-item { display: flex; justify-content: center; align-items: center; } .qr-code-item img { width: 120px; height: auto; border: 1px solid #ccc; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); transition: transform 0.3s; } .qr-code-item img:hover { transform: scale(1.05); cursor: pointer; } .container.custom-narrow { padding-left: 10px !important; padding-right: 10px !important; padding-top: 10px !important; padding-bottom: 10px !important; max-width: 100% !important; } .news-carousel-container, .qrproductcatalogue, .qrproductcatalogue01 { width: 100%; height: 55vh; overflow-y: auto; padding: 10px; border-radius: 12px; border: 3px solid #e0e0e0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); box-sizing: border-box; /* ลบ margin-left และ margin-top */ } .news-carousel-slides { width: 100%; } .news-slide { display: none; height: 100%; } .news-slide.active { display: block; } .news-slide-img { width: 100%; height: 40vh; object-fit: cover; border-radius: 8px; } .news-carousel-prev, .news-carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.7); border: none; font-size: 1.5rem; padding: 5px 12px; cursor: pointer; border-radius: 50%; z-index: 10; transition: background-color 0.2s; } .news-carousel-prev:hover, .news-carousel-next:hover { background-color: rgba(255, 0, 0, 0.6); color: white; } .news-carousel-prev { left: 10px; } .news-carousel-next { right: 10px; } .news-dots { margin-top: 10px; } .news-dot { display: inline-block; height: 10px; width: 10px; margin: 0 4px; background-color: gray; border-radius: 50%; cursor: pointer; transition: background-color 0.3s; } .news-dot.active { background-color: red; } .product-slide { display: none; transition: opacity 0.5s ease-in-out; } .product-slide.active { display: block; } .product-dot { display: inline-block; width: 12px; height: 12px; background-color: #ccc; border-radius: 50%; margin: 0 4px; cursor: pointer; transition: background-color 0.3s; } .product-dot.active { background-color: #007bff; } .swal2-popup.swal-news-detail-popup { width: 90% !important; max-width: 90vw !important; font-family: 'Kanit', sans-serif; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); padding: 30px; } .swal2-popup.swal-news-detail-popup .swal2-title { font-size: 2em; color: #2c3e50; margin-bottom: 20px; text-align: center; font-weight: bold; } /* สไตล์สำหรับรูปภาพข่าวหลัก */ .swal2-popup.swal-news-detail-popup .swal2-image { max-width: 80% !important; /* ใช้ 80% ของ SweetAlert popup */ height: auto; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); margin-bottom: 25px; /* เพิ่มระยะห่างด้านล่าง */ object-fit: contain; /* ให้รูปภาพแสดงครบไม่โดนตัด */ } /* สไตล์สำหรับเนื้อหาข่าว */ .swal2-popup.swal-news-detail-popup .swal2-html-container p { color: #34495e; margin-bottom: 1px; /* เพิ่มระยะห่างด้านล่าง */ } .swal2-popup.swal-news-detail-popup .swal2-html-container strong { color: #1a2c3a; /* สีเข้มขึ้นสำหรับข้อความตัวหนา */ } /* สไตล์สำหรับ container ของรูปภาพรายละเอียด (หลายรูป) */ .swal2-popup.swal-news-detail-popup .news-detail-images-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; /* เพิ่มช่องว่างระหว่างรูปภาพ */ margin-top: 25px; padding: 10px; border: 1px solid #ecf0f1; /* เพิ่มเส้นขอบบางๆ */ border-radius: 8px; background-color: #fcfcfc; } /* สไตล์สำหรับรูปภาพรายละเอียดแต่ละรูป */ .swal2-popup.swal-news-detail-popup .news-detail-images-container img { width: 180px; /* กำหนดความกว้างคงที่ (ปรับได้) */ height: 120px; /* กำหนดความสูงคงที่ (ปรับได้) */ object-fit: cover; /* ทำให้รูปภาพเต็มพื้นที่โดยไม่เสียสัดส่วน */ border-radius: 8px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); transition: transform 0.2s ease-in-out; /* เพิ่ม animation ตอน hover */ } .swal2-popup.swal-news-detail-popup .news-detail-images-container img:hover { transform: scale(1.05); /* ขยายเล็กน้อยเมื่อเมาส์ชี้ */ } /* สไตล์สำหรับปุ่มปิด */ .swal2-popup.swal-news-detail-popup .swal2-confirm { background-color: #3498db !important; /* สีฟ้า */ color: white !important; border-radius: 8px !important; font-size: 1.1em !important; padding: 10px 25px !important; margin-top: 25px !important; transition: background-color 0.3s ease; } .swal2-popup.swal-news-detail-popup .swal2-confirm:hover { background-color: #2980b9 !important; /* สีเข้มขึ้นเมื่อ hover */ } /* สไตล์สำหรับข้อความ "ไม่มีรูปภาพเพิ่มเติม" */ .swal2-popup.swal-news-detail-popup .swal2-html-container p:has(+ .news-detail-images-container) { text-align: center; font-style: italic; color: #7f8c8d; } /* --- การปรับแต่งสำหรับหน้าจอขนาดเล็ก (Responsive) --- */ @media (max-width: 768px) { .swal2-popup.swal-news-detail-popup { width: 95vw !important; /* กว้างเกือบเต็มจอสำหรับมือถือ */ padding: 20px; } .swal2-popup.swal-news-detail-popup .swal2-title { font-size: 1.5em; } .swal2-popup.swal-news-detail-popup .swal2-image { max-width: 90% !important; } .swal2-popup.swal-news-detail-popup .swal2-html-container p { font-size: 1em; } .swal2-popup.swal-news-detail-popup .news-detail-images-container img { width: 100px; /* ลดขนาดรูปภาพรายละเอียดสำหรับมือถือ */ height: 70px; } } .product-slide-img { width: 100%; height: 40vh; object-fit: cover; border-radius: 8px; } .AWARD-slide { display: none; transition: opacity 0.5s ease-in-out; } .AWARD-slide.active { display: block; } .AWARD-slide-img { width: 100%; height: 40vh; object-fit: cover; border-radius: 8px; } .AWARD-dot { display: inline-block; height: 10px; width: 10px; margin: 0 4px; background-color: gray; border-radius: 50%; cursor: pointer; transition: background-color 0.3s; } .AWARD-dot.active { background-color: red; } .AWARD-dots { margin-top: 10px; } /* เพิ่ม CSS นี้ */ .certificate-image-section { flex: 0 0 auto; max-width: 300px; width: 100%; position: relative; } .certificate-carousel { position: relative; overflow: hidden; /* สำคัญมาก - ซ่อนรูปที่เกิน */ border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); } .certificate-slides { display: flex; /* สำคัญ - ให้รูปเรียงแนวนอน */ transition: transform 0.5s ease-in-out; } .certificate-slide { min-width: 100%; /* สำคัญ - แต่ละรูปกินพื้นที่ 100% */ flex-shrink: 0; /* ป้องกันรูปหด */ } .img-Certificate-left { width: 100%; height: auto; display: block; } /* Navigation Buttons */ .carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; z-index: 10; transition: background 0.3s; } .carousel-nav:hover { background: rgba(0,0,0,0.8); } .carousel-nav.prev { left: 10px; } .carousel-nav.next { right: 10px; } /* Dots */ .certificate-dots { display: flex; justify-content: center; gap: 10px; margin-top: 15px; } .certificate-dot { width: 12px; height: 12px; border-radius: 50%; background: #ccc; cursor: pointer; transition: all 0.3s; } .certificate-dot.active { background: #007bff; width: 30px; border-radius: 6px; } .certificate-dot:hover { background: #999; } /* Container */ .certificate-container-center { max-width: 900px; margin: 0 auto; background: white; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: flex; gap: 30px; align-items: center; flex-wrap: wrap; } .banner-container-center { max-width: 130vh; margin: 0 auto; background: white; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: flex; gap: 30px; align-items: center; flex-wrap: wrap; } /* Text Section */ .certificate-text { flex: 1; min-width: 300px; } .certificate-text h2 { color: #333; margin-bottom: 20px; font-size: 24px; border-bottom: 3px solid #007bff; padding-bottom: 10px; } .certificate-text ul { list-style: none; padding: 0; margin: 0; } .certificate-text ul li { padding: 12px 0; color: #555; font-size: 16px; border-bottom: 1px solid #eee; position: relative; padding-left: 25px; } .certificate-text ul li:before { content: "✓"; position: absolute; left: 0; color: #28a745; font-weight: bold; font-size: 18px; } .certificate-text ul li:last-child { border-bottom: none; } .zoom-btnhomepage { position: absolute; bottom: 10px; right: 10px; width: 60px; height: 60px; background: rgba(255,255,255,0.9); border: none; border-radius: 50%; cursor: pointer; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; } .zoom-btnhomepage:hover { transform: scale(1.1); background: #000; } /* 🔍 วงแว่น */ .zoom-btnhomepage { position: relative; width: 24px; /* 🔥 ขยาย icon */ height: 24px; border: 3px solid #333; border-radius: 50%; } /* ด้ามจับ */ .zoom-btnhomepage::after { content: ''; position: absolute; width: 8px; height: 2px; background: #333; bottom: -4px; right: -5px; transform: rotate(45deg); } /* เครื่องหมาย + */ .zoom-btnhomepage::before { content: ''; position: absolute; width: 8px; height: 2px; background: #333; top: 6px; left: 2px; box-shadow: 0 -3px 0 #333, 0 3px 0 #333; } /* hover ให้ icon เปลี่ยนสี */ .zoom-btnhomepage:hover .zoom-icon, .zoom-btnhomepage:hover .zoom-icon::before, .zoom-btnhomepage:hover .zoom-icon::after { border-color: #fff; background: #fff; }
SAVE CHANGES
[ CANCEL ]
Name
Type
Actions
.. (Parent Directory)
📄 Home-Page.css
FILE
Ren
[EDIT]
DEL
📄 News-mainpage.css
FILE
Ren
[EDIT]
DEL
📁 images/
DIR
Ren
DEL
📁 images_reward/
DIR
Ren
DEL
📄 view-proStyle.css
FILE
Ren
[EDIT]
DEL