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
// 1: how could you rewrite the following to make it shorter? | |
if (foo) { | |
bar.doSomething(el); | |
} else { | |
bar.doSomethingElse(el); | |
} | |
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
/** | |
* Centrage horizontal et vertical — universel | |
*/ | |
html, body { | |
height: 100%; | |
margin: 0; | |
width: 100%; | |
} | |
.layout { |
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
/** | |
* TV screen | |
*/ | |
html { background: white; } | |
.tv { | |
position: relative; | |
width: 200px; | |
height: 150px; |
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
body{text-align:center;background:#eff3f6;margin:2em;} | |
i{display:inline-block;position:relative;margin:0 .1em;} | |
i::before{content:"";position:absolute;display:block;} | |
.folder{ | |
width:14px; | |
height:10px; | |
background-image:linear-gradient(#a7c3d9, #709fc2); | |
box-shadow:inset 0 1px 0 #c6d9e7, 0 1px 0 #bbbfc3; | |
border-width:1px; |