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 router-link.menuitem(to="/news") {{ st.tr["News"] }}
40 p.clickable(onClick="doClick('modalContact')")
41 | {{ st.tr["Contact"] }}
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 { store } from "./store.js";
50 import { processModalClick } from "./utils/modalClick.js";
64 flagImage: function() {
65 return `/images/flags/${this.st.lang}.svg`;
69 let dialogs = document.querySelectorAll("div[role='dialog']");
70 dialogs.forEach(d => {
71 d.addEventListener("click", processModalClick);
75 hideDrawer: function(e) {
76 if (e.target.innerText == "Forum")
77 return; //external link
78 e.preventDefault(); //TODO: why is this needed?
79 document.getElementsByClassName("drawer")[0].checked = false;
87 font-family: "Open Sans", Arial, sans-serif
89 --a-visited-color: black
94 --fore-color: #1c1e10 //#2c3e50
95 //--back-color: #f2f2f2
96 background-image: radial-gradient(white, #e6e6ff) //lavender)
99 -webkit-font-smoothing: antialiased
100 -moz-osx-font-smoothing: grayscale
103 // 45px is footer height
104 min-height: calc(100vh - 45px)
116 justify-content: center
131 input[type="checkbox"]:focus
134 input[type=checkbox]:checked:before
146 @media screen and (max-width: 767px)
158 @media screen and (min-width: 768px)
164 justify-content: flex-start
166 display: inline-block
168 &.router-link-exact-active
175 justify-content: flex-end
177 display: inline-block
184 @media screen and (max-width: 767px)
190 &.router-link-exact-active
194 border-top: 1px solid darkgrey
203 @media screen and (max-width: 767px)
207 & > label.drawer-toggle
212 //padding: -5px 0 0 10px
214 z-index: 5000 //to hide currently selected piece if any
216 [type="checkbox"].drawer+*
219 [type=checkbox].drawer+* .drawer-close
221 left: var(--universal-margin)
224 [type=checkbox].drawer+* .drawer-close:before
227 @media screen and (max-width: 767px)
230 button:not(:first-child)
231 border-left: 1px solid var(--button-group-border-color)
236 border: 1px solid #ddd
237 box-sizing: border-box
238 //background-color: #000033
244 justify-content: center
245 & > .router-link-exact-active
246 color: #42b983 !important
247 text-decoration: none
249 display: inline-block
255 text-decoration: none
257 display: inline-block
260 @media screen and (max-width: 767px)
264 // Styles for diagrams and board (partial).
265 // TODO: where to put that ?
268 background-color: #e5e5ca
271 background-color: #6f8f57
276 display: inline-block
281 padding-bottom: 12.5%
294 img.piece, img.mark-square
308 filter: brightness(50%)