X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Blogin%2Flogin.component.scss;h=d31d428f70f0ef0f6cee85c62d06dc510b945e6f;hb=a2fb5fb8b1007e3ce82e707917f5d9a37374e99b;hp=9ba09e9e446f4ba0da0d136ae7786b72d201cd74;hpb=ab0beac72fa26ec040275b668cd0dc8b3b8744f1;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+login/login.component.scss b/client/src/app/+login/login.component.scss index 9ba09e9e4..d31d428f7 100644 --- a/client/src/app/+login/login.component.scss +++ b/client/src/app/+login/login.component.scss @@ -1,95 +1,177 @@ -@import '_variables'; -@import '_mixins'; +@use '_variables' as *; +@use '_mixins' as *; + +@import '~bootstrap/scss/functions'; +@import '~bootstrap/scss/variables'; label { display: block; + font-size: 18px; + margin-bottom: 5px; } -input:not([type=submit]) { - @include peertube-input-text(340px); - display: inline-block; - margin-right: 5px; - -} - -input[type=submit] { - @include peertube-button; - @include orange-button; +input[type=text], +input[type=email] { + @include peertube-input-text(100%); } .modal-body { - text-align: left; + text-align: start; .forgot-password-instructions { margin-bottom: 20px; } } -.modal-footer.inputs { - .action-button.action-button-cancel { - width: auto !important; - display: inline-block; - } -} - -@media screen and (max-width: #{map-get($container-max-widths, sm)}) { +@media screen and (max-width: $small-view) { .modal-body { #forgot-password-email { width: 100%; } } - .modal-footer.inputs { - .action-button.action-button-cancel { - display: none; - } + .modal-footer .grey-button { + display: none; } } -.create-an-account, .forgot-password-button { - color: pvar(--mainForegroundColor); - cursor: pointer; - transition: opacity cubic-bezier(0.39, 0.575, 0.565, 1); +.wrapper { + display: flex; + justify-content: space-between; + flex-wrap: wrap; + margin: auto; - &:hover { - text-decoration: none !important; - opacity: .7 !important; + > div { + flex: 1 1; + } + + form { + width: 100%; } } +.wrapper, +.alert { + max-width: 1200px; +} + +.alert { + margin: 0 auto 30px; +} + .login-form-and-externals { + @include margin-left(10px); + @include margin-right(10px); + display: flex; flex-wrap: wrap; - font-size: 15px; + justify-content: center; + max-width: 450px; + margin-bottom: 40px; form { - margin: 0 50px 20px 0; - } - - .external-login-blocks { - min-width: 200px; + margin: 0; - .block-title { - font-weight: $font-semibold; + input[type=submit] { + width: 100%; } - .external-login-block { - @include disable-default-a-behaviour; - - cursor: pointer; - border: 1px solid #d1d7e0; - border-radius: 5px; - color: pvar(--mainForegroundColor); - margin: 10px 10px 0 0; + .additional-links { display: flex; justify-content: center; - align-items: center; - min-height: 35px; - min-width: 100px; + margin: 20px 0 30px; - &:hover { - background-color: rgba(209, 215, 224, 0.5) + .link-orange { + margin: 0 15px; } } } } + +.external-login-blocks { + min-width: 200px; + text-align: center; + + .block-title { + font-weight: $font-semibold; + } + + .external-login-block { + @include disable-default-a-behaviour; + + cursor: pointer; + border: 1px solid #d1d7e0; + border-radius: 5px; + color: pvar(--mainForegroundColor); + margin: 10px 10px 0 0; + display: flex; + justify-content: center; + align-items: center; + min-height: 35px; + min-width: 100px; + + &:hover { + background-color: rgba(209, 215, 224, 0.5); + } + } +} + +.instance-information { + @include margin-left(10px); + @include margin-right(10px); + + max-width: 600px; + min-width: 350px; + margin-bottom: 40px; +} + +.terms-anchor { + display: inline; +} + +.terms-link { + display: none; +} + +@mixin column-reverse-display { + flex-direction: column-reverse; + + .login-form-and-externals, + .instance-information { + @include margin-left(0); + @include margin-right(0); + + width: 100%; + max-width: 450px; + min-width: unset; + align-self: center; + } + + .instance-information { + ::ng-deep .accordion { + display: none; + } + } + + .terms-anchor { + display: none; + } + + .terms-link { + display: inline; + } +} + +@media screen and (max-width: breakpoint(md)) { + .wrapper { + @include column-reverse-display(); + } +} + +@media screen and (max-width: breakpoint(md) + $menu-width) { + :host-context(.main-col:not(.expanded)) { + .wrapper { + @include column-reverse-display(); + } + } +}