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, problems, 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="/problems")
24 | {{ st.tr["Problems"] }}
25 router-link(to="/mygames")
26 | {{ st.tr["My games"] }}
28 .clickable(onClick="doClick('modalUser')")
29 | {{ st.user.id > 0 ? (st.user.name || "@nonymous") : "Login" }}
30 .clickable(onClick="doClick('modalSettings')")
31 | {{ st.tr["Settings"] }}
32 .clickable#flagContainer(onClick="doClick('modalLang')")
33 img(v-if="!!st.lang" :src="flagImage")
36 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
38 router-link.menuitem(to="/about") {{ st.tr["About"] }}
39 p.clickable(onClick="doClick('modalContact')")
40 | {{ st.tr["Contact"] }}
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
187 //padding: -5px 0 0 10px
189 [type="checkbox"].drawer+*
192 @media screen and (max-width: 767px)
195 button:not(:first-child)
196 border-left: 1px solid var(--button-group-border-color)
200 border: 1px solid #ddd
201 //background-color: #000033
208 justify-content: center
209 & > .router-link-exact-active
210 color: #42b983 !important
211 text-decoration: none
213 display: inline-block
219 text-decoration: none
221 display: inline-block
224 @media screen and (max-width: 767px)
228 // Styles for diagrams and board (partial).
229 // TODO: where to put that ?
232 background-color: #e5e5ca
235 background-color: #6f8f57
240 display: inline-block
245 padding-bottom: 12.5%
258 img.piece, img.mark-square
272 filter: brightness(50%)