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
::-webkit-input-placeholder { /* Chrome */ | |
color: red; | |
} | |
:-ms-input-placeholder { /* IE 10+ */ | |
color: red; | |
} | |
::-moz-placeholder { /* Firefox 19+ */ | |
color: red; | |
opacity: 1; | |
} |
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
input { | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
} |
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
// z-index only works on positioned elements (absolute, relative or fixed) :) | |
// if you have statice element you have to change | |
// example | |
.navbar-header { | |
position: relative; | |
z-index:1; | |
} | |
// trick of shrinking a text to three dots |
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
input[type="radio"] { | |
visibility: hidden; | |
position: relative; | |
} | |
input[type="radio"]:after{ | |
visibility: visible; | |
position: absolute; | |
content: ""; |
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
input[type="checkbox"] { | |
display:none; | |
} | |
input[type="checkbox"] + label span { | |
display:inline-block; | |
width:19px; | |
height:19px; | |
margin:-2px 10px 0 0; | |
vertical-align:middle; | |
background:url(check_radio_sheet.png) left top no-repeat; |
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
&:after { | |
display:block; | |
content: ''; | |
border-bottom: solid 3px #ffcd00; | |
transform: scaleX(0); | |
transition: transform 250ms ease-in-out; | |
transform-origin:0 50%; | |
box-sizing: border-box; | |
} |
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
background-image: url('') ; | |
background-position: center center; | |
background-repeat: no-repeat; | |
background-attachment: fixed; | |
background-size: cover; | |
background-color: #999; |
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 bigMistakeStyle = 'color: red; font-size: 60px font-weight: bold; font-family: helvetica, text-shadow: 1px 1px 2px black;' | |
console.log('%c STOP!', bigMistakeStyle); |
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
<!doctype html> | |
<html> | |
<head> | |
<style> | |
#container { | |
width: 200px; | |
height: 200px; | |
background: green; | |
position: relative; | |
} |
NewerOlder