Khác biệt giữa các bản “Bản mẫu:Trang Chính/styles.css”
(Tạo trang mới với nội dung “→‎{{pp|small=yes}}: #mp-topbanner { clear: both; position: relative; box-sizing: border-box; width: 100%; margin-top: 1.2em; min-width: 47em; bo…”)
 
Dòng 1: Dòng 1:
/* {{pp|small=yes}} */
+
body {
#mp-topbanner {
+
    padding: 0;
clear: both;
+
    margin: 0;
position: relative;
 
box-sizing: border-box;
 
width: 100%;
 
margin-top: 1.2em;
 
min-width: 47em;
 
border-color: #ddd;
 
background-color: #f9f9f9;
 
white-space: nowrap;
 
 
}
 
}
  
.mp-bordered,
+
body * {
.mp-h2,
+
    box-sizing: border-box;
body.skin-timeless .mp-h2 { /* Timeless needs a higher specificity */
 
border-width: 1px;
 
border-style: solid;
 
 
}
 
}
  
#mp-topbanner,
+
.centerX {
.mp-h2,
+
    display: flex;
#mp-left {
+
    justify-content: center;
color: #000;
 
 
}
 
}
  
#mp-welcomecount {
+
.centerY {
margin: 0.4em;
+
    display: flex;
width: 22em;
+
    align-items: center;
text-align: center;
 
 
}
 
}
  
#mp-welcome {
+
.centerXY {
font-size: 162%;
+
    display: flex;
padding: 0.1em;
+
    justify-content: center;
 +
    align-items: center;
 
}
 
}
  
#mp-free {
+
.centerY {
font-size: 95%;
+
    display: flex;
 +
    align-items: center;
 
}
 
}
  
#articlecount {
+
.main-page {
font-size: 85%;
+
    padding: 22px;
 
}
 
}
  
#mp-portals {
+
.main-page * {
position: absolute;
+
    color: #262626;
right: -1em;
+
    font-family: 'Open Sans', sans-serif;
top: 50%;
+
    font-size: 14px;
margin-top: -2.4em;
 
width: 38%;
 
min-width: 25em;
 
font-size: 95%;
 
 
}
 
}
  
#mp-portals li {
+
.main-page-summary {
position: absolute;
+
    min-height: 125px;
left: 0;
+
  /*  box-shadow: 0px 3px 6px #0000001A;*/
top: 0;
+
    border: 1px solid #E0E0E0;
 +
    border-radius: 3px;
 +
    display: flex;
 +
    align-items: center;
 +
    flex-wrap: wrap;
 +
    padding: 0 20px;
 
}
 
}
  
#mp-portals .portal-hmid {
+
.main-page-summary ul {
left: 33%;
+
    display: flex;
 +
    flex: 0 0 50%;
 +
    flex-wrap: wrap;
 +
    list-style: none;
 +
    padding: 0;
 
}
 
}
  
#mp-portals .portal-hright {
+
.main-page-summary ul li {
left: 66%;
+
    flex: 0 0 33%;
 +
    font-size: 14px;
 +
    padding: 5px 0;
 
}
 
}
  
#mp-portals .portal-vmid {
+
.main-page-summary ul li img {
top: 1.6em;
+
    margin-right: 6px;
 
}
 
}
  
#mp-portals .portal-vbot {
+
.main-page .section-title {
top: 3.2em;
+
    font-size: 24px;
 +
    font-weight: bold;
 +
    padding: 20px 0;
 
}
 
}
  
.portal-hright.portal-vbot {
+
.main-page .featured-article-container {
font-weight: bold;
+
    display: flex;
 +
    flex-wrap: wrap;
 
}
 
}
  
#mp-banner {
+
.main-page .featured-article-container .big-focus {
margin-top: 4px;
+
    flex: 0 0 32%;
padding: 0.5em;
+
    height: 612px;
background-color: #fffaf5;
+
    padding-bottom: 20px;
border-color: #f2e0ce;
 
 
}
 
}
  
