Team:SJTU-Software/freelancer.css

From 2014.igem.org

(Difference between revisions)
(Created page with " body { overflow-x: hidden; } p { font-size: 20px; } p.small { font-size: 16px; } a, a:hover, a:focus, a:active, a.active { outline: 0; color: #18bc9c; } ...")
 
Line 1: Line 1:
-
 
+
#menu {
-
body {
+
     width: 100%;
-
     overflow-x: hidden;
+
    margin: 0;
 +
    padding: 10px 0 0 0;
 +
    list-style: none; 
 +
    background-color: #111;
 +
    background-image: linear-gradient(#444, #111);
 +
    border-radius: 50px;
 +
    box-shadow: 0 2px 1px #9c9c9c;
}
}
-
p {
+
#menu li {
-
     font-size: 20px;
+
     float: left;
 +
    padding: 0 0 10px 0;
 +
    position: relative;
}
}
-
p.small {
+
#menu a {
-
     font-size: 16px;
+
     float: left;
-
}
+
    height: 25px;
-
 
+
     padding: 0 25px;
-
a,
+
     color: #999;
-
a:hover,
+
-
a:focus,
+
-
a:active,
+
-
a.active {
+
-
     outline: 0;
+
-
     color: #18bc9c;
+
-
}
+
-
 
+
-
h1,
+
-
h2,
+
-
h3,
+
-
h4,
+
-
h5,
+
-
h6 {
+
     text-transform: uppercase;
     text-transform: uppercase;
-
     font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
+
     font: bold 12px/25px Arial, Helvetica;
-
     font-weight: 700;
+
    text-decoration: none;
 +
     text-shadow: 0 1px 0 #000;
}
}
-
hr.star-light,
+
#menu li:hover > a {
-
hr.star-primary {
+
     color: #fafafa;
-
     margin: 25px auto 30px;
+
-
    padding: 0;
+
-
    max-width: 250px;
+
-
    border: 0;
+
-
    border-top: solid 5px;
+
-
    text-align: center;
+
}
}
-
hr.star-light:after,
+
*html #menu li a:hover { /* IE6 */
-
hr.star-primary:after {
+
     color: #fafafa;
-
     content: "\f005";
+
-
    display: inline-block;
+
-
    position: relative;
+
-
    top: -.8em;
+
-
    padding: 0 .25em;
+
-
    font-family: FontAwesome;
+
-
    font-size: 2em;
+
}
}
-
hr.star-light {
+
#menu li:hover > ul {
-
    border-color: #fff;
+
-
}
+
-
 
+
-
hr.star-light:after {
+
-
    color: #fff;
+
-
    background-color: #18bc9c;
+
-
}
+
-
 
+
-
hr.star-primary {
+
-
    border-color: #2c3e50;
+
-
}
+
-
 
+
-
hr.star-primary:after {
+
-
    color: #2c3e50;
+
-
    background-color: #fff;
+
-
}
+
-
 
+
-
.img-centered {
+
-
    margin: 0 auto;
+
-
}
+
-
 
+
-
header {
+
-
    text-align: center;
+
-
    color: #fff;
+
-
    background: #18bc9c;
+
-
}
+
-
 
+
-
header .container {
+
-
    padding-top: 100px;
+
-
    padding-bottom: 50px;
+
-
}
+
-
 
+
-
header img {
+
     display: block;
     display: block;
-
    margin: 0 auto 20px;
 
-
}
 
-
 
-
header .intro-text .name {
 
-
    display: block;
 
-
    text-transform: uppercase;
 
-
    font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
 
-
    font-size: 2em;
 
-
    font-weight: 700;
 
-
}
 
-
 
-
header .intro-text .skills {
 
-
    font-size: 1.25em;
 
-
    font-weight: 300;
 
-
}
 
-
 
-
@media(min-width:768px) {
 
-
    header .container {
 
-
        padding-top: 200px;
 
-
        padding-bottom: 100px;
 
-
    }
 
-
 
-
    header .intro-text .name {
 
-
        font-size: 4.75em;
 
-
    }
 
-
 
-
    header .intro-text .skills {
 
-
        font-size: 1.75em;
 
-
    }
 
-
}
 
-
 
-
@media(min-width:768px) {
 
-
    .navbar-fixed-top {
 
-
        padding: 25px 0;
 
-
        -webkit-transition: padding .3s;
 
-
        -moz-transition: padding .3s;
 
-
        transition: padding .3s;
 
-
    }
 
-
 
-
    .navbar-fixed-top .navbar-brand {
 
-
        font-size: 2em;
 
-
        -webkit-transition: all .3s;
 
-
        -moz-transition: all .3s;
 
-
        transition: all .3s;
 
-
    }
 
-
 
-
    .navbar-fixed-top.navbar-shrink {
 
-
        padding: 10px 0;
 
-
    }
 
-
 
-
    .navbar-fixed-top.navbar-shrink .navbar-brand {
 
-
        font-size: 1.5em;
 
-
    }
 
-
}
 
