Files
admin_hura_8/assets/script/pc_style.scss
2025-02-20 16:27:50 +07:00

846 lines
17 KiB
SCSS

@import "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css";
:root {
--p: 0.48 0.25 263.47;
}
*,
::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%;
}
table td,
table th {
padding: 8px !important;
border: 1px solid #ececec;
}
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;
}
.icons {
background: url(../images/global-sprite.png) no-repeat;
background-size: 400px 400px;
background-position: 0 40px;
}
.admin-global-container {
margin: auto;
display: flex;
}
.admin-menu-container {
position: relative;
background: #004180;
color: #fff;
width: 245px;
padding: 20px 0;
line-height: 20px;
&.active {
overflow-y: auto;
overflow-x: hidden;
}
&.show {
display: block;
z-index: 999;
}
a {
color: #fff;
}
.menu-logo {
display: table;
margin-bottom: 25px;
margin-left: 16px;
img {
height: 22px;
}
}
svg {
position: absolute;
right: 16px;
transition: 0.3s all;
}
.item {
&.active {
background: #22a2ff;
.icons {
filter: brightness(100);
}
}
&:hover {
background: #22a2ff;
.icons {
filter: brightness(100);
}
.hover-menu {
display: block;
}
}
.icons {
width: 20px;
height: 20px;
margin-right: 13px;
}
}
.title-main {
width: 100%;
}
.box-item {
&:hover {
.hover-menu {
visibility: visible;
opacity: 1;
left: calc(100% + 10px);
&::before {
display: block;
}
}
}
}
.sub-menu {
position: relative;
display: none;
a {
display: block;
padding: 10px 10px 10px 45px;
position: relative;
&:hover {
text-decoration: underline;
}
&.current {
font-weight: 700;
text-decoration: none;
background: #22a2ff;
border-radius: 4px;
}
&:last-child {
margin: 0;
}
}
&.active {
display: block;
}
}
.hover-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;
z-index: -1;
transition: 0.2s all;
position: absolute;
left: calc(100% + 30px);
top: 0;
opacity: 0;
visibility: hidden;
min-width: 200px;
z-index: 999;
max-height: 400px;
overflow: auto;
&.bottom {
bottom: -30px;
top: unset;
}
&::before {
position: absolute;
left: -15px;
top: 0;
width: 30px;
height: 100%;
content: "";
display: none;
}
a {
display: block;
line-height: 18px;
position: relative;
padding-bottom: 12px;
padding-left: 20px;
&::before {
content: "";
width: 8px;
height: 8px;
border-radius: 50%;
background: #79b0e2;
position: absolute;
top: 4px;
left: 0;
z-index: 9;
}
&::after {
content: "";
width: 1px;
height: 100%;
background: #fff;
position: absolute;
top: 4px;
left: 4px;
}
&:last-child {
padding-bottom: 0;
&::after {
display: none;
}
}
&:hover {
text-decoration: underline;
}
}
}
.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-content-container {
width: calc(100% - 50px);
.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;
}
}
.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;
}
}
}
.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;
}
&.icon-copy {
width: 15px;
height: 15px;
background-position: -330px -88px;
}
}
/* 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;
}
}
}
}
.is-close-btn {
background: #ececec !important;
border-radius: 50%;
top: 10px !important;
right: 10px !important;
color: #9e9e9e !important;
}
.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;
}
}
}
}
#js-form-search [type="search"]:focus::before {
position: absolute;
content: "\f00d";
font-family: "Font Awesome 6 Free";
font-weight: 900;
left: 0;
top: 0;
}
.autocomplete-suggestions {
height: 334px;
overflow-y: auto;
z-index: 999;
.item {
padding: 10px 15px;
border-bottom: 1px solid #ededed;
&:hover {
font-weight: 700;
background: #f6f6f6;
}
}
}
.input-file {
position: relative;
input {
opacity: 0;
position: relative;
z-index: 999;
}
.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 {
.brand-letters {
a {
width: calc(100% / 9);
text-transform: capitalize;
color: #0041e8;
&:hover {
text-decoration: underline;
}
}
}
}
.input-date {
position: relative;
&::before {
position: absolute;
top: 50%;
right: 15px;
transform: translate(0, -50%);
content: "\f133";
font-family: "Font Awesome 6 Free";
}
}
.checkbox-success {
--chkbg: #0041e8;
--chkfg: #fff;
border-color: #000 !important;
width: 1.2rem;
height: 1.2rem;
border-radius: 3px;
}
.checkbox-success:checked,
.checkbox-success[aria-checked="true"] {
background-color: #0041e8;
border-color: #0041e8 !important;
}
.radio {
width: 1.2rem;
height: 1.2rem;
}
.box-note {
position: relative;
i {
cursor: pointer;
}
.content {
position: absolute;
left: 30px;
top: 6px;
width: 250px;
display: none;
font-size: 12px;
background: #e4b200;
color: #fff;
padding: 10px;
box-shadow: 0px 1px 1px 0px #00000026;
border-radius: 6px;
z-index: 9;
&::before {
position: absolute;
content: "";
left: -14px;
top: 0;
width: 20px;
height: 15px;
clip-path: polygon(0 0, 100% 100%, 100% 0);
background: #e4b200;
border-radius: 5px 0 0 0;
}
}
&:hover {
.content {
display: block;
}
}
}
.order-detail-page .select2-container {
width: 100% !important;
margin-top: 10px;
}
#overlay {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.2);
z-index: 9;
display: none;
&.active {
display: block;
}
}
.status-notificatiom {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #fff;
width: 550px;
height: 240px;
box-shadow: 0px 1px 1px 0px #0000001a;
border-radius: 15px;
display: none;
z-index: 9999;
&.active {
display: block;
}
.icon-close {
position: absolute;
right: 10px;
top: 10px;
width: 30px;
height: 30px;
background: #ececec;
line-height: 30px;
text-align: center;
border-radius: 50%;
}
.content {
height: 100%;
}
.fa-check {
width: 70px;
height: 70px;
background: #52c41a;
color: #fff;
font-size: 50px;
text-align: center;
line-height: 70px;
border-radius: 50%;
}
b {
font-size: 24px;
font-weight: 400;
margin-top: 5px;
}
p {
color: #00000073;
}
.fa-triangle-exclamation {
font-size: 70px;
color: #ffc53d;
}
}
.table {
a {
color: #0041e8;
}
.btn {
color: #fff;
padding: 0;
}
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 {
background-color: #f5f7ff;
background-position: -108px -82px;
}
.icon-delete {
background-position: -145px -82px;
}
.icon-view {
background-position: -180px -82px;
}
.icon-feature {
background-position: -255px -82px;
}
}
.home-report-holder {
display: none;
}
.not-border td {
border: 0;
}
.not-padding td {
padding: 0;
}
@media screen and (min-width: 2560px) {
body {
font-size: 18px;
}
}
@media (min-width: 1920px) {
.text-custom-14 {
font-size: 14px !important;
}
.text-custom-16 {
font-size: 16px !important;
}
.text-custom-22 {
font-size: 22px !important;
}
.text-custom-28 {
font-size: 28px !important;
}
}
@media (max-width: 800px) {
#js-form-search {
width: 300px;
}
}
@media (max-width: 675px) {
.admin-menu-container {
display: none;
}
.admin-content-container {
width: 100%;
margin-left: 0;
.content-holder {
padding: 10px;
}
.item-stat {
grid-column: span 2 / span 2;
}
.item-chart {
grid-column: span 4 / span 4;
}
}
#js-form-search {
width: 250px;
}
}
@media (max-width: 540px) {
#js-form-search {
display: none;
}
.admin-content-container {
margin-left: 0;
}
}