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

 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";
+
html {
 +
    scroll-behavior: smooth;
 +
}
 
body {
 
body {
    font-family: 'Poppins', sans-serif;
 
 
     background: #fafafa;
 
     background: #fafafa;
 
}
 
}
  
 
p {
 
p {
    font-family: 'Poppins', sans-serif;
 
 
     font-size: 1.1em;
 
     font-size: 1.1em;
 
     font-weight: 300;
 
     font-weight: 300;
Line 13: Line 13:
 
}
 
}
  
a,
+
li a,
a:hover,
+
li a:hover,
a:focus {
+
li a:focus,
 +
li a:visited {
 
     color: inherit;
 
     color: inherit;
 
     text-decoration: none;
 
     text-decoration: none;
Line 44: Line 45:
  
 
#sidebar {
 
#sidebar {
     width: 250px;
+
     width: 300px;
 
     position: fixed;
 
     position: fixed;
 
     top: 0;
 
     top: 0;
     left: -250px;
+
     left: -300px;
 
     height: 100vh;
 
     height: 100vh;
 
     z-index: 2000;
 
     z-index: 2000;
     background: #7386D5;
+
     background: #70a2c5;
 
     color: #fff;
 
     color: #fff;
 
     transition: all 0.3s;
 
     transition: all 0.3s;
Line 63: Line 64:
  
 
#dismiss {
 
#dismiss {
     width: 35px;
+
    font-size: 1.5em;
     height: 35px;
+
     width: 30px;
 +
     height: 25px;
 
     line-height: 35px;
 
     line-height: 35px;
 
     text-align: center;
 
     text-align: center;
    background: #7386D5;
 
 
     position: absolute;
 
     position: absolute;
 
     top: 10px;
 
     top: 10px;
     right: 10px;
+
     right: 5px;
 
     cursor: pointer;
 
     cursor: pointer;
 
     -webkit-transition: all 0.3s;
 
     -webkit-transition: all 0.3s;
Line 79: Line 80:
 
#dismiss:hover {
 
#dismiss:hover {
 
     background: #fff;
 
     background: #fff;
     color: #7386D5;
+
     color: #7386D5; /**/
 
}
 
}
  
Line 85: Line 86:
 
     display: none;
 
     display: none;
 
     position: fixed;
 
     position: fixed;
 +
    top:0;
 +
    left:0;
 
     width: 100vw;
 
     width: 100vw;
 
     height: 100vh;
 
     height: 100vh;
Line 95: Line 98:
 
     display: block;
 
     display: block;
 
     opacity: 1;
 
     opacity: 1;
}
 
 
#sidebar .sidebar-header {
 
    padding: 20px;
 
    background: #6d7fcc;
 
 
}
 
}
  
 
#sidebar ul.components {
 
#sidebar ul.components {
 
     padding: 20px 0;
 
     padding: 20px 0;
    border-bottom: 1px solid #47748b;
 
 
}
 
}
  
Line 119: Line 116:
  
 
#sidebar ul li a:hover {
 
#sidebar ul li a:hover {
     color: #7386D5;
+
     color: #76b0d8;
 
     background: #fff;
 
     background: #fff;
 
}
 
}
Line 126: Line 123:
 
a[aria-expanded="true"] {
 
a[aria-expanded="true"] {
 
     color: #fff;
 
     color: #fff;
     background: #6d7fcc;
+
     background: #6094b7;
 
}
 
}
  
Line 142: Line 139:
  
 
ul ul a {
 
ul ul a {
    font-size: 0.9em !important;
+
     padding-left: 10px !important;
     padding-left: 30px !important;
+
     background: #6094b7;
     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;
+
 
}
 
}
  
Line 184: Line 157:
 
}
 
}
  
.mw-content-ltr
+
    h4.card-header {
{
+
      border-bottom-width: 5px;
     margin:0;
+
      border-top-width: 3px;
 +
      border-left-width: 3px;
 +
      border-right-width: 3px;
 +
      background-color: white;
 +
      border-color: #94c6e7;
 +
      color: black;
 +
    }
 +
 
 +
    div.card-header {
 +
      background-color: #94c6e7;
 +
     }
 +
 
 +
    div.card-header a {
 +
      color: black;
 +
    }
 +
 
 +
    div.card-header:hover a {
 +
      color: white;
 +
      font-weight: bold;
 +
    }
 +
@font-face {
 +
font-family: 'JosefinSans-Light';
 +
  src: url("https://static.igem.org/mediawiki/2018/4/42/T--USTC--JosefinSans-Light.woff") format("woff");
 +
}
 +
@font-face {
 +
font-family: 'JosefinSans-SemiBold';
 +
src: url("https://static.igem.org/mediawiki/2018/a/a7/T--USTC--JosefinSans-SemiBold.woff") format("woff");
 +
}
 +
body {
 +
font-family: 'JosefinSans-Light';
 +
}
 +
.card-title, .card-header {
 +
font-family: 'JosefinSans-SemiBold';
 +
}
 +
#HQ_page p {
 +
font-family: 'JosefinSans-Light';
 +
font-size: 1em;
 
}
 
}

Latest revision as of 03:53, 18 October 2018

html {

   scroll-behavior: smooth;

} body {

   background: #fafafa;

}

p {

   font-size: 1.1em;
   font-weight: 300;
   line-height: 1.7em;
   color: #999;

}

li a, li a:hover, li a:focus, li a:visited {

   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: 300px;
   position: fixed;
   top: 0;
   left: -300px;
   height: 100vh;
   z-index: 2000;
   background: #70a2c5;
   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 {
   font-size: 1.5em;
   width: 30px;
   height: 25px;
   line-height: 35px;
   text-align: center;
   position: absolute;
   top: 10px;
   right: 5px;
   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 ul.components {
   padding: 20px 0;

}

  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: #76b0d8;
   background: #fff;

}

  1. sidebar ul li.active>a,

a[aria-expanded="true"] {

   color: #fff;
   background: #6094b7;

}

a[data-toggle="collapse"] {

   position: relative;

}

.dropdown-toggle::after {

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

}

ul ul a {

   padding-left: 10px !important;
   background: #6094b7;

}

  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;

}

   h4.card-header {
     border-bottom-width: 5px;
     border-top-width: 3px;
     border-left-width: 3px;
     border-right-width: 3px;
     background-color: white;
     border-color: #94c6e7;
     color: black;
   }
   div.card-header {
     background-color: #94c6e7;
   }
   div.card-header a {
     color: black;
   }
   div.card-header:hover a {
     color: white;
     font-weight: bold;
   }

@font-face { font-family: 'JosefinSans-Light';

 src: url("https://static.igem.org/mediawiki/2018/4/42/T--USTC--JosefinSans-Light.woff") format("woff");

} @font-face { font-family: 'JosefinSans-SemiBold'; src: url("https://static.igem.org/mediawiki/2018/a/a7/T--USTC--JosefinSans-SemiBold.woff") format("woff"); } body { font-family: 'JosefinSans-Light'; } .card-title, .card-header { font-family: 'JosefinSans-SemiBold'; }

  1. HQ_page p {

font-family: 'JosefinSans-Light'; font-size: 1em; }