inspec/www/source/stylesheets/_buttons.scss
hannah-radish 0994c63d48 Usability testing fixes (#2755)
* Usability testing fixes

Signed-off-by: hannah-radish <hmaddy@chef.io>

* Bug fixes

Signed-off-by: hannah-radish <hmaddy@chef.io>
2018-03-07 12:25:54 +01:00

127 lines
2.3 KiB
SCSS

// Normal Links
a {
@extend %transition;
color: $color_purple;
font-family: $main-font;
font-weight: 600;
text-decoration: underline;
&:hover {
color: $color_purple;
opacity: 0.8;
}
}
a.button, a.link {
font-family: $main-font;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.2em;
text-transform: uppercase;
}
.a-purple {
@extend %transition;
cursor: pointer;
text-decoration: none;
&:hover {
color: $color_purple;
}
}
a.block {
line-height: 2em;
}
// All CTA's
a.button {
border-radius: 8px;
line-height: 24px;
text-decoration: none;
}
.btn-lg {
@extend %transition;
max-width: 250px;
width: 250px;
height: $percent_sm;
line-height: $percent_sm;
text-align: center;
}
.btn-sm {
@extend %transition;
max-width: 150px;
width: 150px;
height: $percent_sm;
line-height: $percent_sm;
text-align: center;
}
.btn-purple {
background-color: $color-purple;
color: white;
&:hover {
background-color: $color-purple;
opacity: 0.8;
}
}
.btn-purple-o {
border: 1.5px solid $color-purple;
color: $color-purple;
background-color: rgba(255, 255, 255, 0);
&:hover {
background-color: rgba(255, 255, 255, 0);
color: $color-purple;
opacity: 0.8;
}
}
.btn-purple-o:focus, .btn-purple-o:active {
border: 1.5px solid $color-purple !important;
background-color: $color-purple !important;
color: $color-white !important;
}
.btn-purple:focus, .btn-purple:active {
background-color: $color-purple !important;
color: $color-white !important;
}
.btn-white-o {
border: 1.5px solid $color-white;
color: $color-white;
background-color: rgba(255, 255, 255, 0);
&:hover {
background-color: rgba(255, 255, 255, 0);
color: $color-white;
opacity: 0.8;
}
}
.btn-slider {
border-bottom: 1.5px solid white;
margin-bottom: 0;
border-radius: 8px 8px 0px 0px !important;
background: -moz-linear-gradient(top, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(255,255,255,0.2),rgba(255,255,255,0) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
&:hover, &:active, &.selected {
background: $color_purple;
}
}
.slider-selectors .btn-slider{
width: 33.33% !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}