Files
safekat/httpdocs/themes/focus2/scss/layout/sidebar/_sidebar-right.scss
2023-04-24 13:00:46 +02:00

191 lines
4.5 KiB
SCSS

// @import "../../abstracts/variable";
.sidebar-right {
// display: none;
right: -15.625rem;
position: fixed;
top: 0;
width: 15.625rem;
background-color: $white;
height: calc(100% - 7.0625rem);
margin-top: 5rem;
transition: all .5s ease-in-out;
padding-bottom: 1.875rem;
box-shadow: -2px 3px 10px 0px rgba(119, 119, 119, 0.1);
.slimScrollDiv {
@at-root [direction="rtl"] #{&} {
overflow: visible !important;
}
}
.sidebar-right-trigger {
position: absolute;
z-index: 9;
top: 4.75rem;
right: 100%;
background-color: $primary;
color: $white;
display: inline-block;
height: 2.125rem;
width: 2.125rem;
text-align: center;
font-size: 1.3125rem;
line-height: 2.2rem;
&:hover {
color: $white;
}
}
&.show {
right: 0;
z-index: 999;
}
.nav-tabs {
justify-content: space-between;
position: sticky;
top: 0;
background-color: $white;
z-index: 2;
@at-root [data-theme-version="dark"] #{&} {
background-color: $d-bg;
}
.nav-item {
margin-bottom: 0;
flex: 1;
.nav-link {
border: 0;
font-size: 1.125rem;
position: relative;
text-align: center;
background-color: $white;
&::after {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
content: "";
background: transparent;
}
@at-root [data-theme-version="dark"] #{&} {
background-color: $d-bg;
}
&.active {
@at-root [data-theme-version="dark"] #{&} {
border-right: none;
border-left: none;
border-top: none;
}
}
}
}
}
.tab-content {
padding: 1.25rem;
.tab-pane {
.admin-settings {
p {
margin-bottom: 0.3125rem;
}
//All color switcher scss goes here
input[type="radio"] {
display: none;
+ label {
display: inline-block;
width: 20px;
height: 20px;
cursor: pointer;
margin: 3px 8px;
transition: all .1s ease;
}
&:checked {
+ label {
position: relative;
&::after {
height: 12px;
width: 12px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
content: "";
position: absolute;
background-color: $white;
}
}
}
}
}
}
}
#nav_header,
#header,
#sidebar {
@each $name, $color in $theme_backgrounds {
&_#{$name} {
+ label {
background-color: $color;
}
}
}
&_color_1 {
+ label {
border: 1px solid $muted;
}
}
}
}
@keyframes bounce {
0% {
transform: translateX(-8%);;
-webkit-transform: translateX(-8%);;
}
50% {
transform: translateX(8%);;
-webkit-transform: translateX(8%);;
}
100% {
transform: translateX(-8%);;
-webkit-transform: translateX(-8%);;
}
}
@-webkit-keyframes bounce {
0% {
transform: translateX(-8%);;
-webkit-transform: translateX(-8%);;
}
50% {
transform: translateX(8%);;
-webkit-transform: translateX(8%);;
}
100% {
transform: translateY(-8%);;
-webkit-transform: translateY(-8%);;
}
}