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")
50 import ContactForm from "@/components/ContactForm.vue";
51 import Settings from "@/components/Settings.vue";
52 import UpsertUser from "@/components/UpsertUser.vue";
53 import { store } from "@/store.js";
54 import { ajax } from "@/utils/ajax.js";
62 return { st: store.state };
65 userName: function() {
68 ? (this.st.user.name || "@nonymous")
74 hideDrawer: function(e) {
75 e.preventDefault(); //TODO: why is this needed?
76 document.getElementsByClassName("drawer")[0].checked = false;
84 font-family: "Open Sans", Arial, sans-serif
85 --a-link-color: darkred
86 --a-visited-color: darkred
87 --card-back-color: #f4f6f6
88 --button-back-color: #d1d5d5
89 --table-body-back-color: #f8f8f8
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)
113 text-decoration: underline
119 justify-content: center
137 input[type="checkbox"]:focus
140 input[type=checkbox]:checked:before
159 vertical-align: middle
163 vertical-align: middle
165 @media screen and (max-width: 767px)
177 @media screen and (min-width: 768px)
183 justify-content: flex-start
185 display: inline-block
186 text-decoration: none
188 &.router-link-exact-active
195 justify-content: flex-end
197 display: inline-block
198 @media screen and (max-width: 767px)
203 text-decoration: none
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)
252 justify-content: flex-end
255 display: inline-block
257 @media screen and (max-width: 500px)
264 justify-content: flex-start
266 @media screen and (max-width: 500px)
271 border: 1px solid #ddd
272 box-sizing: border-box
273 //background-color: #000033
279 & > .left-part > .router-link-exact-active
280 color: #388e3c !important
281 text-decoration: none
288 text-decoration: none
291 text-decoration: none
292 footer > .right-part > a.menuitem > img
293 display: inline-block
299 @media screen and (min-width: 501px)
302 @media screen and (max-width: 767px)
306 @media screen and (max-width: 500px)
308 min-height: calc(100vh - 67px)