PostENP/Phaha_Package/src/styles.scss

620 lines
10 KiB
SCSS
Raw Normal View History

2026-03-10 15:20:38 +07:00
@import "node_modules/bootstrap/scss/bootstrap";
@import "@icon/unicons/unicons.css";
/* You can add global styles to this file, and also import other style files */
* {
font-size: 13px;
margin: 0;
padding: 0;
font-family: 'HelveticaWorld', sans-serif;
}
html body {
background: #eee;
font-family: 'HelveticaWorld', sans-serif;
}
a {
text-decoration: none;
color: #222;
}
button:focus:not(:focus-visible) {
box-shadow: none;
}
app-package-item {
width: 100%;
margin-top: 15px;
margin-bottom: 15px;
}
.package-item {
padding: 10px;
background: #fff;
border-radius: 5px;
box-shadow: 0px 0px 10px #ccc;
height: 100%;
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
.package-img {
overflow: hidden;
border-radius: 5px;
position: relative;
text-align: center;
img {
transition: transform 0.6s;
margin: auto;
width: 100%;
&:hover {
transform: scale(1.1);
}
}
}
.package-title {
text-align: center;
padding: 10px 4px 0;
a {
font-size: 15px;
color: #888;
font-weight: bold;
text-decoration: none;
&:hover {
color: #444;
}
}
}
.editorial {
padding-bottom: 4px;
text-align: center;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
a {
text-decoration: none;
color: #6c757d;
margin-right: 10px;
&:hover {
text-decoration: underline;
font-weight: 600;
}
}
}
.price-info {
display: flex;
justify-content: space-evenly;
}
.package-price {
text-align: center;
color: #444;
span {
font-size: 16px;
font-weight: 600;
}
}
.package-price-sale {
text-align: center;
color: #808285;
text-decoration: line-through;
span {
font-size: 14px;
font-weight: 400;
}
}
.package-price-final {
text-align: center;
color: #444;
margin-bottom: 0;
span {
font-size: 16px;
font-weight: 600;
}
}
.package-sold {
background: #eee;
text-align: center;
// padding: 4px 0;
border-radius: 20px;
margin-top: 5px;
span {
color: #6c757d;
font-size: 12px;
}
}
.group-button {
display: flex;
justify-content: space-around;
.btn-trial,
.btn-detail {
border-radius: 20px;
background: #ffe7b8;
color: #6c757d;
}
.btn-trial:hover,
.btn-detail:hover {
background: #e09500;
color: #ffffff;
}
.btn-buy {
background: #fcaf17;
border-radius: 20px;
color: #ffffff;
}
.btn-buy:hover {
background: #e09500;
color: #ffffff;
}
}
.percent-sale {
position: absolute;
left: 0%;
top: 0px;
width: 100%;
height: 100%;
overflow: hidden;
pointer-events: none;
z-index: 100;
-webkit-transition: width 1s ease, height 1s ease;
-moz-transition: width 1s ease, height 1s ease;
-o-transition: width 1s ease, height 1s ease;
transition: width 0.4s ease, height 0.4s ease;
.top-right {
position: absolute;
top: 0;
right: 0;
-ms-transform: translateX(30%) translateY(0%) rotate(45deg);
-webkit-transform: translateX(30%) translateY(0%) rotate(45deg);
transform: translateX(30%) translateY(0%) rotate(45deg);
-ms-transform-origin: top left;
-webkit-transform-origin: top left;
transform-origin: top left;
}
.badge-sale {
margin: 0;
padding: 5px 5px;
font-size: 12px;
text-align: center;
line-height: normal;
text-transform: uppercase;
background: #ed1b24;
color: white;
}
.badge-sale::before,
.badge-sale::after {
content: "";
position: absolute;
top: 0;
margin: 0 -1px;
width: 100%;
height: 100%;
background: inherit;
min-width: 55px;
}
.badge-sale::before {
right: 100%;
}
.badge-sale::after {
left: 100%;
}
}
}
.new-item {
padding: 10px;
border-radius: 5px;
color: #5e5873;
&:nth-child(odd) {
background-color: #eee;
}
&:nth-child(even) {
background-color: #ffff;
}
&:hover {
color: orange;
background-color: #eee;
}
.new-image {
img {
width: 100%;
}
}
.new-title {
a {
color: #222;
font-weight: 600;
text-decoration: none;
font-size: 16px;
}
}
.new-description {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
line-height: 20px;
height: 40px;
cursor: pointer;
}
}
.new-carousel {
.new-carousel-img {
img {
width: 100%;
}
}
.new-carousel-content {
.new-carousel-title a {
text-transform: uppercase;
text-decoration: none;
color: #222;
font-size: 16px;
}
.new-carousel-description {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
line-height: 20px;
height: 60px;
}
}
.carousel-indicators [data-bs-target] {
margin-top: 20px !important;
border-color: #f26b1b;
border-bottom: none !important;
}
.carousel-indicators {
top: auto !important;
bottom: -40px;
}
}
.new-item-left {
.new-left-image {
a {
display: block;
overflow: hidden;
border-radius: 5px;
img {
width: 100%;
transition: transform 0.6s;
&:hover {
transform: scale(1.1);
}
}
}
}
.new-left-content {
.new-left-title {
a {
text-transform: uppercase;
font-weight: 600;
text-decoration: none;
font-size: 18px;
color: #000000;
display: block;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
}
}
.new-left-time {
font-weight: 400;
font-size: 12px;
line-height: 136.19%;
color: #808285;
}
.new-left-description {
font-weight: 400;
font-size: 14px;
line-height: 136.19%;
text-align: justify;
display: block;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.new-right-item {
.new-right-image {
a {
display: block;
overflow: hidden;
border-radius: 5px;
img {
max-width: 100%;
transition: transform 0.6s;
&:hover {
transform: scale(1.1);
}
}
}
}
.new-right-content {
.new-right-title {
a {
font-weight: 400;
font-size: 18px;
color: #000000;
display: block;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
line-height: 26px;
height: 52px;
cursor: pointer;
text-decoration: none;
}
}
.new-right-description {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
line-height: 20px;
height: 40px;
text-align: justify;
}
}
}
.box-profile {
.custom-ul {
margin-bottom: 0;
flex-flow: wrap;
padding-left: 5px !important;
.all-li {
color: #f26b1b;
font-weight: 700;
}
li {
cursor: pointer !important;
padding: 5px;
list-style: none !important;
}
li:hover {
color: #f26b1b;
}
}
.pagination {
justify-content: end;
}
.page-item.active .page-link {
background-color: #fcaf17;
border: #fcaf17;
color: #fff !important;
width: 38px;
text-align: center;
padding-top: 7px !important;
}
.page-item {
margin: 0 3px !important;
border-radius: 50% !important;
a {
border: none !important;
color: #222 !important;
}
}
.page-item a.page-link {
border-radius: 50%;
}
.page-item:last-child .page-link {
border-top-right-radius: 50% !important;
border-bottom-right-radius: 50% !important;
}
.page-link:focus {
box-shadow: none !important;
}
.page-item:first-child .page-link {
border-top-left-radius: 50% !important;
border-bottom-left-radius: 50% !important;
}
.page-link:hover {
width: 40px;
//height: 40px;
text-align: center;
}
.page-link {
width: 38px !important;
line-height: 25px !important;
text-align: center;
padding-top: 7px !important;
}
.custom-profile {
text-align: justify;
.hastag {
padding: 8px 20px 0px 0;
border-radius: 4px;
display: inline-block;
color: #666;
text-decoration: none;
line-height: 22px;
font-size: 14px;
&:hover {
color: #222 !important;
font-weight: 600;
padding-right: 13px;
}
}
cursor: pointer;
}
}
.box-body {
padding: 10px;
background: white;
border-radius: 5px;
margin-top: 10px;
}
.card {
border: none !important;
background: none !important;
.card-header {
border: none;
display: flex;
justify-content: space-between;
align-items: center;
.card-title {
font-size: 24px;
text-decoration: none;
color: #333;
border-bottom: 2px solid #fcaf17;
}
.view-more {
display: flex;
align-items: center;
text-decoration: none;
color: #fcaf17;
font-weight: 600;
i {
font-size: 24px;
}
}
}
}
.bg-white {
background: white !important;
}
.box-catalog {
display: flex;
padding: 20px 16px 0 16px;
justify-content: space-between;
align-items: center;
a {
text-decoration: none;
font-weight: 600;
color: #444;
font-size: 26px;
}
.box-search {
display: flex;
align-items: center;
gap: 10px;
.ng-select {
min-width: 260px;
}
}
}
@media only screen and (max-width: 600px) {
.box-catalog {
display: block;
.box-search {
display: block;
ng-select {
margin-bottom: 10px;
}
}
}
}
.img-response {
max-width: 100%;
}
.page-link.active,
.active>.page-link {
background-color: #fcaf17 !important;
color: white !important;
border-color: #fcaf17 !important;
}
.page-link {
color: #fcaf17 !important;
}