This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).scroll(function() { | |
if ($(this).scrollTop() == 0) { | |
$("body").removeClass("scrolled"); | |
} else { | |
$("body").addClass("scrolled"); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section, | |
section > * { | |
position: relative; | |
} | |
section:before { | |
background: rgba(0, 0, 0, 0.5); | |
bottom: 0; | |
content: ""; | |
left: 0; | |
position: absolute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.counter-container { | |
counter-reset: number-counter; | |
} | |
.counter-container > div:before { | |
color: #666; | |
content: counter(number-counter, decimal); | |
counter-increment: number-counter; | |
display: inline-block; | |
float: left; | |
height: 30px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).load(function(){ | |
var altura = 0; | |
$(".item").each(function() { | |
var alturaElemento = $(this).height(); | |
if (altura < alturaElemento) { | |
altura = alturaElemento; | |
} | |
}); | |
$(".item").height(altura); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("form").bind("submit",function() { | |
var canSubmit = true; | |
$(":input",this).each(function() { | |
var element = $(this); | |
var type = this.type; | |
var tag = this.tagName.toLowerCase(); | |
var frase = "Por favor, preencha o campo: "; | |
if (type != "checkbox" || type != "radio") { | |
var label = $(this).prev("label").text(); | |
var campo = label.replace(':','.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="tabs"> | |
<li><a href="#first">First</a></li> | |
<li><a href="#second">Second</a></li> | |
<li><a href="#third">Third</a></li> | |
</ul> | |
<div id="first"></div> | |
<div id="second"></div> | |
<div id="third"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.flex-container { | |
display: flex; | |
flex-direction: row; | |
flex-wrap: wrap; | |
} | |
.flex-container > .flex-item { | |
flex-basis: 100px; | |
flex-grow: 1; | |
flex-shrink: 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.holder { | |
display: flex; | |
} | |
.holder > * { | |
float: left; | |
position: relative; | |
} | |
section { | |
flex-shrink: 0; | |
width: 25%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.columns { | |
overflow: hidden; | |
-moz-column-gap: 60px; | |
-moz-columns: 3 200px; | |
-webkit-column-gap: 60px; | |
-webkit-columns: 3 200px; | |
column-gap: 60px; | |
columns: 3 200px; | |
} |
NewerOlder