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
| var myComponent = document.getElementsByClassName('my-component')[0]; | |
| var cs = getComputedStyle(myComponent); | |
| cs.getPropertyValue('--primary'); |
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
| --bg: rgb(calc(var(--r) + var(--modifier)), calc(var(--g) + var(--modifier)), calc(var(--b) + (var(--modifier) + 50))); |
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
| --building-r-mod: 0; | |
| --building-g-mod: 0; | |
| --building-b-mod: 0; |
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
| .distant-building__window | |
| { | |
| fill: rgb( | |
| calc(111 + (111 * var(--building-r-mod))), | |
| calc(79 + (79 * var(--building-g-mod))), | |
| calc(85 + (85 * var(--building-b-mod))) | |
| ); | |
| } |
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
| .tail | |
| { | |
| transform: translateY(10px) rotate(var(--tail-rotate)); | |
| transform-origin: 60% 84%; | |
| animation: wagTail 250ms infinite; | |
| } | |
| @keyframes wagTail | |
| { | |
| from |
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
| var night = function() { | |
| vars = [ | |
| {name: "--sky-start", value: "rgb(100, 75, 128)"}, | |
| {name: "--sky-end", value: "rgb(45, 45, 81)"}, | |
| {name: "--light-r-mod", value: "-17.5"}, | |
| {name: "--light-g-mod", value: "25"}, | |
| {name: "--light-b-mod", value: "110"}, | |
| {name: "--show-stars", value: "block"}, | |
| {name: "--building-r-mod", value: "-.25"}, | |
| {name: "--building-g-mod", value: 0}, |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Fallbacks!!!</title> | |
| <style> | |
| #test { | |
| width: 100px; | |
| height: 100px; | |
| background: 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
| .puzzle-game { | |
| display: grid; | |
| grid-area: game; | |
| align-self: start; | |
| justify-self: center; | |
| max-width: 35vw; | |
| border: 10px solid cornflowerblue; | |
| grid: 1fr 1fr 1fr / 1fr 1fr 1fr; | |
| background: rgba(0, 0, 0, .5); | |
| } |
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
| grid-template-rows: 1fr 1fr 1fr; | |
| grid-template-columns: 1fr 1fr 1fr; |
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
| <p>Variable Fonts</p> |