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")
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 };
63 userName: function() {
66 ? (this.st.user.name || "@nonymous")
72 hideDrawer: function(e) {
73 e.preventDefault(); //TODO: why is this needed?
74 document.getElementsByClassName("drawer")[0].checked = false;
82 font-family: "Open Sans", Arial, sans-serif
83 --a-link-color: darkred
84 --a-visited-color: darkred
85 --card-back-color: #f4f6f6
86 --button-back-color: #d1d5d5
87 --table-body-back-color: #f8f8f8
92 --fore-color: #1c1e10 //#2c3e50
93 //--back-color: #f2f2f2
94 background-image: radial-gradient(white, #e6e6ff) //lavender)
97 -webkit-font-smoothing: antialiased
98 -moz-osx-font-smoothing: grayscale
101 // 45px is footer height
102 min-height: calc(100vh - 45px)
111 text-decoration: underline
117 justify-content: center
135 input[type="checkbox"]:focus
138 input[type=checkbox]:checked:before
155 vertical-align: middle
159 vertical-align: middle
161 @media screen and (max-width: 767px)
173 @media screen and (min-width: 768px)
179 justify-content: flex-start
181 display: inline-block
182 text-decoration: none
184 &.router-link-exact-active
191 justify-content: flex-end
193 display: inline-block
194 @media screen and (max-width: 767px)
199 text-decoration: none
201 &.router-link-exact-active
205 border-top: 1px solid darkgrey
207 @media screen and (max-width: 767px)
211 & > label.drawer-toggle
219 & > label.drawer-toggle:before
222 z-index: 5000 //to hide currently selected piece if any
224 [type="checkbox"].drawer+*
227 [type=checkbox].drawer+* .drawer-close
235 [type=checkbox].drawer+* .drawer-close:before
238 @media screen and (max-width: 767px)
241 button:not(:first-child)
242 border-left: 1px solid var(--button-group-border-color)
247 border: 1px solid #ddd
248 box-sizing: border-box
249 //background-color: #000033
255 justify-content: center
256 & > .router-link-exact-active
257 color: #388e3c !important
258 text-decoration: none
261 display: inline-flex;
265 text-decoration: none
268 text-decoration: none
271 display: inline-block
274 display: inline-block
277 @media screen and (max-width: 767px)
281 @media screen and (max-width: 420px)
283 min-height: calc(100vh - 55px)