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")
42 img.first(src="/images/icons/discord.svg")
43 a.menuitem(href="https://github.com/yagu0/vchess")
44 img(src="/images/icons/github.svg")
45 a.menuitem(href="https://www.facebook.com/Variants-Chess-Club-112565840437886")
46 img(src="/images/icons/facebook.svg")
47 a.menuitem(href="https://twitter.com/VchessC")
48 img(src="/images/icons/twitter.svg")
52 import ContactForm from "@/components/ContactForm.vue";
53 import Settings from "@/components/Settings.vue";
54 import UpsertUser from "@/components/UpsertUser.vue";
55 import { store } from "@/store.js";
56 import { ajax } from "@/utils/ajax.js";
64 return { st: store.state };
67 userName: function() {
70 ? (this.st.user.name || "@nonymous")
76 hideDrawer: function(e) {
77 e.preventDefault(); //TODO: why is this needed?
78 document.getElementsByClassName("drawer")[0].checked = false;
86 font-family: "Open Sans", Arial, sans-serif
87 --a-link-color: darkred
88 --a-visited-color: darkred
89 --card-back-color: #f4f6f6
90 --button-back-color: #d1d5d5
91 --table-body-back-color: #f8f8f8
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)
115 text-decoration: underline
121 justify-content: center
139 input[type="checkbox"]:focus
142 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
294 display: inline-block
297 @media screen and (min-width: 501px)
300 @media screen and (max-width: 767px)
304 @media screen and (max-width: 500px)
306 min-height: calc(100vh - 67px)