Right slide menu CSS

From wiki.network-crawler.de
Jump to: navigation, search

NOTE: this works for right and left - see the disabled "sidebar-wrapper-left

CSS:

#wrapper {
	display: block;
	margin:0px auto;

}

#sidebar-wrapper-right,
#sidebar-wrapper-left,
#page-content-wrapper {
	height:100em;
	position: relative;
	transition: all 0.4s ease 0s;
}
/* sidebar */
#sidebar-wrapper-left {
	width: 25%;
	float: left;
	background: #000;
	display: none;
}

#sidebar-wrapper-right {
	width: 25%;
	float: left;
	background: #111;
}
 
#page-content-wrapper {
	width: 75%;
	float: left;
}

#sidebar-wrapper-right.active {
	width: 25%;
	display: inline-block;
}

@media (max-width:767px) {

#page-content-wrapper {
	width: 100%;
}

#sidebar-wrapper-right {
	width: 0%;
}
}

html

    <div id="wrapper">
        <!-- Sidebar left -->
        <div id="sidebar-wrapper-left"></div>
        <!-- Page content -->
        <div id="page-content-wrapper"></div>
        <!-- Sidebar right -->
        <div id="sidebar-wrapper-right"></div>
    </div>