0
I’m trying to move my sidebar with bootstrap in css to direct. but I’m not getting it.
Could someone help?
SIDEBAR:
<div class="d-flex" id="wrapper">
<div class="bg-light border-left" id="sidebar-wrapper">
<div class="sidebar-heading">ATIVIDADE</div>
<div class="list-group list-group-flush">
<a href="#" class="list-group-item list-group-item-action bg-light">teste</a>
</div>
</div>
CSS from the SIDEBAR:
#sidebar-wrapper {
min-height: 100vh;
margin-left: -15rem;
-webkit-transition: margin .25s ease-out;
-moz-transition: margin .25s ease-out;
-o-transition: margin .25s ease-out;
transition: margin .25s ease-out;
}
#sidebar-wrapper .sidebar-heading {
padding: 0.875rem 1.25rem;
font-size: 1.2rem;
}
#sidebar-wrapper .list-group {
width: 15rem;
}
#page-content-wrapper {
min-width: 100vw;
}
#wrapper.toggled #sidebar-wrapper {
margin-left: 0;
}
@media (min-width: 768px) {
#sidebar-wrapper {
margin-left: 0;
}
#page-content-wrapper {
min-width: 0;
width: 100%;
}
#wrapper.toggled #sidebar-wrapper {
margin-left: -15rem;
}
}
Here is working normal, below 768px the sidebar some and above that back. Your problem is not clear!
– hugocsl
That, here too, but she’s on the left of the page, I tried to leave it on the right but I couldn’t @hugocsl
– user185924