LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
Global Actions
Page Content
CSS
* {
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  font-family: Arial;
  box-sizing: border-box;
  color: grey;
}

.flex-container {
  height: 100%;
  display: flex;
  align-items: stretch;
}

.sidebar {
  position: relative;
  flex: 0 1 11.25rem;
  background: #657884;
}

.applicationView {
  background: #F4F4F4;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.utility {
  flex: 0 1 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  background: #ffffff;
}

.applicationContent {
  flex: 1 1 auto;
  display: flex;
}

.content {
  flex: 3 1 auto;
  margin: 1rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 4px;
}

.contentSideBar {
  flex: 0 1 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f5;
}

.sidebar.is-closed {
  flex: 0 1 3rem;
}

/*********************
  Sidebar Header
*********************/
.sidebar-header {
  height: 2.5rem;
  background: #5a6b76;
  display: flex;
  align-items: center;
}

.sidebar-client {
  color: #7f919d;
  margin-left: 0.5rem;
  text-overflow: ellipsis;
  width: 7.25rem;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar.is-closed .sidebar-client {
  display: none;
}

.jobber-icon {
  display: flex;
  height: 2.5rem;
  width: 3rem;
  background: #3FAE29;
  align-items: center;
  justify-content: center;
}

/*********************
  Sidenav
*********************/
.sidebarNav,
.sidebarNav-sub {
  list-style-type: none;
}

.sidebarNav li a {
  transition: 0.2s background;
}

.sidebarNav li a:hover {
  background: #5a6b76;
}

.sidebarNav > li {
  margin-bottom: 1rem;
  position: relative;
}

.sidebarNav > li:first-child {
  margin-bottom: 0;
}

.sidebarNav > li > a {
  display: block;
  padding: 0rem 1rem;
  color: #ffffff;
  text-decoration: none;
  height: 40px;
  line-height: 40px;
}

.sidebarNav > li:not(:first-child) > a {
  border-bottom: 1px solid #718592;
  border-top: 1px solid #718592;
}

/*********************
  Sidenav Sub
*********************/
.sidebarNav-sub {
  margin-top: 0.5rem;
}

.sidebarNav-sub li {
  position: relative;
  line-height: 1.75;
}

.sidebarNav-sub li a {
  padding-left: 3rem;
  color: #ffffff;
  text-decoration: none;
  display: block;
}

.sidebarNav-sub li a:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.25rem;
  height: 0.5rem;
  width: 0.5rem;
  margin-top: -0.25rem;
  display: block;
  background: #657884;
  border: 1px solid #7f919d;
  border-radius: 50%;
}

.sidebarNav-sub li.current a:before {
  background: #3FAE29;
  border-color: #3FAE29;
}

.sidebarNav-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 1rem;
  display: inline-block;
}

/*********************
  Sidenav Closed
*********************/
.sidebar.is-closed .sidebarNav-icon {
  margin-right: 0;
}

.sidebar.is-closed .sidebarNav-label {
  display: none;
}

.sidebar.is-closed .sidebarNav > li {
  margin-bottom: 0;
  border-bottom: none;
  position: relative;
}

.sidebar.is-closed .sidebarNav > li > a {
  border-bottom: none;
}

.sidebar.is-closed .sidebarNav-sub {
  position: absolute;
  top: -0.5rem;
  left: 2rem;
  width: 7rem;
  visibility: hidden;
  opacity: 0;
  padding: 0.5rem 1rem 0.5rem 0;
  background: #5a6b76;
  border-top-right-radius: 4px;
  border-left: 3px solid #4f5e67;
}

.sidebar.is-closed .sidebarNav-sub li a {
  padding-left: 2rem;
}

.sidebar.is-closed .sidebarNav > li:hover > ul {
  visibility: visible;
  opacity: 1;
  left: 3rem;
}

.sidebar.is-closed .sidebarNav-sub li a:before {
  top: 50%;
  left: 0.75rem;
}

/*********************
  Sidebar toggle
*********************/
.sidebar-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: block;
  width: 1rem;
  height: 1rem;
  color: #ffffff;
  cursor: pointer;
}

.sidebar-toggle:before {
  content: "\2190";
}

.sidebar.is-closed .sidebar-toggle:before {
  content: "\2192";
}
JS
$(".sidebar-toggle").click(function() {
  $(".sidebar").toggleClass( "is-closed" );
});

(function($) {
  var $window = $(window),
      $sidebar = $('.sidebar');
  function resize() {
    if ($window.width() < 960) {
      return $sidebar.addClass('is-closed');
    }
      $sidebar.removeClass('is-closed');
  }
  $window
      .resize(resize)
      .trigger('resize');
})(jQuery);
Term
Wed, 12/06/2017 - 19:43

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv