mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
dcb761350c
* Change breakpoint max- calculation to fractional values * Update docs to reflect fractional max-width breakpoint values * Add fractional max-width to offcanvas example * Add documentation and SCSS comment for fractional viewport support
63 lines
1 KiB
CSS
63 lines
1 KiB
CSS
/*
|
|
* Style tweaks
|
|
* --------------------------------------------------
|
|
*/
|
|
html,
|
|
body {
|
|
overflow-x: hidden; /* Prevent scroll on narrow devices */
|
|
}
|
|
body {
|
|
padding-top: 70px;
|
|
}
|
|
footer {
|
|
padding: 30px 0;
|
|
}
|
|
|
|
/*
|
|
* Off Canvas
|
|
* --------------------------------------------------
|
|
*/
|
|
@media screen and (max-width: 767.99px) {
|
|
.row-offcanvas {
|
|
position: relative;
|
|
transition: all .25s ease-out;
|
|
}
|
|
|
|
.row-offcanvas-right {
|
|
right: 0;
|
|
}
|
|
|
|
.row-offcanvas-left {
|
|
left: 0;
|
|
}
|
|
|
|
.row-offcanvas-right .sidebar-offcanvas {
|
|
right: -100%; /* 12 columns */
|
|
}
|
|
|
|
.row-offcanvas-right.active .sidebar-offcanvas {
|
|
right: -50%; /* 6 columns */
|
|
}
|
|
|
|
.row-offcanvas-left .sidebar-offcanvas {
|
|
left: -100%; /* 12 columns */
|
|
}
|
|
|
|
.row-offcanvas-left.active .sidebar-offcanvas {
|
|
left: -50%; /* 6 columns */
|
|
}
|
|
|
|
.row-offcanvas-right.active {
|
|
right: 50%; /* 6 columns */
|
|
}
|
|
|
|
.row-offcanvas-left.active {
|
|
left: 50%; /* 6 columns */
|
|
}
|
|
|
|
.sidebar-offcanvas {
|
|
position: absolute;
|
|
top: 0;
|
|
width: 50%; /* 6 columns */
|
|
}
|
|
}
|