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
{ | |
"basics": { | |
"name": "Thomas Edison", | |
"label": "Inventor and Businessman", | |
"picture": "https://example.com/photo.jpg", | |
"email": "[email protected]", | |
"phone": "(123) 456-7890", | |
"website": "https://thomasedison.com", | |
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.", | |
"location": { |
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
.input-field { | |
$color: red; | |
$size: 25em / 16; | |
color: $color; | |
font-size: $size; | |
// Regular nested class | |
.input-field--error { | |
color: red; | |
} |
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
.input-field { | |
color: black; | |
&--error { | |
color: red; | |
} | |
&__label { | |
color: inherit; | |
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 { | |
--const-modular-scale: 1.25; | |
--const-cap-height: 0.6; | |
--base-spacing: 0.8rem; | |
--alpha: calc( var(--const-modular-scale) * var(--const-modular-scale) * var(--const-modular-scale) * var(--const-modular-scale) * var(--const-modular-scale) * var(--const-modular-scale) ); | |
--beta: calc( var(--const-modular-scale) * var(--const-modular-scale) * var(--const-modular-scale) * var(--const-modular-scale) * var(--const-modular-scale) ); | |
--gamma: calc( var(--const-modular-scale) * var(--const-modular-scale) * var(--const-modular-scale) * var(--const-modular-scale) ); | |
--delta: calc( var(--const-modular-scale) * var(--const-modular-scale) * var(--const-modular-scale) ); | |
--epsilon: calc( var(--const-modular-scale) * var(--const-modular-scale) ); |
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
const allMetaTags = []; | |
document.querySelectorAll('meta').forEach(el => { | |
const meta = {}; | |
[...el.attributes].forEach(attr => { | |
if (attr.name === 'name') { | |
Object.assign(meta, { | |
name: attr.value, | |
}); | |
} |
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
<ul class="all departments"> | |
<li class="first department"> | |
<ul class="all courses in department"> | |
<li class="first course"> | |
<ul class="all sections on course"> | |
<li class="first section"></li> | |
</ul> | |
</li> | |
</ul> | |
</li> |