Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
fix: close #477
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Aug 2, 2022
1 parent faf3e97 commit 815e04f
Showing 1 changed file with 61 additions and 43 deletions.
104 changes: 61 additions & 43 deletions src/client/app/auth/views/index.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<div class="index">
<div class="index-body">
<main v-if="$store.getters.isSignedIn">
<p class="fetching" v-if="fetching">{{ $t('loading') }}<mk-ellipsis/></p>
<x-form
Expand Down Expand Up @@ -27,6 +28,8 @@
<h1>{{ $t('sign-in') }}</h1>
<mk-signin/>
</main>
</div>

<footer><img src="/assets/auth/icon.svg" alt="Misskey"/></footer>
</div>
</template>
Expand Down Expand Up @@ -89,65 +92,80 @@ export default Vue.extend({
});
</script>

<style lang="css">

This comment has been minimized.

Copy link
@yupix

yupix Aug 2, 2022

Author

これがscopedじゃないのは、別の場所でpaddingされてて、デザイン的に微妙だからです

body {
padding: 0px !important;
}
</style>

<style lang="stylus" scoped>
.index
> main
width 100%
max-width 500px
margin 0 auto
text-align center
background #fff
box-shadow 0 4px 16px rgba(#000, 0.2)
> .fetching
margin 0
padding 32px
color #555
> div:not(.form)
padding 64px
> h1
margin 0 0 8px 0
padding 0
font-size 20px
font-weight normal
> p
background var(--bg)
color var(--text)
> .index-body
display flex
justify-content center
align-items center
height 100vh
> main
width 100%
max-width 500px
margin 0 auto
text-align center
background var(--face)
box-shadow 0 4px 16px rgba(#000, 0.2)
> .fetching
margin 0
padding 32px
color #555
&.denied > h1
color #e65050
> div:not(.form)
padding 64px
&.accepted > h1
color #54af7c
> h1
margin 0 0 8px 0
padding 0
font-size 20px
font-weight normal
&.signin
padding 32px 32px 16px 32px
> p
margin 0
color #555
> h1
margin 0 0 22px 0
padding 0
font-size 20px
font-weight normal
color #555
&.denied > h1
color #e65050
&.accepted > h1
color #54af7c
@media (max-width 600px)
max-width none
box-shadow none
&.signin
padding 32px 32px 16px 32px
@media (max-width 500px)
> div
> h1
font-size 16px
margin 0 0 22px 0
padding 0
font-size 20px
font-weight normal
color var(--text)
@media (max-width 600px)
max-width none
box-shadow none
@media (max-width 500px)
> div
> h1
font-size 16px
> footer
> img
display block
width 32px
height 32px
margin 16px auto
margin auto auto
</style>

0 comments on commit 815e04f

Please sign in to comment.