61 lines
1.3 KiB
CSS
61 lines
1.3 KiB
CSS
:root {
|
|
--offcanvas-background-color: var(--default-color);
|
|
/*--offcanvas-shadow: var(--shadow-main);*/
|
|
--offcanvas-shadow: -15px -15px 20px rgb(255 255 255 / 30%), 15px 15px 20px rgb(0 0 0 / 10%);
|
|
}
|
|
|
|
.offcanvas-switcher {
|
|
top: 320px !important;
|
|
position: fixed;
|
|
width: 60px;
|
|
height: 60px;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
box-sizing: border-box;
|
|
right: 0;
|
|
z-index: 980;
|
|
|
|
background: var(--offcanvas-background-color);
|
|
border-radius: 6px 0px 0px 6px;
|
|
|
|
transition: .3s ease-out;
|
|
transition-property: right;
|
|
|
|
box-shadow: var(--offcanvas-shadow);
|
|
clip-path: inset(-30px 0px -30px -30px);
|
|
}
|
|
|
|
/* Uncomment this if you want to always see the switcher icon */
|
|
/*.offcanvas-switcher.open {*/
|
|
/* right: 550px;*/
|
|
/* z-index: 1001;*/
|
|
/*}*/
|
|
|
|
.offcanvas-switcher .offcanvas-count {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
font-size: 10px;
|
|
-webkit-transform: translate(-50%, -50%);
|
|
transform: translate(-50%, -50%);
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
padding: 1px 8px;
|
|
background-color: var(--secondary-color);
|
|
color: var(--light-color);
|
|
}
|
|
|
|
|
|
.offcanvas .uk-offcanvas-bar {
|
|
background-color: var(--offcanvas-background-color);
|
|
box-shadow: var(--offcanvas-shadow);
|
|
border-radius: 8px 0px 0px 8px;
|
|
padding: 0;
|
|
width: 550px;
|
|
}
|
|
|
|
|
|
.offcanvas .uk-offcanvas-flip .uk-offcanvas-bar {
|
|
right: -550px;
|
|
}
|