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
| cochon, vache{ | |
| display:block; | |
| width: 100px; | |
| height: 100px; | |
| border:1px solid red; | |
| } | |
| vache:hover{ | |
| transition: 2s; | |
| width: 200px; |
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
| :root { | |
| --spacing-s: 1.5rem; | |
| --spacing-m: 5rem; | |
| --spacing-l: 10rem; | |
| --spacing-xl: 10rem; | |
| @media (min-width: 700px) { | |
| --spacing-s: 2rem; | |
| --spacing-m: 6rem; | |
| --spacing-l: 12.5rem; | |
| --spacing-xl: 20rem; |
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
| .block { | |
| margin-top: var(--spacing-l); | |
| } |
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
| $spacings: (s: 2rem, m: 6rem, l: 12.5rem, xl: 20rem); |
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 spacing($type: 'xl', $property: 'margin-top') { | |
| #{$property}: map-get($margins, $type); | |
| #{$property}: var(--margin-#{$type}); | |
| } |
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
| .block { | |
| @include spacing(l, margin-bottom); | |
| } |
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
| .block { | |
| margin-bottom: 12.5rem; // Fallback for older browsers | |
| margin-bottom: var(--spacing-l); // Responsive spacings | |
| } |
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
| .block { | |
| margin-bottom: 10rem; | |
| } | |
| @media (min-width: 700px) { | |
| .block { | |
| margin-bottom: 12.5rem; | |
| } | |
| } | |
| @media (min-width: 1400px) { | |
| .block { |
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
| <canvas id="scene"></canvas> |
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
| body { | |
| margin: 0; | |
| overflow: hidden; | |
| } | |
| canvas { | |
| width:100vw; | |
| height:100vh; | |
| } |