This file contains 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
import * as sass from 'node-sass'; | |
import * as svelte from 'svelte/compiler'; | |
import * as fs from 'fs'; | |
import { promisify } from 'util'; | |
const renderSass = promisify(sass.render); | |
const readFile = promisify(fs.readFile); | |
const preprocessSass = async (data: string) => { | |
const result = await renderSass({ data }); |
This file contains 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
/* CSS text balloon using variables, calc and transform */ | |
@import url(http://fonts.googleapis.com/css?family=Chewy); | |
div { | |
--balloon-color: #FFF; | |
--balloon-border: 3px; | |
position: relative; | |
top: 1em; | |
left: 1em; |
This file contains 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
/* Pulsating multiple borders with box-shadow & var */ | |
body { | |
--bg: #6495ED; | |
background-color: var(--bg); | |
} | |
div { | |
--border-size: 4px; | |
width: 50%; | |
height: 10em; | |
background-color: white; |
This file contains 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
/* transform order test */ | |
html,body { | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
div { | |
width: 100px; | |
height: 100px; | |
background: red; |
This file contains 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
/* | |
AMD-compatible async 'define' modularization by sergiolopes and luiz: | |
https://gist.github.com/luiz/d71c99cf1cda53190e70 | |
Contains the 'define' module syntax compatible with the official API and | |
support for injecting the 'export' variable and a flexible dependency | |
resolver with no restrictions on how you load your files. | |
This implementation doesn't load your JS files so you have to do it. You | |
can bundle one big file, load multiple files, load them asynchronously, out |
This file contains 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
/* :lang pseudoclass tests */ | |
:lang(fr) > p { | |
background-color: yellow; | |
} | |
:lang(fr) > strong { | |
font-style: italic; | |
} | |
strong:lang(pt) { | |
color: red; | |
} |
This file contains 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
html,body { | |
height: 100%; | |
} | |
body:before { | |
content: ''; | |
height: 100%; | |
display: inline-block; | |
vertical-align: middle; | |
} | |
meter { |
This file contains 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
.container { | |
border: 2px solid black; | |
text-align-last: justify; | |
margin: 0; | |
padding: 0; | |
} | |
.content { | |
width: 20%; | |
display: inline-block; | |
height: 100px; |
This file contains 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 { overflow-y: scroll; } | |
.caixas { | |
background-color: #ffc; | |
margin: 0; | |
padding: 0; | |
} | |
.caixa { | |
list-style: none; | |
border: .4vw solid; | |
width: 20vw; |
NewerOlder