Skip to content

Commit

Permalink
Label for tools button
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkace committed May 16, 2018
1 parent f50f665 commit 92a03e6
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 16 deletions.
11 changes: 10 additions & 1 deletion src/components/header/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,22 @@
align-items: center;

a {
display: block;
display: flex;
align-items: center;
text-decoration: none;

svg {
fill: colors.cta;
width: auto;
height: 4vh;
}

div {
margin: 0.4em 0 0 0.4em;

font: normal 1.2em/1 fontSerif;
text-transform: uppercase;
}
}
}

Expand Down
9 changes: 6 additions & 3 deletions src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ export default {

m("div", { class : css.logo },
m("a", {
href : "/",
oncreate : m.route.link,
}, m.trust(logo))
href : "/",
oncreate : m.route.link,
},
m.trust(logo),
m("div", "Lyrite")
)
),

state.song ? m(tools) : null
Expand Down
11 changes: 6 additions & 5 deletions src/components/lyrics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ function addBr(text) {
}

export default {
oninit : () => {
// if(state.song.untitled) {
// state.action("OPEN TITLE MODAL");
// }
},
// oninit : () => {
// // todo: make this not broken
// if(state.song.untitled) {
// state.action("OPEN TITLE MODAL");
// }
// },
view : () =>
m("div", { class : css.lyredit },
m("div", {
Expand Down
20 changes: 14 additions & 6 deletions src/components/tools/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,28 @@
bottom: 0;
padding: 0 0.4em 0 0.6em;

color: #fff;
text-align: center;

border: none;
border-radius: 0.3em;
border-top-right-radius: 0;
border-bottom-right-radius: 0;

background: colors.cta;
}

.show svg {
display: block;
height: 100%;
width: 1em;
svg {
display: block;
width: 1em;
margin: 0 auto;

fill: #fff;
}

fill: #fff;
div {
font-size: 0.75em;
text-transform: uppercase;
}
}

.label {
Expand Down
3 changes: 2 additions & 1 deletion src/components/tools/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export default {
}
}
},
m.trust(edit)
m.trust(edit),
m("div", "tools")
),

// Style buttons
Expand Down

0 comments on commit 92a03e6

Please sign in to comment.