feat: restyle unauthenticated screens #1103

Merged
dpschen merged 29 commits from feature/login-pages into main 2021-12-12 16:40:14 +00:00
1 changed files with 10 additions and 2 deletions
Showing only changes of commit bc023d25ea - Show all commits

View File

@ -1,6 +1,8 @@
<template>
<div class="message" :class="variant">
<slot/>
<div class="message-wrapper">
<div class="message" :class="variant">
<slot/>
</div>
</div>
</template>
@ -14,6 +16,12 @@ defineProps({
</script>
<style lang="scss" scoped>
.message-wrapper {
border-radius: $radius;
background: var(--white);
overflow: hidden;
konrad marked this conversation as resolved
Review
  • I don't get the need for the new wrapper.

  • What's the overflow for?

- I don't get the need for the new wrapper. - What's the `overflow` for?
Review

That's because the message background is transparent. When I put the message on something with a background, it would shine through. The overlay puts a white background behind it so the message background color is always the same.

I just realized I don't need the overflow so I just removed it.

That's because the message background is transparent. When I put the message on something with a background, it would shine through. The overlay puts a white background behind it so the message background color is always the same. I just realized I don't need the overflow so I just removed it.
}
.message {
padding: .75rem 1rem;
border-radius: $radius;