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

185 lines
3.1 KiB
SCSS
Raw Normal View History

2017-12-11 17:36:46 +01:00
@import '_variables';
@import '_mixins';
@import './_bootstrap-variables';
@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;
}
2021-04-14 16:39:37 +02:00
input[type=text],
input[type=email] {
2017-12-05 16:48:26 +01:00
@include peertube-input-text(340px);
}
2018-01-30 13:27:07 +01:00
.modal-body {
text-align: left;
.forgot-password-instructions {
margin-bottom: 20px;
}
}
@media screen and (max-width: #{map-get($container-max-widths, sm)}) {
.modal-body {
#forgot-password-email {
width: 100%;
}
}
2021-04-15 13:43:50 +02:00
.modal-footer .grey-button {
display: none;
}
}
2021-04-28 16:41:07 +02:00
.create-an-account,
.forgot-password-button {
color: pvar(--mainForegroundColor);
cursor: pointer;
transition: opacity cubic-bezier(0.39, 0.575, 0.565, 1);
2020-04-29 10:42:35 +02:00
&:hover {
text-decoration: none !important;
opacity: .7 !important;
}
2018-03-28 18:22:59 +02:00
}
2020-04-29 10:42:35 +02:00
.wrapper {
2020-04-29 10:42:35 +02:00
display: flex;
justify-content: space-around;
2020-04-29 10:42:35 +02:00
flex-wrap: wrap;
2021-04-28 16:41:07 +02:00
> div {
flex: 1 1;
2020-04-29 10:42:35 +02:00
}
.login-form-and-externals {
display: flex;
flex-wrap: wrap;
font-size: 15px;
max-width: 450px;
margin-bottom: 40px;
margin-left: 10px;
margin-right: 10px;
2020-04-29 10:42:35 +02:00
form {
margin: 0;
2021-04-28 16:41:07 +02:00
&,
input {
width: 100%;
}
.additionnal-links {
display: block;
text-align: center;
margin-top: 20px;
margin-bottom: 20px;
.forgot-password-button,
.create-an-account {
padding: 4px;
display: inline-block;
color: var(--mainColor);
2021-04-28 16:41:07 +02:00
&:hover,
&:active {
color: var(--mainHoverColor);
}
}
}
2020-04-29 10:42:35 +02:00
}
.external-login-blocks {
min-width: 200px;
.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 {
2021-04-28 16:41:07 +02:00
background-color: rgba(209, 215, 224, 0.5);
}
2020-04-29 10:42:35 +02:00
}
}
.signup-link {
display: inline-block;
}
}
.instance-information {
max-width: 600px;
min-width: 350px;
margin-bottom: 40px;
margin-left: 10px;
margin-right: 10px;
}
.terms-anchor {
display: inline;
}
.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 {
width: 100%;
margin-left: 0;
margin-right: 0;
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
}
}