Created
April 3, 2020 23:49
-
-
Save bc238dev/c7181057bd4b827d266a16675183c93a to your computer and use it in GitHub Desktop.
A sample scss for me (3 Apr 2020/Fri)
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
| @mixin no-select { | |
| -webkit-user-select: none; | |
| -khtml-user-select: none; | |
| -moz-user-select: none; | |
| -ms-user-select: none; | |
| user-select: none; | |
| -webkit-touch-callout: none; | |
| -ms-text-size-adjust: none; | |
| -webkit-text-size-adjust: none; | |
| -webkit-tap-highlight-color: rgba(0, 0, 0, 0); | |
| } | |
| * { | |
| @include no-select; | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| position: relative; | |
| } | |
| body, | |
| html { | |
| height: 100vh; | |
| background-color: lightyellow; | |
| font-size: 1.25rem; | |
| } | |
| $width: w; | |
| $height: h; | |
| $vheight: vh; | |
| $incrWH: 1; | |
| @for $i from 1 through 100 { | |
| $val: $i * $incrWH; | |
| .#{$width}#{$val} { | |
| width: 0% + ($val); | |
| } | |
| .#{$height}#{$val} { | |
| height: 0% + ($val); | |
| } | |
| .#{$vheight}#{$val} { | |
| height: 0vh + ($val); | |
| } | |
| } | |
| .w1of2 { | |
| width: 50%; | |
| } | |
| .w1of3 { | |
| width: 33.3%; | |
| } | |
| .w1of4 { | |
| width: 25%; | |
| } | |
| .w1of5 { | |
| width: 20%; | |
| } | |
| .w1of6 { | |
| width: 16.6%; | |
| } | |
| .w1of7 { | |
| width: 14.28%; | |
| } | |
| .w1of8 { | |
| width: 12.5%; | |
| } | |
| .w1of9 { | |
| width: 11.11%; | |
| } | |
| .w1of10 { | |
| width: 10%; | |
| } | |
| .no-events { | |
| pointer-events: none; | |
| } | |
| .container { | |
| width: 98%; | |
| margin: auto; | |
| text-align: center; | |
| height: 100vh; | |
| border: 2px solid green; | |
| max-width: 1000px; | |
| } | |
| // This part makes the container wrap around the floating cards! | |
| // AKA: Clearfix | |
| .container::after { | |
| content: ""; | |
| clear: both; | |
| display: table; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment