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)
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)
251 border: 1px solid #ddd
252 box-sizing: border-box
253 //background-color: #000033
259 justify-content: center
260 & > .router-link-exact-active
261 color: #42b983 !important
262 text-decoration: none
265 display: inline-flex;
269 text-decoration: none
272 text-decoration: none
275 display: inline-block
278 display: inline-block
281 @media screen and (max-width: 767px)
285 @media screen and (max-width: 420px)
287 min-height: calc(100vh - 55px)
295 &:link, &:visited, &:hover
298 // Styles for diagrams and board (partial).
299 // TODO: where to put that ?
302 background-color: #e5e5ca
305 background-color: #6f8f57
311 display: inline-block
320 padding-bottom: 12.5%
324 padding-bottom: 11.1%
332 padding-bottom: 9.09%
336 padding-bottom: 8.33%
341 img.piece, img.mark-square, img.circle-square
361 filter: brightness(50%)