web/satellite: update styling of session timeout selection modal

The styling of the session timeout selection modal has been altered to
more closely align with our designs.

Change-Id: Icaf2d16170908af4962075732c6df0f08d7dba2d
This commit is contained in:
Jeremy Wharton 2023-06-29 03:55:40 -05:00 committed by Storj Robot
parent 96d3c41c14
commit f1fab9edfb
2 changed files with 56 additions and 25 deletions

View File

@ -75,10 +75,29 @@ onMounted((): void => {
&__close { &__close {
position: absolute; position: absolute;
right: 24px; right: 3px;
top: 24px; top: 3px;
padding: 10px;
border-radius: 16px;
cursor: pointer; cursor: pointer;
opacity: 0.55;
&:hover {
background-color: var(--c-grey-2);
}
&:active {
background-color: var(--c-grey-4);
}
svg {
display: block;
width: 12px;
height: 12px;
:deep(path) {
fill: var(--c-black);
}
}
} }
} }
} }

View File

@ -18,8 +18,10 @@
<div class="timeout-modal__divider" /> <div class="timeout-modal__divider" />
<p class="timeout-modal__label">Session timeout duration</p> <div>
<timeout-selector :selected="sessionDuration" @select="durationChange" /> <p class="timeout-modal__label">Session timeout duration</p>
<timeout-selector :selected="sessionDuration" @select="durationChange" />
</div>
<div class="timeout-modal__divider" /> <div class="timeout-modal__divider" />
@ -27,21 +29,19 @@
<VButton <VButton
label="Cancel" label="Cancel"
width="100%" width="100%"
height="40px"
border-radius="10px" border-radius="10px"
font-size="13px" font-size="13px"
is-white is-white
class="timeout-modal__buttons__button" class="timeout-modal__buttons__button cancel"
:on-press="() => withLoading(onClose)" :on-press="() => withLoading(onClose)"
:is-disabled="isLoading" :is-disabled="isLoading"
/> />
<VButton <VButton
label="Save" label="Save"
width="100%" width="100%"
height="40px"
border-radius="10px" border-radius="10px"
font-size="13px" font-size="13px"
class="timeout-modal__buttons__button save" class="timeout-modal__buttons__button"
:on-press="() => withLoading(save)" :on-press="() => withLoading(save)"
:is-disabled="isLoading || !hasChanged" :is-disabled="isLoading || !hasChanged"
/> />
@ -133,51 +133,55 @@ function onClose(): void {
<style scoped lang="scss"> <style scoped lang="scss">
.timeout-modal { .timeout-modal {
width: calc(100vw - 48px);
max-width: 410px;
padding: 32px; padding: 32px;
display: flex;
flex-direction: column;
gap: 16px;
box-sizing: border-box; box-sizing: border-box;
font-family: 'font_regular', sans-serif; font-family: 'font_regular', sans-serif;
text-align: left; text-align: left;
@media screen and (width <= 400px) {
width: 100vw;
}
&__header { &__header {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 20px; gap: 20px;
margin: 20px 0;
@media screen and (width <= 500px) {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
&__icon { &__icon {
height: 40px; height: 40px;
width: 40px; width: 40px;
flex-shrink: 0;
} }
&__title { &__title {
font-family: 'font_bold', sans-serif; font-family: 'font_bold', sans-serif;
font-size: 28px; font-size: 24px;
line-height: 36px; line-height: 31px;
} }
} }
&__divider { &__divider {
margin: 20px 0; height: 1px;
border: 1px solid var(--c-grey-2); background-color: var(--c-grey-2);
} }
&__info { &__info {
font-family: 'font_regular', sans-serif; font-family: 'font_regular', sans-serif;
font-size: 16px; font-size: 14px;
line-height: 24px; line-height: 20px;
} }
&__label { &__label {
font-family: 'font_regular', sans-serif; margin-bottom: 4px;
font-family: 'font_medium', sans-serif;
font-size: 14px; font-size: 14px;
line-height: 24px; line-height: 20px;
margin-bottom: 10px; color: var(--c-blue-6);
} }
&__buttons { &__buttons {
@ -191,6 +195,14 @@ function onClose(): void {
&__button { &__button {
padding: 16px; padding: 16px;
box-sizing: border-box; box-sizing: border-box;
&.cancel {
box-shadow: 0 0 20px rgb(0 0 0 / 4%);
:deep(.label) {
color: var(--c-black) !important;
}
}
} }
} }
} }