diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index 440793779e..cc4429d4f3 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -79,6 +79,10 @@ table { // } /* Common */ +* { + --modal-padding: 1.5rem; +} + .flex { display: flex; } .flex-nowrap { display: flex; @@ -122,6 +126,35 @@ table { flex-direction: column; align-items: stretch; } + +.abs-lt-content { + position: absolute; + top: var(--modal-padding); + left: var(--modal-padding); +} +.abs-rt-content { + position: absolute; + top: var(--modal-padding); + right: var(--modal-padding); +} +.abs-lb-content { + position: absolute; + bottom: var(--modal-padding); + left: var(--modal-padding); +} +.abs-rb-content { + position: absolute; + bottom: var(--modal-padding); + right: var(--modal-padding); +} +.abs-full-content { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; +} + .h-full { height: 100%; } .square-36 { width: 2.25rem; height: 2.25rem; } diff --git a/packages/ui/src/components/Popup.svelte b/packages/ui/src/components/Popup.svelte index 295ad150c4..f5aebcb0e6 100644 --- a/packages/ui/src/components/Popup.svelte +++ b/packages/ui/src/components/Popup.svelte @@ -81,7 +81,7 @@ position: fixed; background-color: transparent; filter: drop-shadow(0 1.5rem 4rem rgba(0, 0, 0, .35)); - z-index: 1001; + z-index: 501; } .modal-overlay { position: fixed; @@ -90,6 +90,6 @@ width: 100%; height: 100%; background: transparent; - z-index: 1000; + z-index: 500; } \ No newline at end of file diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts index d38dee6c94..6667ff6c5d 100644 --- a/packages/ui/src/index.ts +++ b/packages/ui/src/index.ts @@ -53,6 +53,7 @@ export { default as Popup } from './components/Popup.svelte' export { default as CircleButton } from './components/CircleButton.svelte' export { default as IconAdd } from './components/icons/Add.svelte' +export { default as IconClose } from './components/icons/Close.svelte' export { default as IconSearch } from './components/icons/Search.svelte' export { default as IconToDo } from './components/icons/ToDo.svelte' export { default as IconComments } from './components/icons/Comments.svelte' diff --git a/plugins/recruit-resources/img/avatar.png b/plugins/recruit-resources/img/avatar.png new file mode 100755 index 0000000000..a9055f8ae7 Binary files /dev/null and b/plugins/recruit-resources/img/avatar.png differ diff --git a/plugins/recruit-resources/src/components/AvatarEditor.svelte b/plugins/recruit-resources/src/components/AvatarEditor.svelte new file mode 100644 index 0000000000..7fedf95c95 --- /dev/null +++ b/plugins/recruit-resources/src/components/AvatarEditor.svelte @@ -0,0 +1,112 @@ + + + + +