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(to="/faq") F.A.Q.
37 a.menuitem(href="https://discord.gg/a9ZFKBe")
38 img.first(src="/images/icons/discord.svg")
39 a.menuitem(href="https://github.com/yagu0/vchess")
40 img(src="/images/icons/github.svg")
41 a.menuitem(href="https://www.facebook.com/Variants-Chess-Club-112565840437886")
42 img(src="/images/icons/facebook.svg")
43 a.menuitem(href="https://twitter.com/VchessC")
44 img.last(src="/images/icons/twitter.svg")
45 p.clickable(onClick="window.doClick('modalContact')")
46 | {{ st.tr["Contact"] }}
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
157 vertical-align: middle
161 vertical-align: middle
163 @media screen and (max-width: 767px)
175 @media screen and (min-width: 768px)
181 justify-content: flex-start
183 display: inline-block
184 text-decoration: none
186 &.router-link-exact-active
193 justify-content: flex-end
195 display: inline-block
196 @media screen and (max-width: 767px)
201 text-decoration: none
203 &.router-link-exact-active
207 border-top: 1px solid darkgrey
209 @media screen and (max-width: 767px)
213 & > label.drawer-toggle
221 & > label.drawer-toggle:before
224 z-index: 5000 //to hide currently selected piece if any
226 [type="checkbox"].drawer+*
229 [type=checkbox].drawer+* .drawer-close
237 [type=checkbox].drawer+* .drawer-close:before
240 @media screen and (max-width: 767px)
243 button:not(:first-child)
244 border-left: 1px solid var(--button-group-border-color)
249 border: 1px solid #ddd
250 box-sizing: border-box
251 //background-color: #000033
257 justify-content: center
258 & > .router-link-exact-active
259 color: #388e3c !important
260 text-decoration: none
263 display: inline-flex;
267 text-decoration: none
270 text-decoration: none
273 display: inline-block
280 display: inline-block
283 @media screen and (max-width: 767px)
287 @media screen and (max-width: 420px)
289 min-height: calc(100vh - 55px)