X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2FApp.vue;h=6c945663682e5cd2cf78bcd5566843a36ea5ae2f;hb=3837d4f7885a3c3cdb468da2f3fa3fa1e5a1415a;hp=e06a2fef5bbede787fc1b09a70b738095e8cb530;hpb=afd3240d89a2f6191fe9426960dc0c1667b40c77;p=vchess.git diff --git a/client/src/App.vue b/client/src/App.vue index e06a2fef..6c945663 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -13,7 +13,7 @@ nav label.drawer-toggle(for="drawerControl") input#drawerControl.drawer(type="checkbox") - #menuBar + #menuBar(@click="hideDrawer") label.drawer-close(for="drawerControl") #leftMenu router-link(to="/") @@ -22,12 +22,11 @@ | {{ st.tr["Variants"] }} router-link(to="/mygames") | {{ st.tr["My games"] }} - // TODO: parametric URL, "forumURL" a(href="https://forum.vchess.club") | {{ st.tr["Forum"] }} #rightMenu .clickable(onClick="doClick('modalUser')") - | {{ st.user.id > 0 ? "Update" : "Login" }} + | {{ st.user.id > 0 ? (st.user.name || "@nonymous") : "Login" }} .clickable(onClick="doClick('modalSettings')") | {{ st.tr["Settings"] }} .clickable#flagContainer(onClick="doClick('modalLang')") @@ -39,8 +38,6 @@ router-link.menuitem(to="/about") {{ st.tr["About"] }} p.clickable(onClick="doClick('modalContact')") | {{ st.tr["Contact"] }} - // TODO: add only the necessary icons to mini-css custom build - //script(src="//unpkg.com/feather-icons") @@ -132,13 +140,19 @@ nav width: 36px height: 27px -// TODO: drawer, until 600px wide OK (seemingly) -// After, zone where left and right just go on top of another -// Then, on narrow screen put everything on one line +@media screen and (max-width: 767px) + nav + border: none + [type="checkbox"].drawer+* right: -767px +#menuBar + label.drawer-close + top: 50px + footer + border: 1px solid #ddd //background-color: #000033 font-size: 1rem width: 100% @@ -152,9 +166,14 @@ footer margin: 0 10px 0 0 &:link color: #2c3e50 - &:hover + &:visited, &:hover + color: #2c3e50 text-decoration: none & > p display: inline-block margin: 0 0 0 10px + +@media screen and (max-width: 767px) + footer + border: none