How to use the @project-r/styleguide.colors.disabled function in @project-r/styleguide

To help you get started, we’ve selected a few @project-r/styleguide examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github orbiting / republik-frontend / components / Discussion / Statements.js View on Github external
fontSize: '18px',
    lineHeight: '1',
    marginLeft: 'auto'
  }),
  votes: css({
    display: 'flex',
    justifyContent: 'space-between',
    alignItems: 'center'
  }),
  vote: css({
    display: 'flex',
    justifyContent: 'space-between',
    alignItems: 'center'
  }),
  voteDivider: css({
    color: colors.disabled,
    padding: '0 2px'
  })
}

// Use the 'iconSize' to adjust the visual weight of the icon. For example
// the 'MdShareIcon' looks much larger next to 'MdKeyboardArrowUp' if both
// have the same dimensions.
//
// The outer dimensions of the action button element is always the same:
// square and as tall as the 'CommentAction' component.
const IconButton = ({ iconSize, type = 'right', onClick, title, children, style = {} }) => (
  <button disabled="{!onClick}" title="{title}">
    {children}</button>
github orbiting / publikator-frontend / components / Repo / Nav.js View on Github external
import React from 'react'
import { compose } from 'react-apollo'
import { withRouter } from 'next/router'
import { Link } from '../../lib/routes'
import { css } from 'glamor'
import { colors, linkRule } from '@project-r/styleguide'
import withT from '../../lib/withT'
import { intersperse } from '../../lib/utils/helpers'

const styles = {
  disabled: css({
    color: colors.disabled,
  }),
}

const menu = [
  {
    key: 'edit',
    route: 'repo/edit',
  },
  {
    key: 'tree',
    route: 'repo/tree',
  },
]

const Nav = ({ router, route, isNew, t }) => {
  const { repoId } = router.query
github orbiting / republik-frontend / components / Marketing / styles.js View on Github external
cursor: 'pointer',
  '@media (hover)': {
    ':hover': {
      backgroundColor: colors.primary,
      borderColor: colors.primary,
      color: '#fff'
    }
  },
  ':active': {
    backgroundColor: colors.secondary,
    borderColor: colors.secondary,
    color: '#fff'
  },
  ':disabled, [disabled]': {
    backgroundColor: '#fff',
    color: colors.disabled,
    borderColor: colors.disabled,
    cursor: 'default'
  }
})

const primaryStyle = css({
  backgroundColor: colors.primary,
  borderColor: colors.primary,
  color: '#fff',
  '@media(hover)': {
    ':hover': {
      backgroundColor: colors.secondary,
      borderColor: colors.secondary
    }
  },
  ':active': {
github orbiting / republik-frontend / components / Questionnaire / ArticleQuestion.js View on Github external
renderSelectedItem = () =&gt; {
    const { document } = this.state

    return (
      <div>
        
        <div> this.handleChange(null)}
        &gt;
          
        </div>
      </div>
    )
  }
github orbiting / republik-frontend / components / Frame / NavBar.js View on Github external
}
    }
  }),
  linkDark: css({
    color: negativeColors.text,
    ':visited': {
      color: negativeColors.text
    },
    '@media (hover)': {
      ':hover': {
        color: negativeColors.lightText
      }
    }
  }),
  linkFadedLight: css({
    color: colors.disabled,
    ':visited': {
      color: colors.disabled
    },
    '@media (hover)': {
      ':hover': {
        color: colors.primary
      }
    }
  }),
  linkFadedDark: css({
    color: colors.disabled,
    ':visited': {
      color: colors.disabled
    },
    '@media (hover)': {
      ':hover': {
github orbiting / republik-frontend / components / Marketing / styles.js View on Github external
'@media (hover)': {
    ':hover': {
      backgroundColor: colors.primary,
      borderColor: colors.primary,
      color: '#fff'
    }
  },
  ':active': {
    backgroundColor: colors.secondary,
    borderColor: colors.secondary,
    color: '#fff'
  },
  ':disabled, [disabled]': {
    backgroundColor: '#fff',
    color: colors.disabled,
    borderColor: colors.disabled,
    cursor: 'default'
  }
})

const primaryStyle = css({
  backgroundColor: colors.primary,
  borderColor: colors.primary,
  color: '#fff',
  '@media(hover)': {
    ':hover': {
      backgroundColor: colors.secondary,
      borderColor: colors.secondary
    }
  },
  ':active': {
    backgroundColor: '#000',
github orbiting / republik-frontend / components / Feedback / ArticleSearch.js View on Github external
label={t('feedback/articleSearch/label')}
          value={value}
          filter={filter}
          isOpen={isOpen !== undefined ? isOpen : undefined}
          onChange={this.onChange}
          onFilterChange={this.onFilterChange}
          items={items}
          icon={
            loading ? (
              <div style="{{">
                
              </div>
            ) : filter ? (
              
            ) : (
              
            )
          }
        /&gt;
      
    )
  }
}
github orbiting / republik-frontend / components / Feedback / ArticleItem.js View on Github external
selected,
  iconSize,
  Wrapper = DefaultWrapper
}) =&gt; (
  
    <span selected="" style="{{">
      {title}
    </span>
    {newPage &amp;&amp; (
      <span title="{t('feedback/articleItem/newPage/title')}">
        
      </span>
    )}
  
)
github orbiting / republik-frontend / components / Feedback / ArticleItem.js View on Github external
export const NoResultsItem = ({ title }) =&gt; (
  <p style="{{">{title}</p>
)
github orbiting / publikator-frontend / components / Editor / base / apps / theme / layout.js View on Github external
})

export const sectionHeader = merge(heading, section)

export const outline = css({
  border: `3px solid ${colors.primary}`,
  position: 'absolute',
  zIndex: 1,
  top: 0,
  left: 0,
  right: 0,
  bottom: 0
})

export const hairline = css({
  borderTop: `1px solid ${colors.disabled}`,
  marginTop: '7px',
  width: '100%'
})

export const horizontalGroup = css({
  display: 'flex',
  flexDirection: 'row',
  flexWrap: 'wrap',
  justifyContent: 'flex-start',
  alignItems: 'baseline',
  alignContent: 'stretch',
  '& > *': {
    margin: '0 6px'
  }
})