PeerTube/client/src/app/+login/login.component.scss

178 lines
2.6 KiB
SCSS
Raw Normal View History

2021-05-27 18:25:00 +02:00
@use '_variables' as *;
@use '_mixins' as *;
2022-10-07 15:29:53 +02:00
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
2017-12-11 17:36:46 +01:00
2018-03-28 18:22:59 +02:00
label {
display: block;
2022-06-15 14:29:28 +02:00
font-size: 18px;
margin-bottom: 5px;
2018-03-28 18:22:59 +02:00
}
2021-04-14 16:39:37 +02:00
input[type=text],
input[type=email] {
2022-06-15 13:47:24 +02:00
@include peertube-input-text(100%);
2017-12-05 16:48:26 +01:00
}
2018-01-30 13:27:07 +01:00
.modal-body {
2021-06-07 17:38:31 +02:00
text-align: start;
.forgot-password-instructions {
margin-bottom: 20px;
}
}
2022-06-15 14:29:28 +02:00
@media screen and (max-width: $small-view) {
.modal-body {
#forgot-password-email {
width: 100%;
}
}
2021-04-15 13:43:50 +02:00
.modal-footer .grey-button {
display: none;
}
}
.wrapper {
2020-04-29 10:42:35 +02:00
display: flex;
2022-06-15 14:29:28 +02:00
justify-content: space-between;
2020-04-29 10:42:35 +02:00
flex-wrap: wrap;
2022-06-15 14:29:28 +02:00
margin: auto;
2020-04-29 10:42:35 +02:00
2021-04-28 16:41:07 +02:00
> div {
flex: 1 1;
2020-04-29 10:42:35 +02:00
}
2022-06-15 14:29:28 +02:00
form {
width: 100%;
}
}
2021-06-07 17:38:31 +02:00
2022-06-15 14:29:28 +02:00
.wrapper,
2022-06-16 16:10:12 +02:00
.alert {
2022-06-15 14:29:28 +02:00
max-width: 1200px;
}
2020-04-29 10:42:35 +02:00
2022-06-16 16:10:12 +02:00
.alert {
2022-06-15 14:29:28 +02:00
margin: 0 auto 30px;
}
2022-06-15 14:29:28 +02:00
.login-form-and-externals {
@include margin-left(10px);
@include margin-right(10px);
2022-06-15 14:29:28 +02:00
display: flex;
flex-wrap: wrap;
justify-content: center;
max-width: 450px;
margin-bottom: 40px;
2022-06-15 14:29:28 +02:00
form {
margin: 0;
2022-06-15 14:29:28 +02:00
input[type=submit] {
width: 100%;
}
2022-06-15 14:29:28 +02:00
.additional-links {
display: flex;
justify-content: center;
margin: 20px 0 30px;
.link-orange {
margin: 0 15px;
}
2020-04-29 10:42:35 +02:00
}
2022-06-15 14:29:28 +02:00
}
}
2020-04-29 10:42:35 +02:00
2022-06-15 14:29:28 +02:00
.external-login-blocks {
min-width: 200px;
text-align: center;
2022-06-15 14:29:28 +02:00
.block-title {
font-weight: $font-semibold;
}
2022-06-15 14:29:28 +02:00
.external-login-block {
@include disable-default-a-behaviour;
2022-06-15 14:29:28 +02:00
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);
}
}
2022-06-15 14:29:28 +02:00
}
2022-06-15 14:29:28 +02:00
.instance-information {
@include margin-left(10px);
@include margin-right(10px);
2021-06-07 17:38:31 +02:00
2022-06-15 14:29:28 +02:00
max-width: 600px;
min-width: 350px;
margin-bottom: 40px;
}
2022-06-15 14:29:28 +02:00
.terms-anchor {
display: inline;
}
2022-06-15 14:29:28 +02:00
.terms-link {
display: none;
}
2021-04-28 16:41:07 +02:00
@mixin column-reverse-display {
flex-direction: column-reverse;
.login-form-and-externals,
.instance-information {
2021-06-07 17:38:31 +02:00
@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 {
2021-04-28 16:41:07 +02:00
@include column-reverse-display();
}
}
@media screen and (max-width: breakpoint(md) + $menu-width) {
:host-context(.main-col:not(.expanded)) {
.wrapper {
2021-04-28 16:41:07 +02:00
@include column-reverse-display();
}
2020-04-29 10:42:35 +02:00
}
}