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
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// ---- | |
$color-state-modifier: 10%; | |
@mixin state-color-changes($this-color, $properties...) { | |
@each $prop in $properties { | |
#{$prop}: $this-color; |
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
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "css" | |
sass_dir = "scss" | |
images_dir = "imagens" | |
javascripts_dir = "javascripts" | |
# You can select your preferred output style here (can be overridden via the command line): |
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
var arr = ['foo', 'bar', 'foo']; | |
var novaArr = arr.filter(function(este, i) { | |
return arr.indexOf(este) == i; | |
}) | |
console.log(novaArr); //dá ['foo', 'bar'] |
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
//define elemento container - com ID | |
var elementoContainer = document.getElementById("elementoContainerID"); | |
//define elemento para ser inserido no inicio | |
var elementoParaInserir = document.createElement('div'); | |
elementoParaInserir.classList.add('_elementoInserido'); | |
elementoContainer.insertBefore(elementoParaInserir, elementoContainer.firstChild); | |
//eu vi aqui: |
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
$(document).ready(function(){ | |
$("span").closest("ul").css({"color": "red", "border": "2px solid red"}); | |
}); | |
/* | |
diferente do parent(), ele varre os elementos 'pai' até encontrar o definido; | |
No exemplo, a partir do elemento 'span', o js vai varrer os elementos pai, até achar uma 'ul'. | |
*/ |
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
@mixin vtal(){ | |
position: relative; | |
top: 50%; | |
-webkit-transform: translateY(-50%); | |
-ms-transform: translateY(-50%); | |
transform: translateY(-50%); | |
} |
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
// ---- | |
// Sass (v3.4.13) | |
// Compass (v1.0.3) | |
// ---- | |
@for $i from 1 through 14 { | |
$altura_img: 360; | |
$largura_img: 980; |
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
// ---- | |
// Sass (v3.4.13) | |
// Compass (v1.0.3) | |
// ---- | |
@for $i from 1 through 980 { | |
$altura_img: 360; | |
$largura_img: 980; | |
$nova_largura_img: 980 - $i; | |
//AI / LI * NLI = NAI |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
git rm --cached nome_do_arquivo |