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
97 --card-back-color: #f4f6f6
98 --button-back-color: #d1d5d5
99 --table-body-back-color: #f8f8f8
104 --fore-color: #1c1e10 //#2c3e50
105 //--back-color: #f2f2f2
106 background-image: radial-gradient(white, #e6e6ff) //lavender)
109 -webkit-font-smoothing: antialiased
110 -moz-osx-font-smoothing: grayscale
113 // 45px is footer height
114 min-height: calc(100vh - 45px)
123 text-decoration: underline
129 justify-content: center
147 input[type="checkbox"]:focus
150 input[type=checkbox]:checked:before
167 vertical-align: middle
171 vertical-align: middle
173 @media screen and (max-width: 767px)
185 @media screen and (min-width: 768px)
191 justify-content: flex-start
193 display: inline-block
194 text-decoration: none
196 &.router-link-exact-active
203 justify-content: flex-end
205 display: inline-block
206 @media screen and (max-width: 767px)
211 text-decoration: none
213 &.router-link-exact-active
217 border-top: 1px solid darkgrey
219 @media screen and (max-width: 767px)
223 & > label.drawer-toggle
231 & > label.drawer-toggle:before
234 z-index: 5000 //to hide currently selected piece if any
236 [type="checkbox"].drawer+*
239 [type=checkbox].drawer+* .drawer-close
247 [type=checkbox].drawer+* .drawer-close:before
250 @media screen and (max-width: 767px)
253 button:not(:first-child)
254 border-left: 1px solid var(--button-group-border-color)
259 border: 1px solid #ddd
260 box-sizing: border-box
261 //background-color: #000033
267 justify-content: center
268 & > .router-link-exact-active
269 color: #388e3c !important
270 text-decoration: none
273 display: inline-flex;
277 text-decoration: none
280 text-decoration: none
283 display: inline-block
286 display: inline-block
289 @media screen and (max-width: 767px)
293 @media screen and (max-width: 420px)
295 min-height: calc(100vh - 55px)
303 &:link, &:visited, &:hover