-
 
-
.navbar {
 
-
    text-transform: uppercase;
 
-
    font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
 
-
    font-weight: 700;
 
-
}
 
-
 
-
.navbar a:focus {
 
-
    outline: 0;
 
-
}
 
-
 
-
.navbar .navbar-nav {
 
-
    letter-spacing: 1px;
 
-
}
 
-
 
-
.navbar .navbar-nav li a:focus {
 
-
    outline: 0;
 
-
}
 
-
 
-
.navbar-default,
 
-
.navbar-inverse {
 
-
    border: 0;
 
-
}
 
-
 
-
section {
 
-
    padding: 100px 0;
 
}
}
-
section h2 {
+
/* Sub-menu */
 +
#menu ul {
 +
    list-style: none;
     margin: 0;
     margin: 0;
-
     font-size: 3em;
+
     padding: 0;  
-
}
+
     display: none;
-
 
+
-
section.success {
+
-
    color: #fff;
+
-
    background: #18bc9c;
+
-
}
+
-
 
+
-
@media(max-width:767px) {
+
-
    section {
+
-
        padding: 75px 0;
+
-
    }
+
-
 
+
-
    section.first {
+
-
        padding-top: 75px;
+
-
    }
+
-
}
+
-
 
+
-
#portfolio .portfolio-item {
+
-
    right: 0;
+
-
    margin: 0 0 15px;
+
-
}
+
-
 
+
-
#portfolio .portfolio-item .portfolio-link {
+
-
     display: block;
+
-
    position: relative;
+
-
    margin: 0 auto;
+
-
    max-width: 400px;
+
-
}
+
-
 
+
-
#portfolio .portfolio-item .portfolio-link .caption {
+
     position: absolute;
     position: absolute;
-
     width: 100%;
+
     top: 35px;
-
     height: 100%;
+
     left: 0;
-
     opacity: 0;
+
     z-index: 99999;  
-
     background: rgba(24,188,156,.9);
+
     background-color: #444;  
-
     -webkit-transition: all ease .5s;
+
     background-image: linear-gradient(#444, #111);  
-
     -moz-transition: all ease .5s;
+
     -moz-border-radius: 5px;
-
     transition: all ease .5s;
+
     border-radius: 5px;
}
}
-
#portfolio .portfolio-item .portfolio-link .caption:hover {
+
#menu ul li {
-
     opacity: 1;
+
     float: none;
-
}
+
-
 
+
-
#portfolio .portfolio-item .portfolio-link .caption .caption-content {
+
-
    position: absolute;
+
-
    top: 50%;
+
-
    width: 100%;
+
-
    height: 20px;
+
-
    margin-top: -12px;
+
-
    text-align: center;
+
-
    font-size: 20px;
+
-
    color: #fff;
+
-
}
+
-
 
+
-
#portfolio .portfolio-item .portfolio-link .caption .caption-content i {
+
-
    margin-top: -12px;
+
-
}
+
-
 
+
-
#portfolio .portfolio-item .portfolio-link .caption .caption-content h3,
+
-
#portfolio .portfolio-item .portfolio-link .caption .caption-content h4 {
+
     margin: 0;
     margin: 0;
 +
    padding: 0;
 +
    display: block; 
 +
    box-shadow: 0 1px 0 #111111,
 +
                0 2px 0 #777777;
}
}
-
#portfolio * {
+
#menu ul li:last-child {  
-
     z-index: 2;
+
     box-shadow: none;  
}
}
-
@media(min-width:767px) {
+
#menu ul a {  
-
    #portfolio .portfolio-item {
+
     padding: 10px;
-
        margin: 0 0 30px;
+
     height: auto;
-
    }
+
     line-height: 1;
-
}
+
-
 
+
-
.btn-outline {
+
-
    margin-top: 15px;
+
-
    border: solid 2px #fff;
+
-
    font-size: 20px;
+
-
    color: #fff;
+
-
    background: 0 0;
+
-
    transition: all .3s ease-in-out;
+
-
}
+
-
 
+
-
.btn-outline:hover,
+
-
.btn-outline:focus,
+
-
.btn-outline:active,
+
-
.btn-outline.active {
+
-
    border: solid 2px #fff;
+
-
    color: #18bc9c;
+
-
    background: #fff;
+
-
}
+
-
 
+
-
.floating-label-form-group {
+
-
    position: relative;
+
-
    margin-bottom: 0;
+
-
     padding-bottom: .5em;
+
-
     border-bottom: 1px solid #eee;
+
-
}
+
-
 
