Jump to content

MediaWiki:Common.css: Difference between revisions

From VanuatuBook
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Main Container: Full Width */
/* ======= MAIN CONTAINER ======= */
.main-container {
.main-container {
     width: `00%;
     width: 100%;
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0;
}
}


/* HERO SECTION (Full-width, centered) */
/* ======= HERO SECTION (Full-width, centered) ======= */
.hero-section {
.hero-section {
     width: 95%;
     width: 100%;
     padding: 40px 20px;
     padding: 30px 15px; /* Tối ưu cho mobile */
     background: #fdf5e6;
     background: linear-gradient(135deg, #ffefd5, #ffe4b5);
     text-align: center;
     text-align: center;
     border-bottom: 2px solid #ddd;
     border-bottom: 3px solid #ffcc80;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    max-width: 100%;
}
}
.hero-title {
.hero-title {
     font-size: 28px;
     font-size: 24px; /* Giảm size để cân đối trên mobile */
     font-weight: bold;
     font-weight: bold;
     color: #333;
     color: #333;
     margin-bottom: 10px;
     margin-bottom: 10px;
    word-wrap: break-word;
}
}


/* Middle Section (Using CSS Grid) */
.hero-section p {
    font-size: 16px; /* Nội dung gọn hơn trên mobile */
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.5;
}
 
/* ======= MIDDLE SECTION (Using CSS Grid) ======= */
.middle-section {
.middle-section {
     display: grid;
     display: grid;
     grid-template-columns: 1fr; /* Default: 1 column on mobile */
     grid-template-columns: 1fr; /* 1 column trên mobile */
     gap: 20px;
     gap: 20px;
     width: 100%;
     width: 100%;
Line 31: Line 44:
}
}


/* Ensure All Columns Have Equal Width */
/* COLUMNS */
.middle-section .column {
.middle-section .column {
     width: 100%;
     width: 100%;
     padding: 20px;
     padding: 20px;
    border: 1px solid #ddd;
     border-radius: 12px;
     border-radius: 8px;
     background: #fff;
     background: #fff;
     text-align: left;
     text-align: left;
     box-sizing: border-box;
     box-sizing: border-box;
     box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
     box-shadow: 0 3px 8px rgba(0,0,0,0.1);
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     justify-content: space-between;
     justify-content: flex-start;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
}
}


/* Custom Icons for Sections - Fixing the Duplicate Issue */
/* Hover effect */
.middle-section .column:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    background: #fafafa;
}
 
/* ======= ICONS ======= */
.icon {
    font-size: 30px;
    text-align: center;
    margin-bottom: 5px;
}
 
/* ======= SECTION TITLE ======= */
.section-title {
.section-title {
     font-size: 22px;
     font-size: 18px;
     font-weight: bold;
     font-weight: bold;
     color: #333;
     color: #444;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    display: inline-block;
     margin-bottom: 10px;
     margin-bottom: 10px;
    text-transform: uppercase;
    position: relative;
    padding-left: 35px;
}
}


/* Assign Unique Icons to Each Section */
/* Hiệu ứng gạch chân tinh tế dưới tiêu đề */
.personal-icon::before {
.section-title::after {
     content: "";
     content: "";
     position: absolute;
     display: block;
     left: 10px;
     width: 40px;
    height: 3px;
    background-color: #ff9800;
    margin: 5px auto;
    border-radius: 3px;
}
}
.national-icon::before {
 
    content: "❤️";
/* ======= SECTION CONTENT ======= */
    position: absolute;
.section-content {
    left: 10px;
     text-align: left;
}
     width: 100%;
.global-icon::before {
     content: "🌎";
     position: absolute;
    left: 10px;
}
}


/* Footer Section */
/* ======= FOOTER SECTION ======= */
.footer-section {
.footer-section {
     width: 100%;
     width: 100%;
Line 82: Line 112:
     text-align: center;
     text-align: center;
     box-sizing: border-box;
     box-sizing: border-box;
    border-radius: 5px;
}
}


/* Responsive Design: Ensure Equal Width Columns */
/* ======= RESPONSIVE DESIGN ======= */
@media screen and (min-width: 768px) {
@media screen and (min-width: 768px) {
     .middle-section {
     .middle-section {
         grid-template-columns: repeat(3, 1fr);
         grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 768px) {
    .hero-section {
        padding: 20px 10px; /* Giảm padding thêm cho mobile */
    }
   
    .hero-title {
        font-size: 22px; /* Giảm thêm một chút cho màn hình nhỏ */
    }
    .hero-section p {
        font-size: 14px;
        max-width: 100%;
    }
}
/* Đảm bảo logo hiển thị đúng */
#p-logo {
    max-width: 100%;
    height: auto;
    display: block;
}
/* Đảm bảo logo không bị mất trên mobile */
@media screen and (max-width: 768px) {
    #p-logo a {
        display: flex;
        justify-content: center;
        align-items: center;
    }
   
    #p-logo img {
        max-width: 150px; /* Điều chỉnh kích thước logo cho mobile */
        height: auto;
        display: block;
        margin: 0 auto;
     }
     }
}
}

Latest revision as of 11:17, 20 March 2025

/* ======= MAIN CONTAINER ======= */
.main-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ======= HERO SECTION (Full-width, centered) ======= */
.hero-section {
    width: 100%;
    padding: 30px 15px; /* Tối ưu cho mobile */
    background: linear-gradient(135deg, #ffefd5, #ffe4b5);
    text-align: center;
    border-bottom: 3px solid #ffcc80;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    max-width: 100%;
}

.hero-title {
    font-size: 24px; /* Giảm size để cân đối trên mobile */
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.hero-section p {
    font-size: 16px; /* Nội dung gọn hơn trên mobile */
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.5;
}

/* ======= MIDDLE SECTION (Using CSS Grid) ======= */
.middle-section {
    display: grid;
    grid-template-columns: 1fr; /* 1 column trên mobile */
    gap: 20px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* COLUMNS */
.middle-section .column {
    width: 100%;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    box-sizing: border-box;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
}

/* Hover effect */
.middle-section .column:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    background: #fafafa;
}

/* ======= ICONS ======= */
.icon {
    font-size: 30px;
    text-align: center;
    margin-bottom: 5px;
}

/* ======= SECTION TITLE ======= */
.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #444;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 10px;
}

/* Hiệu ứng gạch chân tinh tế dưới tiêu đề */
.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: #ff9800;
    margin: 5px auto;
    border-radius: 3px;
}

/* ======= SECTION CONTENT ======= */
.section-content {
    text-align: left;
    width: 100%;
}

/* ======= FOOTER SECTION ======= */
.footer-section {
    width: 100%;
    padding: 20px;
    border-top: 2px solid #ddd;
    background: #f9f9f9;
    text-align: center;
    box-sizing: border-box;
    border-radius: 5px;
}

/* ======= RESPONSIVE DESIGN ======= */
@media screen and (min-width: 768px) {
    .middle-section {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero-section {
        padding: 20px 10px; /* Giảm padding thêm cho mobile */
    }
    
    .hero-title {
        font-size: 22px; /* Giảm thêm một chút cho màn hình nhỏ */
    }

    .hero-section p {
        font-size: 14px;
        max-width: 100%;
    }
}

/* Đảm bảo logo hiển thị đúng */
#p-logo {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Đảm bảo logo không bị mất trên mobile */
@media screen and (max-width: 768px) {
    #p-logo a {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #p-logo img {
        max-width: 150px; /* Điều chỉnh kích thước logo cho mobile */
        height: auto;
        display: block;
        margin: 0 auto;
    }
}