.body > :last-child {
margin-bottom: 0;
}
.theme-red .txt {
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
// src/App/style/settings | |
export const colors = { | |
primary: 'red' | |
} | |
// post-css-plugins/settings-from-js.js | |
var postcss = require('postcss') | |
var settings = require('./src/App/style/settings') | |
module.exports = postcss.plugin('settings-from-js', function (opts) { |
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
* { | |
animation: spin 10s infinite; | |
} | |
span { | |
font-size: .5em; | |
animation: spin .25s infinite; | |
} | |
@keyframes spin { |
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 { StyleSheet, css } from 'aphrodite' | |
import { colors } from 'App/style/settings' | |
import Media from 'App/shared/obj.Media' | |
const PokemonListing = ({name, num, loc, imgSrc}) => | |
<div className={css(styles.root)}> | |
<Media img={imgSrc}> | |
<h2>{name}</h2> <h4>#{num}</h4> | |
<Media |
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 { colors, baseFontSize } from 'App/style/settings' | |
const Txt = ({ | |
color = 'text', | |
size = baseFontSize, | |
tag = 'span', | |
children, | |
...rest | |
}) => { | |
const Tag = tag |
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 { ___, X } from 'react-ditto' | |
import Txt from 'react-txt' | |
import Btn from 'App/shared/atm.Btn' | |
import Input from 'App/shared/atm.Input' | |
const SearchUI = ({inputVal, onInputUpdate, onSearch}) => | |
<X x p> | |
<___ mr1> | |
<Txt tag='label' color='secondary'>Search</Txt> | |
<Input value={inputVal} onChange={onInputUpdate} /> |
.thing {
color: red;
padding-top: var(--spacing-default);
}
.pt {
padding-top: var(--spacing-tiny) !important;
}
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 './style/css' | |
import React from 'react' | |
const Root = ({children}) => | |
<div> | |
{ children } | |
</div> | |
export default Root |
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 "generic.reset"; | |
@import "generic.normalize"; | |
@import "generic.box-sizing"; | |
@import "elements.page"; | |
@import "elements.link"; | |
@import "elements.typography"; | |
html, | |
#app { |
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 { StyleSheet, css } from 'aphrodite' | |
import { colors, spacing } from 'App/style/settings' | |
import Btn from 'App/shared/atm.Btn' | |
import Input from 'App/shared/atm.Input' | |
const styles = StyleSheet.create({ | |
container: { | |
display: 'flex', | |
align: 'center', | |
padding: spacing.default |
NewerOlder