Skip to content

Commit

Permalink
Update topbar style
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienSvtr committed Dec 18, 2023
1 parent f2d70b8 commit d1912e6
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 31 deletions.
8 changes: 5 additions & 3 deletions client/src/components/core/ms-action-bar/MsActionBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ import { IonItemDivider } from '@ionic/vue';

<style scoped lang="scss">
.toolbar {
padding: 1em 2em;
margin: 0 1.25rem;
padding: 0.5em 1em;
background-color: var(--parsec-color-light-secondary-background);
border-top: 1px solid var(--parsec-color-light-secondary-light);
margin: 0;
border: 1px solid var(--parsec-color-light-secondary-disabled);
border-radius: var(--parsec-radius-12);
width: -webkit-fill-available;
}
</style>
48 changes: 27 additions & 21 deletions client/src/components/core/ms-toggle/MsGridListToggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
@click="$emit('update:modelValue', modelValue === DisplayState.Grid ? DisplayState.List : DisplayState.Grid)"
>
<ion-icon :icon="grid" />
<span v-if="modelValue === DisplayState.Grid">
{{ $t('WorkspacesPage.viewDisplay.grid') }}
</span>
</ion-button>
<!-- list -->
<ion-button
Expand All @@ -24,9 +21,6 @@
@click="$emit('update:modelValue', modelValue === DisplayState.Grid ? DisplayState.List : DisplayState.Grid)"
>
<ion-icon :icon="list" />
<span v-if="modelValue === DisplayState.List">
{{ $t('WorkspacesPage.viewDisplay.list') }}
</span>
</ion-button>
</div>
</template>
Expand Down Expand Up @@ -54,33 +48,45 @@ defineExpose({
.ms-grid-list-toggle {
display: flex;
align-items: center;
background: var(--parsec-color-light-secondary-white);
padding: 0;
gap: 0.25rem;
}
.button-view {
color: var(--parsec-color-light-primary-700);
padding: 0.25rem;
border-radius: 4px;
color: var(--parsec-color-light-secondary-light);
margin: 0;
border-radius: var(--parsec-radius-8);
border: 1px solid var(--parsec-color-light-secondary-background);
height: auto;
span {
margin-left: 0.5rem;
}
&:not(.button-disabled) {
cursor: pointer;
--background-hover: none;
&:hover {
color: var(--parsec-color-light-primary-700);
opacity: 0.5;
}
}
&::part(native) {
padding-inline-start: 0px;
padding-inline-end: 0px;
padding-top: 0px;
padding-bottom: 0px;
}
ion-icon {
font-size: 1.25rem;
padding: 0.25rem;
}
}
.button-disabled {
background: var(--parsec-color-light-secondary-inversed-contrast);
border: 1px solid var(--parsec-color-light-primary-700);
background: var(--parsec-color-light-secondary-premiere);
color: var(--parsec-color-light-primary-700);
opacity: 1;
}
ion-button::part(native) {
padding-inline-start: 0px;
padding-inline-end: 0px;
padding-top: 0px;
padding-bottom: 0px;
}
</style>
2 changes: 2 additions & 0 deletions client/src/theme/components/contextual-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
.right-side {
margin-left: auto;
display: flex;
flex-shrink: 0;
}

& > div:not(.right-side) {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
}
5 changes: 1 addition & 4 deletions client/src/theme/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ http://ionicframework.com/docs/theming/ */
* {
--inner-border-width: 0px;
--box-shadow: var(--parsec-shadow-light);
--min-height: 0;

&:focus-visible {
outline: none;
Expand Down Expand Up @@ -122,8 +123,4 @@ a {
background: var(--parsec-color-light-secondary-light);
border-radius: var(--parsec-radius-8);
}

.item-selected {
font-weight: 600;
}
}
1 change: 1 addition & 0 deletions client/src/theme/variables/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
--parsec-color-light-secondary-premiere: hsla(240, 20%, 96%, 1);
--parsec-color-light-secondary-background: hsla(240, 20%, 98%, 1);
--parsec-color-light-secondary-inversed-contrast: hsla(0, 0%, 99%, 1);
--parsec-color-light-secondary-white: hsla(0, 0%, 99%, 1);

/* ------ alert light------ */
--parsec-color-light-info-100: hsla(212, 92%, 95%, 1);
Expand Down
4 changes: 2 additions & 2 deletions client/src/views/header/HeaderPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ function getTitleForRoute(): string {

<style scoped lang="scss">
.topbar {
--background: var(--parsec-color-light-secondary-background);
--background: var(--parsec-color-light-secondary-white);
display: flex;
padding: 2em;
padding: 1.5rem 2em 1rem;
}
.topbar-right {
Expand Down
2 changes: 1 addition & 1 deletion client/src/views/header/ProfileHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async function openPopover(event: Event): Promise<void> {
height: 0.625rem;
width: 0.625rem;
border-radius: 50%;
border: var(--parsec-color-light-secondary-background) solid 0.25rem;
border: var(--parsec-color-light-secondary-white) solid 0.25rem;
background-color: var(--parsec-color-light-success-500);
}
}
Expand Down

0 comments on commit d1912e6

Please sign in to comment.