8 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
10 // Left: hall, variants, problems, mygames
11 // Right: usermenu, settings
13 label.drawer-toggle(for="drawerControl")
14 input#drawerControl.drawer(type="checkbox")
15 #menuBar(@click="hideDrawer($event)")
16 label.drawer-close(for="drawerControl")
20 router-link(to="/mygames")
21 | {{ st.tr["My games"] }}
22 router-link(to="/variants")
23 | {{ st.tr["Variants"] }}
24 router-link(to="/problems")
25 | {{ st.tr["Problems"] }}
27 .clickable(onClick="window.doClick('modalUser')") {{ userName }}
28 #divSettings.clickable(onClick="window.doClick('modalSettings')")
29 span {{ st.tr["Settings"] }}
30 img(src="/images/icons/settings.svg")
33 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
35 router-link.menuitem(to="/about") {{ st.tr["About"] }}
36 router-link.menuitem#newsMenu(to="/news") {{ st.tr["News"] }}
37 a.menuitem(href="https://discord.gg/a9ZFKBe")
39 img(src="/images/icons/discord.svg")
40 a.menuitem(href="https://github.com/yagu0/vchess")
41 span {{ st.tr["Code"] }}
42 img(src="/images/icons/github.svg")
43 p.clickable(onClick="window.doClick('modalContact')")
44 | {{ st.tr["Contact"] }}
48 import ContactForm from "@/components/ContactForm.vue";
49 import Settings from "@/components/Settings.vue";
50 import UpsertUser from "@/components/UpsertUser.vue";
51 import { store } from "@/store.js";
52 import { ajax } from "@/utils/ajax.js";
60 return { st: store.state };
68 if (this.st.user.newsRead < res.timestamp)
69 document.getElementById("newsMenu").classList.add("somenews");
75 userName: function() {
78 ? (this.st.user.name || "@nonymous")
84 hideDrawer: function(e) {
85 e.preventDefault(); //TODO: why is this needed?
86 document.getElementsByClassName("drawer")[0].checked = false;
94 font-family: "Open Sans", Arial, sans-serif
95 --a-link-color: darkred
96 --a-visited-color: darkred
101 --fore-color: #1c1e10 //#2c3e50
102 //--back-color: #f2f2f2
103 background-image: radial-gradient(white, #e6e6ff) //lavender)
106 -webkit-font-smoothing: antialiased
107 -moz-osx-font-smoothing: grayscale
110 // 45px is footer height
111 min-height: calc(100vh - 45px)
123 justify-content: center
141 input[type="checkbox"]:focus
144 input[type=checkbox]:checked:before
161 vertical-align: middle
165 vertical-align: middle
167 @media screen and (max-width: 767px)
179 @media screen and (min-width: 768px)
185 justify-content: flex-start
187 display: inline-block
189 &.router-link-exact-active
196 justify-content: flex-end
198 display: inline-block
199 @media screen and (max-width: 767px)
205 &.router-link-exact-active
209 border-top: 1px solid darkgrey
211 @media screen and (max-width: 767px)
215 & > label.drawer-toggle
223 & > label.drawer-toggle:before
226 z-index: 5000 //to hide currently selected piece if any
228 [type="checkbox"].drawer+*
231 [type=checkbox].drawer+* .drawer-close
239 [type=checkbox].drawer+* .drawer-close:before
242 @media screen and (max-width: 767px)
245 button:not(:first-child)
246 border-left: 1px solid var(--button-group-border-color)
251 border: 1px solid #ddd
252 box-sizing: border-box
253 //background-color: #000033
259 justify-content: center
260 & > .router-link-exact-active
261 color: #42b983 !important
262 text-decoration: none
265 display: inline-flex;
271 text-decoration: none
274 display: inline-block
277 display: inline-block
280 @media screen and (max-width: 767px)
284 @media screen and (max-width: 420px)
286 min-height: calc(100vh - 55px)
294 &:link, &:visited, &:hover
297 // Styles for diagrams and board (partial).
298 // TODO: where to put that ?
301 background-color: #e5e5ca
304 background-color: #6f8f57
309 display: inline-block
318 padding-bottom: 12.5%
322 padding-bottom: 11.1%
330 padding-bottom: 9.09%
334 padding-bottom: 8.33%
339 img.piece, img.mark-square, img.circle-square
359 filter: brightness(50%)