fix: Adjust dashboard and header menu to use new background colors

fix(UnifiedSearch): Adjust to new background color

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/42977/head
Ferdinand Thiessen 10 months ago
parent de938bb401
commit 9d2c3c1164
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
  1. 4
      apps/dashboard/src/DashboardApp.vue
  2. 2
      core/css/header.scss
  3. 14
      core/src/components/AppMenu.vue
  4. 6
      core/src/views/ContactsMenu.vue
  5. 7
      core/src/views/LegacyUnifiedSearch.vue
  6. 2
      core/src/views/UnifiedSearch.vue

@ -471,8 +471,8 @@ export default {
background-attachment: fixed;
> h2 {
// this is shown directly on the background which has `color-primary`, so we need `color-primary-text`
color: var(--color-primary-text);
// this is shown directly on the background image / color
color: var(--color-background-plain-text);
text-align: center;
font-size: 32px;
line-height: 130%;

@ -22,7 +22,7 @@
width: 12px;
height: 2px;
border-radius: 3px;
background-color: var(--color-primary-text);
background-color: var(--color-background-plain-text);
left: 50%;
opacity: 1;
}

@ -144,7 +144,7 @@ $header-icon-size: 20px;
width: 12px;
height: 5px;
border-radius: 3px;
background-color: var(--color-primary-text);
background-color: var(--color-background-plain-text);
left: 50%;
bottom: 6px;
display: block;
@ -161,8 +161,8 @@ $header-icon-size: 20px;
width: calc(100% - 4px);
height: calc(100% - 4px);
margin: 2px;
// this is shown directly on the background which has `color-primary`, so we need `color-primary-text`
color: var(--color-primary-text);
// this is shown directly on the background
color: var(--color-background-plain-text);
position: relative;
}
@ -179,8 +179,8 @@ $header-icon-size: 20px;
opacity: 0;
position: absolute;
font-size: 12px;
// this is shown directly on the background which has `color-primary`, so we need `color-primary-text`
color: var(--color-primary-text);
// this is shown directly on the background
color: var(--color-background-plain-text);
text-align: center;
left: 50%;
top: 45%;
@ -238,7 +238,7 @@ $header-icon-size: 20px;
/* Remove all background and align text color if not expanded */
&:not([aria-expanded="true"]) {
color: var(--color-primary-element-text);
color: var(--color-background-plain-text);
&:hover {
opacity: 1;
@ -278,7 +278,7 @@ $header-icon-size: 20px;
content: "";
width: 8px;
height: 8px;
background-color: var(--color-primary-element-text);
background-color: var(--color-background-plain-text);
border-radius: 50%;
position: absolute;
display: block;

@ -9,7 +9,7 @@
:aria-label="t('core', 'Search contacts')"
@open="handleOpen">
<template #trigger>
<Contacts :size="20" />
<Contacts class="contactsmenu__trigger-icon" :size="20" />
</template>
<div class="contactsmenu__menu">
<div class="contactsmenu__menu__input-wrapper">
@ -171,6 +171,10 @@ export default {
.contactsmenu {
overflow-y: hidden;
&__trigger-icon {
color: var(--color-background-plain-text) !important;
}
&__menu {
display: flex;
flex-direction: column;

@ -12,8 +12,7 @@
@close="onClose">
<!-- Header icon -->
<template #trigger>
<Magnify class="unified-search__trigger"
:size="22/* fit better next to other 20px icons */" />
<Magnify class="unified-search__trigger-icon" :size="20" />
</template>
<!-- Search form & filters wrapper -->
@ -706,6 +705,10 @@ $input-height: 34px;
$input-padding: 10px;
.unified-search {
&__trigger-icon {
color: var(--color-background-plain-text) !important;
}
&__input-wrapper {
position: sticky;
// above search results

@ -71,7 +71,7 @@ export default {
&-icon {
// ensure the icon has the correct color
color: var(--color-primary-text) !important;
color: var(--color-background-plain-text) !important;
}
}
}

Loading…
Cancel
Save