up
This commit is contained in:
783
src/assets/css/style.scss
Normal file
783
src/assets/css/style.scss
Normal file
@@ -0,0 +1,783 @@
|
||||
:root {
|
||||
--color-global: #462f91;
|
||||
--color-title: #0d0d9c;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 10px;
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
width: 7px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #462f91;
|
||||
border-radius: 20px;
|
||||
background-image: -webkit-gradient(
|
||||
linear,
|
||||
0 0,
|
||||
0 100%,
|
||||
color-stop(0.7, #462f91),
|
||||
color-stop(0.5, transparent),
|
||||
to(transparent)
|
||||
);
|
||||
}
|
||||
html {
|
||||
font-size: 100%;
|
||||
font-family: "Shopee", sans-serif;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1400px !important;
|
||||
margin: 0 auto;
|
||||
width: 1400px !important;
|
||||
}
|
||||
body {
|
||||
font-family: "Shopee";
|
||||
font-size: 14px;
|
||||
background: #fff;
|
||||
min-width: 1400px;
|
||||
color: #303030;
|
||||
}
|
||||
html {
|
||||
font-family: "Shopee";
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: "Shopee Bold";
|
||||
}
|
||||
b {
|
||||
font-family: "Shopee Bold";
|
||||
}
|
||||
p,
|
||||
span {
|
||||
font-family: "Shopee Medium";
|
||||
}
|
||||
.icon_2025 {
|
||||
background: url(../images/icon_2025.png) no-repeat;
|
||||
background-size: 228px 175px;
|
||||
display: block;
|
||||
&.map {
|
||||
width: 20px;
|
||||
height: 26px;
|
||||
background-position: 1px 0px;
|
||||
}
|
||||
&.search {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background-position: -70px 0;
|
||||
}
|
||||
&.user {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
background-position: -133px 0px;
|
||||
}
|
||||
&.bar {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background-position: 1px -40px;
|
||||
}
|
||||
&.buildpc {
|
||||
width: 36px;
|
||||
height: 24px;
|
||||
background-position: -24px -35px;
|
||||
}
|
||||
&.shop {
|
||||
width: 22px;
|
||||
height: 24px;
|
||||
background-position: -70px -35px;
|
||||
}
|
||||
&.map-2 {
|
||||
width: 15px;
|
||||
height: 23px;
|
||||
background-position: -26px -3px;
|
||||
}
|
||||
&.map-3 {
|
||||
width: 13px;
|
||||
height: 18px;
|
||||
background-position: -49px -3px;
|
||||
}
|
||||
&.question {
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
background-position: -100px -35px;
|
||||
}
|
||||
&.prduct-save {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background-position: -133px -35px;
|
||||
}
|
||||
&.article {
|
||||
width: 30px;
|
||||
height: 24px;
|
||||
background-position: -162px -35px;
|
||||
}
|
||||
&.heart {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background-position: -98px -141px;
|
||||
}
|
||||
&.link {
|
||||
width: 14px;
|
||||
height: 10px;
|
||||
background-position: -212px -108px;
|
||||
}
|
||||
&.time {
|
||||
width: 15px;
|
||||
height: 14.5px;
|
||||
background-position: -188px -147.5px;
|
||||
}
|
||||
&.mouse {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-position: -160px -145px;
|
||||
}
|
||||
&.facebook {
|
||||
width: 41px;
|
||||
height: 40px;
|
||||
background-position: 0 -135px;
|
||||
}
|
||||
&.zalo {
|
||||
width: 41px;
|
||||
height: 40px;
|
||||
background-position: -50px -135px;
|
||||
}
|
||||
|
||||
&.home {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-position: -207px -129px;
|
||||
}
|
||||
&.angle-right {
|
||||
width: 11px;
|
||||
height: 17px;
|
||||
background-position: -212px -152px;
|
||||
}
|
||||
&.view {
|
||||
width: 22px;
|
||||
height: 16px;
|
||||
background-position: -205px -8px;
|
||||
}
|
||||
&.time-big {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
background-position: -2px -70px;
|
||||
}
|
||||
&.share {
|
||||
width: 21px;
|
||||
height: 21px;
|
||||
background-position: -198px -36px;
|
||||
}
|
||||
&.map-4 {
|
||||
width: 18px;
|
||||
height: 25px;
|
||||
background-position: -152px -69px;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-star {
|
||||
background: url(../images/icon_star.png) no-repeat;
|
||||
display: block;
|
||||
width: 80px;
|
||||
height: 15px;
|
||||
background-size: 79px 95px;
|
||||
&.star5 {
|
||||
background-position: 0 0;
|
||||
}
|
||||
&.star4 {
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
&.star3 {
|
||||
background-position: 0 -30px;
|
||||
}
|
||||
&.star2 {
|
||||
background-position: 0 -47px;
|
||||
}
|
||||
&.star1 {
|
||||
background-position: 0 -63px;
|
||||
}
|
||||
&.star0 {
|
||||
background-position: 0 -78px;
|
||||
}
|
||||
&.star-small {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
background-position: 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.bg-global {
|
||||
background: var(--color-global);
|
||||
}
|
||||
.box-select {
|
||||
position: relative;
|
||||
width: 80px;
|
||||
.select {
|
||||
width: 100%;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 1;
|
||||
color: #fff;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
z-index: 2;
|
||||
position: relative;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
font-family: "Shopee Bold";
|
||||
&:focus {
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 2px rgba(70, 47, 145, 0.2);
|
||||
border-color: var(--color-global);
|
||||
}
|
||||
option {
|
||||
background: var(--color-global);
|
||||
font-family: "Shopee";
|
||||
}
|
||||
}
|
||||
&::after {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 7px;
|
||||
content: "";
|
||||
display: block;
|
||||
width: 11px;
|
||||
height: 5px;
|
||||
z-index: 1;
|
||||
background: #d9d9d9;
|
||||
clip-path: polygon(50% 100%, 0 0, 100% 0);
|
||||
}
|
||||
}
|
||||
.icon_arrow {
|
||||
background: #d9d9d9;
|
||||
width: 10px;
|
||||
height: 6px;
|
||||
clip-path: polygon(50% 100%, 0 0, 100% 0);
|
||||
display: block;
|
||||
}
|
||||
.header-bottom {
|
||||
.box-menu-hover {
|
||||
.item {
|
||||
border-bottom: 1px solid #ebebeb;
|
||||
padding: 6px 10px;
|
||||
&:hover .cate-name {
|
||||
color: var(--color-global);
|
||||
}
|
||||
}
|
||||
.cate-img {
|
||||
width: 23px;
|
||||
text-align: center;
|
||||
margin-right: 15px;
|
||||
}
|
||||
.cate-name {
|
||||
width: calc(100% - 38px);
|
||||
}
|
||||
.item:hover .sub-menu {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
-webkit-transform: translate(0, 0);
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
}
|
||||
.sub-menu {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
left: 225px;
|
||||
top: -1px;
|
||||
width: 860px;
|
||||
background: #fff;
|
||||
border-radius: 5px;
|
||||
-webkit-box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.1);
|
||||
padding: 6px 10px;
|
||||
height: 453px;
|
||||
opacity: 0;
|
||||
-webkit-transition:
|
||||
opacity 0.5s,
|
||||
-webkit-transform 0.5s;
|
||||
transition:
|
||||
opacity 0.5s,
|
||||
-webkit-transform 0.5s;
|
||||
transition:
|
||||
opacity 0.5s,
|
||||
transform 0.5s;
|
||||
transition:
|
||||
opacity 0.5s,
|
||||
transform 0.5s,
|
||||
-webkit-transform 0.5s;
|
||||
-webkit-transition: all 0.45s ease-out 0s;
|
||||
transition: all 0.45s ease-out 0s;
|
||||
-webkit-transform: translate(20px, 0);
|
||||
transform: translate(20px, 0);
|
||||
overflow: auto;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-ms-flex-wrap: wrap;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.sub-cate {
|
||||
width: calc(100% / 3);
|
||||
padding: 10px 10px 0 0;
|
||||
margin-top: 10px;
|
||||
border-top: 1px solid #efefef;
|
||||
li {
|
||||
line-height: 30px;
|
||||
}
|
||||
a:hover {
|
||||
color: var(--color-global);
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.sub-cate:nth-child(1),
|
||||
.sub-cate:nth-child(2),
|
||||
.sub-cate:nth-child(3) {
|
||||
padding: 0 10px 0 0;
|
||||
margin-top: 0;
|
||||
border-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.effect-image {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
&:before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
z-index: 2;
|
||||
display: block;
|
||||
content: "";
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
|
||||
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
|
||||
-webkit-transform: skewX(-25deg);
|
||||
transform: skewX(-25deg);
|
||||
cursor: pointer;
|
||||
}
|
||||
&:hover:before {
|
||||
-webkit-animation: image 1.1s;
|
||||
animation: image 1.1s;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes image {
|
||||
100% {
|
||||
left: 125%;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes image {
|
||||
100% {
|
||||
left: 125%;
|
||||
}
|
||||
}
|
||||
.swiper-button-next,
|
||||
.swiper-button-prev {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: #fff;
|
||||
border-radius: 50%;
|
||||
border: 1px solid #d9d9d9;
|
||||
}
|
||||
|
||||
.swiper-button-next:after,
|
||||
.swiper-button-prev:after {
|
||||
font-size: 16px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.tabs-list {
|
||||
.tabs-item.active {
|
||||
background: var(--color-global);
|
||||
color: #fff;
|
||||
font-weight: 700;
|
||||
}
|
||||
.tabs-item {
|
||||
font-family: "Shopee Regular";
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
.product-item {
|
||||
padding: 12px;
|
||||
border: 1px solid #d3d3d3;
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
.product-image {
|
||||
display: block;
|
||||
height: 240px;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
margin-bottom: 5px;
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
transform: translatey(0);
|
||||
transition: 0.2s all ease-in;
|
||||
}
|
||||
&:hover {
|
||||
img {
|
||||
transform: translatey(-5px);
|
||||
}
|
||||
}
|
||||
.box-saleoff {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
background: #da251c;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 52px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
&::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
border: 1px dashed #fff;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
.icon-save {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
.name-product {
|
||||
font-family: "Shopee Bold";
|
||||
font-size: 18px;
|
||||
color: #000;
|
||||
margin-bottom: 10px;
|
||||
&:hover {
|
||||
color: var(--color-title);
|
||||
}
|
||||
}
|
||||
.price {
|
||||
font-family: "Shopee Bold";
|
||||
font-size: 18px;
|
||||
color: #d80a00;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.old-price {
|
||||
color: #b0b0b0;
|
||||
}
|
||||
.box-shop {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background: #ff7a00;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
.icon_2025.shop {
|
||||
width: 15px;
|
||||
height: 19px;
|
||||
background-position: -49px -23px;
|
||||
background-size: 160px 125px;
|
||||
filter: brightness(0) invert(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.box-best-rated-products {
|
||||
.swiper-button-next {
|
||||
right: -20px;
|
||||
}
|
||||
.swiper-button-prev {
|
||||
left: -20px;
|
||||
}
|
||||
}
|
||||
|
||||
.box-category-homepage {
|
||||
.item p:hover {
|
||||
font-family: "Shopee Bold";
|
||||
}
|
||||
}
|
||||
|
||||
.item-article {
|
||||
display: flex;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid #efefef;
|
||||
align-items: flex-start;
|
||||
.image-article {
|
||||
width: 90px;
|
||||
margin-right: 10px;
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
transform: translatey(0);
|
||||
transition: 0.2s all ease-in;
|
||||
}
|
||||
}
|
||||
.info {
|
||||
width: calc(100% - 100px);
|
||||
}
|
||||
.name-article {
|
||||
font-family: "Shopee Bold";
|
||||
font-size: 16px;
|
||||
color: #000;
|
||||
margin-bottom: 3px;
|
||||
&:hover {
|
||||
color: var(--color-title);
|
||||
}
|
||||
}
|
||||
.summary {
|
||||
margin-bottom: 3px;
|
||||
font-family: "Shopee Regular";
|
||||
font-size: 16px;
|
||||
color: #161616;
|
||||
}
|
||||
.link-article {
|
||||
margin-top: 5px;
|
||||
color: var(--color-global);
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.more-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 130px;
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
font-size: 16px;
|
||||
color: var(--color-global);
|
||||
cursor: pointer;
|
||||
margin-top: 10px;
|
||||
border: 1px solid var(--color-global);
|
||||
border-radius: 4px;
|
||||
span {
|
||||
font-family: "Shopee Bold";
|
||||
margin-right: 5px;
|
||||
}
|
||||
&:hover {
|
||||
background: var(--color-global);
|
||||
color: #fff;
|
||||
border: 1px solid var(--color-global);
|
||||
i {
|
||||
filter: brightness(0) invert(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
.item-classifieds {
|
||||
display: flex;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid #efefef;
|
||||
align-items: flex-start;
|
||||
.image-classifieds {
|
||||
width: 90px;
|
||||
margin-right: 10px;
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
transform: translatey(0);
|
||||
transition: 0.2s all ease-in;
|
||||
}
|
||||
}
|
||||
.info {
|
||||
width: calc(100% - 100px);
|
||||
}
|
||||
.summary {
|
||||
font-family: "shopee Regular";
|
||||
font-size: 15px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.name-classifieds {
|
||||
font-family: "shopee Bold";
|
||||
font-size: 18px;
|
||||
}
|
||||
.price {
|
||||
font-family: "shopee Bold";
|
||||
font-size: 20px;
|
||||
color: #d80a00;
|
||||
}
|
||||
}
|
||||
|
||||
.box-promotions {
|
||||
.box-big {
|
||||
position: relative;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
&::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52.88%, #000000 100%);
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
&::after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
width: 60px;
|
||||
height: 47px;
|
||||
background: url(../images/icon-play.png) no-repeat;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transition: 0.2s all ease-in;
|
||||
transform: translate(-50%, -50%);
|
||||
background-size: contain;
|
||||
}
|
||||
&:hover {
|
||||
&::after {
|
||||
top: 51%;
|
||||
}
|
||||
}
|
||||
&.active {
|
||||
&::after,
|
||||
&::before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.main-footer {
|
||||
a {
|
||||
display: block;
|
||||
margin-bottom: 15px;
|
||||
font-size: 16px;
|
||||
font-weight: 550;
|
||||
&:hover {
|
||||
color: var(--color-title);
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
.title {
|
||||
margin-bottom: 15px;
|
||||
position: relative;
|
||||
padding-bottom: 10px;
|
||||
font-size: 22px;
|
||||
&::after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
width: 75px;
|
||||
height: 2px;
|
||||
background: var(--color-title);
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.breadcrumb {
|
||||
span {
|
||||
font-size: 18px;
|
||||
font-family: "Shopee Medium";
|
||||
}
|
||||
}
|
||||
|
||||
.page-category {
|
||||
.list-cate a {
|
||||
font-family: "Shopee Regular";
|
||||
&.active {
|
||||
font-family: "Shopee Bold";
|
||||
font-weight: 600;
|
||||
}
|
||||
&:hover {
|
||||
color: var(--color-title);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
display: block;
|
||||
border: 1px solid #d3d3d3;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.box-filter label {
|
||||
font-family: "Shopee Light";
|
||||
cursor: pointer;
|
||||
}
|
||||
#js-slider-big {
|
||||
height: 680px;
|
||||
width: 100%;
|
||||
}
|
||||
#js-slider-big .item {
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
#js-slider-small {
|
||||
.item {
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
.swiper-slide {
|
||||
border: 1px solid #b1b1b1;
|
||||
width: 100%;
|
||||
height: 130px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.swiper-slide-thumb-active {
|
||||
border: 1.5px solid var(--color-title);
|
||||
}
|
||||
}
|
||||
|
||||
.box-product-detail {
|
||||
.box-shop {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background: #ff7a00;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
.icon_2025.shop {
|
||||
width: 15px;
|
||||
height: 19px;
|
||||
background-position: -49px -23px;
|
||||
background-size: 160px 125px;
|
||||
filter: brightness(0) invert(1);
|
||||
}
|
||||
p {
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
.box-summary {
|
||||
font-family: "Shopee Medium";
|
||||
font-size: 16px;
|
||||
li {
|
||||
list-style: inside;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user