mdb-ui-kit/docs/4.0/examples/offcanvas/offcanvas.css

81 lines
1.7 KiB
CSS
Raw Normal View History

2017-08-11 17:59:31 +03:00
html,
body {
overflow-x: hidden; /* Prevent scroll on narrow devices */
}
2018-01-23 15:30:37 +03:00
2017-08-11 17:59:31 +03:00
body {
2018-01-23 15:30:37 +03:00
padding-top: 56px;
2017-08-11 17:59:31 +03:00
}
2018-01-23 15:30:37 +03:00
@media (max-width: 767.98px) {
.offcanvas-collapse {
position: fixed;
top: 56px; /* Height of navbar */
bottom: 0;
width: 100%;
padding-right: 1rem;
padding-left: 1rem;
overflow-y: auto;
background-color: var(--gray-dark);
transition: -webkit-transform .3s ease-in-out;
transition: transform .3s ease-in-out;
transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out;
-webkit-transform: translateX(100%);
transform: translateX(100%);
2017-08-11 17:59:31 +03:00
}
2018-01-23 15:30:37 +03:00
.offcanvas-collapse.open {
-webkit-transform: translateX(-1rem);
transform: translateX(-1rem); /* Account for horizontal padding on navbar */
2017-08-11 17:59:31 +03:00
}
2018-01-23 15:30:37 +03:00
}
2017-08-11 17:59:31 +03:00
2018-01-23 15:30:37 +03:00
.nav-scroller {
position: relative;
z-index: 2;
height: 2.75rem;
overflow-y: hidden;
}
2017-08-11 17:59:31 +03:00
2018-01-23 15:30:37 +03:00
.nav-scroller .nav {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
padding-bottom: 1rem;
margin-top: -1px;
overflow-x: auto;
color: rgba(255, 255, 255, .75);
text-align: center;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
2017-08-11 17:59:31 +03:00
2018-01-23 15:30:37 +03:00
.nav-underline .nav-link {
padding-top: .75rem;
padding-bottom: .75rem;
font-size: .875rem;
color: var(--secondary);
}
2017-08-11 17:59:31 +03:00
2018-01-23 15:30:37 +03:00
.nav-underline .nav-link:hover {
color: var(--blue);
}
2017-08-11 17:59:31 +03:00
2018-01-23 15:30:37 +03:00
.nav-underline .active {
font-weight: 500;
color: var(--gray-dark);
}
2017-08-11 17:59:31 +03:00
2018-01-23 15:30:37 +03:00
.text-white-50 { color: rgba(255, 255, 255, .5); }
2017-08-11 17:59:31 +03:00
2018-01-23 15:30:37 +03:00
.bg-purple { background-color: var(--purple); }
2017-08-11 17:59:31 +03:00
2018-01-23 15:30:37 +03:00
.border-bottom { border-bottom: 1px solid #e5e5e5; }
.box-shadow { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); }
.lh-100 { line-height: 1; }
.lh-125 { line-height: 1.25; }
.lh-150 { line-height: 1.5; }