OscarSierra (Talk | contribs) |
|||
Line 56: | Line 56: | ||
font-family: 'Montserrat Alternates', sans-serif !important; | font-family: 'Montserrat Alternates', sans-serif !important; | ||
} | } | ||
− | .igem_2018_team_content{ | + | /* .igem_2018_team_content{ |
padding-top: 63px; | padding-top: 63px; | ||
− | } | + | } */ |
.igem_2018_team_content p{ | .igem_2018_team_content p{ | ||
margin-bottom: 1rem !important; | margin-bottom: 1rem !important; | ||
Line 100: | Line 100: | ||
/*------------------------------------------------*/ | /*------------------------------------------------*/ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
/*------------------------------------------------*/ | /*------------------------------------------------*/ | ||
/*----------------- NAVIGATION -------------------*/ | /*----------------- NAVIGATION -------------------*/ | ||
/*------------------------------------------------*/ | /*------------------------------------------------*/ | ||
− | .header{ | + | /* .header{ |
position: fixed; | position: fixed; | ||
z-index: 100000; | z-index: 100000; | ||
width: 100%; | width: 100%; | ||
+ | } */ | ||
+ | |||
+ | .navbar{ | ||
+ | padding-top: 1rem; | ||
+ | padding-bottom: 0; | ||
+ | background-color: #ffffff !important; | ||
+ | position: relative; | ||
+ | padding-left: 12rem; | ||
+ | padding-right: 8rem; | ||
} | } | ||
− | + | ||
− | .logo{ | + | .lactobachill-icon, .logo{ |
− | + | position: absolute; | |
} | } | ||
− | . | + | |
− | width: | + | .lactobachill-icon{ |
+ | width: 12rem; | ||
+ | top: 0; | ||
+ | left: 0; | ||
} | } | ||
− | . | + | .logo{ |
− | + | width: 8rem; | |
− | + | top: 0; | |
− | + | right: 0; | |
− | + | ||
} | } | ||
− | + | .nav-item > .active{ | |
− | .nav | + | border-bottom-right-radius: 0px; |
− | font- | + | border-bottom-left-radius: 0px; |
+ | border-radius: 14px 14px 0 0; | ||
+ | background-color: #c2f2de !important; | ||
+ | font-weight: 900; | ||
+ | color: #145944 !important; | ||
} | } | ||
− | . | + | |
− | + | .nav-link{ | |
+ | padding-bottom: 15px; | ||
} | } | ||
− | . | + | |
− | + | .nav-item a{ | |
+ | font-size: 28px; | ||
} | } | ||
− | + | ||
− | + | /* Dropdown Style*/ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | /* | + | |
− | + | ||
− | + | ||
.dropdown-menu { | .dropdown-menu { | ||
display: none; | display: none; | ||
+ | padding: 0; | ||
+ | margin-top: 0; | ||
width: 100%; | width: 100%; | ||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | ||
Line 246: | Line 170: | ||
} | } | ||
− | . | + | .dropdown:hover .dropdown-menu { |
display: block; | display: block; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
.dropdown-menu a{ | .dropdown-menu a{ | ||
text-align: center; | text-align: center; | ||
font-size: 22px !important; | font-size: 22px !important; | ||
+ | display: block; | ||
+ | } | ||
+ | |||
+ | /*------------------------------------------------*/ | ||
+ | /*----------------- SOCIAL LINKS -----------------*/ | ||
+ | /*------------------------------------------------*/ | ||
+ | |||
+ | .social-links{ | ||
+ | width: 4rem; | ||
+ | margin: 0; | ||
+ | z-index: 1000; | ||
+ | background-color: rgb(19, 94, 73); | ||
+ | z-index: 10000; | ||
+ | position: absolute; | ||
+ | left: .4em; | ||
+ | top: 50%; | ||
+ | border-radius: 20px; | ||
+ | pointer-events: auto; | ||
+ | } | ||
+ | |||
+ | .social-icons{ | ||
+ | padding: 22px 10px 22px 10px; | ||
+ | } | ||
+ | |||
+ | .social-links img{ | ||
+ | width: 100%; | ||
+ | border-radius: 8px; | ||
+ | margin-bottom: 20px; | ||
} | } | ||
+ | .social-links a:last-child img{ | ||
+ | margin-bottom: 0; | ||
+ | } | ||
+ | .social-container{ | ||
+ | position: fixed; | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | z-index: 100000; | ||
+ | width: 100%; | ||
+ | height: 100%; | ||
+ | overflow: hidden; | ||
+ | pointer-events: none; | ||
+ | } | ||
+ | |||
</style> | </style> | ||
− | < | + | <script> |
− | + | // Make social-links div draggable | |
+ | $(document).ready(function(){ | ||
− | <div class=" | + | function handle_mousedown(event) { |
− | <div class=" | + | window.curr_drag = {}; |
− | <div class=" | + | curr_drag.pageX0 = event.pageX; |
− | < | + | curr_drag.pageY0 = event.pageY; |
+ | curr_drag.element = this; | ||
+ | curr_drag.offset0 = $(this).offset(); | ||
+ | |||
+ | function handle_dragging(event){ | ||
+ | $('body').css({'cursor': 'grabbing', 'cursor': '-moz-grabbing', 'cursor': '-webkit-grabbing'}); | ||
+ | var left = curr_drag.offset0.left + (event.pageX - curr_drag.pageX0); | ||
+ | var top = curr_drag.offset0.top + (event.pageY - curr_drag.pageY0); | ||
+ | $(curr_drag.element) | ||
+ | .offset({top: top, left: left}); | ||
+ | } | ||
+ | |||
+ | function handle_mouseup(event){ | ||
+ | $('body').css({'cursor': 'grab', 'cursor': '-moz-grab', 'cursor': '-webkit-grab'}); | ||
+ | $('body') | ||
+ | .off('mousemove', handle_dragging) | ||
+ | .off('mouseup', handle_mouseup); | ||
+ | } | ||
+ | |||
+ | function pauseEvent(event){ | ||
+ | if(event.stopPropagation) event.stopPropagation(); | ||
+ | if(event.preventDefault) event.preventDefault(); | ||
+ | event.cancelBubble=true; | ||
+ | event.returnValue=false; | ||
+ | return false; | ||
+ | } | ||
+ | pauseEvent(event); | ||
+ | $('body') | ||
+ | .on('mouseup', handle_mouseup) | ||
+ | .on('mousemove', handle_dragging); | ||
+ | } | ||
+ | |||
+ | $("#social-draggable").mousedown(handle_mousedown); | ||
+ | $("#social-draggable").hover(function() { | ||
+ | $('body').css({'cursor': 'grab', 'cursor': '-moz-grab', 'cursor': '-webkit-grab'}); | ||
+ | }, function() { | ||
+ | $('body').css({'cursor': 'default'}); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | |||
+ | <!-- HTML BEGINS HERE --> | ||
+ | |||
+ | <div class="social-container"> | ||
+ | <div class="social-links" id="social-draggable"> | ||
+ | <div class="social-icons"> | ||
+ | <a href=""><img src="instagram.png" /></a> | ||
+ | <a href=""><img src="facebook.png" /></a> | ||
+ | <a href=""><img src="twitter.png" /></a> | ||
</div> | </div> | ||
− | + | </div> | |
− | + | </div> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | <li class="nav-item dropdown | + | <div class="container-fluid pl-0 pr-0"> |
− | <a class="nav-link dropdown-toggle | + | <nav class="navbar navbar-expand-lg navbar-light bg-light"> |
+ | <img class="lactobachill-icon" src="LactobachillIcon.png" alt="lactobachill icon"/> | ||
+ | |||
+ | <div class="collapse navbar-collapse" id="navbarTogglerDemo02"> | ||
+ | <ul class="navbar-nav mt-2 mt-lg-0 nav-pills nav-fill" style="width: 100%"> | ||
+ | <li class="nav-item"> | ||
+ | <a class="nav-link active" href="#">Home</a> | ||
+ | </li> | ||
+ | <li class="nav-item dropdown"> | ||
+ | <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Project</a> | ||
<div class="dropdown-menu"> | <div class="dropdown-menu"> | ||
− | <a class="dropdown-item | + | <a class="dropdown-item" href="https://2018.igem.org/TecMonterrey_GDL/Abstract">Abstract</a> |
− | <a class="dropdown-item | + | <a class="dropdown-item" href="https://2018.igem.org/TecMonterrey_GDL/OurTeam">Our team</a> |
− | <a class="dropdown-item | + | <a class="dropdown-item" href="https://2018.igem.org/TecMonterrey_GDL/Attributions">Attributions</a> |
</div> | </div> | ||
</li> | </li> | ||
− | + | <li class="nav-item dropdown"> | |
− | <li class="nav-item dropdown | + | <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dry labs</a> |
− | <a class="nav-link dropdown-toggle | + | <div class="dropdown-menu"> |
− | <div class="dropdown-menu | + | <a class="dropdown-item" href="https://2018.igem.org/Team:TecMonterrey_GDL/Parts ">Parts</a> |
− | <a class="dropdown-item | + | <a class="dropdown-item" href="https://2018.igem.org/Team:TecMonterrey_GDL/Constructs">Constructs</a> |
− | <a class="dropdown-item | + | <a class="dropdown-item" href="https://2018.igem.org/Team:TecMonterrey_GDL/Model">Mathematical model</a> |
− | <a class="dropdown-item | + | |
</div> | </div> | ||
</li> | </li> | ||
− | <li class="nav-item dropdown | + | <li class="nav-item dropdown"> |
− | <a class="nav-link dropdown-toggle | + | <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Wet lab</a> |
− | <div class="dropdown-menu | + | <div class="dropdown-menu"> |
− | <a class="dropdown-item | + | <a class="dropdown-item" href="https://2018.igem.org/TecMonterrey_GDL/InterLab">Interlab</a> |
− | <a class="dropdown-item | + | <a class="dropdown-item" href="https://2018.igem.org/TecMonterrey_GDL/Collaborations">Collaborations</a> |
− | <a class="dropdown-item | + | <a class="dropdown-item" href="https://2018.igem.org/TecMonterrey_GDL/Demonstrate">Demonstrate</a> |
− | <a class="dropdown-item | + | <a class="dropdown-item" href="https://2018.igem.org/TecMonterrey_GDL/Improve">Improvement prev. parts</a> |
</div> | </div> | ||
</li> | </li> | ||
− | + | <li class="nav-item dropdown"> | |
− | <li class="nav-item dropdown | + | <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Human practices</a> |
− | <a class="nav-link dropdown-toggle | + | <div class="dropdown-menu"> |
− | <div class="dropdown-menu | + | <a class="dropdown-item" href="https://2018.igem.org/TecMonterrey_GDL/HP/Silver">Timeline</a> |
− | <a class="dropdown-item | + | <a class="dropdown-item" href="https://2018.igem.org/TecMonterrey_GDL/HP/Gold_Integrated">Public engagement</a> |
− | <a class="dropdown-item | + | |
</div> | </div> | ||
</li> | </li> | ||
− | + | <li class="nav-item dropdown"> | |
− | <li class="nav-item dropdown | + | <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Notebook</a> |
− | <a class="nav-link dropdown-toggle | + | <div class="dropdown-menu"> |
− | <div class="dropdown-menu | + | <a class="dropdown-item" href="https://2018.igem.org/Team:TecMonterrey_GDL/Protocols">Protocols</a> |
− | <a class="dropdown-item | + | <a class="dropdown-item" href="https://2018.igem.org/Team:TecMonterrey_GDL/Lab_Logs">Lab. logs</a> |
− | <a class="dropdown-item | + | <a class="dropdown-item" href="https://2018.igem.org/Team:TecMonterrey_GDL/Results">Results</a> |
− | <a class="dropdown-item | + | |
</div> | </div> | ||
</li> | </li> | ||
<li class="nav-item"> | <li class="nav-item"> | ||
− | <a class="nav-link | + | <a class="nav-link" href="#">Checklist</a> |
</li> | </li> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</ul> | </ul> | ||
</div> | </div> | ||
− | < | + | <img class="logo" src="logo.png" alt="lactobachill icon"/> |
− | + | ||
− | </ | + | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02" aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation"> |
− | </ | + | <span class="navbar-toggler-icon"></span> |
+ | </button> | ||
+ | </nav> | ||
</div> | </div> | ||
+ | <div style="height: 300vh"> | ||
+ | |||
+ | </div> | ||
Revision as of 04:06, 18 July 2018