Difference between revisions of "Template:Tongji-Software/test/css/style.css"

 
(6 intermediate revisions by 2 users not shown)
Line 31: Line 31:
 
#wrapper.toggled #con{
 
#wrapper.toggled #con{
 
   padding-left:100px;
 
   padding-left:100px;
 +
  transition: all 0.5s ease;
 
}
 
}
  
Line 51: Line 52:
 
#sidebar-wrapper::-webkit-scrollbar {
 
#sidebar-wrapper::-webkit-scrollbar {
 
   display: none;
 
   display: none;
}
 
 
/*-------------------------------*/
 
/*    Sidebar nav styles        */
 
/*-------------------------------*/
 
.sidebar-nav {
 
  position: fixed;
 
  float: left;
 
  top: 0px;
 
  left: 10%;
 
  background-color: #ffb6bc;
 
  width: 16%;
 
  height: 100%;
 
  padding-right:0px;
 
  padding-top:10px;
 
}
 
.sidebar-nav li {
 
  display:block;
 
  color:#685454;
 
  list-style: none;
 
  padding-bottom:20px;
 
  margin-bottom:  15px;
 
  padding-top:10px;
 
  border-bottom: 0.5px solid #685454;
 
  transition: 0.3s;
 
  font-weight:bold;
 
  font-size:15px;
 
}
 
.sidebar-nav li:before {
 
  content: '';
 
  height: 100%;
 
  left: 0;
 
  position: absolute;
 
  top: 0;
 
  -webkit-transition: width 0.2s ease-in;
 
  transition: width 0.2s ease-in;
 
  width: 3px;
 
  z-index: -1;
 
}
 
 
.sidebar-nav li:hover:before {
 
  -webkit-transition: width 0.2s ease-in;
 
  transition: width 0.2s ease-in;
 
  width: 100%;
 
}
 
.sidebar-nav li a {
 
 
  text-decoration:none;
 
  color:#685454;
 
  transition: 0.3s;
 
}
 
.sidebar-nav li.open:hover before {
 
  -webkit-transition: width 0.2s ease-in;
 
  transition: width 0.2s ease-in;
 
  width: 100%;
 
}
 
 
.sidebar-nav li a:hover,
 
.sidebar-nav li a:active,
 
.sidebar-nav li a:focus,
 
.sidebar-nav li.open a:hover,
 
.sidebar-nav li.open a:active,
 
.sidebar-nav li.open a:focus {
 
  background-color: transparent;
 
  color: #ffb6bc;
 
  text-decoration: none;
 
}
 
.sidebar-nav > .sidebar-brand {
 
  font-size: 20px;
 
  height: 65px;
 
  line-height: 44px;
 
 
}
 
}

Latest revision as of 11:47, 13 October 2018

@import "https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css";

/*-------------------------------*/ /* VARIABLES */ /*-------------------------------*/ body {

 position: relative;
 overflow-x: hidden;

} body, html {

 height: 100%;

}

/*-------------------------------*/ /* Wrappers */ /*-------------------------------*/

  1. wrapper {
 -moz-transition: all 0.5s ease;
 -o-transition: all 0.5s ease;
 -webkit-transition: all 0.5s ease;
 padding-left: 0;
 transition: all 0.5s ease;

}

  1. wrapper.toggled {
 padding-left: 100px;

}

  1. wrapper.toggled #sidebar-wrapper {
 width: 200px;

}

  1. wrapper.toggled #con{
 padding-left:100px;
 transition: all 0.5s ease;

}



  1. sidebar-wrapper {
 -moz-transition: all 0.5s ease;
 -o-transition: all 0.5s ease;
 -webkit-transition: all 0.5s ease;
 height: 100%;
 left: 220px;
 margin-left: -86px;
 overflow-x: hidden;
 overflow-y: auto;
 transition: all 0.5s ease;
 width: 0;
 z-index: 1000;

}

  1. sidebar-wrapper::-webkit-scrollbar {
 display: none;

}