Farmbot-Web-App/frontend/css/buttons.scss

442 lines
9.9 KiB
SCSS
Raw Normal View History

2017-06-29 12:54:02 -06:00
.fb-button {
2018-09-13 14:26:53 -06:00
position: relative;
2017-06-29 12:54:02 -06:00
font-size: 1rem;
float: right;
text-transform: uppercase;
text-align: center;
font-weight: 700;
padding: .2rem .8rem;
border-radius: 3px;
border: none;
color: $off_white;
transition: all 0.1s ease-in-out !important;
&.disabled,
&:disabled {
background: $gray !important;
2018-03-10 03:02:30 -07:00
color: $off_white !important;
2017-06-29 12:54:02 -06:00
box-shadow: 0 2px 0px 0px lighten($gray, 5%) !important;
pointer-events: none !important;
cursor: not-allowed !important;
}
&.is-saved,
&.is-saving {
2019-04-09 23:44:58 -06:00
color: $off_white !important;
2017-06-29 12:54:02 -06:00
background: $medium_gray !important;
box-shadow: 0 2px 0px 0px $dark_gray !important;
pointer-events: none;
}
.btn-spinner {
2018-09-13 14:26:53 -06:00
margin: 0.2rem 0px 0 0.6rem;
2017-06-29 12:54:02 -06:00
width: 0.8rem;
height: 0.8rem;
animation: rotate 0.8s infinite linear;
2017-07-06 22:07:32 -06:00
border: 1px solid $white;
2017-06-29 12:54:02 -06:00
border-right-color: transparent;
border-radius: 50%;
float: right;
2018-03-14 20:26:54 -06:00
&.sync {
border-color: $dark_gray;
border-right-color: transparent;
margin-top: 0.4rem;
}
2017-06-29 12:54:02 -06:00
}
2017-07-06 22:07:32 -06:00
&:active {
2017-06-29 12:54:02 -06:00
box-shadow: none !important;
transform: translateY(2px);
}
2017-07-05 06:20:31 -06:00
&.arrow-button:active {
border-bottom: none !important;
transform: translateY(2px);
}
2017-06-29 12:54:02 -06:00
&.go {
background-color: $green;
padding: .4rem .8rem;
font-size: 1.2rem;
}
&.green {
background-color: $green;
box-shadow: 0 2px 0px 0px darken($green, 12%);
2019-02-10 22:10:29 -07:00
&:focus,
&:hover,
&.active {
2017-06-29 12:54:02 -06:00
background-color: darken($green, 5%) !important;
}
}
&.blue {
background-color: $blue;
box-shadow: 0 2px 0px 0px darken($blue, 12%);
2019-02-10 22:10:29 -07:00
&:focus,
&:hover,
&.active {
background-color: darken($blue, 5%) !important;
}
}
&.dark-blue {
background-color: $dark-blue;
box-shadow: 0 2px 0px 0px darken($dark-blue, 12%);
&:focus,
&:hover,
&.active {
background-color: darken($dark-blue, 5%) !important;
2017-06-29 12:54:02 -06:00
}
}
&.red {
background-color: $red;
box-shadow: 0 2px 0px 0px darken($red, 12%);
2019-02-10 22:10:29 -07:00
&:focus,
&:hover,
&.active {
2017-06-29 12:54:02 -06:00
background-color: darken($red, 5%) !important;
}
}
&.gray {
background-color: $medium_gray !important;
box-shadow: 0 2px 0px 0px darken($medium_gray, 12%);
&:disabled,
&.disabled {
background: $gray !important;
}
2019-02-10 22:10:29 -07:00
&:focus,
&:hover,
&.active {
2017-06-29 12:54:02 -06:00
background-color: darken($medium_gray, 5%) !important;
}
}
&.yellow {
color: $dark_gray;
background-color: $yellow;
box-shadow: 0 2px 0px 0px darken($yellow, 12%);
2019-02-10 22:10:29 -07:00
&:focus,
&:hover,
&.active {
2017-06-29 12:54:02 -06:00
background-color: darken($yellow, 5%) !important;
}
}
&.orange {
2017-07-06 22:07:32 -06:00
color: $dark_gray;
2017-06-29 12:54:02 -06:00
background-color: $orange;
box-shadow: 0 2px 0px 0px darken($orange, 12%);
2019-02-10 22:10:29 -07:00
&:focus,
&:hover,
&.active {
2017-06-29 12:54:02 -06:00
background-color: darken($orange, 5%) !important;
}
}
&.magenta {
background-color: $magenta;
box-shadow: 0 2px 0px 0px darken($magenta, 12%);
2019-02-10 22:10:29 -07:00
&:focus,
&:hover,
&.active {
2017-06-29 12:54:02 -06:00
background-color: darken($magenta, 5%) !important;
}
}
&.cyan {
background-color: $cyan;
box-shadow: 0 2px 0px 0px darken($cyan, 12%);
2019-02-10 22:10:29 -07:00
&:focus,
&:hover,
&.active {
2017-06-29 12:54:02 -06:00
background-color: darken($cyan, 5%) !important;
}
}
&.brown {
background-color: $brown;
box-shadow: 0 2px 0px 0px darken($brown, 12%);
2019-02-10 22:10:29 -07:00
&:focus,
&:hover,
&.active {
2017-06-29 12:54:02 -06:00
background-color: darken($brown, 5%) !important;
}
}
&.purple {
background-color: $purple;
box-shadow: 0 2px 0px 0px darken($purple, 12%);
2019-02-10 22:10:29 -07:00
&:focus,
&:hover,
&.active {
2017-06-29 12:54:02 -06:00
background-color: darken($purple, 5%) !important;
}
}
&.pink {
background-color: $pink;
box-shadow: 0 2px 0px 0px darken($pink, 12%);
2019-02-10 22:10:29 -07:00
&:focus,
&:hover,
&.active {
2017-06-29 12:54:02 -06:00
background-color: darken($pink, 5%) !important;
}
}
2019-10-23 14:08:38 -06:00
&.panel-green {
background-color: $panel_green;
box-shadow: 0 2px 0px 0px darken($panel_green, 12%);
&:focus,
&:hover,
&.active {
background-color: darken($panel_green, 5%) !important;
}
}
&.panel-yellow {
background-color: $panel_yellow;
box-shadow: 0 2px 0px 0px darken($panel_yellow, 12%);
&:focus,
&:hover,
&.active {
background-color: darken($panel_yellow, 5%) !important;
}
}
&.panel-gray {
background-color: $panel_gray;
box-shadow: 0 2px 0px 0px darken($panel_gray, 12%);
&:focus,
&:hover,
&.active {
background-color: darken($panel_gray, 5%) !important;
}
}
2019-10-25 09:33:33 -06:00
&.panel-light-gray {
background-color: $panel_medium_light_gray;
box-shadow: 0 2px 0px 0px darken($panel_medium_light_gray, 12%);
&:focus,
&:hover,
&.active {
background-color: darken($panel_medium_light_gray, 5%) !important;
}
}
2019-10-23 14:08:38 -06:00
&.panel-blue {
background-color: $panel_blue;
box-shadow: 0 2px 0px 0px darken($panel_blue, 12%);
&:focus,
&:hover,
&.active {
background-color: darken($panel_blue, 5%) !important;
}
}
2019-11-20 12:48:14 -07:00
&.panel-navy {
background-color: $panel_navy;
box-shadow: 0 2px 0px 0px darken($panel_navy, 12%);
&:focus,
&:hover,
&.active {
background-color: darken($panel_navy, 5%) !important;
}
}
2019-10-23 14:08:38 -06:00
&.panel-brown {
background-color: $panel_brown;
box-shadow: 0 2px 0px 0px darken($panel_brown, 12%);
&:focus,
&:hover,
&.active {
background-color: darken($panel_brown, 5%) !important;
}
}
&.panel-teal {
background-color: $panel_teal;
box-shadow: 0 2px 0px 0px darken($panel_teal, 12%);
&:focus,
&:hover,
&.active {
background-color: darken($panel_teal, 5%) !important;
}
}
&.panel-red {
background-color: $panel_red;
box-shadow: 0 2px 0px 0px darken($panel_red, 12%);
&:focus,
&:hover,
&.active {
background-color: darken($panel_red, 5%) !important;
}
}
2019-10-25 09:33:33 -06:00
&.panel-magenta {
background-color: $magenta;
box-shadow: 0 2px 0px 0px darken($magenta, 12%);
&:focus,
&:hover,
&.active {
background-color: darken($magenta, 5%) !important;
}
}
&.panel-cyan {
background-color: $cyan;
box-shadow: 0 2px 0px 0px darken($cyan, 12%);
&:focus,
&:hover,
&.active {
background-color: darken($cyan, 5%) !important;
}
}
2017-09-06 02:13:22 -06:00
&.zoom {
padding: 8px 12px;
&.zoom-out {
margin-right: 10px;
}
}
&.no-float {
float: none;
margin-right: 1rem;
}
2017-11-21 18:12:46 -07:00
&.pseudo-disabled {
background: $medium_light_gray !important;
box-shadow: 0 2px 0px 0px lighten($medium_light_gray, 5%) !important;
2019-12-27 11:37:54 -07:00
border-bottom: none !important;
2019-02-10 22:10:29 -07:00
&:focus,
2017-11-21 18:12:46 -07:00
&:hover,
&.active {
background: $medium_light_gray !important;
}
}
2017-06-29 12:54:02 -06:00
}
2017-07-03 13:00:56 -06:00
.block {
height: 3.5rem;
margin-bottom: 1.5rem;
font-size: 1.2rem;
2017-07-06 22:07:32 -06:00
color: $dark_gray;
2019-04-11 21:17:18 -06:00
text-align: left;
&.active {
box-shadow: none !important;
border: 1px solid $white;
}
2017-07-06 22:07:32 -06:00
&.gray {
background-color: $medium_light_gray !important;
box-shadow: 0 2px 0px 0px darken($medium_light_gray, 12%);
2019-02-10 22:10:29 -07:00
&:focus,
&:hover,
&.active {
2017-07-06 22:07:32 -06:00
background-color: darken($medium_light_gray, 5%) !important;
}
}
2017-07-03 13:00:56 -06:00
&:hover {
.block-control {
transition: all 0.2s ease-out;
opacity: 1;
}
}
2019-12-04 12:10:17 -07:00
.step-block {
display: flex;
padding: 0;
.step-block-drag {
width: 100%;
padding: 0.2rem 0.8rem;
line-height: 3rem;
}
}
&.quick-del {
&:hover {
background: lighten($red, 10%) !important;
border: none;
box-shadow: inset 0px 0px 0px 4px $darkest_red !important;
&:after {
content: "x";
position: absolute;
right: 1rem;
color: $darkest_red;
font-size: 2rem;
}
}
}
2017-07-03 13:00:56 -06:00
}
.block-control {
transition: all 0.2s ease-out;
opacity: 0;
float: right;
font-size: 1.4rem !important;
padding-left: 1rem;
2019-12-04 12:10:17 -07:00
line-height: 3rem;
pointer-events: none;
2017-07-03 13:00:56 -06:00
}
2017-06-29 12:54:02 -06:00
.fb-toggle-button {
position: relative;
2018-09-13 14:26:53 -06:00
height: 1.8rem !important;
2017-06-29 12:54:02 -06:00
border-bottom: none !important;
box-shadow: none !important;
padding: 0.3rem 0.10rem;
border-radius: 10px;
width: 5rem;
border-bottom: none;
transition: all 0.4s ease;
&.yellow {
&:after {
2017-07-06 22:07:32 -06:00
content: "";
2017-06-29 12:54:02 -06:00
position: absolute;
2018-09-13 14:26:53 -06:00
top: 0.1rem;
left: 0;
right: 0;
margin: 0 auto;
2017-06-29 12:54:02 -06:00
height: 1.6rem;
width: 1.6rem;
2017-07-06 22:07:32 -06:00
background: $white;
2017-06-29 12:54:02 -06:00
border-radius: 50%;
box-shadow: inset rgba(0, 0, 0, 0.03) 0px 0px 3px 3px;
}
&:before {
2017-07-06 22:07:32 -06:00
content: "";
2017-06-29 12:54:02 -06:00
position: absolute;
top: 0.1rem;
left: 0;
right: 0;
2018-09-13 14:26:53 -06:00
margin: 0 auto;
height: 1.6rem;
width: 1.6rem;
border-radius: 50%;
2017-06-29 12:54:02 -06:00
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 0px 0 rgba(0, 0, 0, 0.04), 0 4px 9px rgba(0, 0, 0, 0.13), 0 3px 3px rgba(0, 0, 0, 0.05);
}
}
&.green {
text-align: left;
padding-left: 0.6rem;
&:after {
2017-07-06 22:07:32 -06:00
content: "";
2017-06-29 12:54:02 -06:00
position: absolute;
2018-09-13 14:26:53 -06:00
top: 0.1rem;
right: 0.2rem;
2017-06-29 12:54:02 -06:00
height: 1.6rem;
width: 1.6rem;
2017-07-06 22:07:32 -06:00
background: $white;
2017-06-29 12:54:02 -06:00
border-radius: 50%;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 0px 0 rgba(0, 0, 0, 0.04), 0 4px 9px rgba(0, 0, 0, 0.13), 0 3px 3px rgba(0, 0, 0, 0.05);
}
&:hover {
background: $green;
}
2018-01-27 02:29:13 -07:00
&.dim {
background: lighten($green, 20%) !important;
}
2017-06-29 12:54:02 -06:00
}
&.red {
text-align: right !important;
padding-right: 0.8rem;
&:after {
2017-07-06 22:07:32 -06:00
content: "";
2017-06-29 12:54:02 -06:00
position: absolute;
2018-09-13 14:26:53 -06:00
top: 0.1rem;
left: 0.2rem;
2017-06-29 12:54:02 -06:00
height: 1.6rem;
width: 1.6rem;
background: white;
border-radius: 50%;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 0px 0 rgba(0, 0, 0, 0.04), 0 4px 9px rgba(0, 0, 0, 0.13), 0 3px 3px rgba(0, 0, 0, 0.05);
}
2018-01-27 02:29:13 -07:00
&.dim {
background: lighten($red, 10%) !important;
}
2017-06-29 12:54:02 -06:00
}
2018-01-29 13:53:24 -07:00
&.grayscale {
filter: grayscale(100%);
}
2019-04-16 11:00:00 -06:00
&.disabled,
&:disabled {
background: $medium_light_gray !important;
}
2017-06-29 12:54:02 -06:00
}
.front-page-button {
margin-top: "1rem";
padding: ".5rem 1.6rem";
font-size: "1.2rem";
border-bottom: "none";
}