cartodb-4.42/assets/stylesheets/sessions/buttons.scss

108 lines
1.3 KiB
SCSS
Raw Normal View History

2024-04-06 13:25:13 +08:00
// Buttons
// --------------------------------------------------
.Btn {
display: inline-block;
transition: all 0.15s;
border-radius: 50px;
font-weight: 400;
line-height: 1;
text-align: center;
white-space: nowrap;
&:hover {
text-decoration: none;
}
&.has-border {
border-width: 2px;
border-style: solid;
}
> span {
display: block;
border-radius: 50px;
font-weight: 400;
}
}
.Btn--background {
background: #FFF;
}
.Btn--m {
> span {
padding: 12px 20px;
font-size: 12px;
}
&.has-border {
> span {
padding: 10px 20px;
}
}
}
.Btn--l {
> span {
padding: 16px 35px;
font-size: 14px;
}
&.has-border {
> span {
padding: 14px 35px;
}
}
}
.Btn--white {
border-color: rgba(#FFF, 0.3);
color: #FFF;
&:hover {
background: #FFF;
color: #333;
}
}
.Btn--green {
border-color: #8EB83F;
color: #8EB83F;
&:hover {
background: #8EB83F;
color: #FFF;
}
&.is-highlight {
background: #8EB83F;
color: #FFF;
&:hover {
background: #FFF;
color: #8EB83F;
}
}
}
.Btn--blue {
border-color: #397EB9;
color: #397EB9;
&:hover {
background: #397EB9;
color: #FFF;
}
&.is-highlight {
background: #397EB9;
color: #FFF;
&:hover {
background: #FFF;
color: #397EB9;
}
}
}