+
-
.floating-label-form-group input,
+
-
.floating-label-form-group textarea {
+
-
     z-index: 1;
+
-
    position: relative;
+
-
    padding-right: 0;
+
-
    padding-left: 0;
+
-
    border: 0;
+
-
    border-radius: 0;
+
-
    font-size: 1.5em;
+
-
    background: 0 0;
+
-
    box-shadow: none!important;
+
-
    resize: none;
+
-
}
+
-
 
+
-
.floating-label-form-group label {
+
     display: block;
     display: block;
-
     z-index: 0;
+
     white-space: nowrap;
-
     position: relative;
+
     float: none;
-
     top: 2em;
+
     text-transform: none;
-
    margin: 0;
+
-
    font-size: .85em;
+
-
    line-height: 1.764705882em;
+
-
    vertical-align: middle;
+
-
    vertical-align: baseline;
+
-
    opacity: 0;
+
-
    -webkit-transition: top .3s ease,opacity .3s ease;
+
-
    -moz-transition: top .3s ease,opacity .3s ease;
+
-
    -ms-transition: top .3s ease,opacity .3s ease;
+
-
    transition: top .3s ease,opacity .3s ease;
+
}
}
-
.floating-label-form-group::not(:first-child) {
+
*html #menu ul a { /* IE6 */ 
-
     padding-left: 14px;
+
     height: 10px;
-
     border-left: 1px solid #eee;
+
     width: 150px;
}
}
-
.floating-label-form-group-with-value label {
+
*:first-child+html #menu ul a { /* IE7 */   
-
     top: 0;
+
     height: 10px;
-
     opacity: 1;
+
     width: 150px;
}
}
-
.floating-label-form-group-with-focus label {
+
#menu ul a:hover {
-
     color: #18bc9c;
+
     background-color: #0186ba;
 +
    background-image: linear-gradient(#04acec, #0186ba);
}
}
-
form .row:first-child .floating-label-form-group {
+
#menu ul li:first-child a {
-
     border-top: 1px solid #eee;
+
     border-radius: 5px 5px 0 0;
}
}
-
footer {
+
#menu ul li:first-child a:after {
-
     color: #fff;
+
     content: '';
 +
    position: absolute;
 +
    left: 30px;
 +
    top: -8px;
 +
    width: 0;
 +
    height: 0;
 +
    border-left: 5px solid transparent;
 +
    border-right: 5px solid transparent;
 +
    border-bottom: 8px solid #444;
}
}
-
footer h3 {
+
#menu ul li:first-child a:hover:after {
-
     margin-bottom: 30px;
+
     border-bottom-color: #04acec;  
}
}
-
footer .footer-above {
+
#menu ul li:last-child a {
-
     padding-top: 50px;
+
     border-radius: 0 0 5px 5px;
-
    background-color: #2c3e50;
+
}
}
-
footer .footer-col {
+
/* Clear floated elements */
-
     margin-bottom: 50px;
+
#menu:after {
 +
     visibility: hidden;
 +
    display: block;
 +
    font-size: 0;
 +
    content: " ";
 +
    clear: both;
 +
    height: 0;
}
}
-
 
+
#menu ul li:first-child a:after {
-
footer .footer-below {
+
     content: '';
-
    padding: 25px 0;
+
-
    background-color: #233140;
+
-
}
+
-
 
+
-
.btn-social {
+
-
    display: inline-block;
+
-
    width: 50px;
+
-
    height: 50px;
+
-
    border: 2px solid #fff;
+
-
    border-radius: 100%;
+
-
    text-align: center;
+
-
    font-size: 20px;
+
-
    line-height: 45px;
+
-
}
+
-
 
+
-
.btn:focus,
+
-
.btn:active,
+
-
.btn.active {
+
-
     outline: 0;
+
-
}
+
-
 
+
-
.scroll-top {
+
-
    z-index: 1049;
+
-
    position: fixed;
+
-
    right: 2%;
+
-
    bottom: 2%;
+
-
    width: 50px;
+
-
    height: 50px;
+
-
}
+
-
 
+
-
.scroll-top .btn {
+
-
    width: 50px;
+
-
    height: 50px;
+
-
    border-radius: 100%;
+
-
    font-size: 20px;
+
-
    line-height: 28px;
+
-
}
+
-
 
+
-
.scroll-top .btn:focus {
+
-
    outline: 0;
+
-
}
+
-
 
+
-
.portfolio-modal .modal-content {
+
-
    padding: 100px 0;
+
-
    min-height: 100%;
+
-
    border: 0;
+
-
    border-radius: 0;
+
-
    text-align: center;
+
-
    background-clip: border-box;
+
-
    -webkit-box-shadow: none;
+
-
    box-shadow: none;
+
-
}
+
-
 
+
-
.portfolio-modal .modal-content h2 {
+
-
    margin: 0;
+
-
    font-size: 3em;
+
-
}
+
-
 
