diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index 1c1a90fee8..b8b7401958 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -428,7 +428,7 @@ a.no-line { .fs-title { font-weight: 500; font-size: 1rem; - color: var(--theme-caption-color); + color: var(--caption-color); user-select: none; } .trans-title { diff --git a/packages/theme/styles/global.scss b/packages/theme/styles/global.scss index 55f06a7be4..37e345e846 100644 --- a/packages/theme/styles/global.scss +++ b/packages/theme/styles/global.scss @@ -63,6 +63,7 @@ box-sizing: border-box; scrollbar-color: var(--theme-menu-color) var(--theme-bg-color); scrollbar-width: thin; + --font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto; } ::-webkit-scrollbar { @@ -99,7 +100,7 @@ body { -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; - font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto; + font-family: var(--font-family); font-weight: 400; font-size: .875rem; color: var(--content-color); diff --git a/packages/ui/lang/en.json b/packages/ui/lang/en.json index 2b3a10cc1e..5f61218aff 100644 --- a/packages/ui/lang/en.json +++ b/packages/ui/lang/en.json @@ -19,6 +19,11 @@ "StartDate": "Start date", "TargetDate": "Target date", "Overdue": "Overdue", + "DueDate": "Due date", + "AddDueDate": "Add due date", + "EditDueDate": "Edit due date", + "SaveDueDate": "Save due date", + "IssueNeedsToBeCompletedByThisDate": "Issue needs to be completed by this date", "English": "English", "Russian": "Russian", "MinutesBefore": "{minutes, plural, =1 {a minute before} other {# minutes before}}", diff --git a/packages/ui/lang/ru.json b/packages/ui/lang/ru.json index 2d87120778..8515e94f5d 100644 --- a/packages/ui/lang/ru.json +++ b/packages/ui/lang/ru.json @@ -19,6 +19,11 @@ "StartDate": "Дата начала", "TargetDate": "Дата окончания", "Overdue": "Просрочено", + "DueDate": "Срок", + "AddDueDate": "Установить дату", + "EditDueDate": "Изменить дату", + "SaveDueDate": "Сохранить дату", + "IssueNeedsToBeCompletedByThisDate": "Задача должна быть завершена к этой дате", "English": "Английский", "Russian": "Русский", "MinutesBefore": "{minutes, plural, =1 {за минуту} other {за # минут}}", diff --git a/packages/ui/src/components/ActionIcon.svelte b/packages/ui/src/components/ActionIcon.svelte index 373d8262f3..caa25bebbf 100644 --- a/packages/ui/src/components/ActionIcon.svelte +++ b/packages/ui/src/components/ActionIcon.svelte @@ -44,10 +44,11 @@ cursor: pointer; .icon { + color: var(--dark-color); &.invisible { opacity: 0; } } &:hover .icon { - color: var(--theme-caption-color); + color: var(--accent-color); opacity: 1; } &:focus { diff --git a/packages/ui/src/components/Button.svelte b/packages/ui/src/components/Button.svelte index d61115a9a6..ca497bbaf4 100644 --- a/packages/ui/src/components/Button.svelte +++ b/packages/ui/src/components/Button.svelte @@ -22,7 +22,7 @@ export let label: IntlString | undefined = undefined export let kind: 'primary' | 'secondary' | 'no-border' | 'transparent' | 'dangerous' = 'secondary' - export let size: 'small' | 'medium' | 'large' | 'large' = 'medium' + export let size: 'small' | 'medium' | 'large' | 'x-large' = 'medium' export let icon: Asset | AnySvelteComponent | undefined = undefined export let justify: 'left' | 'center' = 'center' export let disabled: boolean = false @@ -148,6 +148,7 @@ .btn-icon { color: var(--caption-color); } } &:disabled { + color: var(--content-color); background-color: #30323655; cursor: default; &:hover { diff --git a/packages/ui/src/components/PanelInstance.svelte b/packages/ui/src/components/PanelInstance.svelte index a7b32609ac..61644a557f 100644 --- a/packages/ui/src/components/PanelInstance.svelte +++ b/packages/ui/src/components/PanelInstance.svelte @@ -83,10 +83,11 @@ modalHTML.style.top = `calc(${rect.top}px + 0.5rem)` modalHTML.style.bottom = '0.75rem' modalHTML.style.right = '0.75rem' - } else if (props.element === 'float') { - modalHTML.style.top = '4rem' - modalHTML.style.bottom = '4rem' - modalHTML.style.right = '4rem' + } else if (props.element === 'top') { + modalHTML.style.top = '15vh' + modalHTML.style.left = '50%' + modalHTML.style.transform = 'translateX(-50%)' + show = true } else if (props.element === 'account') { modalHTML.style.bottom = '2.75rem' modalHTML.style.left = '5rem' diff --git a/packages/ui/src/components/PopupInstance.svelte b/packages/ui/src/components/PopupInstance.svelte index 3d1b0af161..d0ac94c715 100644 --- a/packages/ui/src/components/PopupInstance.svelte +++ b/packages/ui/src/components/PopupInstance.svelte @@ -78,10 +78,11 @@ modalHTML.style.top = '0' modalHTML.style.bottom = '0' modalHTML.style.right = '0' - } else if (element === 'float') { - modalHTML.style.top = '4rem' - modalHTML.style.bottom = '4rem' - modalHTML.style.right = '4rem' + } else if (element === 'top') { + modalHTML.style.top = '15vh' + modalHTML.style.left = '50%' + modalHTML.style.transform = 'translateX(-50%)' + show = true } else if (element === 'account') { modalHTML.style.bottom = '2.75rem' modalHTML.style.left = '5rem' @@ -92,7 +93,7 @@ modalHTML.style.right = '0' } } else { - modalHTML.style.top = '25%' + modalHTML.style.top = '50%' modalHTML.style.left = '50%' modalHTML.style.transform = 'translate(-50%, -50%)' show = true diff --git a/packages/ui/src/components/calendar/DatePicker.svelte b/packages/ui/src/components/calendar/DatePicker.svelte index 0ed142db07..08eaccd7f2 100644 --- a/packages/ui/src/components/calendar/DatePicker.svelte +++ b/packages/ui/src/components/calendar/DatePicker.svelte @@ -15,13 +15,15 @@ -
-