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 import ContactForm from "@/components/ContactForm.vue";
45 import Language from "@/components/Language.vue";
46 import Settings from "@/components/Settings.vue";
47 import UpsertUser from "@/components/UpsertUser.vue";
48 import { store } from "./store.js";
49 import { processModalClick } from "./utils/modalClick.js";
63 flagImage: function() {
64 return `/images/flags/${this.st.lang}.svg`;
68 let dialogs = document.querySelectorAll("div[role='dialog']");
69 dialogs.forEach(d => {
70 d.addEventListener("click", processModalClick);
74 hideDrawer: function(e) {
75 if (e.target.innerText == "Forum")
76 return; //external link
77 e.preventDefault(); //TODO: why is this needed?
78 document.getElementsByClassName("drawer")[0].checked = false;
86 font-family: "Open Sans", Arial, sans-serif
89 --a-visited-color: black
96 -webkit-font-smoothing: antialiased
97 -moz-osx-font-smoothing: grayscale
101 @media screen and (max-width: 767px)
114 justify-content: center
151 @media screen and (min-width: 768px)
157 justify-content: flex-start
159 display: inline-block
161 &.router-link-exact-active
168 justify-content: flex-end
170 display: inline-block
177 @media screen and (max-width: 767px)
182 &.router-link-exact-active
186 border-top: 1px solid darkgrey
195 @media screen and (max-width: 767px)
198 & > label.drawer-toggle
200 //padding: 0 0 0 10px
202 [type="checkbox"].drawer+*
205 @media screen and (max-width: 767px)
208 button:not(:first-child)
209 border-left: 1px solid var(--button-group-border-color)
213 border: 1px solid #ddd
214 //background-color: #000033
221 justify-content: center
222 & > .router-link-exact-active
223 color: #42b983 !important
224 text-decoration: none
226 display: inline-block
232 text-decoration: none
234 display: inline-block
237 @media screen and (max-width: 767px)
241 //#settings, #contactForm
243 // @media screen and (max-width: 767px)
245 //[type="checkbox"].modal+div .card
248 //[type="checkbox"].modal+div .card.small-modal
250 //[type="checkbox"].modal+div .card.big-modal