Difference between revisions of "Team:USTC/CSS/mobile"

Line 145: Line 145:
 
ul ul a {
 
ul ul a {
 
     font-size: 0.9em !important;
 
     font-size: 0.9em !important;
     padding-left: 30px !important;
+
     padding-left: 10px !important;
 
     background: #6d7fcc;
 
     background: #6d7fcc;
 
}
 
}

Revision as of 13:57, 15 October 2018

@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700"; body {

   font-family: 'Poppins', sans-serif;
   background: #fafafa;

}

p {

   font-family: 'Poppins', sans-serif;
   font-size: 1.1em;
   font-weight: 300;
   line-height: 1.7em;
   color: #999;

}

a, a:hover, a:focus {

   color: inherit;
   text-decoration: none;
   transition: all 0.3s;

}

.navbar {

   padding: 15px 10px;
   background: #fff;
   border: none;
   border-radius: 0;
   margin-bottom: 40px;
   box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);

}

.navbar-btn {

   box-shadow: none;
   outline: none !important;
   border: none;

}

.line {

   width: 100%;
   height: 1px;
   border-bottom: 1px dashed #ddd;
   margin: 40px 0;

}

  1. sidebar {
   width: 250px;
   position: fixed;
   top: 0;
   left: -250px;
   height: 100vh;
   z-index: 2000;
   background: #7386D5;
   color: #fff;
   transition: all 0.3s;
   overflow-y: scroll;
   box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
   text-align: center;

}

  1. sidebar.active {
   left: 0;

}

  1. dismiss {
   width: 35px;
   height: 35px;
   line-height: 35px;
   text-align: center;
   background: #7386D5;
   position: absolute;
   top: 10px;
   right: 10px;
   cursor: pointer;
   -webkit-transition: all 0.3s;
   -o-transition: all 0.3s;
   transition: all 0.3s;

}

  1. dismiss:hover {
   background: #fff;
   color: #7386D5;

}

.overlay {

   display: none;
   position: fixed;
   top:0;
   left:0;
   width: 100vw;
   height: 100vh;
   background: rgba(0, 0, 0, 0.7);
   z-index: 1999;
   opacity: 0;
   transition: all 0.5s ease-in-out;

} .overlay.active {

   display: block;
   opacity: 1;

}

  1. sidebar .sidebar-header {
   padding: 20px;
   background: #6d7fcc;

}

  1. sidebar ul.components {
   padding: 20px 0;
   border-bottom: 1px solid #47748b;

}

  1. sidebar ul p {
   color: #fff;
   padding: 10px;

}

  1. sidebar ul li a {
   padding: 10px;
   font-size: 1.1em;
   display: block;

}

  1. sidebar ul li a:hover {
   color: #7386D5;
   background: #fff;

}

  1. sidebar ul li.active>a,

a[aria-expanded="true"] {

   color: #fff;
   background: #6d7fcc;

}

a[data-toggle="collapse"] {

   position: relative;

}

.dropdown-toggle::after {

   display: block;
   position: absolute;
   top: 50%;
   right: 20px;
   transform: translateY(-50%);

}

ul ul a {

   font-size: 0.9em !important;
   padding-left: 10px !important;
   background: #6d7fcc;

}

ul.CTAs {

   padding: 20px;

}

ul.CTAs a {

   text-align: center;
   font-size: 0.9em !important;
   display: block;
   border-radius: 5px;
   margin-bottom: 5px;

}

a.download {

   background: #fff;
   color: #7386D5;

}

a.article, a.article:hover {

   background: #6d7fcc !important;
   color: #fff !important;

}

  1. content {
   width: 100%;
   padding: 20px;
   min-height: 100vh;
   transition: all 0.3s;
   position: absolute;
   top: 0;
   right: 0;

}

.nav-item .active {

   text-decoration: underline;

}