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#newsMenu(to="/news") {{ st.tr["News"] }}
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 };
68 if (this.st.user.newsRead < res.timestamp)
69 document.getElementById("newsMenu").classList.add("somenews");
75 userName: function() {
78 ? (this.st.user.name || "@nonymous")
84 hideDrawer: function(e) {
85 e.preventDefault(); //TODO: why is this needed?
86 document.getElementsByClassName("drawer")[0].checked = false;
94 font-family: "Open Sans", Arial, sans-serif
95 --a-link-color: darkred
96 --a-visited-color: darkred
101 --fore-color: #1c1e10 //#2c3e50
102 //--back-color: #f2f2f2
103 background-image: radial-gradient(white, #e6e6ff) //lavender)
106 -webkit-font-smoothing: antialiased
107 -moz-osx-font-smoothing: grayscale
110 // 45px is footer height
111 min-height: calc(100vh - 45px)
120 text-decoration: underline
126 justify-content: center
144 input[type="checkbox"]:focus
147 input[type=checkbox]:checked:before
164 vertical-align: middle
168 vertical-align: middle
170 @media screen and (max-width: 767px)
182 @media screen and (min-width: 768px)
188 justify-content: flex-start
190 display: inline-block
191 text-decoration: none
193 &.router-link-exact-active
200 justify-content: flex-end
202 display: inline-block
203 @media screen and (max-width: 767px)
208 text-decoration: none
210 &.router-link-exact-active
214 border-top: 1px solid darkgrey
216 @media screen and (max-width: 767px)
220 & > label.drawer-toggle
228 & > label.drawer-toggle:before
231 z-index: 5000 //to hide currently selected piece if any
233 [type="checkbox"].drawer+*
236 [type=checkbox].drawer+* .drawer-close
244 [type=checkbox].drawer+* .drawer-close:before
247 @media screen and (max-width: 767px)
250 button:not(:first-child)
251 border-left: 1px solid var(--button-group-border-color)
256 border: 1px solid #ddd
257 box-sizing: border-box
258 //background-color: #000033
264 justify-content: center
265 & > .router-link-exact-active
266 color: #42b983 !important
267 text-decoration: none
270 display: inline-flex;
274 text-decoration: none
277 text-decoration: none
280 display: inline-block
283 display: inline-block
286 @media screen and (max-width: 767px)
290 @media screen and (max-width: 420px)
292 min-height: calc(100vh - 55px)
300 &:link, &:visited, &:hover