+
-
.portfolio-modal .modal-content img {
+
-
    margin-bottom: 30px;
+
-
}
+
-
 
+
-
.portfolio-modal .modal-content .item-details {
+
-
    margin: 30px 0;
+
-
}
+
-
 
+
-
.portfolio-modal .close-modal {
+
     position: absolute;
     position: absolute;
-
     top: 25px;
+
     left: 30px;
-
     right: 25px;
+
     top: -8px;
-
     width: 75px;
+
     width: 0;
-
     height: 75px;
+
     height: 0;
-
     background-color: transparent;
+
     border-left: 5px solid transparent;
-
     cursor: pointer;
+
     border-right: 5px solid transparent;
-
}
+
     border-bottom: 8px solid #444;
-
 
+
-
.portfolio-modal .close-modal:hover {
+
-
    opacity: .3;
+
-
}
+
-
 
+
-
.portfolio-modal .close-modal .lr {
+
-
     z-index: 1051;
+
-
    width: 1px;
+
-
    height: 75px;
+
-
    margin-left: 35px;
+
-
    background-color: #2c3e50;
+
-
    -webkit-transform: rotate(45deg);
+
-
    -ms-transform: rotate(45deg);
+
-
    transform: rotate(45deg);
+
}
}
-
.portfolio-modal .close-modal .lr .rl {
+
#menu ul li:first-child a:hover:after {
-
    z-index: 1052;
+
     border-bottom-color: #04acec;  
-
    width: 1px;
+
-
     height: 75px;
+
-
    background-color: #2c3e50;
+
-
    -webkit-transform: rotate(90deg);
+
-
    -ms-transform: rotate(90deg);
+
-
    transform: rotate(90deg);
+
}
}

Latest revision as of 11:30, 2 October 2014

  1. menu {
   width: 100%;
   margin: 0;
   padding: 10px 0 0 0;
   list-style: none;  
   background-color: #111;
   background-image: linear-gradient(#444, #111);
   border-radius: 50px;
   box-shadow: 0 2px 1px #9c9c9c;

}

  1. menu li {
   float: left;
   padding: 0 0 10px 0;
   position: relative;

}

  1. menu a {
   float: left;
   height: 25px;
   padding: 0 25px;
   color: #999;
   text-transform: uppercase;
   font: bold 12px/25px Arial, Helvetica;
   text-decoration: none;
   text-shadow: 0 1px 0 #000;

}

  1. menu li:hover > a {
   color: #fafafa;

}

  • html #menu li a:hover { /* IE6 */
   color: #fafafa;

}

  1. menu li:hover > ul {
   display: block;

}

/* Sub-menu */

  1. menu ul {
   list-style: none;
   margin: 0;
   padding: 0;    
   display: none;
   position: absolute;
   top: 35px;
   left: 0;
   z-index: 99999;    
   background-color: #444;   
   background-image: linear-gradient(#444, #111);    
   -moz-border-radius: 5px;
   border-radius: 5px;

}

  1. menu ul li {
   float: none;
   margin: 0;
   padding: 0;
   display: block;  
   box-shadow: 0 1px 0 #111111, 
               0 2px 0 #777777;

}

  1. menu ul li:last-child {
   box-shadow: none;    

}

  1. menu ul a {
   padding: 10px;
   height: auto;
   line-height: 1;
   display: block;
   white-space: nowrap;
   float: none;
   text-transform: none;

}

  • html #menu ul a { /* IE6 */
   height: 10px;
   width: 150px;

}

  • first-child+html #menu ul a { /* IE7 */
   height: 10px;
   width: 150px;

}

  1. menu ul a:hover {
   background-color: #0186ba;
   background-image: linear-gradient(#04acec, #0186ba);

}

  1. menu ul li:first-child a {
   border-radius: 5px 5px 0 0;

}

  1. menu ul li:first-child a:after {
   content: ;
   position: absolute;
   left: 30px;
   top: -8px;
   width: 0;
   height: 0;
   border-left: 5px solid transparent;
   border-right: 5px solid transparent;
   border-bottom: 8px solid #444;

}

  1. menu ul li:first-child a:hover:after {
   border-bottom-color: #04acec; 

}

  1. menu ul li:last-child a {
   border-radius: 0 0 5px 5px;

}

/* Clear floated elements */

  1. menu:after {
   visibility: hidden;
   display: block;
   font-size: 0;
   content: " ";
   clear: both;
   height: 0;

}

  1. menu ul li:first-child a:after {
   content: ;
   position: absolute;
   left: 30px;
   top: -8px;
   width: 0;
   height: 0;
   border-left: 5px solid transparent;
   border-right: 5px solid transparent;
   border-bottom: 8px solid #444;

}

  1. menu ul li:first-child a:hover:after {
   border-bottom-color: #04acec; 

}