(75 intermediate revisions by 2 users not shown) | |||
Line 23: | Line 23: | ||
/***************************************************** CUSTOM WIKI SETTINGS ****************************************************/ | /***************************************************** CUSTOM WIKI SETTINGS ****************************************************/ | ||
+ | |||
+ | #bodyContent a[href ^="https://"], .link-https { | ||
+ | padding-right: 16px; | ||
+ | color: white; !important! | ||
+ | } | ||
+ | |||
+ | a:hover { | ||
+ | color: white; | ||
+ | text-decoration: underline; | ||
+ | } | ||
+ | |||
+ | a { | ||
+ | color: white; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | |||
+ | #bodyContent a[href ^="http://"], #bodyContent a[href ^="gopher://"] { | ||
+ | text-decoration: underline; | ||
+ | } | ||
+ | |||
+ | #bodyContent a[href ^="https://"], .link-https { | ||
+ | padding-right: 16px; | ||
+ | color: white; | ||
+ | } | ||
+ | |||
+ | a:visited { | ||
+ | color: white; | ||
+ | text-decoration: underline; | ||
+ | } | ||
b, strong { | b, strong { | ||
Line 388: | Line 417: | ||
.img-responsive1{ | .img-responsive1{ | ||
− | width: | + | align-content: center; |
− | height: | + | width:300px; |
+ | height:495px; | ||
} | } | ||
.img-responsive2{ | .img-responsive2{ | ||
− | + | align-content: center; | |
− | height: | + | width:400px; |
+ | height:400px; | ||
+ | transform: rotate(90deg); | ||
} | } | ||
.img-responsive3{ | .img-responsive3{ | ||
− | width: | + | width:500px; |
− | height: | + | height:350px; |
} | } | ||
Line 599: | Line 631: | ||
.team-img { | .team-img { | ||
width:400px; | width:400px; | ||
− | height: | + | height:400px; |
} | } | ||
Line 684: | Line 716: | ||
max-width: 90%; | max-width: 90%; | ||
max-height: 80%; | max-height: 80%; | ||
− | margin-top: | + | margin-top: 5%; |
} | } | ||
Line 693: | Line 725: | ||
/** Unhide lightbox **/ | /** Unhide lightbox **/ | ||
display: block; | display: block; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 710: | Line 736: | ||
#images{ | #images{ | ||
text-align:center; | text-align:center; | ||
+ | } | ||
+ | |||
+ | .nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover { | ||
+ | color: #fff; | ||
+ | background-color: #083F54; | ||
+ | } | ||
+ | |||
+ | #sidebar { | ||
+ | width: 190px; | ||
+ | position: fixed; | ||
+ | margin-right: 410px; | ||
+ | } | ||
+ | |||
+ | .ui-widget { | ||
+ | border: 1px solid black; | ||
+ | |||
+ | } | ||
+ | |||
+ | .ui-tooltip, .arrow:after { | ||
+ | background: white; | ||
+ | border: 1px solid white; | ||
+ | } | ||
+ | .ui-tooltip { | ||
+ | padding: 10px 20px; | ||
+ | color: black; | ||
+ | border-radius: 2px; | ||
+ | font: bold 14px "Helvetica Neue", Sans-Serif; | ||
+ | text-transform: uppercase; | ||
+ | box-shadow: 0 0 1px black; | ||
+ | border: 1px solid white !important; | ||
+ | } | ||
+ | .arrow { | ||
+ | width: 70px; | ||
+ | height: 16px; | ||
+ | overflow: hidden; | ||
+ | position: absolute; | ||
+ | left: 50%; | ||
+ | margin-left: -35px; | ||
+ | bottom: -17px; | ||
+ | } | ||
+ | .arrow.top { | ||
+ | top: -17px; | ||
+ | bottom: auto; | ||
+ | } | ||
+ | .arrow.left { | ||
+ | left: 20%; | ||
+ | } | ||
+ | .arrow:after { | ||
+ | content: ""; | ||
+ | position: absolute; | ||
+ | left: 20px; | ||
+ | top: -20px; | ||
+ | width: 25px; | ||
+ | height: 25px; | ||
+ | box-shadow: 0 0 1px black; | ||
+ | -webkit-transform: rotate(45deg); | ||
+ | -moz-transform: rotate(45deg); | ||
+ | -ms-transform: rotate(45deg); | ||
+ | -o-transform: rotate(45deg); | ||
+ | transform: rotate(45deg); | ||
+ | } | ||
+ | .arrow.top:after { | ||
+ | bottom: -20px; | ||
+ | top: auto; | ||
+ | } | ||
+ | .hidden { | ||
+ | visibility: hidden; | ||
+ | } | ||
+ | |||
+ | .fireTip { | ||
+ | margin-left: 0px; | ||
+ | } | ||
+ | |||
+ | .cart { | ||
+ | overflow:hidden; | ||
+ | padding:10px 3px; | ||
+ | background: yellow; | ||
} | } | ||
Line 753: | Line 856: | ||
e.style.display = (e.style.display == 'block') ? 'none' : 'block'; | e.style.display = (e.style.display == 'block') ? 'none' : 'block'; | ||
} | } | ||
+ | |||
+ | $(function() { | ||
+ | |||
+ | var $sidebar = $("#sidebar"), | ||
+ | $window = $(window), | ||
+ | offset = $sidebar.offset(), | ||
+ | topPadding = 15; | ||
+ | |||
+ | $window.scroll(function() { | ||
+ | if ($window.scrollTop() > offset.top) { | ||
+ | $sidebar.stop().animate({ | ||
+ | marginTop: $window.scrollTop() - offset.top + topPadding | ||
+ | }); | ||
+ | } else { | ||
+ | $sidebar.stop().animate({ | ||
+ | marginTop: 0 | ||
+ | }); | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | }); | ||
+ | $(window).load(function() { | ||
+ | $('li.notebook').addClass('active'); | ||
+ | $('li.n_over').addClass('active'); | ||
+ | |||
+ | $(".affix").css("width", $("#parent").width()); | ||
+ | }); | ||
+ | |||
+ | $(window).scroll(function() { | ||
+ | $(".affix").css("width", $("#parent").width()); | ||
+ | }); | ||
+ | |||
+ | $(window).resize(function() { | ||
+ | $(".affix").css("width", $("#parent").width()); | ||
+ | }); | ||
+ | |||
+ | |||
+ | $(function() { | ||
+ | $( document ).tooltip({ | ||
+ | items: "input", | ||
+ | content: function() { | ||
+ | return $('.myPopover').html(); | ||
+ | }, | ||
+ | position: { | ||
+ | my: "center bottom-20", | ||
+ | at: "center top", | ||
+ | using: function( position, feedback ) { | ||
+ | $( this ).css( position ); | ||
+ | $( "<div>" ) | ||
+ | .addClass( "arrow" ) | ||
+ | .addClass( feedback.vertical ) | ||
+ | .addClass( feedback.horizontal ) | ||
+ | .appendTo( this ); | ||
+ | } | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | $('.fireTip').click(function () { | ||
+ | if(!$(this).hasClass('open')) { | ||
+ | $('#age').trigger('mouseover'); | ||
+ | $(this).addClass('open'); | ||
+ | } else { | ||
+ | $('#age').trigger('mouseout'); | ||
+ | $(this).removeClass('open'); | ||
+ | } | ||
+ | |||
+ | }) | ||
+ | |||
+ | }); | ||
+ | |||
+ | $(document).ready(function(){ | ||
+ | $("#masterclass-popover").popover({ | ||
+ | html : true, | ||
+ | placement: 'bottom', | ||
+ | title: $("#masterclass-popover-head").html(), | ||
+ | content: $("#masterclass-popover-content").html() | ||
+ | }); | ||
+ | |||
+ | $("small.download-notice a").click(function(e) { | ||
+ | e.preventDefault(); | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | $(document).on("click", ".tooltip", function() { | ||
+ | $(this).tooltip( | ||
+ | { | ||
+ | items: ".tooltip", | ||
+ | content: function(){ | ||
+ | return $(this).data('description'); | ||
+ | }, | ||
+ | close: function( event, ui ) { | ||
+ | var me = this; | ||
+ | ui.tooltip.hover( | ||
+ | function () { | ||
+ | $(this).stop(true).fadeTo(400, 1); | ||
+ | }, | ||
+ | function () { | ||
+ | $(this).fadeOut("400", function(){ | ||
+ | $(this).remove(); | ||
+ | }); | ||
+ | } | ||
+ | ); | ||
+ | ui.tooltip.on("remove", function(){ | ||
+ | $(me).tooltip("destroy"); | ||
+ | }); | ||
+ | }, | ||
+ | } | ||
+ | ); | ||
+ | $(this).tooltip("open"); | ||
+ | }); | ||
+ | |||
</script> | </script> | ||
Line 791: | Line 1,005: | ||
<li> | <li> | ||
<div class="dropdown"> | <div class="dropdown"> | ||
− | <a href="https://2017.igem.org/Team:UCopenhagen/Safety"><button class="dropbtn">Safety</button></a> | + | <a href="https://2017.igem.org/Team:UCopenhagen/Safety"><button class="dropbtn">Safety & Labnotes</button></a> |
<div class="dropdown-content"> | <div class="dropdown-content"> | ||
<a href="https://2017.igem.org/Team:UCopenhagen/Safety">Safety</a> | <a href="https://2017.igem.org/Team:UCopenhagen/Safety">Safety</a> | ||
<a href="https://2017.igem.org/Team:UCopenhagen/Notebook">Notebook</a> | <a href="https://2017.igem.org/Team:UCopenhagen/Notebook">Notebook</a> | ||
<a href="https://2017.igem.org/Team:UCopenhagen/Protocols">Protocols</a> | <a href="https://2017.igem.org/Team:UCopenhagen/Protocols">Protocols</a> | ||
+ | <a href="https://2017.igem.org/Team:UCopenhagen/Improve">Improve</a> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 814: | Line 1,029: | ||
<div class="dropdown-content"> | <div class="dropdown-content"> | ||
<a href="https://2017.igem.org/Team:UCopenhagen/HP/Silver">Overview</a> | <a href="https://2017.igem.org/Team:UCopenhagen/HP/Silver">Overview</a> | ||
− | |||
<a href="https://2017.igem.org/Team:UCopenhagen/HP/Ethics">Ethics</a> | <a href="https://2017.igem.org/Team:UCopenhagen/HP/Ethics">Ethics</a> | ||
+ | <a href="https://2017.igem.org/Team:UCopenhagen/HP/Gold_Integrated">Integrated</a> | ||
<a href="https://2017.igem.org/Team:UCopenhagen/HP/Events">Events</a> | <a href="https://2017.igem.org/Team:UCopenhagen/HP/Events">Events</a> | ||
<a href="https://2017.igem.org/Team:UCopenhagen/HP/Media">Media</a> | <a href="https://2017.igem.org/Team:UCopenhagen/HP/Media">Media</a> | ||
</div> | </div> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
</li> | </li> |
Latest revision as of 03:57, 2 November 2017