[ Root System Explorer ]
Location:
Root
/
var
/
www
/
vhosts
/
wdi.co.th
/
dev.wdi.co.th
/
css
+ Folder
+ File
Upload
Editing: News-mainpage.css
.container-news-page { max-width: 100%; width: 100% !important; padding: 0 40px; } .news-layout { display: flex; flex-wrap: wrap; gap: 40px; } /* Tablet / iPad เท่านั้น */ @media (min-width: 768px) and (max-width: 1366px) { .sidebar { flex: 0 0 100px !important; max-width: 100px !important; } .news-img { max-width: 20vh !important; width: 100%; } } .sidebar { flex: 0 0 280px; max-width: 250px; background-color: transparent; } .sidebar .search-box { background-color: #e3e3e3; padding: 10px 15px; border-radius: 5px; margin-bottom: 20px; display: flex; align-items: center; } .sidebar .search-box input { border: none; background: transparent; outline: none; width: 100%; margin-left: 10px; } .sidebar .categories-title { font-weight: 700; font-size: 20px; margin-bottom: 10px; color: #000000 } .sidebar ul { list-style: none; padding: 0; margin: 0; } .sidebar li { padding: 8px 0; border-bottom: 1px solid #eee; } .sidebar a { color: #ff6600; text-decoration: none; font-weight: 500; } .news-content-area { flex: 1; min-width: 0; } /* ยืม CSS ที่เราทำก่อนหน้า */ .news-entry { display: flex; align-items: flex-start; gap: 20px; margin-top:1.5rem; padding: 5px; } .news-date { background-color: #8BC500; color: white; text-align: center; font-weight: bold; padding: 10px 15px; border-radius: 4px; min-width: 60px; } .news-date .day { font-size: 22px; } .news-date .month-year { font-size: 14px; } .news-img { max-width: 30vh; width: 100%; border-radius: 4px; object-fit: cover; } .news-text { flex: 1; } .news-title { font-weight: 800; font-size: 20px; margin-bottom: 5px; color: #000000; } .news-category { font-size: 14px; color: #8BC500; font-weight: 600; margin-bottom: 8px; } .news-content { font-size: 15px; color: #272727 } @media (max-width: 768px) { .news-layout { flex-direction: column; } .sidebar { max-width: 100%; } .news-entry { flex-direction: inherit; display: contents; } .news-img { max-width: 100%; } .news-date { width: fit-content; } } .news-img-detail { width: 100%; max-height: 300px; object-fit: contain; margin-bottom: 10px; border-radius: 8px; } /* 📱 Mobile + 📱 Tablet / iPad */ @media (max-width: 1366px) { /* ระยะขอบบนล่างของทั้งหน้า */ .container-news-page { padding-top: 20px !important; padding-bottom: 30px !important; } /* ระยะห่างแต่ละข่าว */ .news-entry { margin-top: 20px !important; margin-bottom: 20px !important; padding-bottom: 15px; border-bottom: 1px solid #eee; } /* เว้นรูปกับข้อความ */ .news-img { margin-bottom: 12px; } /* เว้นระยะข้อความ */ .news-text { padding-bottom: 10px; } }
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