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