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
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
body, | |
h1, | |
h2, | |
h3, |
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 { | |
--clr-block: #7f1d1d; | |
--clr-block-bg: #fca5a5; | |
--clr-inline: #1e3a8a; | |
--clr-inline-bg: #93c5fd; | |
--clr-flex: #064e3b; | |
--clr-flex-bg: #6ee7b7; | |
--clr-grid: #701a75; | |
--clr-grid-bg: #f0abfc; | |
} |
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
document.addEventListener('DOMContentLoaded', () => { | |
function getDisplayValue(element) { | |
let displayValue = window.getComputedStyle(element.target).display | |
return displayValue | |
} | |
document.body.querySelectorAll('*').forEach(element => | |
element.addEventListener('click', e => { | |
let value = getDisplayValue(e) | |
if (value === 'inline') { | |
e.target.classList.toggle('outlineInline') |
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
/* Utilities */ | |
.flex { | |
display: flex; | |
gap: var(--gap, 1rem); | |
} | |
.grid { | |
display: grid; | |
gap: var(--gap, 1rem); | |
} |
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
/* Reset */ | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
body, | |
h1, | |
h2, |
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 { | |
--clr-primary: hsl(250 30% 40%); | |
--clr-secondary: hsl(190 40% 40%); | |
--clr-bg: hsl(0 0% 100% / .8); | |
} | |
h1 { | |
color: var(--clr-secondary); | |
padding-inline-start: 1rem; | |
} |
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
/* | |
* Orden ideal de acomodo de propiedades de CSS | |
* | |
* 1. Propiedades de display | |
* 2. Propiedades de position | |
* 3. Propiedades de box model | |
* 4. Propiedades de tipografia | |
* 5. Propiedades de manipulacion | |
* 5. Propiedades diversas | |
*/ |
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
/**************************************** | |
* Variables | |
*****************************************/ | |
:root { | |
/* Colores */ | |
/* cambia los siguientes valores por los de tu styleguide */ | |
/* | |
--primario: #6836e1; | |
--primario-light: #9b76eb; | |
--primario-dark: #3b22cb; |
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
* { background-color: rgba(255,0,0,.2); } | |
* * { background-color: rgba(0,255,0,.2); } | |
* * * { background-color: rgba(0,0,255,.2); } | |
* * * * { background-color: rgba(255,0,255,.2); } | |
* * * * * { background-color: rgba(0,255,255,.2); } | |
* * * * * * { background-color: rgba(255,255,0,.2); } | |
* * * * * * * { background-color: rgba(255,0,0,.2); } | |
* * * * * * * * { background-color: rgba(0,255,0,.2); } | |
* * * * * * * * * { background-color: rgba(0,0,255,.2); } |