Bản mẫu:Trang Chính/styles.css
Phiên bản vào lúc 11:16, ngày 7 tháng 10 năm 2020 của Tttrung (Thảo luận | đóng góp)

.main-page-summary {
    min-height: 125px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #E0E0E0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

.main-page-summary ul {
    display: flex;
    flex: 0 0 50%;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.main-page-summary ul li {
    flex: 0 0 33%;
    font-size: 14px;
    padding: 5px 0;
}

.main-page-summary ul li img {
    margin-right: 6px;
}

.main-page .section-title {
    font-size: 24px;
    font-weight: bold;
    padding: 20px 0;
}

.article-1 {
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Bromine_vial_in_acrylic_cube.jpg/1000px-Bromine_vial_in_acrylic_cube.jpg);
    background-size: cover;
    width: 100%;
    padding-top: 100%; 
    position: relative; 
}

.article-2 {
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/a/a8/NASA-Apollo8-Dec24-Earthrise.jpg);
    background-size: cover;
    width: 100%;
    padding-top: 100%; 
    position: relative; 
}

.article-3 {
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/a/af/Fogo%2C_Cape_Verde_Islands.jpg);
    background-size: cover;
    width: 100%;
    padding-top: 100%; 
    position: relative; 
}

.article-4 {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/9/96/Descripción_histórica_y_cronológica_de_las_dos_piedras_que_con_ocasión_del_nuevo_empedrado_que_se_está_formando_en_la_plaza_principal_de_México%2C_se_hallaron_en_ella_el_año_de_1790-1b.jpg');
    background-size: cover;
    width: 100%;
    padding-top: 100%; 
    position: relative; 
}

.article-5 {
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/3/3b/11-09-fotofluege-cux-allg-25a.jpg);
    background-size: cover;
    width: 100%;
    padding-top: 100%; 
    position: relative; 
}

.article-6 {
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/c/c3/Organic_home-grown_tomatoes_-_unripe_to_ripe.jpg);
    background-size: cover;
    width: 100%;
    padding-top: 100%; 
    position: relative; 
}

.article-7 {
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/a/ab/Eastern_greenish_black-tip_%28Euchloe_penia%29_underside_Macedonia.jpg);
    background-size: cover;
    width: 100%;
    padding-top: 100%; 
    position: relative; 
}

.article-text {
    padding-bottom: 6px;
    padding-left: 6px;
    position: absolute;
    bottom: 0;
    background-image: linear-gradient(rgba(240, 240, 240, 0), rgba(240, 240, 240, 1));
    width: calc(100% - 5px);
}

.article-mobile-text {
    padding-bottom: 1px;
    padding-left: 1px;
    position: absolute;
    bottom: 0;
    background-image: linear-gradient(rgba(240, 240, 240, 0), rgba(240, 240, 240, 1));
    width: calc(100% - 1px);
    visibility: hidden;
    display:none;
    text-align: center;
}

@media only screen and (max-width: 1100px) {
    .welcome-container {
        text-align: center;
        flex: 0 0 100%;
    }

    .main-page-summary ul {
        flex: 0 0 100%;
    }
    .main-page-summary ul li {
        text-align: center;
    }

    .main-page .group-layout .group-item {
        flex: 0 0 100%;
    }

    .main-page .featured-article-container .big-focus {
        flex: 0 0 100%;
        height: calc(100vw - 44px);
        margin-bottom: 20px;
    }

    .main-page .featured-article-container .small-focus {
        flex: 0 0 100%;
    }

    .main-page .small-focus .article {
        flex: 0 0 100%;
        margin: 0 0 20px 0;
        height: calc(100vw - 44px);
    }

    .main-page .big-focus .article {
        flex: 0 0 100%;
        height: calc(100vw - 44px);
    }

    .article-text {
        visibility: hidden;
        display:none;
    }

    .article-mobile-text {
        visibility: visible;
        display:initial;
    }
}

.main-page .group-layout {
    display: flex;
    flex-wrap: wrap;
}

.main-page .group-layout .group-item {
    flex: 0 0 calc(50% - 10px);
}

.main-page .group-layout .group-box {
    box-shadow: 0 3px 6px #000000;
    border: 1px solid #E0E0E0;
    border-radius: 3px;
    padding: 20px;
}

.main-page .group-layout .group-item:nth-child(odd) {
    margin-right: 20px;
}

.main-page .group-layout .group-box-item {
    margin-bottom: 10px;
}

.main-page .group-layout .group-box-item img {
    margin-right: 6px;
}

.main-page .group-layout .group-box-item-image {
    display: flex;
    margin-bottom: 23px;
}

.main-page .group-layout .group-box-item-image .img-container {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.main-page .group-layout .group-box-item-image .img-container img {
    max-width: 100%;
    max-height: 100%;
}

.main-page .item-title {
    font-weight: bold;
}

.text-red {
    color: #FF5A28;
}

@media only screen and (max-width: 1100px) {
    .welcome-container {
        text-align: center;
        flex: 0 0 100%;
    }

    .main-page-summary ul {
        flex: 0 0 100%;
    }
    .main-page-summary ul li {
        text-align: center;
    }

    .main-page .group-layout .group-item {
        flex: 0 0 100%;
    }

    .main-page .featured-article-container .big-focus {
        flex: 0 0 100%;
        height: calc(100vw - 44px);
        margin-bottom: 20px;
    }

    .main-page .featured-article-container .small-focus {
        flex: 0 0 100%;
    }

    .main-page .small-focus .article {
        flex: 0 0 100%;
        margin: 0 0 20px 0;
        height: calc(100vw - 44px);
    }

    .main-page .big-focus .article {
        flex: 0 0 100%;
        height: calc(100vw - 44px);
    }
}

/* To make images responsive */
img {
	max-width:100%;
	height:auto;
vertical-align: 10%;
}