Files
admin_hura_8/assets/script/pc_style.scss
2024-03-09 11:58:48 +07:00

1209 lines
24 KiB
SCSS

*,
::after,
::before {
box-sizing: border-box;
}
button,
select {
cursor: pointer;
}
button,
input {
overflow: visible;
}
button,
input,
optgroup,
select,
textarea {
outline: none;
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
color: #000;
border-radius: 0;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
input[type="number"] {
-moz-appearance: textfield;
}
input[type="date"]::-webkit-calendar-picker-indicator {
background: transparent;
bottom: 0;
color: transparent;
cursor: pointer;
height: auto;
left: 0;
position: absolute;
right: 0;
top: 0;
width: auto;
}
body {
color: #000;
font-family: "Inter", sans-serif;
background: #fafafb;
position: relative;
font-size: 14px;
word-break: break-word;
counter-reset: section;
font-weight: 400;
line-height: 1.5;
margin: auto;
min-height: 100vh;
}
img {
max-width: 100%;
height: auto;
}
table {
width: 100%;
}
a {
text-decoration: none;
}
::-webkit-scrollbar-track {
background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
background: grey;
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: #ccc;
}
::-webkit-scrollbar {
width: 8px;
height: 10px;
}
.clearfix {
&::after {
content: "";
clear: both;
display: block;
}
}
.inherit {
font-size: inherit;
font-weight: inherit;
line-height: inherit;
margin: 0;
}
.line-clamp-2 {
text-overflow: ellipsis;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-3 {
text-overflow: ellipsis;
-webkit-line-clamp: 3;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-4 {
text-overflow: ellipsis;
-webkit-line-clamp: 4;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-5 {
text-overflow: ellipsis;
-webkit-line-clamp: 5;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}
.icons {
background: url(../images/global-sprite.png) no-repeat;
background-size: 400px 400px;
background-position: 0 40px;
}
.admin-global-container {
max-width: 1720px;
margin: auto;
display: flex;
}
.admin-menu-container {
position: relative;
overflow: auto;
background: #004e99;
color: #fff;
width: 18%;
padding: 20px 0;
line-height: 20px;
a {
color: #fff;
}
.menu-logo {
display: table;
margin-bottom: 50px;
margin-left: 16px;
img {
height: 22px;
}
}
.menu-list {
margin: 50px 0;
}
details {
&[open] {
svg {
transform: rotate(90deg);
}
summary {
background: #81b5e4;
a {
font-weight: 700;
}
}
.icons {
filter: brightness(100);
}
.fa-angle-right {
transform: rotate(90deg);
}
}
}
summary {
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
padding-right: 16px;
border-radius: 4px;
position: relative;
transition: 0.3s all;
a {
padding: 8px 16px;
display: flex;
align-items: center;
}
}
svg {
position: absolute;
right: 16px;
transition: 0.3s all;
}
.item {
display: flex;
align-items: center;
padding: 0 16px;
line-height: 36px;
transition: 0.3s all;
border-radius: 4px;
&:hover {
background: #81b5e4;
.icons {
filter: brightness(100);
}
}
.icons {
width: 20px;
height: 20px;
margin-right: 13px;
}
}
.title {
/*width: calc(100% - 33px);*/
}
.sub-menu {
padding: 13px 13px 13px 45px;
position: relative;
&::before {
content: "";
width: 1px;
height: calc(100% - 39px);
background: #79b0e2;
position: absolute;
left: 20px;
top: 20px;
}
a {
display: block;
margin-bottom: 15px;
position: relative;
&:hover {
text-decoration: underline;
}
&.current {
font-weight: 700;
text-decoration: none;
}
&::before {
content: "";
width: 8px;
height: 8px;
border-radius: 50%;
background: #79b0e2;
position: absolute;
top: 6px;
left: -28px;
}
&:last-child {
margin: 0;
}
}
}
.icon-home {
background-position: -9px -7px;
}
.icon-order {
background-position: -45px -7px;
}
.icon-product {
background-position: -81px -8px;
}
.icon-customer {
background-position: -117px -8px;
}
.icon-marketing {
background-position: -154px -8px;
}
.icon-content {
background-position: -187px -8px;
}
.icon-stats {
background-position: -224px -8px;
}
.icon-system {
background-position: -262px -8px;
}
.icon-settings {
background-position: -297px -8px;
}
.icon-support {
background-position: -332px -7px;
}
.icon-account {
background-position: -367px -9px;
}
.icon-logout {
background-position: -9px -45px;
}
.icon-close {
position: absolute;
right: 10px;
}
.icon-investor_relation {
background-position: -9px -126px;
}
.icon-job {
background-position: -52px -126px;
}
.icon-pcbuilder {
background-position: -99px -126px;
}
.icon-payinstall {
background-position: -142px -125px;
}
.icon-distributor {
background-position: -187px -126px;
}
}
.admin-menu {
color: #fff;
z-index: 1;
.item {
display: flex;
align-items: center;
transition: 0.3s all;
position: relative;
&:hover,
&.current {
background: #81b5e4;
.icons {
filter: brightness(100);
}
}
&:hover {
.sub-menu {
left: calc(100% + 8px);
opacity: 1;
visibility: inherit;
}
&::before {
display: block;
}
}
&.bottom {
.sub-menu {
top: unset;
}
&:hover {
.sub-menu {
top: auto;
bottom: 0;
}
}
}
&::before {
position: absolute;
content: "";
width: 50px;
right: -20px;
height: 41px;
display: none;
}
&:nth-child(n + 10) {
.sub-menu {
top: unset;
bottom: -45px;
}
}
}
.sub-menu {
padding: 10px 22px 10px 15px;
border-radius: 6px;
background: #004e99;
box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25);
white-space: nowrap;
min-width: 150px;
z-index: -1;
transition: 0.2s all;
position: absolute;
left: calc(100% + 30px);
top: 0;
opacity: 0;
visibility: hidden;
min-width: 200px;
a {
display: block;
margin-bottom: 12px;
line-height: 18px;
position: relative;
&:hover {
text-decoration: underline;
}
&.current {
font-weight: 700;
text-decoration: none;
}
&::before {
content: "";
width: 8px;
height: 8px;
border-radius: 50%;
background: #79b0e2;
position: absolute;
top: 6px;
left: -16px;
}
&:last-child {
margin: 0;
}
}
}
.menu-list {
padding-left: 16px;
margin-top: 10px;
position: relative;
max-height: 350px;
overflow-y: auto;
padding-right: 10px;
margin-right: -12px;
&::before {
content: "";
width: 1.5px;
background: #79b0e2;
position: absolute;
left: 3px;
top: 7px;
bottom: 7px;
}
&::-webkit-scrollbar-thumb {
background: #fff;
}
&::-webkit-scrollbar-track {
background: transparent;
}
}
.icons {
width: 50px;
height: 40px;
}
.icon-home {
background-position: 7px 3px;
}
.icon-sell {
background-position: -29px 3px;
}
.icon-product {
background-position: -66px 3px;
}
.icon-user {
background-position: -103px 3px;
}
.icon-marketing {
background-position: -139px 3px;
}
.icon-content {
background-position: -172px 3px;
}
.icon-stats {
background-position: -208px 3px;
}
.icon-system {
background-position: -247px 3px;
}
.icon-settings {
background-position: -282px 2px;
margin-left: -1px;
}
.icon-support {
background-position: -318px 3px;
}
.icon-account {
background-position: -354px 2px;
}
.icon-logout {
background-position: 6px -34px;
}
.icon-investor_relation {
background-position: 6px -115px;
}
.icon-job {
background-position: -37px -114px;
}
.icon-pcbuilder {
background-position: -83px -114px;
}
.icon-payinstall {
background-position: -128px -114px;
}
.icon-distributor {
background-position: -173px -114px;
}
.logo {
position: relative;
}
.icon-close {
position: absolute;
top: 0;
right: -40px;
width: 40px;
display: block;
background-color: rgb(0 78 153 / var(--tw-bg-opacity));
i {
display: block;
margin: 0 auto;
text-align: center;
line-height: 40px;
}
}
}
.admin-content-container {
width: calc(100% - 50px);
&.show-large-menu {
width: 82%;
margin-left: 0;
}
.note-list {
min-width: 144px;
a {
display: block;
padding: 0 10px;
line-height: 35px;
transition: 0.2s all;
&:hover {
background: #f5f7ff;
color: #0041e8;
font-weight: 600;
}
}
}
.content-holder {
padding: 16px 0 16px 16px;
}
}
.table-fixed {
text-align: center;
td {
padding: 13px 8px;
border: 1px solid #ececec;
}
tbody {
td {
padding: 5px 8px;
&:nth-child(2),
&:nth-child(3) {
text-align: left;
}
&:nth-child(2) {
color: #0041e8;
}
}
}
}
.admin-home-tab {
overflow: auto;
a {
color: #a0a8b5;
padding: 9px 7.7px;
text-align: center;
border-right: 1px solid #dde1eb;
white-space: nowrap;
&:last-child {
border: 0;
}
&:hover,
&.current {
background: #0041e8;
color: #fff;
}
}
}
.home-report-holder {
display: none;
table {
width: 100%;
line-height: 20px;
text-align: center;
}
thead {
background: #f6f6f6;
font-weight: 500;
}
td {
border: 1px solid #ececec;
padding: 14px 5px;
a {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&:nth-child(2) {
text-align: left;
}
}
}
.home-todo-list {
td {
padding: 0 4px;
color: #000 !important;
&:nth-child(1),
&:nth-child(3),
&:nth-child(4) {
white-space: nowrap;
}
}
}
.product-list {
th {
padding: 10px;
border: 1px solid #ececec;
background: #f6f6f6;
}
td {
padding: 8px;
border: 1px solid #ececec;
}
}
.product-sale-info {
td {
padding: 14px;
border: 1px solid #ececec;
}
}
input[type="radio"] {
position: absolute;
&:before {
content: "";
background: #fff;
border-radius: 100%;
border: 1.5px solid #0041e8;
display: inline-block;
width: 18px;
height: 18px;
position: relative;
top: -0.2em;
margin-right: 1em;
vertical-align: top;
cursor: pointer;
text-align: center;
transition: all 250ms ease;
}
&:checked {
&:before {
background-color: #0041e8;
box-shadow: inset 0 0 0 3px #fff;
}
}
&:focus {
&:before {
outline: none;
border-color: #0041e8;
}
}
}
.table-seo {
td {
padding: 14px;
border: 1px solid #ececec;
}
}
.product-specifications {
td {
padding: 14px;
border: 1px solid #ececec;
}
}
.table-config {
th {
padding: 10px 5px;
background: #f6f6f6;
border: 1px solid #ececec;
}
td {
padding: 10px;
border: 1px solid #ececec;
}
}
.accessory {
th {
padding: 10px 5px;
background: #f6f6f6;
border: 1px solid #ececec;
}
td {
padding: 10px 6px;
border: 1px solid #ececec;
}
}
.icons {
width: 30px;
height: 30px;
display: block;
&.icon-search {
background-position: -71px -40px;
}
&.header-support {
height: 33px;
background-position: -116px -42px;
}
&.icon-notification {
height: 33px;
background-position: -165px -42px;
}
&.icon-cart {
background-position: -210px -36px;
}
&.icon-contact {
background-position: -246px -36px;
}
&.icon-pay {
background-position: -284px -36px;
}
&.icon-installment {
background-position: -318px -36px;
}
&.icon-increase {
width: 20px;
height: 20px;
background-position: -6px -85px;
}
&.icon-reduce {
width: 20px;
height: 20px;
background-position: -43px -83px;
}
&.icon-edit {
width: 16px;
height: 16px;
background-position: -114px -89px;
}
&.icon-view {
width: 16px;
height: 16px;
background-position: -187px -88px;
}
&.icon-remove {
width: 16px;
height: 16px;
background-position: -151px -88px;
}
&.icon-hide {
width: 16px;
height: 16px;
background-position: -224px -88px;
}
&.icon-upload {
background-position: -2px -43px;
transform: rotate(-90deg);
filter: invert(60%) sepia(90%) saturate(6183%) hue-rotate(228deg) brightness(92%) contrast(101%);
}
&.icon-feature {
width: 18px;
height: 16px;
background-position: -259px -88px;
}
}
.admin-header-container {
.menu-hide {
margin-left: 30px;
}
}
/* Bán hàng */
.page-input {
width: 100%;
height: 36px;
padding: 0 10px;
border-radius: 4px;
border: 1px solid #d8d8d8;
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
}
.order-page {
.order-page-title {
a {
margin: 0 2px 0 0;
border-radius: 4px 4px 0px 0px;
background: #f6f6f6;
color: #919699;
font-weight: 500;
padding: 0 24px;
&:hover,
&.current,
&.active {
background: #0041e8;
color: #fff;
}
}
}
.order-page-table {
text-align: center;
thead {
td {
padding: 8px;
}
}
td {
padding: 14px 8px;
text-align: center;
vertical-align: middle;
&:nth-child(4),
&:nth-child(10) {
text-align: left;
}
}
}
}
.order-page-table {
line-height: 20px;
a {
color: #0041e8;
}
table {
width: 100%;
}
thead {
background: #f6f6f6;
font-weight: 500;
text-align: center;
white-space: nowrap;
td {
padding: 8px;
}
}
tbody {
td {
vertical-align: top;
}
tr {
&:hover {
background: #f5f7ff;
}
}
}
td {
padding: 10px;
border: 1px solid #ececec;
}
select {
border-radius: 4px;
border: 1px solid #d8d8d8;
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
height: 32px;
display: block;
width: 100%;
padding: 0 0 0 5px;
font-weight: 400;
}
.icons {
width: 30px;
height: 30px;
border: 1px solid #ececec;
background-color: #f9f9f9;
border-radius: 5px;
}
.icon-edit {
border: 1px solid #0041e8;
background-color: #f5f7ff;
background-position: -108px -82px;
margin-right: 6px;
}
.icon-delete {
background-position: -145px -82px;
}
}
.order-detail-page {
.icon-edit {
border: transparent;
background-color: transparent;
margin: 0;
width: 18px;
height: 18px;
}
}
.is-close-btn {
background: #ececec !important;
border-radius: 50%;
top: 10px !important;
right: 10px !important;
color: #9e9e9e !important;
}
.td-border-0 {
td {
border: 0 !important;
padding: 3px 0;
width: auto;
}
}
.paging {
margin: 30px 0;
display: flex;
align-items: center;
justify-content: center;
line-height: 28px;
a {
margin: 0 3px;
min-width: 28px;
text-align: center;
font-size: 16px;
padding: 0 10px;
border-radius: 4px;
&:hover,
&.current,
&.active {
background: #0041e8;
color: #fff;
}
}
}
.global-breadcrumb-container {
padding: 16px;
line-height: 20px;
a {
display: inline-block;
&:hover {
color: #0041e8;
}
&::after {
content: "\f054";
font-family: Fontawesome;
font-size: 10px;
margin: 0 5px;
}
&:last-child {
color: #0041e8;
&::after {
content: none;
}
}
}
}
.table-brand {
th {
padding: 7px 5px;
background: #f6f6f6;
border: 1px solid #ececec;
}
td {
padding: 7px 6px;
border: 1px solid #ececec;
}
}
.table-vertical-inherit {
tbody {
td {
padding: 8px;
vertical-align: inherit;
}
}
}
.autocomplete-suggestions {
.item {
padding: 12px 0;
border-bottom: 1px solid #ededed;
.info {
width: calc(100% - 108px);
margin-right: 48px;
}
img {
width: 60px;
display: block;
}
.name {
font-weight: 600;
line-height: 20px;
}
.price {
font-weight: 600;
color: #fb4e4e;
line-height: 20px;
display: block;
margin-top: 5px;
}
}
}
.table-list-customer {
th {
padding: 7px 5px;
background: #f6f6f6;
border: 1px solid #ececec;
white-space: nowrap;
}
td {
padding: 7px 6px;
border: 1px solid #ececec;
}
}
.table-comment {
th {
padding: 7px 5px;
background: #f6f6f6;
border: 1px solid #ececec;
white-space: nowrap;
}
td {
padding: 7px 6px;
border: 1px solid #ececec;
}
}
.list-info-reply {
th {
padding: 7px 5px;
background: #f6f6f6;
border: 1px solid #ececec;
white-space: nowrap;
}
td {
padding: 7px 6px;
border: 1px solid #ececec;
}
}
.table-list-category {
td {
padding: 6px 5px;
border: 1px solid #ececec;
}
a {
color: #0041e8;
}
}
.input-file {
position: relative;
input {
opacity: 0;
}
.title {
position: absolute;
top: 0;
left: 10px;
display: flex;
align-items: center;
}
.btn-input-file {
width: 120px;
height: 30px;
text-align: center;
line-height: 30px;
border-radius: 4px;
border: 1px solid #0041e8;
color: #0041e8;
cursor: pointer;
margin-right: 10px;
&:hover {
background: #0041e8;
color: #fff;
}
}
}
.modal {
.order-page-table {
td {
vertical-align: middle;
}
}
.brand-letters {
a {
width: calc(100% / 9);
text-transform: capitalize;
color: #0041e8;
&:hover {
text-decoration: underline;
}
}
}
}
.table-brand {
th {
padding: 7px 5px;
background: #f6f6f6;
border: 1px solid #ececec;
white-space: nowrap;
}
td {
padding: 7px 6px;
border: 1px solid #ececec;
}
}
.table-attribute {
th {
padding: 7px 5px;
background: #f6f6f6;
border: 1px solid #ececec;
white-space: nowrap;
}
td {
padding: 7px 6px;
border: 1px solid #ececec;
}
a {
color: #0041e8;
}
.status {
width: 106px;
display: block;
height: 20px;
border: 1px solid gray;
font-size: 12px;
font-weight: 700;
text-align: center;
color: gray;
border-radius: 50px;
background: #fff;
&.on {
border: 1px solid #6dc580;
color: #03781d;
background: #f0f9f2;
}
&.off {
border: 1px solid red;
color: red;
background: rgb(255, 245, 245);
}
}
}
.table-value {
th {
padding: 7px 5px;
background: #f6f6f6;
border: 1px solid #ececec;
white-space: nowrap;
text-align: left;
}
td {
padding: 7px 6px;
border: 1px solid #ececec;
}
}
.table-config-group {
th {
padding: 7px 5px;
background: #f6f6f6;
border: 1px solid #ececec;
white-space: nowrap;
text-align: left;
}
td {
padding: 7px 6px;
border: 1px solid #ececec;
}
a {
color: #0041e8;
}
}
.table-config-pro {
th {
padding: 7px 5px;
background: #f6f6f6;
border: 1px solid #ececec;
white-space: nowrap;
text-align: left;
}
td {
padding: 7px 6px;
border: 1px solid #ececec;
}
.name {
color: #0041e8;
}
}
.table-addon,
.table-spec,
.spec-info,
.table-list-competitor,
.table-customer-group,
.table-review,
.table-newsletter,
.style-table {
th {
padding: 7px 5px;
background: #f6f6f6;
border: 1px solid #ececec;
white-space: nowrap;
text-align: left;
}
td {
padding: 7px 6px;
border: 1px solid #ececec;
}
.name {
color: #0041e8;
}
}
.input-date {
position: relative;
&::before {
position: absolute;
top: 50%;
right: 15px;
transform: translate(0, -50%);
content: "\f133";
font-family: "Font Awesome 6 Free";
}
}