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
87 // --back-color: #f2f2f2
88 // --a-link-color: black
89 // --a-visited-color: black
96 font-family: "Avenir", Helvetica, Arial, sans-serif
97 -webkit-font-smoothing: antialiased
98 -moz-osx-font-smoothing: grayscale
102 @media screen and (max-width: 767px)
115 justify-content: center
152 @media screen and (min-width: 768px)
158 justify-content: flex-start
160 display: inline-block
162 &.router-link-exact-active
169 justify-content: flex-end
171 display: inline-block
178 @media screen and (max-width: 767px)
183 &.router-link-exact-active
187 border-top: 1px solid darkgrey
196 @media screen and (max-width: 767px)
200 [type="checkbox"].drawer+*
203 @media screen and (max-width: 767px)
206 button:not(:first-child)
207 border-left: 1px solid var(--button-group-border-color)
211 border: 1px solid #ddd
212 //background-color: #000033
219 justify-content: center
220 & > .router-link-exact-active
221 color: #42b983 !important
222 text-decoration: none
224 display: inline-block
230 text-decoration: none
232 display: inline-block
235 @media screen and (max-width: 767px)
239 //#settings, #contactForm
241 // @media screen and (max-width: 767px)
243 //[type="checkbox"].modal+div .card
246 //[type="checkbox"].modal+div .card.small-modal
248 //[type="checkbox"].modal+div .card.big-modal