2022-08-19 10:30:53 +02:00

238 lines
4.0 KiB
SCSS

button,
submit{
box-sizing: border-box;
cursor: pointer;
font-weight: $semi-bold;
font-family: $font_family;
box-shadow: none;
border: 0;
transition: 0.3s;
// Button sizes
&.small-rounded{
display: flex;
align-items: center;
padding: 0 8px;
height: 24px;
font-size: 12px;
font-weight: 400;
text-decoration: none;
border-radius: 2px;
.faicon{
margin-right: 4px;
&:before{
font-size: 12px;
}
}
}
&.medium-rounded{
display: flex;
align-items: center;
padding: 0 16px;
height: 28px;
font-size: 14px;
font-weight: 400;
text-decoration: none;
border-radius: 2px;
.faicon{
margin-right: 8px;
&:before{
font-size: 14px;
}
}
}
&.small{
padding: 5px 32px;
min-width: 160px;
font-size: 14px;
}
&.medium{
padding: 10px 32px;
min-width: 160px;
font-size: 16px;
}
&.large{
padding: 12px 32px;
min-width: 160px;
font-size: 20px;
}
//Gumb v polju zraven teksta ali ikon
&.table-inline{
padding: 4px 20px;
width: fit-content;
font-size: 14px;
border-radius: 2px;
margin-left: 16px;
white-space: nowrap;
}
//Sam gumb v polju
&.table{
padding: 4px 20px;
width: fit-content;
font-size: 14px;
border-radius: 2px;
white-space: nowrap;
}
// Button colors
&.blue{
color: $white;
background-color: $blue;
border: 1px $blue solid;
&:hover {
background-color: darken($blue, 3%);
}
&:disabled{
color: $very-dark-gray2;
background-color: $gray;
border: 1px $gray solid;
&:hover {
background-color: $gray;
}
}
}
&.white-blue{
color: $blue;
background-color: $white;
border: 1px $blue solid;
&:hover {
background-color: darken($white, 5%);
}
}
&.white-black{
color: $black;
background-color: $white;
border: 1px $black solid;
&:hover {
background-color: darken($white, 5%);
}
}
&.white-gray{
color: $black;
background-color: $white;
border: 1px $gray solid;
&:hover {
background-color: darken($white, 5%);
}
.faicon{
&:before{
color: $blue;
}
}
}
&.gray{
color: $black;
background-color: $gray;
border: 1px $black solid;
&:hover {
background-color: darken($gray, 5%);
}
}
&.yellow{
color: $black;
background-color: $yellow;
border: 1px $yellow solid;
&:hover {
background-color: darken($yellow, 2%);
}
}
&.red{
color: $white;
background-color: $red;
border: 1px $red solid;
&:hover {
background-color: darken($red, 5%);
}
}
}
div.button_holder {
display: flex;
flex-direction: row;
box-sizing: border-box;
margin-bottom: 32px;
button {
margin-right: 16px;
}
&.bottom16 {
margin-bottom: 16px;
}
&.top16 {
margin-top: 16px;
}
&.top8 {
margin-top: 8px;
}
&.bottom0 {
margin-bottom: 0px;
}
&.inline {
align-items: flex-end;
&.vertical_center {
align-items: center;
}
button {
margin-left: 16px;
}
}
&.below {
margin-bottom: 0;
margin-top: 24px;
}
&.intext{
margin: 16px 0;
}
&.float-right{
justify-content: end;
button{
margin-left: 16px;
margin-right: 0;
}
}
}