Browse Source

Make the column height responsive

pull/1/head
Ravi Shah 5 years ago
parent
commit
94a983bfe8
  1. 2
      garage_door_script.py
  2. 1
      static/styles.css

2
garage_door_script.py

@ -86,7 +86,7 @@ def open_garage():
GPIO.output(7, False)
time.sleep(.8)
GPIO.output(7, True)
time.sleep(4)
time.sleep(6)
return redirect(url_for('index'))
else:
return 'You are not logged in.'

1
static/styles.css

@ -73,5 +73,6 @@ a.active {
@media screen and (max-width: 600px) {
.column {
width: 100%;
height: calc((100vh - 89px)*0.5)
}
}
Loading…
Cancel
Save