Khác biệt giữa các bản “Bản mẫu:Mặt trăng/styles.css”
Dòng 1: Dòng 1:
 
.head {
 
.head {
   background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/5/57/NASA-Apollo8-Dec24-Earthrise-b.jpg/1024px-NASA-Apollo8-Dec24-Earthrise-b.jpg);
+
   background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Darkside_of_the_Moon_23-08-2020_DSCN7456_-_Flickr_-_ianpreston.jpg/1024px-Darkside_of_the_Moon_23-08-2020_DSCN7456_-_Flickr_-_ianpreston.jpg);
 
   background-size: cover;
 
   background-size: cover;
 
   width: 100%;
 
   width: 100%;
Dòng 37: Dòng 37:
 
.group-layout .group1 {
 
.group-layout .group1 {
 
   flex: 0 0 calc(30% - 12px);
 
   flex: 0 0 calc(30% - 12px);
   margin-top: 20px;
+
   margin: 10px;
 
}
 
}
 
.group-layout .group1 .thumb {
 
.group-layout .group1 .thumb {
   margin: 1.25em 0 0.5em;
+
   margin-top: 1.25em;
 
}
 
}
 
.group-layout .group2 {
 
.group-layout .group2 {
 
   flex: 0 0 calc(70% - 28px);
 
   flex: 0 0 calc(70% - 28px);
   margin-top: 20px;
+
   margin: 10px;
 
}
 
}

Phiên bản lúc 15:09, ngày 17 tháng 11 năm 2020

.head {
  background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Darkside_of_the_Moon_23-08-2020_DSCN7456_-_Flickr_-_ianpreston.jpg/1024px-Darkside_of_the_Moon_23-08-2020_DSCN7456_-_Flickr_-_ianpreston.jpg);
  background-size: cover;
  width: 100%;
  position: relative; 
}
.head-text {
  padding: 20px 30% 5% 20px;
  top: 0px;
  text-align:justify;
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
  width: 50%;
  color: white;
}
.head a.new:link {
  color: #e0c7fc !important;
}
.head a.new:visited {
  color: #e0c7fc !important;
}
.head a.new:hover {
  color: #eacffd !important;
}
.head a.new:active {
  color: #e0c7fc !important;
}
@media only screen and (max-width: 1100px) {
.head-text {
  padding: 20px;
  width: calc(100% - 40px);
}
}
.group-layout {
  display: flex;
  flex-wrap: wrap;
}
.group-layout .group1 {
  flex: 0 0 calc(30% - 12px);
  margin: 10px;
}
.group-layout .group1 .thumb {
  margin-top: 1.25em;
}
.group-layout .group2 {
  flex: 0 0 calc(70% - 28px);
  margin: 10px;
}