skill-assessment-app/app/assets/stylesheets/molecules/_buttons.scss

111 lines
1.8 KiB
SCSS
Raw Permalink Normal View History

2016-07-28 12:52:54 -05:00
#{$all-buttons}, .btn {
appearance: none;
background-color: $primary-color;
border: 0;
border-radius: $base-border-radius;
color: #fff;
cursor: pointer;
display: inline-block;
font-family: $primary-font-face;
text-transform: uppercase;
font-size: 0.875rem;
letter-spacing: 0.2rem;
-webkit-font-smoothing: antialiased;
font-weight: 600;
line-height: 1;
padding: 1.2em 2em;
text-decoration: none;
transition: background-color $base-duration $base-timing;
user-select: none;
vertical-align: middle;
white-space: nowrap;
&:hover,
&:focus {
&:not([disabled]) {
background-color: $secondary-color;
color: #fff;
}
}
&:disabled {
cursor: not-allowed;
opacity: 0.3;
}
}
2016-08-04 08:50:48 -05:00
.secondary-btn,
input[type="submit"].secondary-btn,
button.secondary-btn {
2016-07-28 12:52:54 -05:00
background-color: $secondary-color;
}
2016-08-04 08:50:48 -05:00
.tertiary-btn,
input[type="submit"].tertiary-btn,
button.tertiary-btn {
2016-07-28 12:52:54 -05:00
background-color: transparent;
color: $primary-color;
border: 1px solid $primary-color;
}
.button-save {
display: none;
}
2016-08-04 17:25:12 -05:00
.button-cancel,
.tertiary-btn.button-cancel {
2016-07-28 12:52:54 -05:00
color: #ef0734;
border: 1px solid #ef0734;
display: none;
&:hover {
&:not([disabled]) {
color: #fff;
background-color: #ef0734;
}
}
}
.answer-buttons {
.button-cancel {
margin-left: .5rem;
}
}
.disabled-button {
pointer-events: none;
opacity: 0.5;
cursor: default;
}
2016-08-04 17:25:12 -05:00
.button-wrap {
margin-top: 3rem;
}
2016-07-28 12:52:54 -05:00
// JS-enabled styles
html.no-js {
.tertiary-btn.button-edit {
border: none;
2016-08-04 18:03:23 -05:00
text-decoration: underline;
2016-07-28 12:52:54 -05:00
}
.button-save,
.button-cancel {
display: none;
}
}
html.js {
.button-edit {
@extend .btn;
}
}
@media screen and (min-width: $screen-sm) {
html.no-js {
.tertiary-btn.button-edit {
display: inline-block;
padding-top: .75rem;
}
}
}