sidepanel scss

1 reply · opened Oct 20, 2023

BBobby DigitalOct 20, 2023

where in the scss code is the code that generates css for the side panel ? i am a little confused , if i wanted to change the size of the side panel , like in this code

#side-panel {
right: -800px;
width: 800px;
}

.side-panel-left #side-panel {
left: -800px;
right: auto;
}

#side-panel .side-panel-wrap {
width: 800px;
}

#side-panel .widget {
margin-top: 40px;
padding-top: 40px;
width: 720px;
border-top: 1px solid #E5E5E5;
}

.side-push-panel.side-panel-open.stretched #wrapper,
.side-push-panel.side-panel-open.stretched .sticky-header .container {
right: 400px;
}

.side-push-panel.side-panel-open.stretched.device-xl .slider-inner,
.side-push-panel.side-panel-open.stretched.device-lg .slider-inner {
left: -400px;
}

.side-panel-left.side-push-panel.side-panel-open.stretched #wrapper,
.side-panel-left.side-push-panel.side-panel-open.stretched .sticky-header .container,
.side-panel-left.side-push-panel.side-panel-open.stretched .slider-inner {
left: 400px;
right: auto;
}

would i just change. $side-panel-size : 300px in _variables.scss ?

// Side Panel
$side-panel-bg : var(--#{$cnvs-prefix}contrast-100);
$side-panel-size : 300px;
$side-panel-padding : 50px 70px 50px 40px;
$side-panel-overlay : rgba(black, 0.6);
$side-panel-widget-padding : 40px;
$side-panel-close-icon : url("images/icons/close.png");

SSemicolon WebSTAFFOct 24, 2023

Hello,

Thanks for your Super Kind Patience and Apologies for the Delays in replying to your Support Query!

You won't need to change the Size for the Side Panel in the SCSS Files. Rather we recommend changing the size using CSS Variables by adding following code in the css/custom.css File:
[ch_pre type="css"]:root {
--cnvs-side-panel-size: 500px;
}[/ch_pre]

This will work fine and apply the sizes automatically wherever required. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard