Created
May 15, 2020 17:58
-
-
Save i2r/ac8cf302497ba2d4db88ca62997d3d5c to your computer and use it in GitHub Desktop.
Shrink Elements
This file contains hidden or 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
/** | |
* Shrink Elements | |
*/ | |
html, body { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
font-size: 16px; | |
line-height: 18px; | |
} | |
.footer { | |
display: flex; | |
margin: 10px 200px; | |
background: green; | |
} | |
.item { | |
padding: 2px 6px; | |
max-height: 18px; | |
overflow: hidden; | |
} |
This file contains hidden or 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
<div class="footer"> | |
<div class="item">smile</div> | |
<div class="item">cmnt action</div> | |
<div class="item">share</div> | |
</div> |
This file contains hidden or 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
// alert('Hello world!'); |
This file contains hidden or 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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment