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(to="/news") {{ st.tr["News"] }}
38 p.clickable(onClick="window.doClick('modalContact')")
39 | {{ st.tr["Contact"] }}
43 import ContactForm from "@/components/ContactForm.vue";
44 import Settings from "@/components/Settings.vue";
45 import UpsertUser from "@/components/UpsertUser.vue";
46 import { store } from "./store.js";
47 import { processModalClick } from "./utils/modalClick.js";
60 let dialogs = document.querySelectorAll("div[role='dialog']");
61 dialogs.forEach(d => {
62 d.addEventListener("click", processModalClick);
66 hideDrawer: function(e) {
67 e.preventDefault(); //TODO: why is this needed?
68 document.getElementsByClassName("drawer")[0].checked = false;
76 font-family: "Open Sans", Arial, sans-serif
78 --a-visited-color: black
83 --fore-color: #1c1e10 //#2c3e50
84 //--back-color: #f2f2f2
85 background-image: radial-gradient(white, #e6e6ff) //lavender)
88 -webkit-font-smoothing: antialiased
89 -moz-osx-font-smoothing: grayscale
92 // 45px is footer height
93 min-height: calc(100vh - 45px)
105 justify-content: center
123 input[type="checkbox"]:focus
126 input[type=checkbox]:checked:before
142 vertical-align: middle
146 vertical-align: middle
148 @media screen and (max-width: 767px)
160 @media screen and (min-width: 768px)
166 justify-content: flex-start
168 display: inline-block
170 &.router-link-exact-active
177 justify-content: flex-end
179 display: inline-block
180 @media screen and (max-width: 767px)
186 &.router-link-exact-active
190 border-top: 1px solid darkgrey
192 @media screen and (max-width: 767px)
196 & > label.drawer-toggle
204 & > label.drawer-toggle:before
207 z-index: 5000 //to hide currently selected piece if any
209 [type="checkbox"].drawer+*
212 [type=checkbox].drawer+* .drawer-close
220 [type=checkbox].drawer+* .drawer-close:before
223 @media screen and (max-width: 767px)
226 button:not(:first-child)
227 border-left: 1px solid var(--button-group-border-color)
232 border: 1px solid #ddd
233 box-sizing: border-box
234 //background-color: #000033
240 justify-content: center
241 & > .router-link-exact-active
242 color: #42b983 !important
243 text-decoration: none
245 display: inline-block
251 text-decoration: none
253 display: inline-block
256 @media screen and (max-width: 767px)
260 // Styles for diagrams and board (partial).
261 // TODO: where to put that ?
264 background-color: #e5e5ca
267 background-color: #6f8f57
272 display: inline-block
277 padding-bottom: 12.5%
290 img.piece, img.mark-square
304 filter: brightness(50%)