X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2FApp.vue;h=f337394ef791785eca539c7ee680550a0f820178;hb=4f8871051c030acd51172b73cd20aedce687c2a8;hp=2699453b2e47ee630ec3220f74db43218b6fa0f7;hpb=fb54f098a565034c09c111f1141d2c60073b4a61;p=vchess.git diff --git a/client/src/App.vue b/client/src/App.vue index 2699453b..f337394e 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,56 +1,44 @@ @@ -73,6 +61,19 @@ export default { st: store.state, }; }, + computed: { + flagImage: function() { + return `/images/flags/${this.st.lang}.svg`; + }, + }, + methods: { + hideDrawer: function(e) { + if (e.target.innerText == "Forum") + return; //external link + e.preventDefault(); //TODO: why is this needed? + document.getElementsByClassName("drawer")[0].checked = false; + }, + }, }; @@ -92,33 +93,6 @@ export default { .nopadding padding: 0 -#modalWelcome - max-width: 767px - @media screen and (max-width: 767px) - max-width: 100vw - img - width: 75% - @media screen and (max-width: 767px) - width: 100% - max-width: 552px - ul - list-style-type: none - // TODO: bad practice, shouldn't use table to align things... - table.list-table - width: 300px - margin: 0 auto - border: 0 - tbody - border: 0 - tr - border: 0 - margin: 0 - padding: 0 - td - padding: 0 - text-align: left - border: 0 - header width: 100% display: flex @@ -165,20 +139,23 @@ nav width: 36px height: 27px -// TODO: drawer, until 600px wide OK (seemingly) -// After, zone where left and right just go on top of another -// Then, on narrow screen put everything on one line [type="checkbox"].drawer+* right: -767px +#menuBar + label.drawer-close + top: 50px + footer //background-color: #000033 font-size: 1rem width: 100% + padding-left: 0 + padding-right: 0 display: inline-flex align-items: center justify-content: center - & > a + & > .menuitem display: inline-block margin: 0 10px 0 0 &:link