<commit_before>// @flow
import { StyleSheet } from 'aphrodite/no-important'

import { colors } from 'constants'

const globalSelectorHandler = (
  selector: string[],
  _: string,
  generateSubtreeStyles: (string[]) => *
): * => {
  if (selector[0] !== '*') {
    return null
  }
  return generateSubtreeStyles(selector.slice(1))
}

const globalExtension: Object = { selectorHandler: globalSelectorHandler }
const extended = StyleSheet.extend([globalExtension])

const styles = extended.StyleSheet.create({
  globals: {
    '*html': {
      margin: 0,
      padding: 0,
    },
    '*button': {
      margin: 0,
      padding: 0,
      border: 0,
      background: 'none',
      fontSize: '100%',
      verticalAlign: 'baseline',
      fontFamily: 'inherit',
      fontWeight: 'inherit',
      color: 'inherit',
      appearance: 'none',
      fontSmoothing: 'antialiased',
    },
    '*body': {
      fontSize: 24,
      fontFamily:
        '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif',
      lineHeight: 1.4,
      background: colors.white,
      color: '#222',
      margin: '0 auto',
      fontSmoothing: 'antialiased',
      fontWeight: 300,
      height: '100vh',
      boxSizing: 'border-box',
      padding: 30,
      border: '20px solid #eee',
      borderTopWidth: 40,
    },
  },
})

extended.css(styles.globals)<commit_msg>add prefixed `font-smoothing` to globalStyles.js<commit_after>// @flow
import { StyleSheet } from 'aphrodite/no-important'

import { colors } from 'constants'

const globalSelectorHandler = (
  selector: string[],
  _: string,
  generateSubtreeStyles: (string[]) => *
): * => {
  if (selector[0] !== '*') {
    return null
  }
  return generateSubtreeStyles(selector.slice(1))
}

const globalExtension: Object = { selectorHandler: globalSelectorHandler }
const extended = StyleSheet.extend([globalExtension])

const styles = extended.StyleSheet.create({
  globals: {
    '*html': {
      margin: 0,
      padding: 0,
    },
    '*button': {
      margin: 0,
      padding: 0,
      border: 0,
      background: 'none',
      fontSize: '100%',
      verticalAlign: 'baseline',
      fontFamily: 'inherit',
      fontWeight: 'inherit',
      color: 'inherit',
      appearance: 'none',
      fontSmoothing: 'antialiased',
      '-webkit-font-smoothing': 'antialiased',
    },
    '*body': {
      fontSize: 24,
      fontFamily:
        '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif',
      lineHeight: 1.4,
      background: colors.white,
      color: '#222',
      margin: '0 auto',
      fontSmoothing: 'antialiased',
      '-webkit-font-smoothing': 'antialiased',
      fontWeight: 300,
      height: '100vh',
      boxSizing: 'border-box',
      padding: 30,
      border: '20px solid #eee',
      borderTopWidth: 40,
    },
  },
})

extended.css(styles.globals)
{'fraction_non_alphanumeric': 0.14960897653859231, 'fraction_numerical': 0.020401224073444406, 'mean_word_length': 2.9596231493943472, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1852785', 'n_tokens_mistral': 1015, 'n_tokens_neox': 955, 'n_words': 201}