HTML & CSS 연습/zayshop

zayshop style.css

별초롱언니 2025. 3. 25. 17:55
@import url(./reset.css);

/* ! main */
#main{
  position: relative;
}

#main i{
  position: absolute;
  top: 50%;
  transform: translateY(-80%);

  color: #222;
  font-size: 30px;
  cursor: pointer;
}

#main i.left {
  left: 20px;
}

#main i.right {
  right: 20px;
}

#main i.left, #main i.right {
  color: var(--main-color);
  font-size: 45px;
}

#main i.left, #main i.right {
  opacity: 0.5;
}

#main i.left:hover, #main i.right:hover {
  opacity: 1;
  color: var(--main-color);
}

#main .text-box{
  position: absolute;
  width: 33%;
  top: 50%;
  transform: translateY(-50%);
  left: 18%;
}

.text-box h1 {
  color: var(--main-color);
  font-size: 50px;
  font-weight: 100;
  line-height: 1.4;
}

.text-box h3 {
  font-size: 30px;
  font-weight: lighter;
  line-height: 1.7;
}

.text-box p {
  font-size: 18px;
  font-weight: lighter;
  line-height: 1.5;
}

.text-box a {
  border-bottom: 1px solid var(--main-color) ;
  color: var(--main-color);
}

/* ! categorys */
.category-title {
  text-align: center;
  width: 100%;
}

.category-title h1 {
  font-size: 48px;
  font-weight: 100;
  line-height: 1.7;
  margin-top: 20px;
}

.category-title p {
  font-size: 18px;
  font-weight: 300;
  display: inline-block;
  width: 50%;
  margin-bottom: 80px;
}

.category {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.category img {
  width: 342px;
  border-radius: 180px;
  border: 1px solid #dee2e6;
}

.category h5 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 16px;
}

.category-text {
  margin-bottom: 120px;
}
.category a:last-child {
  background-color: var(--main-color);
  text-align: center;
  padding: 6px 12px;
  border-radius: .25rem;
  color: white;
  font-size: 19px;
  font-weight: 300;
}

/* ! featured product */
.feature {
  width: 100%;
  background-color: #e9eef5;
}
.feature-contents {
  display: flex;
  justify-content: space-between;
  padding-bottom: 100px;
}

.feature-title {
  text-align: center;
  padding-top: 50px;
}

.feature-title h1 {
  font-size: 48px;
  font-weight: 100;
}

.feature-title p {
  display: inline-block;
  width: 45%;
  padding-top: 10px;
  padding-bottom: 20px;
}

.feature-content img {
  width: 100%;
  border-top-left-radius: 5px;  
  border-top-right-radius: 5px;  
}

.feature-content {
  margin-right: 10px;
}

.feature-content01 {
  background-color: white;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  padding-bottom: 50px;
  margin-top: -10px;
}

.feature-content01 ul {
  display: flex;
  justify-content: space-between;
  line-height: 2;
  padding: 10px;
}

.feature-content01 ul li i {
  color: #bcbcbc;
}
.feature-content01 ul li i:nth-child(-n+3) {
  color: #ede861;
}

.feature-content01 .star {
  color: #ede861;
}

.feature-content01 h1 {
  font-size: 30px;
  font-weight: 200;
  padding-left: 10px;
}
.feature-content01 p {
  font-size: 18px;
  font-weight: 100;
  padding-left: 10px;
  line-height: 1.5;
}
.feature-content01 .review {
  padding: 20px 0 0 10px;
  color: #bcbcbc;
}

.money {
  color: #bcbcbc;
  font-size: 14pt;
  font-weight: 100;
}

'HTML & CSS 연습 > zayshop' 카테고리의 다른 글

zayshop.html  (0) 2025.03.26
zayshop 완성  (0) 2025.03.25
zayshop footer.css  (0) 2025.03.25
zayshop header.css  (0) 2025.03.25
zayshop.html  (0) 2025.03.25