Files
admin_hura/scss/pc_style.scss
2023-12-13 15:14:16 +07:00

401 lines
9.4 KiB
SCSS

*, ::after, ::before {box-sizing: border-box;}
button,input,select{outline:none!important;color:#000;border-radius:0}
button, input {overflow: visible;}
button, input, optgroup, select, textarea {margin: 0;font-family: inherit;font-size: inherit;line-height: inherit;border-radius: 0;}
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {-webkit-appearance: none;}
input[type=number] {-moz-appearance: textfield;}
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;
}
img{
max-width: 100%;
height: auto;
}
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;
}
.admin-global-container {
max-width: 1720px;
margin: auto;
display: flex;
}
.admin-menu-container {
position: relative;
overflow: auto;
background: #004E99;
color: #fff;
width: 16%;
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);
}
}
}
summary {
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
padding-right: 16px;
border-radius: 4px;
position: relative;
transition: .3s all;
a{
padding: 8px 16px;
display: flex;
align-items: center;
}
}
svg {
position: absolute;
right: 16px;
transition: .3s all;
}
.item {
display: flex;
align-items: center;
padding: 0 16px;
line-height: 36px;
transition: .3s all;
border-radius: 4px;
&:hover{
background: #81B5E4;
.icons{
filter: brightness(100);
}
}
}
.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;
}
&::before{
content: "";
width: 8px;
height: 8px;
border-radius: 50%;
background: #79B0E2;
position: absolute;
top: 6px;
left: -28px;
}
&:last-child{
margin: 0;
}
}
}
.icons{
width: 20px;
height: 20px;
margin-right: 13px;
}
.icon-home {
background-position: -9px -7px;
}
.icon-sell {
background-position: -45px -7px;
}
.icon-product {
background-position: -81px -8px;
}
.icon-user {
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;
}
}
.admin-menu {
color: #fff;
z-index: 1;
.item {
display: flex;
align-items: center;
transition: .3s all;
position: relative;
&:hover{
background: #81B5E4;
.icons{
filter: brightness(100);
}
.sub-menu {
left: calc(100% + 8px);
opacity: 1;
visibility: inherit;
}
}
}
.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: .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;
}
&::before{
content: "";
width: 8px;
height: 8px;
border-radius: 50%;
background: #79B0E2;
position: absolute;
top: 6px;
left: -18px;
}
&:last-child{
margin: 0;
}
}
}
.menu-list {
padding-left: 16px;
margin-top: 10px;
position: relative;
&::before{
content: "";
width: 1.5px;
background: #79B0E2;
position: absolute;
left: 1px;
top: 7px;
bottom: 7px;
}
}
.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;
}
}
.admin-content-container{
.note-list{
min-width: 144px;
a{
display: block;
padding: 0 10px;
line-height: 35px;
transition: .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;
}
}
}