.mp-h2,
+
.main-page .featured-article-container .small-focus {
body.skin-timeless .mp-h2 { /* Timeless needs a higher specificity */
+
    flex: 0 0 68%;
margin: 0.5em;
+
    display: flex;
padding: 0.2em 0.4em;
+
    flex-wrap: wrap;
font-size: 120%;
 
font-weight: bold;
 
font-family: inherit;
 
 
}
 
}
  
h2.mp-h2::after { /* Remove borders in Timeless */
+
.main-page .big-focus .article {
border: none;
+
    height: 100%;
 
}
 
}
  
.mp-later {
+
.main-page .small-focus .article {
font-size: 85%;
+
    flex: 0 0 calc(25% - 20px);
font-weight: normal;
+
    margin: 0 0 20px 20px;
 
}
 
}
  
#mp-upper {
+
.main-page .article {
width: 100%;
+
    display: flex;
margin-top: 4px;
+
    flex-direction: column;
margin-bottom: 0;
+
    justify-content: flex-end;
border-spacing: 0;
+
    padding: 20px;
border-collapse: separate;
+
    background-size: cover;
 
}
 
}
  
#mp-upper .mid-table {
+
.main-page .article .article-name {
border-color: transparent;
+
    font-weight: bold;
 +
    font-size: 24px;
 +
    color: #fff;
 +
    padding-bottom: 12px;
 
}
 
}
  
#mp-left {
+
.main-page .article .article-text {
width: 55%;
+
    color: #fff;
border-color: #cef2e0;
+
    padding-bottom: 12px;
background: #f5fffa;
 
 
}
 
}
  
#mp-right {
+
.main-page .article .article-link {
width: 45%;
+
    display: flex;
border-color: #cedff2;
+
    align-items: center;
background: #f5faff;
 
 
}
 
}
  
#mp-left,
+
.main-page .article .article-link a {
#mp-right {
+
    color: #FF5A28;
padding: 0;
+
    text-decoration: none;
vertical-align: top;
 
 
}
 
}
  
#mp-left .mp-h2 {
+
.main-page .article .article-link img {
background: #cef2e0;
+
    margin-right: 8px;
border-color: #a3bfb1;
 
 
}
 
}
  
#mp-right .mp-h2 {
+
.main-page .group-layout {
background: #cedff2;
+
    display: flex;
border-color: #a3b0bf;
+
    flex-wrap: wrap;
 
}
 
}
  
#mp-tfa,
+
.main-page .group-layout .group-item {
#mp-dyk,
+
    flex: 0 0 calc(50% - 10px);
#mp-itn,
 
#mp-otd,
 
#mp-other-lower > div {
 
padding: 0.1em 0.6em;
 
 
}
 
}
  
#mp-dyk-h2,
+
.main-page .group-layout .group-box {
#mp-otd-h2 {
+
  /*  box-shadow: 0px 3px 6px #0000001A;*/
clear: both;
+
    border: 1px solid #E0E0E0;
 +
    border-radius: 3px;
 +
    padding: 20px;
 
}
 
}
  
#mp-middle {
+
.main-page .group-layout .group-item:nth-child(odd) {
margin-top: 4px;
+
    margin-right: 20px;
border-color: #f2cedd;
 
background: #fff5fa;
 
 
}
 
}
  
#mp-middle,
+
.main-page .group-layout .group-box-item {
#mp-lower,
+
    margin-bottom: 10px;
#mp-other-lower {
 
overflow: auto;
 
 
}
 
}
  
#mp-tfl-h2 {
+
.main-page .group-layout .group-box-item img {
background: #f2cedd;
+
    margin-right: 6px;
border-color: #bfa3af;
 
 
}
 
}
  
#mp-tfl {
+
.main-page .group-layout .group-box-item-image {
padding: 0.3em 0.7em;
+
    display: flex;
 +
    margin-bottom: 23px;
 
}
 
}
  
#mp-lower {
+
.main-page .group-layout .group-box-item-image .img-container {
margin-top: 4px;
+
    flex: 0 0 80px;
border-color: #ddcef2;
+
    width: 80px;
background: #faf5ff;
+
    height: 80px;
 +
    display: flex;
 +
    align-items: center;
 +
    justify-content: center;
 +
    margin-right: 16px;
 
}
 
}
  
