diff --git a/@xen-orchestra/lite/src/components/AccountButton.vue b/@xen-orchestra/lite/src/components/AccountButton.vue index 09328ad1362..40af204bed2 100644 --- a/@xen-orchestra/lite/src/components/AccountButton.vue +++ b/@xen-orchestra/lite/src/components/AccountButton.vue @@ -1,5 +1,5 @@ @@ -24,7 +24,7 @@

{{ $t('xoa-deploy-successful') }}

- + {{ $t('access-xoa') }} @@ -40,7 +40,7 @@ {{ $t('keep-page-open') }}

- + {{ $t('cancel') }} @@ -92,8 +92,14 @@
- - + +
@@ -156,8 +162,9 @@
{{ $t('disabled') }} + + {{ $t('enabled') }}
@@ -189,10 +196,10 @@ - + {{ $t('cancel') }} - + {{ $t('deploy') }} @@ -503,6 +510,7 @@ async function cancel() { display: flex; flex-direction: row; margin: 1.67rem 0; + & > * { min-width: 20rem; } @@ -524,9 +532,11 @@ async function cancel() { text-align: center; padding: 5rem; margin: auto; + h2 { margin-bottom: 1rem; } + * { max-width: 100%; } @@ -535,6 +545,7 @@ async function cancel() { .not-available { font-size: 2rem; } + .status { color: var(--color-neutral-txt-primary); } @@ -546,6 +557,7 @@ async function cancel() { .danger { color: var(--color-danger-txt-base); } + .success, .danger { &.ui-icon { @@ -559,6 +571,7 @@ async function cancel() { text-align: left; gap: 0.5em; } + .warning { color: var(--color-warning-txt-base); } diff --git a/@xen-orchestra/web-core/lib/assets/css/_colors-legacy.pcss b/@xen-orchestra/web-core/lib/assets/css/_colors-legacy.pcss deleted file mode 100644 index 61d6aedd6d5..00000000000 --- a/@xen-orchestra/web-core/lib/assets/css/_colors-legacy.pcss +++ /dev/null @@ -1,125 +0,0 @@ -:root { - --color-logo: #282467; - - --color-grey-000: #000000; - --color-grey-100: #1a1b38; - --color-grey-200: #595a6f; - --color-grey-300: #9899a5; - --color-grey-400: #bfbfc6; - --color-grey-500: #e5e5e7; - --color-grey-600: #ffffff; - - --background-color-primary: #ffffff; - --background-color-secondary: #f6f6f7; - - --color-purple-base: #8f84ff; - --color-purple-d20: color(#8f84ff blend(black 20%)); - --color-purple-d40: color(#8f84ff blend(black 40%)); - --color-purple-d60: color(#8f84ff blend(black 60%)); - --color-purple-l20: color(#8f84ff blend(white 20%)); - --color-purple-l40: color(#8f84ff blend(white 40%)); - --color-purple-l60: color(#8f84ff blend(white 60%)); - --background-color-purple-10: color(white blend(#8f84ff 10%)); - --background-color-purple-20: color(white blend(#8f84ff 20%)); - --background-color-purple-30: color(white blend(#8f84ff 30%)); - --background-color-purple-60: color(white blend(#8f84ff 60%)); - - --color-green-base: #2ca878; - --color-green-d20: color(#2ca878 blend(black 20%)); - --color-green-d40: color(#2ca878 blend(black 40%)); - --color-green-d60: color(#2ca878 blend(black 60%)); - --color-green-l20: color(#2ca878 blend(white 20%)); - --color-green-l40: color(#2ca878 blend(white 40%)); - --color-green-l60: color(#2ca878 blend(white 60%)); - --background-color-green-10: color(white blend(#2ca878 10%)); - --background-color-green-20: color(white blend(#2ca878 20%)); - --background-color-green-30: color(white blend(#2ca878 30%)); - --background-color-green-60: color(white blend(#2ca878 60%)); - - --color-orange-base: #ef7f18; - --color-orange-d20: color(#ef7f18 blend(black 20%)); - --color-orange-d40: color(#ef7f18 blend(black 40%)); - --color-orange-d60: color(#ef7f18 blend(black 60%)); - --color-orange-l20: color(#ef7f18 blend(white 20%)); - --color-orange-l40: color(#ef7f18 blend(white 40%)); - --color-orange-l60: color(#ef7f18 blend(white 60%)); - --background-color-orange-10: color(white blend(#ef7f18 10%)); - --background-color-orange-20: color(white blend(#ef7f18 20%)); - --background-color-orange-30: color(white blend(#ef7f18 30%)); - --background-color-orange-60: color(white blend(#ef7f18 60%)); - - --color-red-base: #be1621; - --color-red-d20: color(#be1621 blend(black 20%)); - --color-red-d40: color(#be1621 blend(black 40%)); - --color-red-d60: color(#be1621 blend(black 60%)); - --color-red-l20: color(#be1621 blend(white 20%)); - --color-red-l40: color(#be1621 blend(white 40%)); - --color-red-l60: color(#be1621 blend(white 60%)); - --background-color-red-10: color(white blend(#be1621 10%)); - --background-color-red-20: color(white blend(#be1621 20%)); - --background-color-red-30: color(white blend(#be1621 30%)); - --background-color-red-60: color(white blend(#be1621 60%)); -} - -:root.dark { - --color-logo: #e5e5e7; - - --color-grey-000: #ffffff; - --color-grey-100: #e5e5e7; - --color-grey-200: #bfbfc6; - --color-grey-300: #9899a5; - --color-grey-400: #595a6f; - --color-grey-500: #3a3b54; - --color-grey-600: #000000; - - --background-color-primary: #14141e; - --background-color-secondary: #17182b; - - --color-purple-base: #8f84ff; - --color-purple-d20: color(#8f84ff blend(white 20%)); - --color-purple-d40: color(#8f84ff blend(white 40%)); - --color-purple-d60: color(#8f84ff blend(white 60%)); - --color-purple-l20: color(#8f84ff blend(black 20%)); - --color-purple-l40: color(#8f84ff blend(black 40%)); - --color-purple-l60: color(#8f84ff blend(black 60%)); - --background-color-purple-10: color(#17182b blend(#8f84ff 25%)); - --background-color-purple-20: color(#17182b blend(#8f84ff 35%)); - --background-color-purple-30: color(#17182b blend(#8f84ff 45%)); - --background-color-purple-60: color(#17182b blend(#8f84ff 85%)); - - --color-green-base: #2ca878; - --color-green-d20: color(#2ca878 blend(white 20%)); - --color-green-d40: color(#2ca878 blend(white 40%)); - --color-green-d60: color(#2ca878 blend(white 60%)); - --color-green-l20: color(#2ca878 blend(black 20%)); - --color-green-l40: color(#2ca878 blend(black 40%)); - --color-green-l60: color(#2ca878 blend(black 60%)); - --background-color-green-10: color(#17182b blend(#2ca878 25%)); - --background-color-green-20: color(#17182b blend(#2ca878 35%)); - --background-color-green-30: color(#17182b blend(#2ca878 45%)); - --background-color-green-60: color(#17182b blend(#2ca878 85%)); - - --color-orange-base: #ef7f18; - --color-orange-d20: color(#ef7f18 blend(white 20%)); - --color-orange-d40: color(#ef7f18 blend(white 40%)); - --color-orange-d60: color(#ef7f18 blend(white 60%)); - --color-orange-l20: color(#ef7f18 blend(black 20%)); - --color-orange-l40: color(#ef7f18 blend(black 40%)); - --color-orange-l60: color(#ef7f18 blend(black 60%)); - --background-color-orange-10: color(#17182b blend(#ef7f18 25%)); - --background-color-orange-20: color(#17182b blend(#ef7f18 35%)); - --background-color-orange-30: color(#17182b blend(#ef7f18 45%)); - --background-color-orange-60: color(#17182b blend(#ef7f18 85%)); - - --color-red-base: #be1621; - --color-red-d20: color(#be1621 blend(white 20%)); - --color-red-d40: color(#be1621 blend(white 40%)); - --color-red-d60: color(#be1621 blend(white 60%)); - --color-red-l20: color(#be1621 blend(black 20%)); - --color-red-l40: color(#be1621 blend(black 40%)); - --color-red-l60: color(#be1621 blend(black 60%)); - --background-color-red-10: color(#17182b blend(#be1621 25%)); - --background-color-red-20: color(#17182b blend(#be1621 35%)); - --background-color-red-30: color(#17182b blend(#be1621 45%)); - --background-color-red-60: color(#17182b blend(#be1621 85%)); -} diff --git a/@xen-orchestra/web-core/lib/assets/css/base.pcss b/@xen-orchestra/web-core/lib/assets/css/base.pcss index 0a1409b4da6..6168eb6955e 100644 --- a/@xen-orchestra/web-core/lib/assets/css/base.pcss +++ b/@xen-orchestra/web-core/lib/assets/css/base.pcss @@ -1,4 +1,3 @@ -@import '_colors-legacy.pcss'; @import '_colors.pcss'; @import '_reset.pcss'; @import '_fonts.pcss'; @@ -28,6 +27,7 @@ scrollbar-width: auto; /* Chrome/Webkit */ + ::-webkit-scrollbar { width: var(--scrollbar-width); } diff --git a/@xen-orchestra/web-core/lib/components/LegendTitle.vue b/@xen-orchestra/web-core/lib/components/LegendTitle.vue index b4cfbc0a2d6..f034b34eb17 100644 --- a/@xen-orchestra/web-core/lib/components/LegendTitle.vue +++ b/@xen-orchestra/web-core/lib/components/LegendTitle.vue @@ -2,7 +2,7 @@ diff --git a/@xen-orchestra/web-core/lib/components/PowerStateIcon.vue b/@xen-orchestra/web-core/lib/components/PowerStateIcon.vue index 86ef9147e8b..304b4f044a7 100644 --- a/@xen-orchestra/web-core/lib/components/PowerStateIcon.vue +++ b/@xen-orchestra/web-core/lib/components/PowerStateIcon.vue @@ -1,6 +1,6 @@ diff --git a/@xen-orchestra/web-core/lib/components/dropdown/DropdownItem.vue b/@xen-orchestra/web-core/lib/components/dropdown/DropdownItem.vue index 5b6880a6b78..d2c89f44388 100644 --- a/@xen-orchestra/web-core/lib/components/dropdown/DropdownItem.vue +++ b/@xen-orchestra/web-core/lib/components/dropdown/DropdownItem.vue @@ -1,14 +1,14 @@ @@ -24,7 +24,7 @@ import { computed, inject } from 'vue' defineProps<{ arrow?: boolean - color?: Color + color: Color disabled?: boolean icon?: IconDefinition info?: string @@ -40,7 +40,7 @@ const checkbox = inject( diff --git a/@xen-orchestra/web-core/lib/components/input/UiInput.vue b/@xen-orchestra/web-core/lib/components/input/UiInput.vue index f0aaf54e52c..8b12b64603e 100644 --- a/@xen-orchestra/web-core/lib/components/input/UiInput.vue +++ b/@xen-orchestra/web-core/lib/components/input/UiInput.vue @@ -1,9 +1,15 @@ @@ -36,23 +42,23 @@ const id = computed(() => uniqueId('input-')) } &:is(:hover, :focus-visible) { - --border-color: var(--color-normal-txt-hover); + --border-color: var(--color-normal-item-hover); --background-color: var(--color-neutral-background-primary); } &:focus { - --border-color: var(--color-normal-txt-base); + --border-color: var(--color-normal-item-base); --background-color: var(--color-neutral-background-primary); } &:active { - --border-color: var(--color-normal-txt-active); + --border-color: var(--color-normal-item-active); --background-color: var(--color-neutral-background-primary); } &:disabled { --border-color: var(--color-neutral-border); - --background-color: var(--color-neutral-background-secondary); + --background-color: var(--color-neutral-background-disabled); } } diff --git a/@xen-orchestra/web-core/lib/components/legend/LegendItem.vue b/@xen-orchestra/web-core/lib/components/legend/LegendItem.vue index 51b1f4c5c94..ce6bfef6d04 100644 --- a/@xen-orchestra/web-core/lib/components/legend/LegendItem.vue +++ b/@xen-orchestra/web-core/lib/components/legend/LegendItem.vue @@ -1,9 +1,9 @@ @@ -36,7 +36,7 @@ const valueLabel = computed(() => [props.value, props.unit].join(' ').trim()) /* COLOR VARIANTS */ .legend-item { &.primary { - --circle-color: var(--color-normal-txt-base); + --circle-color: var(--color-normal-item-base); } &.secondary { @@ -44,19 +44,19 @@ const valueLabel = computed(() => [props.value, props.unit].join(' ').trim()) } &.success { - --circle-color: var(--color-success-txt-base); + --circle-color: var(--color-success-item-base); } &.warning { - --circle-color: var(--color-warning-txt-base); + --circle-color: var(--color-warning-item-base); } &.danger { - --circle-color: var(--color-danger-txt-base); + --circle-color: var(--color-danger-item-base); } &.disabled { - --circle-color: var(--color-neutral-txt-secondary); + --circle-color: var(--color-neutral-background-disabled); } } diff --git a/@xen-orchestra/web-core/lib/components/menu/MenuItem.vue b/@xen-orchestra/web-core/lib/components/menu/MenuItem.vue index 03e2df5d508..a7dad342304 100644 --- a/@xen-orchestra/web-core/lib/components/menu/MenuItem.vue +++ b/@xen-orchestra/web-core/lib/components/menu/MenuItem.vue @@ -11,11 +11,11 @@ > - + diff --git a/@xen-orchestra/web-core/lib/components/menu/MenuList.vue b/@xen-orchestra/web-core/lib/components/menu/MenuList.vue index 7e90deb5ca5..e3e28ee3f87 100644 --- a/@xen-orchestra/web-core/lib/components/menu/MenuList.vue +++ b/@xen-orchestra/web-core/lib/components/menu/MenuList.vue @@ -2,7 +2,7 @@