/* * # Semantic - Sidebar * http://github.com/jlukic/semantic-ui/ * * * Copyright 2013 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Sidebar *******************************/ body { -webkit-transition: margin 0.3s ease, -webkit-transform 0.3s ease; transition: margin 0.3s ease, transform 0.3s ease; } .ui.sidebar { position: fixed; margin: 0 !important; height: 100% !important; border-radius: 0px !important; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; -ms-overflow-y: auto; overflow-y: auto; top: 0px; left: 0px; z-index: 999; -webkit-transition: margin-left 0.3s ease, margin-top 0.3s ease; transition: margin-left 0.3s ease, margin-top 0.3s ease; } /******************************* Types *******************************/ /*------------------- Direction --------------------*/ .ui.right.sidebar { left: 100%; margin: 0px !important; } .ui.top.sidebar { width: 100% !important; } .ui.bottom.sidebar { width: 100% !important; top: 100%; margin: 0px !important; } /******************************* States *******************************/ .ui.active.sidebar { margin-left: 0px !important; } .ui.active.top.sidebar, .ui.active.bottom.sidebar { margin-top: 0px !important; } /******************************* Variations *******************************/ /*------------------- Formatted --------------------*/ .ui.styled.sidebar { padding: 1em 1.5em; background-color: #FFFFFF; box-shadow: 1px 0px 0px rgba(0, 0, 0, 0.1); } .ui.styled.very.thin.sidebar { padding: 0.5em; } .ui.styled.thin.sidebar { padding: 1em; } /*------------------- Floating --------------------*/ .ui.floating.sidebar { box-shadow: 2px 0px 2px rgba(0, 0, 0, 0.2); } .ui.right.floating.sidebar { box-shadow: -2px 0px 2px rgba(0, 0, 0, 0.2); } .ui.top.floating.sidebar { box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2); } .ui.bottom.floating.sidebar { box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.2); } /*------------------- Width --------------------*/ /* Very Thin */ .ui.very.thin.sidebar { width: 60px !important; margin-left: -60px !important; } .ui.active.very.thin.sidebar { margin-left: 0px !important; } .ui.active.right.very.thin.sidebar { margin-left: -60px !important; } /* Thin */ .ui.thin.sidebar { width: 200px !important; margin-left: -200px !important; } .ui.active.thin.sidebar { margin-left: 0px !important; } .ui.active.right.thin.sidebar { margin-left: -200px !important; } /* Standard */ .ui.sidebar { width: 275px !important; margin-left: -275px !important; } .ui.active.sidebar { margin-left: 0px !important; } .ui.active.right.sidebar { margin-left: -275px !important; } /* Wide */ .ui.wide.sidebar { width: 350px !important; margin-left: -350px !important; } .ui.active.wide.sidebar { margin-left: 0px !important; } .ui.active.right.wide.sidebar { margin-left: -350px !important; } /* Very Wide */ .ui.very.wide.sidebar { width: 475px !important; margin-left: -475px !important; } .ui.active.very.wide.sidebar { margin-left: 0px !important; } .ui.active.right.very.wide.sidebar { margin-left: -475px !important; } /*------------------- Height --------------------*/ /* Standard */ .ui.top.sidebar { margin: -40px 0px 0px 0px !important; } .ui.top.sidebar, .ui.bottom.sidebar { height: 40px !important; } .ui.active.bottom.sidebar { margin-top: -40px !important; }