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
// Get the selector for a version of IE | |
@function getSelector($version) { | |
@if $version == 9 { | |
@return 'html.ie9 &'; | |
} @else if $version > 9 { | |
@return 'html[data-browser="ie#{$version}"]'; | |
} | |
} | |
// Write selectors for given space-separated IE versions |
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 choo = require('choo'); | |
const app = choo(); | |
app.model(require('./model-things')); | |
app.model(require('./model-stuff')); | |
const view = (state, prev, send) => html` | |
<main> | |
<button onclick=${e => send('things:notGood')}>things aren't good</button> |
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 focusVisible = (props, styles) => ` | |
${props.theme.inputModality === 'KEYBOARD' && ` | |
&:focus { ${styles} } | |
`} | |
&:focus-visible { | |
${styles} | |
} | |
` |
OlderNewer