Last active
August 5, 2023 05:12
-
-
Save eliofery/885439c88ad6fddcbefd35837e8c6c4b to your computer and use it in GitHub Desktop.
CSS
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
.header { | |
height: 100vh; | |
} | |
@media (max-aspect-ratio: 10 / 8) | |
.header { | |
height: auto; | |
} | |
} |
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
@font-face { | |
font-family: Roboto; | |
font-style: normal; | |
font-weight: 400; | |
font-display: swap; | |
src: url("../fonts/roboto/roboto-regular.woff2") format("woff2"), | |
url("../fonts/roboto/roboto-regular.woff") format('woff'); | |
} |
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
.item:nth-child(4n+1):nth-last-child(-n+4), | |
.item:nth-child(4n+1):nth-last-child(-n+4) ~ .item { | |
margin-bottom: 0; | |
border-bottom: none; | |
} |
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.video | |
iframe.video_meta | |
.video { | |
position: relative; | |
width: 100%; | |
height: 0; | |
padding-bottom: 56.25%; | |
background-color: #000; | |
} | |
.video_meta { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
border: none; | |
} |
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
.el { | |
background-image: url('[email protected]'); | |
background-size: 200px; | |
} | |
@media (min-resolution: 144dpi), (min-resolution: 1.5dppx) { | |
.el { | |
background-image: url('[email protected]'); | |
background-size: 400px; | |
} | |
} |
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
.sr-only { | |
position: absolute; | |
width: 1px; | |
height: 1px; | |
margin: -1px; | |
padding: 0; | |
border: 0; | |
clip: rect(0,0,0,0); | |
-webkit-clip-path: inset(100%); | |
clip-path: inset(100%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment