10 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
11 // Menu (top of page):
12 // Left: hall, variants, mygames
13 // Right: usermenu, settings, flag
15 label.drawer-toggle(for="drawerControl")
16 input#drawerControl.drawer(type="checkbox")
17 #menuBar(@click="hideDrawer()")
18 label.drawer-close(for="drawerControl")
22 router-link(to="/variants")
23 | {{ st.tr["Variants"] }}
24 router-link(to="/mygames")
25 | {{ st.tr["My games"] }}
27 .clickable(onClick="doClick('modalUser')")
28 | {{ st.user.id > 0 ? (st.user.name || "@nonymous") : "Login" }}
29 .clickable(onClick="doClick('modalSettings')")
30 | {{ st.tr["Settings"] }}
31 .clickable#flagContainer(onClick="doClick('modalLang')")
32 img(v-if="!!st.lang" :src="flagImage")
35 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
37 router-link.menuitem(to="/about") {{ st.tr["About"] }}
38 p.clickable(onClick="doClick('modalContact')")
39 | {{ st.tr["Contact"] }}
40 a.menuitem(href="https://forum.vchess.club")
41 | {{ st.tr["Forum"] }}
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 Welcome from "@/components/Welcome.vue";
50 import { store } from "./store.js";
51 import { processModalClick } from "./utils/modalClick.js";
66 flagImage: function() {
67 return `/images/flags/${this.st.lang}.svg`;
71 let dialogs = document.querySelectorAll("div[role='dialog']");
72 dialogs.forEach(d => {
73 d.addEventListener("click", processModalClick);
75 if (!localStorage.getItem("welcomed"))
76 setTimeout( () => { doClick("modalWelcome"); }, 2000);
79 hideDrawer: function(e) {
80 if (e.target.innerText == "Forum")
81 return; //external link
82 e.preventDefault(); //TODO: why is this needed?
83 document.getElementsByClassName("drawer")[0].checked = false;
91 font-family: "Open Sans", Arial, sans-serif
94 --a-visited-color: black
101 -webkit-font-smoothing: antialiased
102 -moz-osx-font-smoothing: grayscale
106 @media screen and (max-width: 767px)
119 justify-content: center
156 @media screen and (min-width: 768px)
162 justify-content: flex-start
164 display: inline-block
166 &.router-link-exact-active
173 justify-content: flex-end
175 display: inline-block
182 @media screen and (max-width: 767px)
187 &.router-link-exact-active
191 border-top: 1px solid darkgrey
200 @media screen and (max-width: 767px)
204 & > label.drawer-toggle
206 //padding: 0 0 0 10px
208 [type="checkbox"].drawer+*
211 @media screen and (max-width: 767px)
214 button:not(:first-child)
215 border-left: 1px solid var(--button-group-border-color)
219 border: 1px solid #ddd
220 //background-color: #000033
227 justify-content: center
228 & > .router-link-exact-active
229 color: #42b983 !important
230 text-decoration: none
232 display: inline-block
238 text-decoration: none
240 display: inline-block
243 @media screen and (max-width: 767px)
247 //#settings, #contactForm
249 // @media screen and (max-width: 767px)
251 //[type="checkbox"].modal+div .card
254 //[type="checkbox"].modal+div .card.small-modal
256 //[type="checkbox"].modal+div .card.big-modal