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="window.doClick('modalUser')")
29 | {{ st.user.id > 0 ? (st.user.name || "@nonymous") : "Login" }}
30 .clickable(onClick="window.doClick('modalSettings')")
31 | {{ st.tr["Settings"] }}
32 .clickable#flagContainer(onClick="window.doClick('modalLang')")
39 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
41 router-link.menuitem(to="/about") {{ st.tr["About"] }}
42 router-link.menuitem(to="/news") {{ st.tr["News"] }}
43 p.clickable(onClick="window.doClick('modalContact')")
44 | {{ st.tr["Contact"] }}
48 import ContactForm from "@/components/ContactForm.vue";
49 import Language from "@/components/Language.vue";
50 import Settings from "@/components/Settings.vue";
51 import UpsertUser from "@/components/UpsertUser.vue";
52 import { store } from "./store.js";
53 import { processModalClick } from "./utils/modalClick.js";
67 flagImage: function() {
68 return `/images/flags/${this.st.lang}.svg`;
72 let dialogs = document.querySelectorAll("div[role='dialog']");
73 dialogs.forEach(d => {
74 d.addEventListener("click", processModalClick);
78 hideDrawer: function(e) {
79 if (e.target.innerText == "Forum") return; //external link
80 e.preventDefault(); //TODO: why is this needed?
81 document.getElementsByClassName("drawer")[0].checked = false;
89 font-family: "Open Sans", Arial, sans-serif
91 --a-visited-color: black
96 --fore-color: #1c1e10 //#2c3e50
97 //--back-color: #f2f2f2
98 background-image: radial-gradient(white, #e6e6ff) //lavender)
101 -webkit-font-smoothing: antialiased
102 -moz-osx-font-smoothing: grayscale
105 // 45px is footer height
106 min-height: calc(100vh - 45px)
118 justify-content: center
133 input[type="checkbox"]:focus
136 input[type=checkbox]:checked:before
148 @media screen and (max-width: 767px)
160 @media screen and (min-width: 768px)
166 justify-content: flex-start
168 display: inline-block
170 &.router-link-exact-active
177 justify-content: flex-end
179 display: inline-block
186 @media screen and (max-width: 767px)
192 &.router-link-exact-active
196 border-top: 1px solid darkgrey
205 @media screen and (max-width: 767px)
209 & > label.drawer-toggle
214 //padding: -5px 0 0 10px
216 z-index: 5000 //to hide currently selected piece if any
218 [type="checkbox"].drawer+*
221 [type=checkbox].drawer+* .drawer-close
223 left: var(--universal-margin)
226 [type=checkbox].drawer+* .drawer-close:before
229 @media screen and (max-width: 767px)
232 button:not(:first-child)
233 border-left: 1px solid var(--button-group-border-color)
238 border: 1px solid #ddd
239 box-sizing: border-box
240 //background-color: #000033
246 justify-content: center
247 & > .router-link-exact-active
248 color: #42b983 !important
249 text-decoration: none
251 display: inline-block
257 text-decoration: none
259 display: inline-block
262 @media screen and (max-width: 767px)
266 // Styles for diagrams and board (partial).
267 // TODO: where to put that ?
270 background-color: #e5e5ca
273 background-color: #6f8f57
278 display: inline-block
283 padding-bottom: 12.5%
296 img.piece, img.mark-square
310 filter: brightness(50%)