How to use the linaria/react.styled.input function in linaria

To help you get started, we’ve selected a few linaria 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 callstack / component-docs / src / templates / Sidebar.js View on Github external
height: 100%;
    min-width: 240px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
`;

const Navigation = styled.nav`
  padding: 12px 24px;

  @media (min-width: 640px) {
    padding: 20px 32px;
  }
`;

const Searchbar = styled.input`
  appearance: none;
  width: calc(100% - 48px);
  padding: 8px 12px;
  margin: 32px 24px 0;
  font-size: 1em;
  background-color: rgba(0, 0, 55, 0.08);
  transition: background-color 0.3s;
  border-radius: 3px;
  border: 0;
  outline: 0;

  &:focus {
    background-color: rgba(0, 0, 55, 0.12);
  }

  @media (min-width: 640px) {
github callstack / react-native-paper / docs / pages / src / components / IconsList.js View on Github external
display: block;
  font-size: 12px;
`;

const Results = styled.div`
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;

  &:last-child {
    justify-content: flex-start;
  }
`;

const Searchbar = styled.input`
  box-sizing: border-box;
  appearance: none;
  border: 0;
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1em;
  background-color: #f0f0f0;
  border-radius: 3px;
  transition: background-color 0.3s;
  outline: 0;

  &:focus,
  &:hover {
    background-color: #e7e7e7;
  }
github zerobias / effector / website / editor / src / components / Toggle.js View on Github external
}: {
  name: string,
  checked: boolean,
  onChange: (e: SyntheticEvent) => mixed,
  ...
}) {
  return (
    <input name="{name}" checked="{checked}" type="checkbox">
  )
}
Toggle.defaultProps = {
  checked: false,
  onChange() {},
}

const Input = styled.input`
  --color-main: #e95801;
  --color-second: #676778;
  --shadow-intense: 0.4;
  top: -1px;
  position: relative;
  height: 2em;
  width: calc(100% - 0.6em);
  min-width: 4em;
  border-radius: 2em;
  -webkit-appearance: none;
  outline: none;
  margin: 0 0.6em 0 0;
  cursor: pointer;
  &amp;:checked::before {
    background-color: var(--color-main);
  }
github callstack / react-native-paper / docs / pages / src / Home.js View on Github external
const Label = styled.label`
  cursor: pointer  
  background: #6200ee
  padding: 3px 
  width: 33px 
  height: 20px 
  border-radius: 33.5px 
  display: grid
  margin-right: 5px
`;
const ThemeSwitch = styled.div`
  display: flex;
  flex-direction: row;
`;
const Input = styled.input`
  position: absolute 
  opacity: 0 
  width: 0 
  height: 0 
  &:checked + .switch {
    grid-template-columns: 1fr 1fr 0fr;
  }
}
`;
const Switch = styled.div`
  height: 14px;
  width: 26px;
  display: grid;
  grid-template-columns: 0fr 1fr 1fr;
  transition: 0.2s;
  &:after {
github zerobias / effector / website / editor / src / share / styled.js View on Github external
outline: 1px solid #fff;
    outline-offset: -4px;
  }

  &:active {
    transform: scale(0.98);
  }

  &:disabled {
    background: hsl(213, 50%, 45%);
    color: hsla(0, 0%, 100%, 0.9);
    cursor: not-allowed;
  }
`

export const SharedUrl = styled.input`
  border-radius: 2px;
  background: #fff;
  padding: 0.5rem 1rem;
  border: none;
  outline: none;
  width: 100%;

  &[value=''] {
    visibility: hidden;
  }
`

export const ShareButton = styled(Button)`
  border-radius: 2px;
  padding: 0.5rem 1rem;
  border-width: 0;