import styled from 'styled-components'
export default styled.button`
border: 0;
outline: 0;
cursor: pointer;
position: relative;
width: ${(props) => props.width};
height: ${(props) => props.height};
background-color: transparent;
font-weight: 600;
border-radius: 2px;
transition: background-color 0.1s linear, border-color 0.1s linear;
font-size: 14px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
.content-button {
display: flex;
width: 100%;
justify-content: center;
align-items: center;
> .icon{
padding: 0px 4px;
width: 24px;
height: 24px;
box-sizing: content-box;
}
}
&:disabled {
opacity: .5;
cursor: not-allowed;
}
&:active {
padding-top: 4px;
}
&.primary {
color: #ffffff;
background-color: #2870b2;
&:hover {
background-color: #6197c6;
}
&:active {
background-color: #2870b2;
box-shadow: inset 0 1px 3px 0 #073050;
}
}
&.secondary {
color: #2870b2;
background-color: #e7f0f7;
border: solid 1px #afcef3;
&:hover {
background-color: #e7f0f7;
border: solid 1px #5596c8;
}
&:active {
background-color: #e7f0f7;
box-shadow: inset 0 1px 3px 0 rgba(16, 68, 112, 0.3);
border: solid 1px #afcef3;
}
}
&.default {
color: #496072;
background-color: #ffffff;
border: solid 1px #c5d0e1;
&:hover {
background-color: #f4f5f8;
border: solid 1px #c5d0e1;
}
&:active {
background-color: #f4f5f8;
box-shadow: inset 0 1px 3px 0 #95a3b7;
border: solid 1px rgba(197, 208, 225, 1);
}
}
&.danger {
color: #ffffff;
background-color: #ed393d;
border-color:#a22225;
&:hover {
background-color: #fb8486;
}
&:active {
background-color: #ec393d;
box-shadow: inset 0 1px 3px 0 #610d12;
}
}
.button-badge{
border-radius: 40px;
top: -10px;
left: -8px;
padding: 4px;
min-width: 20px;
display: flex;
text-align: center;
position: absolute;
justify-content: center;
align-items: center;
&.primary{
>.button-badge-label{
color: #ffffff;
}
background-color: #2870b2;
}
&.secondary{
>.button-badge-label{
color: #2870b2;
}
background-color: #e7f0f7;
}
&.default{
>.button-badge-label{
color: #496072;
}
border: solid 1px #eaeaea;
background-color: #ffffff;
}
&.danger{
>.button-badge-label{
color: #ffffff;
}
background-color: #ed393d;
}
>.button-badge-label{
font-size: 10px;
font-weight: 700;
}
}
`
|