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="/mygames")
22 | {{ st.tr["My games"] }}
23 router-link(to="/variants")
24 | {{ st.tr["Variants"] }}
25 router-link(to="/problems")
26 | {{ st.tr["Problems"] }}
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") 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
102 // 45px is footer height
103 min-height: calc(100vh - 45px)
115 justify-content: center
130 input[type="checkbox"]:focus
133 input[type=checkbox]:checked:before
145 @media screen and (max-width: 767px)
157 @media screen and (min-width: 768px)
163 justify-content: flex-start
165 display: inline-block
167 &.router-link-exact-active
174 justify-content: flex-end
176 display: inline-block
183 @media screen and (max-width: 767px)
189 &.router-link-exact-active
193 border-top: 1px solid darkgrey
202 @media screen and (max-width: 767px)
206 & > label.drawer-toggle
211 //padding: -5px 0 0 10px
213 z-index: 5000 //to hide currently selected piece if any
215 [type="checkbox"].drawer+*
218 [type=checkbox].drawer+* .drawer-close
220 left: var(--universal-margin)
223 [type=checkbox].drawer+* .drawer-close:before
226 @media screen and (max-width: 767px)
229 button:not(:first-child)
230 border-left: 1px solid var(--button-group-border-color)
235 border: 1px solid #ddd
236 box-sizing: border-box
237 //background-color: #000033
243 justify-content: center
244 & > .router-link-exact-active
245 color: #42b983 !important
246 text-decoration: none
248 display: inline-block
254 text-decoration: none
256 display: inline-block
259 @media screen and (max-width: 767px)
263 // Styles for diagrams and board (partial).
264 // TODO: where to put that ?
267 background-color: #e5e5ca
270 background-color: #6f8f57
275 display: inline-block
280 padding-bottom: 12.5%
293 img.piece, img.mark-square
307 filter: brightness(50%)