Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
//@flow
import {styled} from 'linaria/react'
export const Button = styled.button`
display: inline-block;
border: none;
padding: 1rem 2rem;
margin: 0;
text-decoration: none;
background: hsl(213, 100%, 46%);
color: #ffffff;
font-family: sans-serif;
font-size: 1rem;
cursor: pointer;
text-align: center;
transition: background 70ms ease-in-out, transform 150ms ease;
-webkit-appearance: none;
-moz-appearance: none;
&:hover,
grid-template-columns: auto 1fr;
padding: var(--settings-row-padding);
border-bottom: 1px solid #ddd;
font-weight: bold;
`
export const Section = styled.section`
background-color: #fff;
border-bottom: 15px solid #f7f7f7;
& + & {
border-top: 1px solid #ddd;
}
`
export const Button = styled.button`
--color-main: #e95801;
margin: var(--settings-row-padding);
display: inline-block;
border: none;
border-radius: 2px;
border-width: 0;
padding: 0.5rem 1rem;
text-decoration: none;
background: var(--color-main);
color: #ffffff;
font-family: sans-serif;
font-size: 1rem;
cursor: pointer;
text-align: center;
transition: background 70ms ease-in-out, transform 150ms ease;
const RightColumn = styled.div`
text-align: center;
flex: 2;
z-index: 1;
`;
const Heading = styled.h1`
font-weight: 700;
font-size: 56px;
`;
const Description = styled.p`
margin-bottom: 60px;
`;
const Button = styled.button`
display: inline-block;
appearance: none;
background: none;
border: 0;
padding: 16px 24px;
color: inherit;
font-size: inherit;
font-weight: 700;
font-family: inherit;
text-transform: uppercase;
text-decoration: none;
box-shadow: inset 0 0 0 2px currentColor, 1px 1px 1px rgba(0, 0, 0, 0.08);
border-radius: 30px;
cursor: pointer;
transition: color 200ms, background 200ms;
))}
) : (
<p>No matching icon found :(</p>
)}
);
}
}
const Container = styled.div`
margin: 16px 0;
`;
const IconContainer = styled.button`
appearance: none;
border: 0;
background: 0;
outline: 0;
display: flex;
flex-direction: column;
width: 124px;
height: 124px;
align-items: center;
text-align: center;
@media (max-width: 680px) {
width: 96px;
}
`;
bottom: 0;
left: 0;
margin: 12px 0;
}
&[data-visible='true'] {
opacity: 1;
}
&[data-visible='false'] {
opacity: 0;
pointer-events: none;
}
`;
const ButtonIcon = styled.button`
background-color: transparent;
border: none;
color: #aaa;
cursor: pointer;
margin: 0;
padding: 10px 12px;
transition: 0.3s;
opacity: 0.8;
&:hover {
color: #555;
}
&:focus {
outline: none;
}