/home2/mshostin/crm.ms-hostingladz.com/assets/scss/_apps.scss
// functions to urlencode the svg string
@function str-replace($string, $search, $replace: '') {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
}
@return $string;
}
@function url-encode($string) {
$map: (
"%": "%25",
"<": "%3C",
">": "%3E",
" ": "%20",
"!": "%21",
"*": "%2A",
"'": "%27",
'"': "%22",
"(": "%28",
")": "%29",
";": "%3B",
":": "%3A",
"@": "%40",
"&": "%26",
"=": "%3D",
"+": "%2B",
"$": "%24",
",": "%2C",
"/": "%2F",
"?": "%3F",
"#": "%23",
"[": "%5B",
"]": "%5D"
);
$new: $string;
@each $search, $replace in $map {
$new: str-replace($new, $search, $replace);
}
@return $new;
}
@function inline-svg($string) {
@return url('data:image/svg+xml;charset=US-ASCII,#{url-encode($string)}');
}
@each $color, $value in $theme-colors {
@each $d, $v in $darken {
.bg-#{$color}-#{$d} {
background: darken($value, $v)
}
}
}
@each $color, $value in $theme-colors {
@each $l, $c in $lighten {
.bg-#{$color}-#{$l} {
background: lighten($value, $c)
}
}
}
@each $color, $value in $theme-colors {
@each $d, $v in $darken {
.text-#{$color}-#{$d} {
color: darken($value, $v) !important;
}
}
}
@each $color, $value in $theme-colors {
@each $l, $c in $lighten {
.text-#{$color}-#{$l} {
color: lighten($value, $c) !important;
}
}
}
body {
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
a {
color: $primary;
&:hover {
text-decoration: none;
}
}
.h1, .h2, .h3,
h1, h2, h3 {
font-weight: $font-weight-bolder;
}
.h4, .h5, .h6,
h4, h5, h6, strong {
font-weight: $font-weight-bold;
}
.small, small {
font-size: 0.825rem;
font-weight: 300;
letter-spacing: .01em;
}
.badge {
font-weight: 400;
vertical-align: middle;
font-size: .65rem;
line-height: 1.3;
&-pill {
border-radius: .3rem;
}
}
.text-muted {
font-weight: 300;
}
button,
.btn {
&:focus {
outline: none;
box-shadow: none;
}
/* fix light button */
&-light {
border-color: $border-color;
}
}
.shadow {
box-shadow: $box-shadow !important;
}
.shadow-lg {
box-shadow: $box-shadow-lg !important;
}
/* svg styles */
.fill-primary {
fill : $primary;
}
.bg-svg {
background-size: 50%;
background-repeat: no-repeat;
background-image: url('../assets/images/design_components.svg');
background-position-x: 100%;
background-position-y : 50%;
}
.rounded-top {
&-lg {
border-top-left-radius: $border-radius-lg !important;
border-top-right-radius: $border-radius-lg !important;
}
}
.page-item {
.page-link {
@include border-radius($border-radius);
}
}
/* custom animation */
@keyframes pulseAnim {
0% {
box-shadow: 0 0 0 0 $shadow-color;
}
70% {
box-shadow: 0 0 0 .5rem $shadow-color;
}
100% {
box-shadow: 0 0 0 0 $shadow-color;
}
}
/* dropdown */
.dropdown-toggle {
&::after {
display: inline-block;
// margin-left: 0.255em;
font-family: "feather";
content: "\e92e";
font-size: 0.75rem;
}
&.more-vertical {
&::after {
content: "\e9a5";
}
}
&.more-horizontal{
&::after {
content: "\e9a4";
}
}
}
/* navbar */
.navbar-nav {
.nav-link {
padding: 0.5rem 1em;
.fe {
display: inline-block;
vertical-align: middle;
padding-bottom: 4px;
}
}
.dropdown {
.dropdown-toggle:hover {
&:after {
content: "\e930";
}
}
}
//submenu
.dropdown-menu {
.nav-item {
.dropdown-toggle::after {
content: "\e930";
position: absolute;
right: .5rem;
}
> .dropdown-menu {
top: 0;
left: 100%;
margin-top: -1px;
}
}
}
}
.nav-notif {
position: relative;
.dot {
position: absolute;
}
}
.navbar-toggler {
border-color: transparent !important;
&-icon {
background: transparent !important;
}
}
.brand {
&-sm {
width: 2rem;
}
&-md {
width: 4rem;
}
}
[data-mode="dark"] {
.fe::before {
content: "\e9e3";
}
}
[data-mode="light"] {
.fe::before {
content: "\e9a3";
}
}
.searchform {
position: relative;
&:before {
font-family: "feather";
content: "\e9cc";
position: absolute;
left: .8rem;
}
.form-control {
padding-left: 2rem;
}
&.searchform-lg {
&:before {
left: 1rem;
top: 0.7rem;
}
}
}
/* tabs */
.nav-tabs {
.nav-link {
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 3px;
margin-right: 1.7rem;
padding-left: 0;
padding-right: 0;
}
.small {
font-weight: 300;
}
}
/* custom tabs with icon - used with navpill */
.nav-icons {
.nav-link {
&.active,
&:hover,
&:focus {
background-color: $card-bg;
color: $primary;
}
}
&.icon-top {
.nav-link {
border-radius: 0;
border-top-left-radius: $border-radius !important;
border-top-right-radius: $border-radius !important;
margin-right: 1px;
}
}
&.icon-left {
.nav-link {
border-radius: 0;
border-top-left-radius: $border-radius !important;
border-bottom-left-radius: $border-radius !important;
margin-bottom: 1px;
}
}
}
/* wrapper */
.headerbg {
.wrapper {
position: relative;
&:before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 16rem;
content: "";
}
}
}
/* collapsed layout with sidebar */
.vertical {
&.collapsed,
&.condensed {
.sidebar-left {
min-width: 5rem;
width: 5rem;
.navbar-toggler,
.nav-heading,
.btn-box {
display: none;
}
.navbar-nav > .nav-item {
text-align: center;
> a > span,
> a.dropdown-toggle::after,
> ul.show {
display: none;
}
}
}
.main-content,
.topnav {
margin-left: 5rem;
}
}
}
.horizontal {
.main-content {
margin: 2.5rem;
}
}
.vertnav {
.badge {
float: right;
}
.dropdown-toggle::after {
float: right;
}
}
.vertical,
.vertical.hover,
.condensed.open {
.sidebar-left {
overflow-y: auto;
overflow-x: hidden;
min-width: 16rem;
width: 16rem;
height: 100%;
position: fixed;
z-index: 1000;
top: 0;
left: 0;
transition: all 0.4s;
box-shadow: inset -1px 0 0 $shadow-color;
-moz-transition: width .3s ease-in-out, left .4s ease-in-out;
-webkit-transition: width .3s ease-in-out, left .4s ease-in-out;
-moz-transition: width .3s ease-in-out, left .4s ease-in-out;
-o-transition: width .3s ease-in-out, left .4s ease-in-out;
transition: width .3s ease-in-out, left .4s ease-in-out;
.nav-heading,
.btn-box {
display: inline-block;
}
.navbar-nav > .nav-item {
text-align: left;
> a > span,
> a.dropdown-toggle::after {
display : inline-block;
}
.nav-link {
padding-left: 1.5rem;
padding-right: 1.5rem;
&:hover,
&:focus,
&.active {
position: relative;
&:before {
content: "";
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 2px;
background-color: $white;
}
}
}
> ul {
// padding-left: 2rem;
// padding-right: 2rem;
&.show {
display : inline-block;
}
.nav-link {
padding-left: 3.5rem;
&:hover,
&:focus,
&.active {
&:before {
display: none;
}
}
}
}
}
} //sidebar-left
.topnav {
margin-left: 16rem;
// padding-left: 2.2rem;
// padding-right: 2.2rem;
}
.main-content {
margin-left: 16rem;
overflow: hidden;
padding: 1.2rem;
min-height: 100vh;
transition: margin-left .3s ease-in-out,left .3s ease-in-out,margin-right .3s ease-in-out,right .3s ease-in-out;
}
}
.vertical {
&.condensed.hover {
.sidebar-left {
position: fixed;
}
.topnav,
.main-content {
margin-left: 5rem;
}
.wrapper {
position: relative;
}
}
}
.horizontal {
.navbar-nav {
.nav-link {
border-radius: $border-radius;
}
.dropdown-menu {
position: absolute;
padding-left: 1em;
padding-right: 1em;
min-width: 12rem;
}
}
}
.vertical {
&.secondary {
.main-content {
margin-left: 20rem !important;
padding-left: 2rem;
padding-right: 2rem;
}
.sidebar-left {
width: 20rem;
min-width: 20rem;
position: relative;
.primary-nav {
width: 4.2rem;
position: fixed;
top: 0;
bottom: 0;
.nav-link {
text-align: center;
padding: 1rem 1.5rem;
}
.nav-bottom {
position: absolute;
bottom: 1rem;
display: inline;
}
}
.secondary-nav {
position: fixed;
top:0;
bottom: 0;
width: 16rem;
left: 4.2rem;
height: 100%;
overflow-y: auto;
overflow-x: hidden;
.navbar-nav {
> .nav-item {
.nav-link {
&:hover,
&:focus,
&.active {
&:before {
display: none;
}
}
}
}
}
.searchform {
margin-left: 1.5rem;
&::before {
left: 0;
}
.form-control {
padding-left: 2rem;
}
}
}
.toggle-secondary {
display: none;
position: fixed;
left: 19rem;
bottom: 2rem;
}
&:hover {
.toggle-secondary {
display: inline-flex;
}
}
}
}
&.toggled {
.main-content {
margin-left: 4rem !important;
}
.sidebar-left {
width: 4rem;
min-width: 4rem;
.secondary-nav {
width: 0;
min-width: 0;
}
.toggle-secondary {
display: inline-flex;
left: 5rem;
}
}
}
}
/* boxed layout */
.boxed,
.boxed.hover,
.boxed.open {
.container {
padding: 0;
position: relative;
}
.sidebar-left {
position: absolute !important;
left: 0;
}
&.vertical {
&.collapsed,
&.condensed {
.main-content {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
}
.topnav {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
}
}
/* boxed hover */
.boxed.hover,
.boxed.open {
&.vertical {
&.collapsed,
&.condensed {
.main-content,
.topnav {
margin-left: 16rem;
}
}
}
}
.thumbnail {
&-sm {
width: 32px;
}
}
/* form element */
select {
border-radius: 0;
-webkit-border-radius: 0px;
}
/* custom card height */
.card {
&.eq-card {
margin-bottom: 1.5rem;
height: calc(100% - 25px);
}
.card-header {
.nav-tabs .nav-link {
padding: 0.8rem 0.2rem;
}
}
}
/* table */
.table {
th,
td {
vertical-align: middle !important;
}
thead {
th {
font-weight: 400;
}
}
tbody {
tr {
th {
font-weight: 400;
}
}
}
tr.collapse {
border-top: 1px solid $border-color;
border-bottom: 1px solid $border-color;
&:hover {
cursor: pointer;
}
}
&.border-v {
border: 1px solid $border-color;
tbody tr td,
thead tr th,
thead {
border-left: 1px solid $border-color;
border-right: 1px solid $border-color;
}
thead tr th,
thead {
border: 1px solid $border-color;
}
}
// remove default
.thead-light,
.thead-border-0 {
th {
border-width: 0;
}
}
}
/* custom table hoverr */
.table-hover {
tbody {
tr {
&:hover {
box-shadow: $box-shadow;
}
}
}
}
/* custom modal */
.modal{
&.fade.modal-slide {
.modal-dialog {
position: absolute;
min-width: 20%;
right: 0;
margin: 0;
height: 100%;
-webkit-transform: translate3d(100%,0,0);
transform: translate3d(100%,0,0);
-ms-transform: translate(100%,0);
}
&.show {
.modal-dialog {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
-ms-transform: translate(0,0);
}
}
.modal-content {
height: 100%;
border: none;
background: transparent;
}
}
&.fade.modal-slide.slide-left {
.modal-dialog {
right: auto;
left: 0;
-webkit-transform: translate3d(-100%,0,0);
transform: translate3d(-100%,0,0);
-ms-transform: translate(-100%,0);
}
&.show {
.modal-dialog {
width: 21rem;
min-width: 21rem;
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
-ms-transform: translate(0,0);
}
}
}
&.fade.modal-full {
.modal-content{
border: none;
background: transparent;
}
}
}
/* apexchart */
.apexcharts-canvas {
&.apexcharts-theme-dark {
background: transparent !important;
}
}
.map-box {
margin: 0 auto;
}
/* avatars list */
.avatars-list {
list-style: none;
margin: 0;
padding: 0;
li {
display: inline;
}
> li + li {
margin-left: -0.75rem;
}
}
.avatar{
&-sm img {width: 32px}
&-md img {width: 48px}
&-lg img {width: 64px; }
&-xl img {width: 110px;}
}
.squircle {
height: 84px;
width: 84px;
margin: 1em auto;
border-radius: 24px;
position: relative;
text-align: center;
display: flex;
&:before,
&:after {
content: '';
overflow: hidden;
position: absolute; left: 0; top: 0;
width: 100%; height: 100%;
background: inherit;
border-radius: 100%;
-webkit-transform: scaleX(1.9) scaleY(1.02);
transform: scaleX(1.9) scaleY(1.02);
clip: rect(0, 50px, 84px, 32px);
}
&:after {
-webkit-transform: scaleY(2) scaleX(1.02) rotate(90deg);
transform: scaleY(2) scaleX(1.02) rotate(90deg);
}
i,
.fe {
z-index: 1;
}
}
/* timeline */
.timeline {
.timeline-item {
position: relative;
&::before {
content: "";
height: 10px;
width: 10px;
border-radius: 50%;
display: inline-block;
position: absolute;
left: 10px;
top: 0;
z-index: 2;
}
&::after {
content: "";
position: absolute;
left: 15px;
top: 0;
width: 1px;
background: $border-color;
bottom: 0;
z-index: 1;
}
&.item-primary::before {
background-color: $primary;
}
&.item-success::before {
background-color: $green;
}
&.item-info::before {
background-color: $cyan;
}
&.item-warning::before {
background-color: $yellow;
}
&.item-danger::before {
background-color: $red;
}
}
}
/* custom sharpe */
.square,
.circle {
display: inline-flex;
align-items: center!important;
text-align: center;
&-sm {
width: 32px;
height: 32px;
}
&-md {
width: 48px;
height: 48px;
}
&-lg {
width: 64px;
height: 64px;
}
.fe {
margin: 0 auto;
}
}
/* custom circle */
.circle {
border-radius: 50%;
}
/* custom dot */
.dot {
content: "";
border-radius: 50%;
display: inline-block;
&-md {
height: 6px;
width: 6px;
}
&-lg {
width: 10px;
height: 10px;
}
}
.dot-anim {
box-shadow: 0 0 0 0 $shadow-color;
animation: pulseAnim 2s infinite;
}
/* custom butlet */
.butlet {
display: inline-block;
width: 10px;
height: 2px;
&.butlet-bar {
width: 4px;
height: auto;
}
}
/* Calendar */
.fc-bootstrap {
table,
.fc-head-container {
border-width: 0 !important;
font-size: $font-size-base;
}
th,
td {
border-left-width: 0;
border-right-width: 0;
padding: .2rem 1rem;
border-bottom-width: 0 !important;
}
.fc-toolbar {
.btn {
font-size: 0.75rem;
text-transform: uppercase;
}
.fc-next-button {
margin-left: -1px;
}
}
hr.fc-divider {
padding: 0;
margin-top: -1px;
border-color: $border-color;
}
.fc-popover {
position: absolute;
}
}
/* svg gauge */
.gauge-container {
width: 64px;
height: 64px;
position: relative;
}
.gauge-container > .gauge .dial {
stroke-width: 8;
}
.gauge-container > .gauge .value {
stroke-width: 8;
}
.gauge-container > .gauge .value-text {
stroke-width: 8;
font-weight: 400;
font-size: 1.2rem;
font-family: $font-family-sans-serif;
}
.gauge-container.g3 > .gauge .dial {
stroke: transparent;
stroke-width: 6;
transform: scale(0.9,0.9) translate3d(5.5px, 5.5px, 0);
}
.gauge-container.g4 > .gauge .value-text {
transform: translate3d(26%, 20%, 0);
display: inline-block;
font-size: 1.2rem;
font-weight: 700;
}
.gauge-container.g4 .value-text {
position: absolute;
bottom: -5px;
right: -5px;
display: inline-block;
}
/* file manager */
.info-content {
overflow-y: auto;
overflow-x: hidden;
}
.file,
.file-list {
position: relative;
.file-info,
.file-action {
position: absolute;
display: none;
}
.file-info {
bottom: .5rem;
left: 0;
right: 0;
display: inline;
}
.file-action {
top: .5rem;
right: .5rem;
}
&:hover {
cursor: pointer;
.file-action {
display: inline;
}
}
.file-icon,
.folder-icon {
background-color: transparent;
display: inline-flex;
align-items: center !important;
text-align: center;
background-size: 100% 100%;
background-repeat: no-repeat;
.fe {
margin: 0 auto;
}
}
.file-icon-sm,
.folder-icon-sm {
width: 32px;
height: 32px;
}
.file-icon-md,
.folder-icon-md {
width: 64px;
height: 64px;
}
.file-icon-lg,
.folder-icon-lg {
width: 128px;
height: 128px;
}
.file-icon {
background-image: inline-svg('<svg width="120" height="160" viewBox="0 0 120 160" xmlns="http://www.w3.org/2000/svg"><path d="M14 160H105.839C113.571 160 119.839 153.732 119.839 146V33.7056L82.6625 0H14C6.26801 0 0 6.26801 0 14V146C0 153.732 6.26801 160 14 160Z" fill="'+lighten($primary, 25%)+'"/><path d="M88.0304 33.6717C85.1722 33.6717 82.8578 31.5227 82.8578 28.8688L82.8578 2.07975e-06L120 33.6717L88.0304 33.6717Z" fill="'+$primary+'"/></svg>');
}
.folder-icon {
background-image: inline-svg('<svg width="120" height="100" viewBox="0 0 120 100" xmlns="http://www.w3.org/2000/svg"><path d="M48 0H12C5.45455 0 0 5.68182 0 12.5V87.5C0 94.3182 5.45455 100 12 100H108C114.545 100 120 94.3182 120 87.5V25C120 18.1818 114.545 12.5 108 12.5H60L48 0Z" fill="'+$primary+'"/></svg>');
}
}
.fname {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
@include media-breakpoint-down(md) {
.vertical,
.vertical.hover,
.vertical.condensed {
.sidebar-left {
min-width: 0;
width: 0;
border-right: none !important;
}
.topnav,
.main-content {
margin-left: 0;
width: 100%;
}
.main-content {
padding: .5rem;
}
.vertnav {
.navbar-toggler {
display: none;
}
}
.topnav {
padding-left: 1.2rem;
padding-right: 1.2rem;
}
}
.vertical {
&.collapsed,
&.condensed.open {
.sidebar-left {
min-width: 16rem;
width: 16rem;
.nav-heading,
.btn-box {
display: inline-block;
}
.navbar-nav > .nav-item {
text-align: left;
> a > span,
> a.dropdown-toggle::after,
> ul.show {
display : inline-block;
}
}
.toggle-btn {
position: absolute;
z-index: 1001;
}
}
// .main-content {
// padding-left: 0;
// padding-right: 0;
// }
.topnav,
.main-content {
margin-left: 16rem;
}
}
}
.topnav {
.form-inline {
display: none;
}
}
.horizontal {
.navbar-nav {
.dropdown-menu {
position: absolute;
background-color: transparent;
}
}
.navbar-slide {
position: fixed;
left: 0;
height: 100vh;
width: 0;
max-width: 0;
bottom: 0;
z-index: 1000;
overflow-y: auto;
overflow-x: hidden;
transition: all 0.4s;
box-shadow: inset -1px 0 0 $shadow-color;
-moz-transition: width .3s ease-in-out, left .4s ease-in-out;
-webkit-transition: width .3s ease-in-out, left .4s ease-in-out;
-moz-transition: width .3s ease-in-out, left .4s ease-in-out;
-o-transition: width .3s ease-in-out, left .4s ease-in-out;
transition: width .3s ease-in-out, left .4s ease-in-out;
.dropdown-menu {
border: none;
margin-left: 1rem;
background-color: transparent;
position: relative;
padding-left: 0;
padding-right: 0;
.nav-item {
> .dropdown-menu {
margin-top: 0;
left: inherit;;
}
}
}
.nav-item {
.dropdown-toggle::after {
float: right;
position: relative;
content: "\e92e";
right: 0;
}
.nav-link {
border-radius: 0;
padding: .7rem 1rem .7rem 1.5rem;
}
&.more {
> .dropdown-toggle {
display: none;
}
> .dropdown-menu {
width: 100%;
margin: 0;
padding: 0;
display: inline-block;
}
}
}
&.show {
width: 16rem;
max-width: 16rem;
padding: 0;
display: block !important; //overide d-none
}
}
.main-content {
margin: 1rem;
}
}
/* secondary sidebar */
.vertical {
&.secondary {
.main-content {
padding-left: 2rem;
padding-right: 2rem;
margin-left: 0 !important;
}
.sidebar-left {
width: 0;
min-width: 0;
.primary-nav {
width: 0;
min-width: 0;
left: -4.2rem;
}
.secondary-nav {
width: 0;
left: 0;
}
.toggle-secondary {
display: inline-flex;;
left: 1rem;
}
}
}
&.toggled {
.main-content {
margin-left: 20rem !important;
}
.sidebar-left {
width: 20rem;
min-width: 20rem;
.primary-nav {
width: 4.2rem;
min-width: 4.2rem;
left: 0;
}
.secondary-nav {
width: 16rem;
left: 4.2rem;
}
.toggle-secondary {
display: inline-flex;
left: 19rem;
}
}
}
}
/* modal */
.modal{
&.show.modal-slide {
.modal-dialog {
width: 100%;
}
}
}
/* fix table responsive */
.table {
display: block;
overflow-x: auto;
}
.fc-bootstrap {
table {
tbody{
width: 100%;
}
}
td {
padding: 2px;
}
.fc-toolbar {
display: block;
.fc-left {
display: none;
}
.fc-center {
margin-bottom: 1rem;
}
.fc-right {
.btn-group {
width: 100%;
}
}
}
.fc-scroller {
height: 100%;
}
}
/* profile */
.profile {
text-align: center;
}
/* wizard */
.wizard {
&.vertical {
> .steps,
.content {
width: 100%;
}
}
> .steps {
> ul > li {
width: 100%;
}
}
}
/* file manager */
.file-container {
&.collapsed {
.file-panel {
display: none;
}
.info-panel {
width: 100%;
border: none;
}
}
}
}