#mp-tfp-h2 {
+
.main-page .group-layout .group-box-item-image .img-container img {
background: #ddcef2;
+
    max-width: 100%;
border-color: #afa3bf;
+
    max-height: 100%;
 
}
 
}
  
#mp-tfp {
+
.main-page .item-title {
margin: 0.1em 0.4em 0.6em;
+
    font-weight: bold;
 
}
 
}
  
#mp-other-lower {
+
.text-red {
padding: 0;
+
    color: #FF5A28;
border-color: #e2e2e2;
 
margin-top: 4px;
 
 
}
 
}
  
#mp-dyk,
+
@media only screen and (max-width: 1100px) {
#mp-otd,
+
    .welcome-container {
#mp-other-lower {
+
        text-align: center;
padding-bottom: 0.5em;
+
        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%;
 +
    }
  
#mp-other-lower .mp-h2 {
+
    .main-page .featured-article-container .big-focus {
background: #eee;
+
        flex: 0 0 100%;
border-color: #ddd;
+
        height: calc(100vw - 44px);
color: #222;
+
        margin-bottom: 20px;
}
+
    }
  
@media (max-width: 875px) {
+
    .main-page .featured-article-container .small-focus {
+
        flex: 0 0 100%;
body.skin--responsive #mp-welcomecount {
+
    }
width: auto;
 
}
 
  
body.skin--responsive #mp-topbanner {
+
    .main-page .small-focus .article {
min-width: 0;
+
        flex: 0 0 100%;
white-space: normal;
+
        margin: 0 0 20px 0;
}
+
        height: calc(100vw - 44px);
+
    }
body.skin--responsive #mp-portals {
 
display: block;
 
position: static;
 
width: auto;
 
min-width: 0;
 
text-align: center;
 
border-top: 1px solid #ddd;
 
padding: 0.4em 0;
 
margin: 0 0.4em;
 
}
 
 
body.skin--responsive #mp-portals li {
 
position: static;
 
display: inline;
 
padding: 0 5px;
 
}
 
 
body.skin--responsive #mp-topbanner .portal-hright {
 
white-space: nowrap;
 
}
 
 
body.skin--responsive table,
 
body.skin--responsive tr,
 
body.skin--responsive td,
 
body.skin--responsive tbody {
 
display: block !important;
 
width: 100% !important;
 
box-sizing: border-box;
 
}
 
  
body.skin--responsive #mp-tfp tr:first-child td:first-child a {
+
    .main-page .big-focus .article {
text-align: center;
+
        flex: 0 0 100%;
display: table;
+
        height: calc(100vw - 44px);
margin: 0 auto;
+
    }
}
 
 
}
 
}

Phiên bản lúc 11:12, ngày 30 tháng 9 năm 2020

body {
    padding: 0;
    margin: 0;
}

body * {
    box-sizing: border-box;
}

.centerX {
    display: flex;
    justify-content: center;
}

.centerY {
    display: flex;
    align-items: center;
}

.centerXY {
    display: flex;
    justify-content: center;
    align-items: center;
}

.centerY {
    display: flex;
    align-items: center;
}

.main-page {
    padding: 22px;
}

.main-page * {
    color: #262626;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

.main-page-summary {
    min-height: 125px;
  /*   box-shadow: 0px 3px 6px #0000001A;*/
    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;
}

.main-page .featured-article-container {
    display: flex;
    flex-wrap: wrap;
}

.main-page .featured-article-container .big-focus {
    flex: 0 0 32%;
    height: 612px;
    padding-bottom: 20px;
}

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

.main-page .big-focus .article {
    height: 100%;
}

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

.main-page .article {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background-size: cover;
}

.main-page .article .article-name {
    font-weight: bold;
    font-size: 24px;
    color: #fff;
    padding-bottom: 12px;
}

.main-page .article .article-text {
    color: #fff;
    padding-bottom: 12px;
}

.main-page .article .article-link {
    display: flex;
    align-items: center;
}

.main-page .article .article-link a {
    color: #FF5A28;
    text-decoration: none;
}

.main-page .article .article-link img {
    margin-right: 8px;
}

.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: 0px 3px 6px #0000001A;*/
    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);
    }
}