9 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
10 // Menu (top of page):
11 // Left: hall, variants, mygames
12 // Right: usermenu, settings, flag
14 label.drawer-toggle(for="drawerControl")
15 input#drawerControl.drawer(type="checkbox")
16 #menuBar(@click="hideDrawer")
17 label.drawer-close(for="drawerControl")
21 router-link(to="/variants")
22 | {{ st.tr["Variants"] }}
23 router-link(to="/mygames")
24 | {{ st.tr["My games"] }}
26 .clickable(onClick="doClick('modalUser')")
27 | {{ st.user.id > 0 ? (st.user.name || "@nonymous") : "Login" }}
28 .clickable(onClick="doClick('modalSettings')")
29 | {{ st.tr["Settings"] }}
30 .clickable#flagContainer(onClick="doClick('modalLang')")
31 img(v-if="!!st.lang" :src="flagImage")
34 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
36 router-link.menuitem(to="/about") {{ st.tr["About"] }}
37 p.clickable(onClick="doClick('modalContact')")
38 | {{ st.tr["Contact"] }}
39 a.menuitem(href="https://forum.vchess.club")
40 | {{ st.tr["Forum"] }}
44 // See https://stackoverflow.com/a/35417159
45 import ContactForm from "@/components/ContactForm.vue";
46 import Language from "@/components/Language.vue";
47 import Settings from "@/components/Settings.vue";
48 import UpsertUser from "@/components/UpsertUser.vue";
49 import { store } from "./store.js";
63 flagImage: function() {
64 return `/images/flags/${this.st.lang}.svg`;
67 // mounted: function() {
71 hideDrawer: function(e) {
72 if (e.target.innerText == "Forum")
73 return; //external link
74 e.preventDefault(); //TODO: why is this needed?
75 document.getElementsByClassName("drawer")[0].checked = false;
83 font-family: "Avenir", Helvetica, Arial, sans-serif
84 -webkit-font-smoothing: antialiased
85 -moz-osx-font-smoothing: grayscale
88 @media screen and (max-width: 767px)
101 justify-content: center
122 justify-content: flex-start
124 display: inline-block
126 &.router-link-exact-active
133 justify-content: flex-end
135 display: inline-block
143 @media screen and (max-width: 767px)
147 [type="checkbox"].drawer+*
155 border: 1px solid #ddd
156 //background-color: #000033
163 justify-content: center
165 display: inline-block
171 text-decoration: none
173 display: inline-block
176 @media screen and (max-width: 767px)