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')")
28 | {{ st.user.id > 0 ? (st.user.name || "@nonymous") : "Login" }}
29 #divSettings.clickable(onClick="window.doClick('modalSettings')")
30 span {{ st.tr["Settings"] }}
31 img(src="/images/icons/settings.svg")
34 .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#newsMenu(to="/news") {{ st.tr["News"] }}
38 a.menuitem(href="https://discord.gg/a9ZFKBe")
40 img(src="/images/icons/discord.svg")
41 a.menuitem(href="https://github.com/yagu0/vchess")
42 span {{ st.tr["Code"] }}
43 img(src="/images/icons/github.svg")
44 p.clickable(onClick="window.doClick('modalContact')")
45 | {{ st.tr["Contact"] }}
49 import ContactForm from "@/components/ContactForm.vue";
50 import Settings from "@/components/Settings.vue";
51 import UpsertUser from "@/components/UpsertUser.vue";
52 import { store } from "@/store.js";
53 import { ajax } from "@/utils/ajax.js";
61 return { st: store.state };
69 if (this.st.user.newsRead < res.timestamp)
70 document.getElementById("newsMenu").classList.add("somenews");
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
93 --fore-color: #1c1e10 //#2c3e50
94 //--back-color: #f2f2f2
95 background-image: radial-gradient(white, #e6e6ff) //lavender)
98 -webkit-font-smoothing: antialiased
99 -moz-osx-font-smoothing: grayscale
102 // 45px is footer height
103 min-height: calc(100vh - 45px)
115 justify-content: center
133 input[type="checkbox"]:focus
136 input[type=checkbox]:checked:before
152 vertical-align: middle
156 vertical-align: middle
158 @media screen and (max-width: 767px)
170 @media screen and (min-width: 768px)
176 justify-content: flex-start
178 display: inline-block
180 &.router-link-exact-active
187 justify-content: flex-end
189 display: inline-block
190 @media screen and (max-width: 767px)
196 &.router-link-exact-active
200 border-top: 1px solid darkgrey
202 @media screen and (max-width: 767px)
206 & > label.drawer-toggle
214 & > label.drawer-toggle:before
217 z-index: 5000 //to hide currently selected piece if any
219 [type="checkbox"].drawer+*
222 [type=checkbox].drawer+* .drawer-close
230 [type=checkbox].drawer+* .drawer-close:before
233 @media screen and (max-width: 767px)
236 button:not(:first-child)
237 border-left: 1px solid var(--button-group-border-color)
242 border: 1px solid #ddd
243 box-sizing: border-box
244 //background-color: #000033
250 justify-content: center
251 & > .router-link-exact-active
252 color: #42b983 !important
253 text-decoration: none
256 display: inline-flex;
262 text-decoration: none
265 display: inline-block
268 display: inline-block
271 @media screen and (max-width: 767px)
275 @media screen and (max-width: 420px)
283 &:link, &:visited, &:hover
286 // Styles for diagrams and board (partial).
287 // TODO: where to put that ?
290 background-color: #e5e5ca
293 background-color: #6f8f57
298 display: inline-block
303 padding-bottom: 12.5%
316 img.piece, img.mark-square
330 filter: brightness(50%)