rotary button style
This commit is contained in:
@@ -236,6 +236,11 @@ module.exports = new Vue({
|
|||||||
|
|
||||||
return msgs;
|
return msgs;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
is_rotary_active: function() {
|
||||||
|
if(this.config.motors[2]['axis'] == 'Y') return false;
|
||||||
|
return true;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
ready: function() {
|
ready: function() {
|
||||||
|
|||||||
@@ -89,9 +89,8 @@ html(lang="en")
|
|||||||
v-if="80 <= state.rpi_temp",
|
v-if="80 <= state.rpi_temp",
|
||||||
title="Raspberry Pi temperature too high.")
|
title="Raspberry Pi temperature too high.")
|
||||||
|
|
||||||
.rotary
|
button.rotary(:class="is_rotary_active && 'active'", @click="toggle_rotary")
|
||||||
button(@click="toggle_rotary")
|
img(src="/images/rotary.svg", alt="rotary")
|
||||||
img(src="/images/rotary.svg", alt="rotary")
|
|
||||||
|
|
||||||
.whitespace
|
.whitespace
|
||||||
|
|
||||||
|
|||||||
@@ -1028,6 +1028,22 @@ tt.save
|
|||||||
font-size 90%
|
font-size 90%
|
||||||
line-height 1.5
|
line-height 1.5
|
||||||
white-space pre-line
|
white-space pre-line
|
||||||
|
|
||||||
|
.rotary
|
||||||
|
border none
|
||||||
|
background transparent
|
||||||
|
cursor pointer
|
||||||
|
width 100px
|
||||||
|
height 100px
|
||||||
|
border-radius 100px
|
||||||
|
margin 20px 20px 0 0
|
||||||
|
display flex
|
||||||
|
justify-content center
|
||||||
|
align-items center
|
||||||
|
|
||||||
|
&.active
|
||||||
|
border 1px solid #54ed54
|
||||||
|
fill #ccffcb
|
||||||
|
|
||||||
.modal-mask
|
.modal-mask
|
||||||
position fixed
|
position fixed
|
||||||
|
|||||||
Reference in New Issue
Block a user