From 0f19bc767a68585e089bbb068a0f7d53627777fd Mon Sep 17 00:00:00 2001 From: Spythere Date: Thu, 22 Sep 2022 13:59:19 +0200 Subject: [PATCH] =?UTF-8?q?Poprawki=20wygl=C4=85du;=20cleanup=20kodu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.scss | 156 ---------- src/App.vue | 101 +----- src/components/App/AppHeader.vue | 259 ++++++++++++++++ src/components/Global/SelectBox.vue | 18 +- src/components/JournalView/DriverStats.vue | 289 +++++++++--------- .../JournalView/JournalTimetables.vue | 2 + .../StationsView/StationFilterCard.vue | 18 -- src/components/StationsView/StationTable.vue | 4 +- src/styles/filters_options.scss | 6 +- src/styles/global.scss | 5 +- src/styles/variables.scss | 2 +- 11 files changed, 432 insertions(+), 428 deletions(-) create mode 100644 src/components/App/AppHeader.vue diff --git a/src/App.scss b/src/App.scss index 3589e72..8fac615 100644 --- a/src/App.scss +++ b/src/App.scss @@ -81,162 +81,6 @@ border-radius: 0 0 1em 1em; } -// Error icon -.wip-alert { - padding: 0 0.5em; - text-align: center; -} - -.icon-error { - width: 13em; - margin: 0.5em 0; -} - -// HEADER -.app_header { - display: flex; - justify-content: center; - - position: relative; - background-color: $primaryCol; -} - -.header { - &_body { - max-width: 21em; - } - - &_container { - display: flex; - justify-content: center; - position: relative; - - width: 1350px; - padding: 0.5em 0.3em 0 0.3em; - border-radius: 0 0 1em 1em; - } - - &_brand { - img { - width: 100%; - } - } - - &_info { - display: grid; - grid-template-columns: 1fr 1fr 1fr; - max-width: 100%; - - font-size: 1.2em; - } - - &_links { - display: flex; - justify-content: center; - - border-radius: 0.7em; - - font-size: 1.25em; - padding: 0.5em; - } - - &_icons { - position: absolute; - right: 0; - top: 0; - height: 100%; - - display: flex; - flex-direction: column; - justify-content: flex-end; - align-items: flex-end; - padding: 0.5em 0.5em; - - @include smallScreen() { - right: auto; - left: 0.75em; - padding: 0; - - align-items: center; - } - } -} - -// ICONS -.icons { - position: relative; - - &-top { - img { - width: 2.5em; - - cursor: pointer; - } - - margin-bottom: 0.5em; - } - - &-bottom { - display: flex; - - a { - margin-left: 0.6em; - user-select: none; - } - - img { - width: 1.9em; - } - - @include smallScreen() { - flex-direction: column; - - a { - margin: 0.25em 0; - } - } - } -} - -// COUNTER -.info_counter { - display: flex; - justify-content: center; - align-items: center; - - span { - margin: 0 0.15em; - } - - img { - width: 1.35em; - } -} - -// REGION SELECTION -.info_region { - color: white; - font-weight: bold; - - display: flex; - justify-content: flex-end; - - .select-box_content button { - background-color: transparent; - font-weight: bold; - padding: 0.1em 0.5em; - color: paleturquoise; - } - - .options { - font-size: 0.9em; - } - - .arrow { - padding: 0; - } -} - // FOOTER footer.app_footer { max-width: 100%; diff --git a/src/App.vue b/src/App.vue index 932fd33..3730eb2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,67 +1,12 @@