Skip to content

Instantly share code, notes, and snippets.

View Mamboleoo's full-sized avatar

Louis Hoebregts Mamboleoo

View GitHub Profile
@Mamboleoo
Mamboleoo / dabblet.css
Last active January 28, 2016 12:32
Untitled
cochon, vache{
display:block;
width: 100px;
height: 100px;
border:1px solid red;
}
vache:hover{
transition: 2s;
width: 200px;
: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;
.block {
margin-top: var(--spacing-l);
}
$spacings: (s: 2rem, m: 6rem, l: 12.5rem, xl: 20rem);
@mixin spacing($type: 'xl', $property: 'margin-top') {
#{$property}: map-get($margins, $type);
#{$property}: var(--margin-#{$type});
}
.block {
@include spacing(l, margin-bottom);
}
.block {
margin-bottom: 12.5rem; // Fallback for older browsers
margin-bottom: var(--spacing-l); // Responsive spacings
}
.block {
margin-bottom: 10rem;
}
@media (min-width: 700px) {
.block {
margin-bottom: 12.5rem;
}
}
@media (min-width: 1400px) {
.block {
@Mamboleoo
Mamboleoo / index.html
Created January 24, 2019 11:00
HTML Setup [2D-3D]
<canvas id="scene"></canvas>
@Mamboleoo
Mamboleoo / style.css
Created January 24, 2019 11:06
CSS Setup [2D-3D]
body {
margin: 0;
overflow: hidden;
}
canvas {
width:100vw;
height:100vh;
}