jws-frontend/src/css/app.scss

265 lines
4.8 KiB
SCSS
Raw Normal View History

2024-04-02 11:02:16 +07:00
@import 'open-props/postcss/style';
@import 'open-props/colors-hsl';
@import 'open-props/shadows';
@import 'open-props/zindex';
html {
2024-06-25 16:06:11 +07:00
--radius-2: 7px;
2024-04-02 11:02:16 +07:00
--brand-1: #035aa1;
--brand-2: #f50000;
2024-07-04 17:55:57 +07:00
--border-color: var(--gray-2);
2024-04-02 11:02:16 +07:00
--foreground: black;
2024-07-04 15:22:59 +07:00
--background: var(--gray-2);
2024-04-02 11:02:16 +07:00
--surface-0: var(--background);
--surface-1: white;
2024-04-18 16:42:37 +07:00
--surface-2: var(--gray-0);
--surface-3: var(--gray-1);
2024-04-11 14:17:17 +07:00
2024-11-21 11:57:02 +07:00
--surface-tab: var(--gray-1);
2024-06-07 12:19:38 +00:00
2024-09-09 10:07:59 +07:00
--text-mute: var(--stone-7-hsl);
2024-09-26 11:51:59 +07:00
--text-mute-2: var(--stone-9-hsl);
2024-04-11 14:17:17 +07:00
2024-04-04 17:47:05 +07:00
--info-fg: 0 0% 100%;
--info-bg: var(--blue-6-hsl);
2024-04-11 14:17:17 +07:00
--negative-fg: 0 0% 100%;
2024-04-11 14:38:37 +07:00
--negative-bg: var(--red-9-hsl);
2024-04-11 14:17:17 +07:00
2024-04-18 09:06:54 +07:00
--positive-fg: 0 0% 100%;
--positive-bg: var(--teal-7-hsl);
2024-10-16 11:14:13 +07:00
--warning-fg: 0 0% 100%;
2024-10-18 16:13:05 +07:00
--warning-bg: var(--yellow-7-hsl);
2024-10-16 11:14:13 +07:00
--danger-fg: 0 0% 100%;
--danger-bg: var(--orange-7-hsl);
2024-04-04 13:32:42 +07:00
--gender-male: var(--blue-5-hsl);
--gender-female: var(--pink-7-hsl);
2024-04-23 11:12:18 +00:00
--customer-corp: var(--purple-11-hsl);
--customer-pers: var(--teal-9-hsl);
2024-04-11 14:17:17 +07:00
2024-04-09 17:22:00 +07:00
--shadow-color: 220 3% 15%;
--shadow-strength: 5%;
2024-04-11 22:20:04 +07:00
--inner-shadow-highlight: inset 0 -0.5px 0 0 #fff,
inset 0 0.5px 0 0 rgba(0, 0, 0, 0.067);
2024-04-04 13:32:42 +07:00
2024-04-02 11:02:16 +07:00
color: var(--foreground);
background-color: var(--background);
}
:where(.dark, .body--dark) {
2024-07-04 07:43:50 +00:00
--brand-1: #035aa1;
2024-04-02 11:02:16 +07:00
--brand-2: #f50000;
2024-12-27 10:04:43 +07:00
--border-color: var(--gray-8);
2024-04-02 11:02:16 +07:00
--foreground: white;
2024-07-04 15:22:59 +07:00
--background: var(--gray-11);
2024-04-02 11:02:16 +07:00
--surface-0: var(--background);
2024-07-04 14:52:12 +07:00
--surface-1: var(--gray-10);
--surface-2: var(--gray-9);
2024-07-04 14:49:05 +07:00
--surface-3: var(--gray-11);
2024-04-11 14:17:17 +07:00
2024-06-10 02:25:51 +00:00
--surface-tab: var(--gray-9);
2024-06-07 12:19:38 +00:00
2024-04-23 11:12:18 +00:00
--customer-corp: var(--purple-9-hsl);
2024-04-04 15:00:33 +07:00
--text-mute: var(--stone-8-hsl);
2024-04-23 11:12:18 +00:00
--text-mute-2: var(--foreground);
2024-04-11 14:17:17 +07:00
2024-04-09 17:22:00 +07:00
--shadow-color: 220 0% 100%;
--shadow-strength: 25%;
2024-04-11 22:20:04 +07:00
--inner-shadow-highlight: inset 0 -0.5px 0 0 hsla(0, 0%, 100%, 0.067),
inset 0 0.5px 0 0 rgba(0, 0, 0, 0.467);
2024-04-04 15:00:33 +07:00
}
::-webkit-scrollbar {
width: 0.5rem;
height: 0.5rem;
}
::-webkit-scrollbar-thumb {
border: 0.15rem solid rgba(0, 0, 0, 0);
background-color: hsla(0, 0%, 50%, 0.75);
background-clip: padding-box;
border-radius: 0.5rem;
2024-04-02 11:02:16 +07:00
}
2024-04-10 20:57:51 +07:00
*,
::before,
::after {
transition: 100ms background ease-in-out;
}
2024-04-02 11:02:16 +07:00
.bordered {
border: 1px solid var(--border-color);
}
2024-04-09 17:00:12 +07:00
.bordered-t {
border-top: 1px solid var(--border-color);
}
.bordered-b {
border-bottom: 1px solid var(--border-color);
}
.bordered-l {
border-left: 1px solid var(--border-color);
}
.bordered-r {
border-right: 1px solid var(--border-color);
}
2024-04-02 11:02:16 +07:00
.rounded {
2024-04-10 18:08:40 +07:00
border-radius: var(--radius-2);
2024-04-02 11:02:16 +07:00
}
2024-04-09 17:00:12 +07:00
.surface-0 {
background-color: var(--surface-0) !important;
}
2024-04-02 11:02:16 +07:00
.surface-1 {
background-color: var(--surface-1) !important;
}
.surface-2 {
background-color: var(--surface-2) !important;
}
.surface-3 {
background-color: var(--surface-3) !important;
}
2024-04-11 14:17:17 +07:00
2024-06-07 12:19:38 +00:00
.surface-tab {
background-color: var(--surface-tab) !important;
}
2024-04-11 14:56:23 +07:00
.app-text-muted {
2024-04-11 22:20:04 +07:00
color: hsl(var(--text-mute));
2024-04-11 14:56:23 +07:00
}
2024-04-23 11:12:18 +00:00
.app-text-muted-2 {
color: hsl(var(--text-mute-2));
}
2024-04-11 14:17:17 +07:00
.app-text-info {
color: hsl(var(--info-bg));
}
.app-bg-info {
color: hsl(var(--info-fg));
background-color: hsl(var(--info-bg));
}
2024-04-11 14:38:37 +07:00
.app-text-negative {
color: hsl(var(--negative-bg));
2024-04-11 14:17:17 +07:00
}
2024-04-11 14:38:37 +07:00
.app-bg-negative {
2024-04-11 14:17:17 +07:00
color: hsl(var(--negative-fg));
background-color: hsl(var(--negative-bg));
}
2024-04-18 09:06:54 +07:00
.app-text-positive {
color: hsl(var(--positive-bg)) !important;
}
.app-bg-positive {
color: hsl(var(--positive-fg));
background-color: hsl(var(--positive-bg));
}
2024-04-22 14:05:46 +07:00
2024-10-16 11:14:13 +07:00
.app-text-warning {
color: hsl(var(--warning-bg));
}
.app-bg-warning {
color: hsl(var(--warning-fg));
background-color: hsl(var(--warning-bg));
}
.app-text-danger {
color: hsl(var(--danger-bg));
}
.app-bg-danger {
color: hsl(var(--danger-fg));
background-color: hsl(var(--danger-bg));
}
2024-04-22 14:05:46 +07:00
.app-text-male {
color: hsl(var(--gender-male));
}
.app-bg-male {
color: hsl(var(--positive-fg));
background-color: hsl(var(--gender-male)) !important;
}
.app-text-female {
color: hsl(var(--gender-female));
}
.app-bg-female {
color: hsl(var(--positive-fg));
background-color: hsl(var(--gender-female)) !important;
}
2024-04-23 11:12:18 +00:00
.app-text-corp {
color: hsl(var(--customer-corp));
}
.app-bg-corp {
color: hsl(var(--customer-corp));
background-color: hsla(var(--customer-corp) / 0.2) !important;
}
.app-text-pers {
color: hsl(var(--customer-pers));
}
.app-bg-pers {
color: hsl(var(--customer-pers));
background-color: hsla(var(--customer-pers) / 0.2) !important;
}
2024-10-16 09:25:45 +07:00
2024-10-30 16:04:57 +07:00
.app-bg-brand-1 {
color: white;
background-color: var(--brand-1);
}
2024-10-16 09:48:39 +07:00
@page {
size: a4 portrait;
2024-10-16 18:03:27 +07:00
margin-top: 0.5in;
margin-left: 0.5in;
margin-right: 0.5in;
margin-bottom: 0.5in;
2024-10-16 09:48:39 +07:00
}
2024-10-16 09:25:45 +07:00
@media print {
html {
background-color: white;
}
2024-10-16 09:25:45 +07:00
.no-print {
display: none;
}
}
feat: menu request list (#75) * feat: i18n * feat: request list * refactor: hide stat transition on app.scss * feat: request list i18n * feat: request list => constants and main page * feat: add store * feat: add fetch data * feat: add utilities fn * feat: add store function / types * refactor: request list type * refactor: request list constants * refactor: quotation card => add customData and badge color props * feat: avatar group components * feat: request list group * refactor: request list => remove tab, add table data * feat: send search query * feat: add parameter * refactor: remove unused function * fix: rename component lits to list * feat: show stats from api * chore: cleanup * refactor: make it type safe * refactor: accept rotate flow id as parameter * feat: use page size component * feat: add component, data display & expansion product * feat: i18n * refactor: constants and request list table * refactor: type code, createdAt, updatedAt * refactor: utils function changThemeMode * feat: request list => view page * refactor: use type instead of infer from value * fix: function getEmployeeName att type * refactor: fetch work list * refactor: loop work list * feat: add i18n duty * feat: add form issue component * feat: add form issue section * fix: store error * refactor: edit by value * refactor: accept basic info from outside instead * feat: add status filter support on fetch * refactor: remove delete button * refactor: wording * feat/fix: request list i18n & constant * feat: document type * feat/refactor: request list => document expansion * refactor: doc expansion use FormGroupHead * refactor: fetch data based on id from route param * refactor: text area disable * feat: properties expansion display (mocking) * refactor: add document at product relation * refactor: edit get value product * feat: get workflow step to show on top * refactor: add type * refactor: add get attachment * refactor: add view attachment * refactor: edit file name * refactor: define props get hide icon * refactor: edit align row * refactor: by value table document * refactor: by value row table * feat: add independent ocr dialog * chore: clean up * refactor: accept more props and small adjustment * fix: error withDefault call * feat: accept default metadata when open * fix: typo * feat: add override hook when finish ocr * feat: reset state on open * feat: detect reader result is actually string * fix: variable name conflict * feat: properties to input component * feat: properties input in properties expansion * feat: properties expansion data (temporary) * refactor: add i18n status work * refactor: edit type work status and add step status * refactor: add edit status work * refactor: edit step work * refactor: properties data type * refactor: filter selected product & specific properties * feat: add emit event * refactor: change variable name for better understanding * refactor: hide step that no properties * refactor: work status type to validate * feat: work status color * refactor: key for filename * refactor: close expansion when change step * refactor: responsive meta data * refactor: product expansion responsive * fix: dark mode step text color * fix: document expansion table no data label * refactor: main page body bordered and overflow hidden * refactor: use utils function instead * refactor: add process * refactor: by value name * refactor: add upload file * refactor: upload file * refactor: by value * fix: option worker type * refactor: fetchRequestAttachment after edit * fix: metadata display * refactor: add class full-height * refactor: edit type * refactor: fetch file * refactor: by value visa * refactor: request list attributes type * fix: properties to input props (placeholder, readonly, disable) * feat: request list properties function * fix: error when no workflow * docs: update comment to fix indent * refactor: step type (attributes) * refactor: add attributes payload on editStatusRequestWork function * feat/refactor: functional form expansion/filter worklist * refactor: set attributes properties after submit * refactor: add request work ready status * feat: request list => form employee component * feat/refactor: form expansion select user/layout * fix: properties readonly --------- Co-authored-by: puriphatt <puriphat@frappet.com> Co-authored-by: Thanaphon Frappet <thanaphon@frappet.com>
2024-11-22 18:02:03 +07:00
.slide-enter-active {
transition: all 0.1s ease-out;
}
.slide-leave-active {
transition: all 0.1s cubic-bezier(1, 0.5, 0.8, 1);
}
.slide-enter-from,
.slide-leave-to {
transform: translateY(-20px);
opacity: 0;
}