Difference between revisions of "Team:Tianjin/Resources/CSS:leftbarstyle"

 
Line 51: Line 51:
 
}
 
}
 
#sidebar-wrapper a{
 
#sidebar-wrapper a{
   font-family: 'LiberationSerif-Regular', sans-serif;
+
   font-family: 'raleway', sans-serif;
 
}
 
}
 
#page-content-wrapper {
 
#page-content-wrapper {
Line 124: Line 124:
 
   padding: 14px 15px 9px 30px;
 
   padding: 14px 15px 9px 30px;
 
   text-decoration: none;
 
   text-decoration: none;
   font-family: 'LiberationSerif-Regular', sans-serif;
+
   font-family: 'raleway', sans-serif;
  
 
}
 
}

Latest revision as of 05:48, 26 October 2017

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

/*-------------------------------*/ /* VARIABLES */ /*-------------------------------*/ .nav .open > a {

 background-color: transparent;

} .nav .open > a:hover {

 background-color: transparent;

} .nav .open > a:focus {

 background-color: transparent;

} /*-------------------------------*/ /* 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: 280px;

}

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

}

  1. wrapper.toggled #page-content-wrapper {
 margin-right: -280px;
 position: absolute;

}

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

}

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

}

  1. sidebar-wrapper a{
 font-family: 'raleway', sans-serif;

}

  1. page-content-wrapper {
 width: 100%;

} /*-------------------------------*/ /* Sidebar nav styles */ /*-------------------------------*/ .sidebar-nav {

 list-style: none;
 margin: 0;
 padding: 0;
 position: absolute;
 top: 0;
 width: 280px;

} .sidebar-nav li {

 display: inline-block;
 line-height: 20px;
 position: relative;
 width: 100%;

} .sidebar-nav li:before {

 background-color: #1c1c1c;
 content: ;
 height: 100%;
 left: 0;
 position: absolute;
 top: 0;
 -webkit-transition: width 0.2s ease-in;
 transition: width 0.2s ease-in;
 width: 15px;
 z-index: -1;

} .sidebar-nav li:first-child a {

 background-color: #1a1a1a;
 color: #ffffff;

} .sidebar-nav li:nth-child(2):before {

 background-color: #023664;

} .sidebar-nav li:nth-child(3):before {

 background-color: #003c71;

} .sidebar-nav li:nth-child(4):before {

 background-color: #004a95;

} .sidebar-nav li:nth-child(5):before {

 background-color: #005baa;

} .sidebar-nav li:nth-child(6):before {

 background-color: #1461ae;

} .sidebar-nav li:nth-child(7):before {

 background-color: #4693d0;

} .sidebar-nav li:nth-child(8):before {

 background-color: #98c8ec;

} .sidebar-nav li:nth-child(9):before {

 background-color: #b3d9f2;

} .sidebar-nav li:hover:before {

 -webkit-transition: width 0.2s ease-in;
 transition: width 0.2s ease-in;
 width: 100%;

} /****************************************/ .sidebar-nav li a {

 color: #dddddd;
 display: block;
 padding: 14px 15px 9px 30px;
 text-decoration: none;
 font-family: 'raleway', sans-serif;

} .sidebar-nav li.open:hover before {

 -webkit-transition: width 0.2s ease-in;
 transition: width 0.2s ease-in;
 width: 100%;

} .sidebar-nav .dropdown-menu {

 background-color: #222222;
 border-radius: 0;
 border: none;
 box-shadow: none;
 margin: 0;
 padding: 0;
 position: relative;
 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: #ffffff;
 text-decoration: none;

} .sidebar-nav > .sidebar-brand {

 font-size: 22px;
 height: 80px;
 line-height: 52px;

} /*-------------------------------*/ /* Hamburger-Cross */ /*-------------------------------*/ .hamburger {

 background: transparent;
 border: none;
 display: block;
 height: 35px;
 width: 32px;
 margin-left: 30px;
 position: fixed;
 top: 40px;
 z-index: 999;

} .hamburger:hover {

 outline: none;

} .hamburger:focus {

 outline: none;

} .hamburger:active {

 outline: none;

} .hamburger.is-closed:before {

 -webkit-transform: translate3d(0, 0, 0);
 -webkit-transition: all 0.35s ease-in-out;
 color: #ffffff;
 content: ;
 display: block;
 font-size: 14px;
 line-height: 32px;
 opacity: 0;
 text-align: center;
 width: 100px;

} .hamburger.is-closed:hover before {

 -webkit-transform: translate3d(-100px, 0, 0);
 -webkit-transition: all 0.35s ease-in-out;
 display: block;
 opacity: 1;

} .hamburger.is-closed:hover .hamb-top {

 -webkit-transition: all 0.35s ease-in-out;
 top: 0;

} .hamburger.is-closed:hover .hamb-bottom {

 -webkit-transition: all 0.35s ease-in-out;
 bottom: 0;

} /*左上角按钮颜色*/ .hamburger.is-closed .hamb-top {

 -webkit-transition: all 0.35s ease-in-out;
 background-color: #1e3746;
 top: 5px;

} .hamburger.is-closed .hamb-middle {

 background-color: #1e3746;
 margin-top: -2px;
 top: 50%;

} .hamburger.is-closed .hamb-bottom {

 -webkit-transition: all 0.35s ease-in-out;
 background-color: #1e3746;
 bottom: 5px;

} .hamburger.is-closed .hamb-top, .hamburger.is-closed .hamb-middle, .hamburger.is-closed .hamb-bottom, .hamburger.is-open .hamb-top, .hamburger.is-open .hamb-middle, .hamburger.is-open .hamb-bottom {

 height: 4px;
 left: 0;
 position: absolute;
 width: 100%;

} .hamburger.is-open .hamb-top {

 -webkit-transform: rotate(45deg);
 -webkit-transition: -webkit-transform 0.2s cubic-bezier(0.73, 1, 0.28, 0.08);
 background-color:#1e3746;
 margin-top: -2px;
 top: 50%;

} .hamburger.is-open .hamb-middle {

 background-color: #1e3746;
 display: none;

} .hamburger.is-open .hamb-bottom {

 -webkit-transform: rotate(-45deg);
 -webkit-transition: -webkit-transform 0.2s cubic-bezier(0.73, 1, 0.28, 0.08);
 background-color: #1e3746;
 margin-top: -2px;
 top: 50%;

} .hamburger.is-open:before {

 -webkit-transform: translate3d(0, 0, 0);
 -webkit-transition: all 0.35s ease-in-out;
 color: #ffffff;
 content: ;
 display: block;
 font-size: 14px;
 line-height: 32px;
 opacity: 0;
 text-align: center;
 width: 100px;

} .hamburger.is-open:hover before {

 -webkit-transform: translate3d(-100px, 0, 0);
 -webkit-transition: all 0.35s ease-in-out;
 display: block;
 opacity: 1;

} /*-------------------------------*/ /* Dark Overlay */ /*-------------------------------*/ .overlay {

 position: fixed;
 display: none;
 width: 100%;
 height: 100%;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background-color: rgba(0, 0, 0, 0.4);
 z-index: 999;

} /* SOME DEMO STYLES - NOT REQUIRED */ body, html {

 background-color: transparent;

} body h1, body h2, body h3, body h4 {

 color: #324b5a;

} body p, body blockquote {

 color: #324b5a;

} body a {

 color: #324b5a;

} body a:hover {

 color: #ffffff;

}