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
36 router-link.menuitem(to="/about") {{ st.tr["About"] }}
37 router-link.menuitem(to="/faq") F.A.Q.
38 p.menuitem.clickable(onClick="window.doClick('modalContact')")
39 | {{ st.tr["Contact"] }}
41 a.menuitem(href="https://discord.gg/a9ZFKBe")
43 img.first(src="/images/icons/discord.svg")
44 a.menuitem(href="https://github.com/yagu0/vchess")
45 span {{ st.tr["Code"] }}
46 img(src="/images/icons/github.svg")
47 //a.menuitem(href="https://www.facebook.com/Variants-Chess-Club-112565840437886")
48 img(src="/images/icons/facebook.svg")
49 //a.menuitem(href="https://twitter.com/VchessC")
50 img(src="/images/icons/twitter.svg")
54 import ContactForm from "@/components/ContactForm.vue";
55 import Settings from "@/components/Settings.vue";
56 import UpsertUser from "@/components/UpsertUser.vue";
57 import { store } from "@/store.js";
58 import { ajax } from "@/utils/ajax.js";
66 return { st: store.state };
69 userName: function() {
72 ? (this.st.user.name || "@nonymous")
78 hideDrawer: function(e) {
79 e.preventDefault(); //TODO: why is this needed?
80 document.getElementsByClassName("drawer")[0].checked = false;
88 font-family: "Open Sans", Arial, sans-serif
89 --a-link-color: darkred
90 --a-visited-color: darkred
91 --card-back-color: #f4f6f6
92 --button-back-color: #d1d5d5
93 --table-body-back-color: #f8f8f8
98 --fore-color: #1c1e10 //#2c3e50
99 //--back-color: #f2f2f2
100 background-image: radial-gradient(white, #e6e6ff) //lavender)
103 -webkit-font-smoothing: antialiased
104 -moz-osx-font-smoothing: grayscale
107 // 45px is footer height
108 min-height: calc(100vh - 45px)
117 text-decoration: underline
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
188 text-decoration: none
190 &.router-link-exact-active
197 justify-content: flex-end
199 display: inline-block
200 @media screen and (max-width: 767px)
205 text-decoration: none
207 &.router-link-exact-active
211 border-top: 1px solid darkgrey
213 @media screen and (max-width: 767px)
217 & > label.drawer-toggle
225 & > label.drawer-toggle:before
228 z-index: 5000 //to hide currently selected piece if any
230 [type="checkbox"].drawer+*
233 [type=checkbox].drawer+* .drawer-close
241 [type=checkbox].drawer+* .drawer-close:before
244 @media screen and (max-width: 767px)
247 button:not(:first-child)
248 border-left: 1px solid var(--button-group-border-color)
254 justify-content: flex-end
257 display: inline-block
259 @media screen and (max-width: 500px)
266 justify-content: flex-start
268 @media screen and (max-width: 500px)
273 border: 1px solid #ddd
274 box-sizing: border-box
275 //background-color: #000033
281 & > .left-part > .router-link-exact-active
282 color: #388e3c !important
283 text-decoration: none
290 text-decoration: none
293 text-decoration: none
294 footer > .right-part > a.menuitem > img
295 display: inline-block
301 @media screen and (min-width: 501px)
304 @media screen and (max-width: 767px)
308 @media screen and (max-width: 500px)
310 min-height: calc(100vh - 67px)