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($event)")
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
88 --a-visited-color: black
93 --fore-color: #1c1e10 //#2c3e50
94 //--back-color: #f2f2f2
95 background-image: radial-gradient(white, #e6e6ff) //lavender)
98 -webkit-font-smoothing: antialiased
99 -moz-osx-font-smoothing: grayscale
103 @media screen and (max-width: 767px)
113 justify-content: center
135 @media screen and (min-width: 768px)
141 justify-content: flex-start
143 display: inline-block
145 &.router-link-exact-active
152 justify-content: flex-end
154 display: inline-block
161 @media screen and (max-width: 767px)
166 &.router-link-exact-active
170 border-top: 1px solid darkgrey
179 @media screen and (max-width: 767px)
183 & > label.drawer-toggle
185 //padding: 0 0 0 10px
187 [type="checkbox"].drawer+*
190 @media screen and (max-width: 767px)
193 button:not(:first-child)
194 border-left: 1px solid var(--button-group-border-color)
198 border: 1px solid #ddd
199 //background-color: #000033
206 justify-content: center
207 & > .router-link-exact-active
208 color: #42b983 !important
209 text-decoration: none
211 display: inline-block
217 text-decoration: none
219 display: inline-block
222 @media screen and (max-width: 767px)