How to use the polished.margin function in polished

To help you get started, we’ve selected a few polished 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 idena-network / idena-desktop / renderer / screens / validation / components / validation-scene.js View on Github external
return (
    
      
        Are both keywords relevant to the flip?
      
      
        
          {haveWords ? (
            
              {words.map(({name, desc}, idx) => (
github idena-network / idena-desktop / renderer / screens / contacts / components / invite-form.js View on Github external
setNewFirstName(e.target.value)}
        />
         setNewLastName(e.target.value)}
        />
      

      
        <button> {
            onSave(newFirstName, newLastName)
          }}
        &gt;
          Done
        </button>
      
    
  )
}
github idena-network / idena-desktop / renderer / screens / flips / components / flip-hint.js View on Github external
...margin(0, 'auto'),
          width: rem(560),
        }}
      &gt;
        
          {hint.words &amp;&amp;
            hint.words.map(({name, desc}) =&gt; (
              
                {name}
                {desc}
              
            ))}
        
        
      
      
github idena-network / idena-desktop / renderer / screens / flips / components / flip-master.js View on Github external
caption: 'Submit flip',
      title: `Submit flip (${composeHint(flip.hint)})`,
      desc: `Make sure it is not possible to read the shuffled images as a meaningful story?`,
      children: ,
    },
  ]

  return (
    &lt;&gt;
      
        
          {steps.map(({caption}, idx) =&gt; (
             setStep(idx)}
              css={{
                ...margin(0, theme.spacings.xlarge, 0, 0),
                cursor: 'pointer',
              }}
            &gt;
              {idx &lt;= step ? (
                
              ) : (
github brumm / tabulous / src / components / Options / Advanced.js View on Github external
)
).then(plugins =>
  plugins.map(({ default: plugin }, index) => ({
    ...plugin,
    name: process.env.AVAILABLE_PLUGINS[index],
  }))
)

const Container = glamorous.h1({
  padding: 20,
})

const Box = glamorous.div({
  display: 'inline-flex',
  padding: 10,
  ...margin(5, 2, 20),
  backgroundColor: '#fff',
  borderRadius: 200,
  boxShadow: `
    0 0 0 0.5px rgba(0, 0, 0, 0.1),
    0 1px 10px rgba(0, 0, 0, 0.1)
  `,
})

const Label = glamorous.label({
  display: 'block',
})

const Hr = glamorous.div({
  height: '1px',
  marginTop: 10,
  marginBottom: 10,
github idena-network / idena-desktop / renderer / shared / components / avatar.js View on Github external
function Avatar({username, size = 80}) {
  const src = username
    ? `https://robohash.org/${username}`
    : 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs='
  return (
    <img style="{{" height="{size}" width="{size}" alt="{username}" src="{src}">
  )
}
github idena-network / idena-desktop / renderer / pages / settings / index.js View on Github external
<label>Encrypted private key</label>
        <input style="{{" type="text" value="{key}"> setKey(e.target.value)}
        /&gt;
        <label>Password</label>
        <input style="{{" type="password" value="{password}"> setPassword(e.target.value)}
        /&gt;
        <button disabled="{!password" type="submit">
          Import
        </button>
      
    
  )
}