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
153 vertical-align: middle
157 vertical-align: middle
159 @media screen and (max-width: 767px)
171 @media screen and (min-width: 768px)
177 justify-content: flex-start
179 display: inline-block
181 &.router-link-exact-active
188 justify-content: flex-end
190 display: inline-block
191 @media screen and (max-width: 767px)
197 &.router-link-exact-active
201 border-top: 1px solid darkgrey
203 @media screen and (max-width: 767px)
207 & > label.drawer-toggle
215 & > label.drawer-toggle:before
218 z-index: 5000 //to hide currently selected piece if any
220 [type="checkbox"].drawer+*
223 [type=checkbox].drawer+* .drawer-close
231 [type=checkbox].drawer+* .drawer-close:before
234 @media screen and (max-width: 767px)
237 button:not(:first-child)
238 border-left: 1px solid var(--button-group-border-color)
243 border: 1px solid #ddd
244 box-sizing: border-box
245 //background-color: #000033
251 justify-content: center
252 & > .router-link-exact-active
253 color: #42b983 !important
254 text-decoration: none
257 display: inline-flex;
263 text-decoration: none
266 display: inline-block
269 display: inline-block
272 @media screen and (max-width: 767px)
276 @media screen and (max-width: 420px)
278 min-height: calc(100vh - 55px)
286 &:link, &:visited, &:hover
289 // Styles for diagrams and board (partial).
290 // TODO: where to put that ?
293 background-color: #e5e5ca
296 background-color: #6f8f57
301 display: inline-block
306 padding-bottom: 12.5%
310 padding-bottom: 11.1%
323 img.piece, img.mark-square
337 filter: brightness(50%)