Skip to content
This repository has been archived by the owner on Aug 4, 2018. It is now read-only.

some quick and dirty responsive css #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/src/components/lobby.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function Create() {
onClick: App._save('type', type)
}, type))

return d.div({},
return d.div({ className: 'menu' },
d.div({},
d.button({ onClick: App._emit('create') }, 'create'),
' room for ',
Expand Down
32 changes: 32 additions & 0 deletions public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,35 @@ time {
#chat input {
flex-shrink: 0
}


@media(max-width: 1020px) {
.menu {
/* so the footer doesn't get in the way when we scroll to the bottom with limited vertical space (landscape) */
padding-bottom: 55px;
}
.menu > div {
display: block;
width: 50%;
margin-left: 5%;
margin-bottom: 16px;
font-size: 32px;
text-align: center;
}

.menu > div:nth-child(1) > button,
.menu > div:nth-child(1) > select,
.menu > div:nth-child(1) > span {
display: inline-block;
width: 30%;
}


.menu > div > button,
.menu > div > select {
display: block;
width: 90%;
margin: auto;
margin-bottom: 8px;
}
}