This commit is contained in:
2024-10-22 10:02:57 +07:00
parent cc6e2d7419
commit 6911b0180e
15 changed files with 5815 additions and 2796 deletions

View File

@@ -0,0 +1,614 @@
@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
/* thay đổi màu sắc */
:root {
--main-color: #166dd8; /* màu chính */
--color-bg-title-1: #ea3e00; /* màu nền chữ đỏ */
--color-bg-title-2: #f1b510; /* màu nền chữ vàng */
--color-box-auction: #166dd8; /* màu nền đấu giá kịch tính */
--color-bg-footer: #110e83; /* màu nền footer */
--bg-header: #166dd8; /* màu nền header */
--bg-top-auction: #ea3e00; /* màu nền tiêu đề top đấu giá sôi động */
--bg-list-auction: #166dd8; /* màu nền danh sách đấu giá */
--color-list-auction: #f1b510; /* màu nền tiều đề danh sách đấu giá */
--bg-deal: #ea3e00; /* màu nền box deal */
--border-faq: #110e83; /* màu border câu hỏi thường gặp */
--color-faq: #110e83; /* màu tiêu đề câu hỏi thường gặp */
--title-faq: #f8f8f8; /* màu tiêu đề faq */
--bg-time-auction: #166dd8; /* màu nền ngày hội đấu giá */
--bg-timeout-detail: #ea3e00; /* màu nền thời gian đếm ngược đấu giá */
--bg-user-win: #ffe0ac; /* màu nền người chiến thắng đấu giá */
--bg-btn-auction: #f00000; /* màu nền nút tham gia đấu giá */
--bg-time-deal: #ee4d2d; /* màu nền thời gian đếm ngược deal */
--bg-btn-deal: #166dd8; /* màu nền nút mua sp deal */
--bg-list-deal-ongoing: #ee4d2d; /* màu nền danh sách sản phẩm đang diễn ra chi tiết deal */
}
::-webkit-scrollbar-track {
background-color: #f5f5f5;
border-radius: 10px;
}
::-webkit-scrollbar {
width: 7px;
height: 5px;
background-color: #f5f5f5;
}
::-webkit-scrollbar-thumb {
background: #a4a4a4;
border-radius: 20px;
background-image: -webkit-gradient(
linear,
0 0,
0 100%,
color-stop(0.7, #a4a4a4),
color-stop(0.5, transparent),
to(transparent)
);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Kanit", sans-serif;
}
body {
color: #222;
font-family: "Kanit", sans-serif;
font-size: 15px;
margin: 0 auto;
background: #fff;
}
html {
font-size: 100%;
font-family: "Kanit", sans-serif;
}
img {
max-width: 100%;
height: auto;
}
a {
text-decoration: none;
color: #000;
}
.clearfix {
content: "";
clear: both;
}
li,
ul {
list-style: none;
}
table {
border-collapse: collapse;
width: 100%;
}
.ol,
.ul {
margin: 0;
padding: 0;
list-style: none;
}
.container-mb {
padding: 0;
max-width: 430px;
margin: 0 auto;
overflow: hidden;
}
.container {
padding: 0 10px;
max-width: 100%;
margin: 0 auto;
}
.icon_auction {
background: url(../images/icon-auction.png) no-repeat;
width: 14px;
height: 14px;
display: block;
background-size: contain;
}
.icon-deal {
display: block;
width: 29px;
height: 29px;
background: url(../images/icon-flash.png) no-repeat;
background-size: contain;
}
.icon-star {
background: url(../images/icon-star.png) no-repeat;
width: 80px;
height: 12px;
display: block;
background-size: 100%;
}
.icon-star.star5 {
background-position: 0 0;
}
.icon-star.star4 {
background-position: 0 -17px;
}
.icon-star.star3 {
background-position: 0 -34px;
}
.icon-star.star2 {
background-position: 0 -50px;
}
.icon-star.star1 {
background-position: 0 -67px;
}
.icon-star.star0 {
background-position: 0 -84px;
}
.icon.auction {
background: url(../images/icon-auction.png) no-repeat;
background-size: contain;
width: 15px;
height: 15px;
display: block;
margin-right: 3px;
}
.icon.time {
background: url(../images/icon-fire-time.png) no-repeat;
background-size: contain;
display: block;
width: 20px;
height: 20px;
margin-right: 3px;
}
.icon-cup {
background: url(../images/icon-cup.png) no-repeat;
background-size: contain;
width: 16px;
height: 16px;
display: block;
margin-right: 10px;
}
.saleoff {
width: 42px;
height: 20px;
line-height: 20px;
padding-left: 10px;
background: #f00000;
font-size: 12px;
color: #fff;
border-radius: 5px;
font-weight: 600;
position: relative;
}
.saleoff::before {
position: absolute;
left: -6px;
top: 0;
width: 15px;
height: 20px;
content: "";
background: url(../images/icon-flash.png) no-repeat;
background-size: cover;
}
.background-blue {
background: var(--main-color) !important;
}
.background-red {
background: var(var(--color-bg-title-1)) !important;
}
.background-yellow {
background: var(var(--color-bg-title-2)) !important;
}
.background-footer {
background: var(--color-bg-footer) !important;
}
.hover\:text-blue:hover {
color: var(--main-color) !important;
}
.hover\:background-blue:hover {
background: var(--main-color) !important;
}
.hover\:background-yellow:hover {
background: var(var(--color-bg-title-2)) !important;
}
.hover\:background-white:hover {
background: #fff !important;
}
.hover\:text-yellow:hover {
color: var(var(--color-bg-title-2)) !important;
}
.hover\:text-red:hover {
color: #f00000 !important;
}
.hover\:border-red:hover {
border: 1px solid #f00000 !important;
}
.hover\:border-blue:hover {
border: 1px solid var(--main-color) !important;
}
.hover\:border-yellow:hover {
border: 1px solid var(var(--color-bg-title-2)) !important;
}
.text-red {
color: #f00000;
}
.btn-add {
width: 140px;
height: 32px;
line-height: 30px;
text-align: center;
background: #f00000;
color: #fff;
text-align: center;
border-radius: 26px;
display: block;
margin-top: 10px;
}
.btn-add:hover {
border: 1px solid #f00000;
color: #f00000;
background: #fff;
}
.btn-add.continue {
background: #5f00b1;
}
.btn-add.continue:hover {
border: 1px solid #5f00b1;
color: #5f00b1;
background: #fff;
}
.btn-add.coming {
background: #afafaf;
}
.btn-add.coming:hover {
border: 1px solid #afafaf;
color: #afafaf;
background: #fff;
}
.header.header-fixed {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 999;
}
.swiper-pagination {
bottom: 0 !important;
}
.swiper-pagination-bullet {
width: 10px;
height: 10px;
}
.swiper-pagination-bullet.swiper-pagination-bullet-active {
background: var(var(--color-bg-title-2));
}
.box-time {
display: flex;
align-items: center;
}
.box-time .item-time {
margin-left: 12px;
display: flex;
flex-wrap: wrap;
justify-content: center;
text-align: center;
flex-direction: column;
}
.box-time .item-time b {
width: 16px;
height: 16px;
line-height: 16px;
text-align: center;
color: #fff;
font-weight: 700;
position: relative;
border-radius: 5px;
}
.box-time .item-time b::after {
content: ":";
position: absolute;
right: -8px;
color: #fff;
top: 0;
}
.box-time .item-time:first-child {
margin-left: 0;
}
.box-time .item-time:last-child b {
margin: 0;
}
.box-time .item-time:last-child b::after {
content: none;
}
.item-tab.active {
background: var(--main-color);
color: #fff;
}
.item-tab:hover {
background: var(--main-color);
color: #fff;
}
.tab-list .box-time b {
background: #000;
width: 26px;
height: 26px;
line-height: 26px;
text-align: center;
color: #fff;
font-weight: 700;
position: relative;
border-radius: 5px;
}
.btn-more-all {
width: 110px;
height: 32px;
line-height: 31px;
display: block;
border-radius: 5px;
border: 1px solid #fff;
margin: 0 auto auto auto;
text-align: center;
color: #fff;
}
.btn-more-all:hover {
background: #fff;
color: #ee4d2d;
}
.box-faq .item.active .content {
display: block;
}
.page-auction .item-tab.active,
.page-auction .item-tab:hover {
background: #fff;
color: var(--main-color);
}
.page-detail .swiper-pagination {
width: 41px !important;
height: 28px;
background: #0000004d;
border-radius: 14px;
line-height: 28px;
text-align: center;
display: block;
right: 10px;
bottom: 10px;
left: unset !important;
}
.page-detail .swiper-pagination {
color: #fff !important;
}
.active {
display: block !important;
}
.tab-history .item-tab.active,
.tab-history .item-tab:hover {
background: #fff;
box-shadow: 0px 4px 4px 0px #00000040;
color: #000;
border-radius: 20px;
}
.table-tab thead {
background: #fff;
}
.table-tab th {
position: sticky;
top: 0;
width: calc(100% / 3);
height: 35px;
background: #fff;
border-bottom: 1px solid #dfdfdf;
font-size: 13px;
}
.table-tab td {
font-size: 13px;
width: calc(100% / 3);
height: 35px;
border-bottom: 1px solid #dfdfdf;
}
.overlay {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 999;
display: none;
}
.overlay.active {
display: block;
}
.box-popup {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border: 2px solid var(var(--color-bg-title-2));
width: 97%;
border-radius: 30px;
padding: 15px;
background: #fff;
z-index: 999;
display: none;
}
.input-checkbox {
margin-top: 12px;
display: block;
position: relative;
padding-left: 30px;
margin-bottom: 12px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.input-checkbox input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.input-checkbox input:checked ~ .checkmark {
background-color: #3194fc;
}
.input-checkbox .checkmark {
position: absolute;
top: 0;
left: 0;
height: 20px;
width: 20px;
background-color: #eee;
border-radius: 15px;
}
.input-checkbox .checkmark:after {
content: "";
position: absolute;
display: block;
}
.input-checkbox:hover input ~ .checkmark {
background-color: #3194fc;
}
.input-checkbox input:checked ~ .checkmark:after {
display: block;
}
.input-checkbox .checkmark:after {
left: 8px;
top: 4px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 3px 3px 0;
transform: rotate(45deg);
}
.radio-checkbox {
display: block;
position: relative;
padding-left: 30px;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
line-height: 20px;
}
.radio-checkbox input {
position: absolute;
opacity: 0;
cursor: pointer;
}
.radio-checkbox .checkmark {
position: absolute;
top: 0;
left: 0;
height: 20px;
width: 20px;
background-color: #eee;
border-radius: 50%;
}
.radio-checkbox:hover input ~ .checkmark {
background-color: #ccc;
}
.radio-checkbox input:checked ~ .checkmark {
background-color: var(--main-color);
}
.radio-checkbox .checkmark:after {
content: "";
position: absolute;
display: none;
}
.radio-checkbox input:checked ~ .checkmark:after {
display: block;
}
.radio-checkbox .checkmark:after {
top: 6px;
left: 5.5px;
width: 9px;
height: 9px;
border-radius: 50%;
background: white;
}
.popup-success::before {
position: absolute;
content: "";
background: url(../images/background-firework.png) no-repeat;
background-size: contain;
width: 100px;
height: 85px;
left: 0;
top: 20px;
}
.popup-success::after {
position: absolute;
content: "";
background: url(../images/background-firework.png) no-repeat;
background-size: contain;
width: 100px;
height: 85px;
right: 0;
top: 20px;
transform: scaleX(-1);
}
.table-history thead {
position: sticky;
top: 0;
}
.table-history th {
background: #e2e2e2;
height: 40px;
padding: 0 10px;
}
.table-history td {
height: 40px;
padding: 5px;
border-bottom: 0.5px solid #e2e2e2;
}
.table-history .status.ship {
color: #17c967;
}
.table-history .status.cancel {
color: #d00000;
}
.table-history .status.processing {
color: #f48320;
}
.table-history .status.success {
color: #0caaf9;
}