]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+login/login.component.scss
Move to sass module
[github/Chocobozzz/PeerTube.git] / client / src / app / +login / login.component.scss
CommitLineData
8cbc40b2
C
1@use '_variables' as *;
2@use '_mixins' as *;
3
4@import '~bootstrap/scss/functions';
5@import '~bootstrap/scss/variables';
63c4db6d 6
2b084d70
C
7label {
8 display: block;
9}
10
266947e5
C
11input[type=text],
12input[type=email] {
d235f6b0 13 @include peertube-input-text(340px);
d235f6b0 14}
ecb4e35f 15
ab0beac7 16.modal-body {
27bc9586 17 text-align: start;
ab0beac7
K
18
19 .forgot-password-instructions {
20 margin-bottom: 20px;
21 }
22}
23
ab0beac7
K
24@media screen and (max-width: #{map-get($container-max-widths, sm)}) {
25 .modal-body {
26 #forgot-password-email {
27 width: 100%;
28 }
29 }
30
f1ac6348
C
31 .modal-footer .grey-button {
32 display: none;
ab0beac7
K
33 }
34}
35
931d3430
C
36.create-an-account,
37.forgot-password-button {
e66883b3 38 color: pvar(--mainForegroundColor);
696fa4c0 39 cursor: pointer;
000eb0e4 40 transition: opacity cubic-bezier(0.39, 0.575, 0.565, 1);
ebefc902 41
07872fdf 42 &:hover {
000eb0e4
RK
43 text-decoration: none !important;
44 opacity: .7 !important;
07872fdf 45 }
2b084d70 46}
ebefc902 47
40360c17 48.wrapper {
ebefc902 49 display: flex;
40360c17 50 justify-content: space-around;
ebefc902 51 flex-wrap: wrap;
ebefc902 52
931d3430 53 > div {
40360c17 54 flex: 1 1;
ebefc902
C
55 }
56
40360c17 57 .login-form-and-externals {
27bc9586
C
58 @include margin-left(10px);
59 @include margin-right(10px);
60
40360c17
K
61 display: flex;
62 flex-wrap: wrap;
63 font-size: 15px;
64 max-width: 450px;
65 margin-bottom: 40px;
ebefc902 66
40360c17
K
67 form {
68 margin: 0;
69
931d3430
C
70 &,
71 input {
40360c17
K
72 width: 100%;
73 }
74
75 .additionnal-links {
76 display: block;
77 text-align: center;
78 margin-top: 20px;
79 margin-bottom: 20px;
80
81 .forgot-password-button,
82 .create-an-account {
83 padding: 4px;
84 display: inline-block;
85
86 color: var(--mainColor);
87
931d3430
C
88 &:hover,
89 &:active {
40360c17
K
90 color: var(--mainHoverColor);
91 }
92 }
93 }
ebefc902
C
94 }
95
40360c17
K
96 .external-login-blocks {
97 min-width: 200px;
98
99 .block-title {
100 font-weight: $font-semibold;
101 }
102
103 .external-login-block {
104 @include disable-default-a-behaviour;
105
106 cursor: pointer;
107 border: 1px solid #d1d7e0;
108 border-radius: 5px;
109 color: pvar(--mainForegroundColor);
110 margin: 10px 10px 0 0;
111 display: flex;
112 justify-content: center;
113 align-items: center;
114 min-height: 35px;
115 min-width: 100px;
116
117 &:hover {
931d3430 118 background-color: rgba(209, 215, 224, 0.5);
40360c17 119 }
ebefc902 120 }
ebefc902 121 }
40360c17
K
122
123 .signup-link {
124 display: inline-block;
125 }
126 }
127
128 .instance-information {
27bc9586
C
129 @include margin-left(10px);
130 @include margin-right(10px);
131
40360c17
K
132 max-width: 600px;
133 min-width: 350px;
134 margin-bottom: 40px;
40360c17
K
135 }
136
137 .terms-anchor {
138 display: inline;
139 }
140
141 .terms-link {
142 display: none;
143 }
144}
145
931d3430 146@mixin column-reverse-display {
40360c17
K
147 flex-direction: column-reverse;
148
149 .login-form-and-externals,
150 .instance-information {
27bc9586
C
151 @include margin-left(0);
152 @include margin-right(0);
153
40360c17 154 width: 100%;
40360c17
K
155 max-width: 450px;
156 min-width: unset;
157 align-self: center;
158 }
159
160 .instance-information {
161 ::ng-deep .accordion {
162 display: none;
163 }
164 }
165
166 .terms-anchor {
167 display: none;
168 }
169
170 .terms-link {
171 display: inline;
172 }
173}
174
175@media screen and (max-width: breakpoint(md)) {
176 .wrapper {
931d3430 177 @include column-reverse-display();
40360c17
K
178 }
179}
180
181@media screen and (max-width: breakpoint(md) + $menu-width) {
182 :host-context(.main-col:not(.expanded)) {
183 .wrapper {
931d3430 184 @include column-reverse-display();
40360c17 185 }
ebefc902
C
186 }
187}