From 9df5028c2014cf59471635600ec9c8dd45ef152b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 21 Jun 2020 22:18:35 +0200 Subject: [PATCH 1/3] MAPG-87 introduce footer --- views/templates/footer.php | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 views/templates/footer.php diff --git a/views/templates/footer.php b/views/templates/footer.php new file mode 100644 index 0000000..ca51b0a --- /dev/null +++ b/views/templates/footer.php @@ -0,0 +1,5 @@ + + \ No newline at end of file From 94e60e4ac55d86822286c17b82678d2f4f7aedf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 21 Jun 2020 22:20:04 +0200 Subject: [PATCH 2/3] MAPG-87 unify some styles --- public/static/css/mapguesser.css | 44 ++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/public/static/css/mapguesser.css b/public/static/css/mapguesser.css index 9f82327..5b88537 100644 --- a/public/static/css/mapguesser.css +++ b/public/static/css/mapguesser.css @@ -42,7 +42,7 @@ h1>a:hover, h1>a:focus { text-decoration: none; } -h2, div.header.small h1 { +h2, header.small h1 { font-size: 24px; } @@ -83,7 +83,7 @@ hr { font-weight: 500; } -.small { +p.small, span.small { font-size: 12px; } @@ -281,7 +281,7 @@ p.formError { display: none; } -div.header { +header { display: grid; grid-template-columns: auto auto; background-color: #333333; @@ -291,33 +291,44 @@ div.header { color: white; } -div.header.small { +header.small { height: 40px; line-height: 40px; } -div.header>p.header { +header>p { line-height: inherit; text-align: right; } -div.header>p.header>span { +header>p>span { padding-left: 6px; } -div.header>p.header>span>a:link, div.header>p.header>span>a:visited { +header>p>span>a:link, header>p>span>a:visited { color: inherit; } -div.header>p.header>span:not(:last-child) { +header>p>span:not(:last-child) { border-right: solid white 1px; padding-right: 6px; } -div.main { +main { padding: 6px 12px; } +footer { + background-color: #444444; + padding: 6px 12px; + color: white; + text-align: center; +} + +footer>p { + font-size: 13px; +} + div.buttonContainer { height: 35px; } @@ -348,9 +359,12 @@ div.box { } @media screen and (max-width: 599px) { - div.header h1 span { + header h1 span { display: none; } + footer>p:not(:first-child) { + margin-top: 4px; + } button, a.button { padding: 0; width: 100%; @@ -371,6 +385,16 @@ div.box { } @media screen and (min-width: 600px) { + footer>p { + display: inline; + } + footer>p:not(:first-child) { + padding-left: 6px; + } + footer>p:not(:last-child) { + border-right: solid white 1px; + padding-right: 6px; + } div.modal { width: 540px; left: 50%; From 3ab8ac5fe6bd235477d9986ddb6b64a9241c9f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 21 Jun 2020 22:20:30 +0200 Subject: [PATCH 3/3] MAPG-87 use HTML5 semantic elements, new styles, new footer --- views/admin/map_editor.php | 4 ++-- views/error/404.php | 3 +-- views/game.php | 4 ++-- views/login/activate.php | 3 +-- views/login/cancel.php | 3 +-- views/login/google_login.php | 3 +-- views/login/google_signup.php | 3 +-- views/login/login.php | 3 +-- views/login/signup.php | 3 +-- views/login/signup_success.php | 3 +-- views/maps.php | 3 +-- views/profile.php | 3 +-- views/templates/header.php | 7 ++++--- 13 files changed, 18 insertions(+), 27 deletions(-) diff --git a/views/admin/map_editor.php b/views/admin/map_editor.php index 941d30e..1452525 100644 --- a/views/admin/map_editor.php +++ b/views/admin/map_editor.php @@ -13,7 +13,7 @@ $jsFiles = [ ]; ?> - +