From d1dc53c6323b67e7c8e36f884212568b4c66bcd7 Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Wed, 25 Jul 2018 16:25:55 -0300 Subject: [PATCH] Introduces new oficial color scheme. Begins modification of color variables. --- .../advanced-search/advanced-search.vue | 2 +- .../edition/collection-edition-form.vue | 12 +- .../edition/filter-edition-form.vue | 4 +- .../edition/importer-edition-form.vue | 6 +- .../edition/importer-mapping-form.vue | 8 +- .../components/edition/item-edition-form.vue | 24 ++-- .../edition/metadatum-edition-form.vue | 4 +- .../components/edition/term-edition-form.vue | 6 +- .../components/lists/collections-list.vue | 4 +- src/admin/components/lists/filters-list.vue | 26 ++-- src/admin/components/lists/items-list.vue | 4 +- src/admin/components/lists/metadata-list.vue | 20 +-- src/admin/components/lists/processes-list.vue | 4 +- .../components/lists/taxonomies-list.vue | 4 +- src/admin/components/lists/terms-list.vue | 6 +- .../components/navigation/primary-menu.vue | 10 +- .../components/navigation/tainacan-header.vue | 4 +- .../navigation/tainacan-subheader.vue | 6 +- .../components/navigation/tainacan-title.vue | 2 +- .../other/available-importers-modal.vue | 4 +- src/admin/components/other/file-item.vue | 4 +- src/admin/components/other/help-button.vue | 6 +- .../components/other/processes-popup.vue | 24 ++-- .../pages/lists/available-importers-page.vue | 2 +- src/admin/pages/lists/collections-page.vue | 2 +- src/admin/pages/lists/items-page.vue | 16 +-- src/admin/pages/lists/taxonomies-page.vue | 2 +- src/admin/pages/singles/item-page.vue | 18 +-- src/admin/scss/_buttons.scss | 8 +- src/admin/scss/_checkboxes.scss | 6 +- .../scss/_dropdown-and-autocomplete.scss | 14 +- src/admin/scss/_inputs.scss | 6 +- src/admin/scss/_modals.scss | 22 +-- src/admin/scss/_notices.scss | 4 +- src/admin/scss/_pagination.scss | 12 +- src/admin/scss/_radios.scss | 4 +- src/admin/scss/_selects.scss | 2 +- src/admin/scss/_switches.scss | 10 +- src/admin/scss/_tables.scss | 26 ++-- src/admin/scss/_tabs.scss | 4 +- src/admin/scss/_tags.scss | 4 +- src/admin/scss/_tainacan-form.scss | 10 +- src/admin/scss/_tooltips.scss | 6 +- src/admin/scss/_variables.scss | 125 +++++++++++++----- src/admin/scss/_view-mode-cards.scss | 12 +- src/admin/scss/_view-mode-grid.scss | 8 +- src/admin/scss/_view-mode-records.scss | 14 +- src/admin/scss/tainacan-admin.scss | 4 +- src/admin/theme-items-list.vue | 24 ++-- .../filter-types/tainacan-filter-item.vue | 4 +- .../metadata-types/tainacan-form-item.vue | 4 +- src/theme-helper/view-mode-cards.vue | 12 +- src/theme-helper/view-mode-records.vue | 12 +- 53 files changed, 322 insertions(+), 269 deletions(-) diff --git a/src/admin/components/advanced-search/advanced-search.vue b/src/admin/components/advanced-search/advanced-search.vue index f09f8388c..3e55945fc 100644 --- a/src/admin/components/advanced-search/advanced-search.vue +++ b/src/admin/components/advanced-search/advanced-search.vue @@ -633,7 +633,7 @@ } .tainacan-input-disabled { - background-color: $gray; + background-color: $gray3; } } diff --git a/src/admin/components/edition/collection-edition-form.vue b/src/admin/components/edition/collection-edition-form.vue index 6c1197d61..e5a95dd77 100644 --- a/src/admin/components/edition/collection-edition-form.vue +++ b/src/admin/components/edition/collection-edition-form.vue @@ -818,7 +818,7 @@ export default { .section-label { font-size: 16px !important; font-weight: 500 !important; - color: $tertiary !important; + color: $blue5 !important; line-height: 1.2em; } @@ -854,7 +854,7 @@ export default { font-weight: bold; z-index: 99; text-align: center; - color: gray; + color: $gray4; @media screen and (max-width: 769px) { font-size: 1.2rem; @@ -892,7 +892,7 @@ export default { font-weight: bold; z-index: 99; text-align: center; - color: gray; + color: $gray4; } .thumbnail-buttons-row { position: relative; @@ -901,7 +901,7 @@ export default { } } .selected-cover-page { - border: 1px solid $tainacan-input-background; + border: 1px solid $gray2; padding: 8px; font-size: .75rem; .span { vertical-align: middle;} @@ -915,11 +915,11 @@ export default { padding: 4px 6px; .icon { font-size: 20px; } &.disabled { - .icon { color: $tainacan-input-background; } + .icon { color: $gray2; } } } .moderators-empty-list { - color: gray; + color: $gray4; font-size: 0.85rem; } diff --git a/src/admin/components/edition/filter-edition-form.vue b/src/admin/components/edition/filter-edition-form.vue index 3c7dc2e10..8b7da97db 100644 --- a/src/admin/components/edition/filter-edition-form.vue +++ b/src/admin/components/edition/filter-edition-form.vue @@ -264,8 +264,8 @@ export default { form { padding: 1.0em 2.0em; - border-top: 1px solid $draggable-border-color; - border-bottom: 1px solid $draggable-border-color; + border-top: 1px solid $gray2; + border-bottom: 1px solid $gray2; margin-top: 1.0em; } diff --git a/src/admin/components/edition/importer-edition-form.vue b/src/admin/components/edition/importer-edition-form.vue index f50569697..9faf4ed11 100644 --- a/src/admin/components/edition/importer-edition-form.vue +++ b/src/admin/components/edition/importer-edition-form.vue @@ -389,13 +389,13 @@ export default { .section-label { font-size: 16px !important; font-weight: 500 !important; - color: $tertiary !important; + color: $blue5 !important; line-height: 1.2em; } .source-metadatum { padding: 2px 0; - border-bottom: 1px solid $tainacan-input-background; + border-bottom: 1px solid $gray2; width: 100%; margin-bottom: 6px; display: flex; @@ -411,7 +411,7 @@ export default { } .mapping-header-label { - color: $gray-light; + color: $gray4; margin: 12px 0 6px 0; } diff --git a/src/admin/components/edition/importer-mapping-form.vue b/src/admin/components/edition/importer-mapping-form.vue index ecc5ba074..d932ebc05 100644 --- a/src/admin/components/edition/importer-mapping-form.vue +++ b/src/admin/components/edition/importer-mapping-form.vue @@ -403,7 +403,7 @@ export default { h1, h2 { font-size: 20px; font-weight: 500; - color: $tertiary; + color: $blue5; display: inline-block; } a.back-link{ @@ -452,13 +452,13 @@ export default { .section-label { font-size: 16px !important; font-weight: 500 !important; - color: $tertiary !important; + color: $blue5 !important; line-height: 1.2em; } .source-metadatum { padding: 2px 0; - border-bottom: 1px solid $tainacan-input-background; + border-bottom: 1px solid $gray2; width: 100%; margin-bottom: 6px; display: flex; @@ -474,7 +474,7 @@ export default { } .mapping-header-label { - color: $gray-light; + color: $gray4; margin: 12px 0 6px 0; } diff --git a/src/admin/components/edition/item-edition-form.vue b/src/admin/components/edition/item-edition-form.vue index 9762bb4bd..45b703661 100644 --- a/src/admin/components/edition/item-edition-form.vue +++ b/src/admin/components/edition/item-edition-form.vue @@ -896,7 +896,7 @@ export default { height: 36px; width: 36px; border: none; - background-color: $tainacan-input-background; + background-color: $gray2; color: $secondary; padding: 0px; border-top-left-radius: 2px; @@ -954,7 +954,7 @@ export default { label { font-size: 16px !important; font-weight: 500 !important; - color: $tertiary !important; + color: $blue5 !important; line-height: 1.2em; } } @@ -983,11 +983,11 @@ export default { height: 72px; width: 72px; border: none; - background-color: $tainacan-input-background; + background-color: $gray2; color: $secondary; margin-bottom: 6px; &:hover { - background-color: $primary-light; + background-color: $turquoise2; cursor: pointer; } } @@ -1001,12 +1001,12 @@ export default { margin-right: 24px; .icon { font-size: 18px !important; - color: $gray; + color: $gray3; } } } .section-attachments { - border: 1px solid $draggable-border-color; + border: 1px solid $gray2; height: 250px; max-width: 100%; resize: vertical; @@ -1069,7 +1069,7 @@ export default { font-weight: bold; z-index: 99; text-align: center; - color: gray; + color: $gray4; top: 70px; max-width: 90px; } @@ -1086,7 +1086,7 @@ export default { position: absolute; bottom: 0; z-index: 999999; - background-color: $primary-lighter; + background-color: $turquoise1; width: 100%; height: 65px; display: flex; @@ -1101,12 +1101,12 @@ export default { } @keyframes blink { - from { color: $tertiary; } - to { color: $gray-light; } + from { color: $blue5; } + to { color: $gray4; } } .update-warning { - color: $tertiary; + color: $blue5; animation-name: blink; animation-duration: 0.5s; animation-delay: 0.5s; @@ -1115,7 +1115,7 @@ export default { } .update-info-section { - color: $gray-light; + color: $gray4; margin-right: auto; } diff --git a/src/admin/components/edition/metadatum-edition-form.vue b/src/admin/components/edition/metadatum-edition-form.vue index 6a11ab045..78345c9a4 100644 --- a/src/admin/components/edition/metadatum-edition-form.vue +++ b/src/admin/components/edition/metadatum-edition-form.vue @@ -338,8 +338,8 @@ form.inCollapse { padding: 1.0em 2.0em; - border-top: 1px solid $draggable-border-color; - border-bottom: 1px solid $draggable-border-color; + border-top: 1px solid $gray2; + border-bottom: 1px solid $gray2; margin-top: 1.0em; } diff --git a/src/admin/components/edition/term-edition-form.vue b/src/admin/components/edition/term-edition-form.vue index 3a52eb1b7..78e97ef21 100644 --- a/src/admin/components/edition/term-edition-form.vue +++ b/src/admin/components/edition/term-edition-form.vue @@ -245,7 +245,7 @@ form { padding: 2.0rem 0rem 1rem 3rem; - border-left: 1px solid $draggable-border-color; + border-left: 1px solid $gray2; margin-top: 1.0em; .tainacan-page-title { @@ -254,7 +254,7 @@ h2 { font-size: 20px; font-weight: 500; - color: $tertiary; + color: $blue5; display: inline-block; } hr{ @@ -283,7 +283,7 @@ font-weight: bold; z-index: 99; text-align: center; - color: gray; + color: $gray4; } #button-delete-header, #button-edit-header { diff --git a/src/admin/components/lists/collections-list.vue b/src/admin/components/lists/collections-list.vue index e1501ac22..1575ad21d 100644 --- a/src/admin/components/lists/collections-list.vue +++ b/src/admin/components/lists/collections-list.vue @@ -388,10 +388,10 @@ export default { height: 40px; .select-all { - color: $gray-light; + color: $gray4; font-size: 14px; &:hover { - color: $gray-light; + color: $gray4; } } } diff --git a/src/admin/components/lists/filters-list.vue b/src/admin/components/lists/filters-list.vue index bd987e655..d11ba4719 100644 --- a/src/admin/components/lists/filters-list.vue +++ b/src/admin/components/lists/filters-list.vue @@ -476,7 +476,7 @@ export default { .page-title { border-bottom: 1px solid $secondary; h2 { - color: $tertiary; + color: $blue5; font-weight: 500; } margin: 1em 0em 2.0em 0em; @@ -532,7 +532,7 @@ export default { padding-right: 6em; } .grip-icon { - fill: $gray; + fill: $gray3; top: 2px; position: relative; } @@ -550,7 +550,7 @@ export default { } .label-details { font-weight: normal; - color: $gray; + color: $gray3; } .not-saved { font-style: italic; @@ -574,8 +574,8 @@ export default { form { padding: 1.0em 2.0em; - border-top: 1px solid $draggable-border-color; - border-bottom: 1px solid $draggable-border-color; + border-top: 1px solid $gray2; + border-bottom: 1px solid $gray2; margin-top: 1.0em; } &.not-sortable-item, &.not-sortable-item:hover { @@ -583,7 +583,7 @@ export default { background-color: white !important; .handle .label-details, .handle .icon { - color: $gray !important; + color: $gray3 !important; } } &.not-focusable-item, &.not-focusable-item:hover { @@ -593,11 +593,11 @@ export default { color: $secondary; } .handle .label-details, .handle .icon { - color: $gray !important; + color: $gray3 !important; } } &.disabled-metadatum { - color: $gray; + color: $gray3; } } .active-filter-item:hover:not(.not-sortable-item) { @@ -630,7 +630,7 @@ export default { } } .sortable-ghost { - border: 1px dashed $draggable-border-color; + border: 1px dashed $gray2; display: block; padding: 0.7em 0.9em; margin: 4px; @@ -638,7 +638,7 @@ export default { position: relative; .grip-icon { - fill: $gray; + fill: $gray3; top: 2px; position: relative; } @@ -678,12 +678,12 @@ export default { line-height: 1.3em; height: 40px; position: relative; - border: 1px solid $draggable-border-color; + border: 1px solid $gray2; border-radius: 1px; transition: left 0.2s ease; .grip-icon { - fill: $gray; + fill: $gray3; top: -3px; position: relative; display: inline-block; @@ -721,7 +721,7 @@ export default { } &:before { top: -1px; - border-color: transparent $draggable-border-color transparent transparent; + border-color: transparent $gray2 transparent transparent; border-right-width: 16px; border-top-width: 20px; border-bottom-width: 20px; diff --git a/src/admin/components/lists/items-list.vue b/src/admin/components/lists/items-list.vue index 7a3112196..8e689e988 100644 --- a/src/admin/components/lists/items-list.vue +++ b/src/admin/components/lists/items-list.vue @@ -607,10 +607,10 @@ export default { height: 40px; .select-all { - color: $gray-light; + color: $gray4; font-size: 14px; &:hover { - color: $gray-light; + color: $gray4; } } } diff --git a/src/admin/components/lists/metadata-list.vue b/src/admin/components/lists/metadata-list.vue index f7e4b7158..1ac2711fc 100644 --- a/src/admin/components/lists/metadata-list.vue +++ b/src/admin/components/lists/metadata-list.vue @@ -752,7 +752,7 @@ export default { .page-title { border-bottom: 1px solid $secondary; h2 { - color: $tertiary; + color: $blue5; font-weight: 500; } margin: 1em 0em 2.0em 0em; @@ -818,7 +818,7 @@ export default { padding-right: 6em; } .grip-icon { - fill: $gray; + fill: $gray3; top: 2px; position: relative; } @@ -836,7 +836,7 @@ export default { } .label-details { font-weight: normal; - color: $gray; + color: $gray3; } .not-saved { font-style: italic; @@ -863,7 +863,7 @@ export default { background-color: white !important; .handle .label-details, .handle .icon { - color: $gray !important; + color: $gray3 !important; } } &.not-focusable-item, &.not-focusable-item:hover { @@ -873,11 +873,11 @@ export default { color: $secondary; } .handle .label-details, .handle .icon { - color: $gray !important; + color: $gray3 !important; } } &.disabled-metadatum { - color: $gray; + color: $gray3; } } .active-metadatum-item:hover:not(.not-sortable-item) { @@ -910,7 +910,7 @@ export default { } } .sortable-ghost { - border: 1px dashed $draggable-border-color; + border: 1px dashed $gray2; display: block; padding: 0.7em 0.9em; margin: 4px; @@ -956,12 +956,12 @@ export default { line-height: 1.3em; height: 40px; position: relative; - border: 1px solid $draggable-border-color; + border: 1px solid $gray2; border-radius: 1px; transition: left 0.2s ease; .grip-icon { - fill: $gray; + fill: $gray3; top: -3px; position: relative; display: inline-block; @@ -999,7 +999,7 @@ export default { } &:before { top: -1px; - border-color: transparent $draggable-border-color transparent transparent; + border-color: transparent $gray2 transparent transparent; border-right-width: 16px; border-top-width: 20px; border-bottom-width: 20px; diff --git a/src/admin/components/lists/processes-list.vue b/src/admin/components/lists/processes-list.vue index 4b0314e01..a1c42a7d3 100644 --- a/src/admin/components/lists/processes-list.vue +++ b/src/admin/components/lists/processes-list.vue @@ -318,10 +318,10 @@ height: 40px; .select-all { - color: $gray-light; + color: $gray4; font-size: 14px; &:hover { - color: $gray-light; + color: $gray4; } } } diff --git a/src/admin/components/lists/taxonomies-list.vue b/src/admin/components/lists/taxonomies-list.vue index 2a819606a..81dc63c96 100644 --- a/src/admin/components/lists/taxonomies-list.vue +++ b/src/admin/components/lists/taxonomies-list.vue @@ -275,10 +275,10 @@ height: 40px; .select-all { - color: $gray-light; + color: $gray4; font-size: 14px; &:hover { - color: $gray-light; + color: $gray4; } } } diff --git a/src/admin/components/lists/terms-list.vue b/src/admin/components/lists/terms-list.vue index be2bb8fa9..538c5f22a 100644 --- a/src/admin/components/lists/terms-list.vue +++ b/src/admin/components/lists/terms-list.vue @@ -383,7 +383,7 @@ export default { margin-left: 30px; .gray-icon, .gray-icon .icon { - color: $tainacan-placeholder-color !important; + color: $gray4 !important; } .gray-icon .icon i::before, .gray-icon i::before { font-size: 21px !important; @@ -415,7 +415,7 @@ export default { } .label-details { font-weight: normal; - color: $gray; + color: $gray3; } .not-saved { font-style: italic; @@ -452,7 +452,7 @@ export default { cursor: default; .term-name { - color: $primary; + color: $turquoise3; } } diff --git a/src/admin/components/navigation/primary-menu.vue b/src/admin/components/navigation/primary-menu.vue index a6668ae9c..f8c98db20 100644 --- a/src/admin/components/navigation/primary-menu.vue +++ b/src/admin/components/navigation/primary-menu.vue @@ -97,7 +97,7 @@ export default { @import "../../scss/_variables.scss"; #primary-menu { - background-color: $primary; + background-color: $turquoise4; padding: 100px 0px 0px 0px; -webkit-transition: max-width 0.2s linear; /* Safari */ transition: max-width 0.2s linear; @@ -113,7 +113,7 @@ export default { } .separator { height: 2px; - background-color: $separator-color; + background-color: $turquoise5; width: 100%; margin: 24px 0; } @@ -134,11 +134,11 @@ export default { } a:hover, a.is-active { - background-color: $primary; - color: $tertiary; + background-color: $turquoise4; + color: $blue5; .activities-icon { - fill: $tertiary; + fill: $blue5; } } a:focus { diff --git a/src/admin/components/navigation/tainacan-header.vue b/src/admin/components/navigation/tainacan-header.vue index c6cf47bd3..54aaa8afe 100644 --- a/src/admin/components/navigation/tainacan-header.vue +++ b/src/admin/components/navigation/tainacan-header.vue @@ -205,7 +205,7 @@ border-width: 0 !important; height: 27px; font-size: 11px; - color: $gray-light; + color: $gray4; transition: width linear 0.15s; -webkit-transition: width linear 0.15s; width: 160px; @@ -215,7 +215,7 @@ } .icon:not(.add-i) { pointer-events: all; - color: $tertiary; + color: $blue5; cursor: pointer; height: 27px; font-size: 18px; diff --git a/src/admin/components/navigation/tainacan-subheader.vue b/src/admin/components/navigation/tainacan-subheader.vue index c378f4943..6bba71cc2 100644 --- a/src/admin/components/navigation/tainacan-subheader.vue +++ b/src/admin/components/navigation/tainacan-subheader.vue @@ -212,7 +212,7 @@ export default { // Tainacan Header #tainacan-subheader { - background-color: $primary-lighter; + background-color: $turquoise1; height: $subheader-height; max-height: $subheader-height; width: 100%; @@ -252,7 +252,7 @@ export default { h1 { font-size: 18px; font-weight: 500; - color: $tertiary; + color: $blue5; line-height: 22px; margin-bottom: 12px; max-width: 450px; @@ -281,7 +281,7 @@ export default { -webkit-transition: height 0.5s linear, padding 0.5s linear; a { - color: $tertiary; + color: $blue5; text-align: center; white-space: nowrap; overflow: hidden; diff --git a/src/admin/components/navigation/tainacan-title.vue b/src/admin/components/navigation/tainacan-title.vue index 1cddcf1b0..80240175d 100644 --- a/src/admin/components/navigation/tainacan-title.vue +++ b/src/admin/components/navigation/tainacan-title.vue @@ -149,7 +149,7 @@ export default { h1, h2 { font-size: 20px; font-weight: 500; - color: $tertiary; + color: $blue5; display: inline-block; } a.back-link{ diff --git a/src/admin/components/other/available-importers-modal.vue b/src/admin/components/other/available-importers-modal.vue index 22622e6dd..10ccfdd50 100644 --- a/src/admin/components/other/available-importers-modal.vue +++ b/src/admin/components/other/available-importers-modal.vue @@ -85,7 +85,7 @@ export default { .importer-types-container { .importer-type { - border-bottom: 1px solid $tainacan-input-background; + border-bottom: 1px solid $gray2; padding: 15px 8.3333333%; cursor: pointer; @@ -96,7 +96,7 @@ export default { border-bottom: none; } &:hover { - background-color: $tainacan-input-background; + background-color: $gray2; } } } diff --git a/src/admin/components/other/file-item.vue b/src/admin/components/other/file-item.vue index c97547a87..b23d5709e 100644 --- a/src/admin/components/other/file-item.vue +++ b/src/admin/components/other/file-item.vue @@ -110,7 +110,7 @@ export default { overflow: hidden; position: relative; display: inline-block; - background-color: $tainacan-input-background; + background-color: $gray2; &.rounded { border-bottom-left-radius: 5px; @@ -144,7 +144,7 @@ export default { } figcaption { - background-color: $tainacan-input-background; + background-color: $gray2; border-top-left-radius: 5px; border-top-right-radius: 5px; padding: 8px 15px; diff --git a/src/admin/components/other/help-button.vue b/src/admin/components/other/help-button.vue index 7a09c602f..d05e496a8 100644 --- a/src/admin/components/other/help-button.vue +++ b/src/admin/components/other/help-button.vue @@ -46,8 +46,8 @@ export default { } .help-tooltip { z-index: 99999999999999999999; - color: $tertiary; - background-color: $primary-light; + color: $blue5; + background-color: $turquoise2; border: none; display: block; border-radius: 5px; @@ -86,7 +86,7 @@ export default { border-style: solid; } &:before { - border-color: $primary-light transparent transparent transparent; + border-color: $turquoise2 transparent transparent transparent; border-right-width: 18px; border-top-width: 12px; border-left-width: 18px; diff --git a/src/admin/components/other/processes-popup.vue b/src/admin/components/other/processes-popup.vue index 208f3cd3e..74f4bc825 100644 --- a/src/admin/components/other/processes-popup.vue +++ b/src/admin/components/other/processes-popup.vue @@ -5,7 +5,7 @@ @click="showProcessesList = !showProcessesList" class="header-title">{{ getUnfinishedProcesses() + ' ' + $i18n.get('info_unfinished_processes') }} - + - + @@ -86,7 +86,7 @@