Skip to content

Commit

Permalink
update styles to fit new monitor + frame
Browse files Browse the repository at this point in the history
  • Loading branch information
aamaliaa committed May 17, 2018
1 parent 3f6cb39 commit 89b9a42
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 12 deletions.
12 changes: 11 additions & 1 deletion README.md
Expand Up @@ -24,13 +24,23 @@ _TODO: document widget creation and infrastructure_

## Installing on Raspberry Pi

For speech recognition...
1. Make sure Node.js/NPM is installed.

2. For speech recognition...
```
sudo apt-get install sox libmagic-dev libatlas-base-dev
```

Set up `~/.asoundrc` -> some info on that [here](https://raspberrypi.stackexchange.com/questions/38161/how-to-reorder-the-index-for-mic-on-new-raspbian-jessie-for-pocketsphinx/38163).

3. Turn off screensaver:
```
sudo apt-get install x11-xserver-utils
```
http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/screensaver

4. Run on launch:
http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/auto-running-programs-gui

## Keyboard Shortcuts

Expand Down
16 changes: 14 additions & 2 deletions stylus/components/calendar.styl
@@ -1,15 +1,27 @@
.widget-calendar
width: 50vw

.time
font-size: 0.8em
font-size: 0.75em
font-weight: 700
margin: 0 10px

i, .time
color: #aaa


ul
font-size: 0.8em
font-size: 1em
list-style-type: none
padding: 0
margin: 0

li
margin-bottom: 15px

&:last-child
margin-bottom: 0

h5
font-size: 0.5em
text-transform: uppercase
Expand Down
6 changes: 6 additions & 0 deletions stylus/components/chores.styl
Expand Up @@ -4,3 +4,9 @@

i
margin-right: 10px

.chore
margin-bottom: 15px

&:last-child
margin-bottom: 0px
4 changes: 2 additions & 2 deletions stylus/components/clock.styl
Expand Up @@ -5,8 +5,8 @@
align-items: center

.time
font-size: 5em
line-height: 1
font-size: 6em
line-height: 0.9

.date
font-size: 1.2em
4 changes: 2 additions & 2 deletions stylus/components/weather.styl
Expand Up @@ -14,8 +14,8 @@ $blue = #0074D9
display: inline-block

.temperature
font-size: 5em
line-height: 1
font-size: 6em
line-height: 0.9

.high-low
margin-top: -10px
Expand Down
13 changes: 8 additions & 5 deletions stylus/styles.styl
Expand Up @@ -6,6 +6,8 @@ $fa-font-path = '~font-awesome-stylus/fonts'
@import 'mixins'
@import 'colors'

$widgetWidth = 38vw

*
box-sizing: border-box

Expand Down Expand Up @@ -36,9 +38,8 @@ h4
flex-direction: row
justify-content: space-between
border: 3px solid transparent
margin: 5px
padding: 0 5px
height: calc(100vh - 10px)
margin: 33px 3px
height: calc(100vh - 66px)

&.hotword
border: 3px solid $activeBorderColor
Expand All @@ -48,24 +49,26 @@ h4
flex-direction: column
box-sizing: border-box
height: 100%
width: 33.33vw
width: 50vw

.left
align-self: flex-start

.right
align-items: flex-end
align-self: flex-end

.widget
background: #111
padding: 15px
margin-bottom: 10px
border-radius: 4px
width: 33.33vw
width: $widgetWidth
transition: all 200ms ease

&.widget-bottom
margin-top: auto
margin-bottom: 0
align-self: flex-end

&.widget-active
Expand Down

0 comments on commit 89b9a42

Please sign in to comment.