login-register.less 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. @brand-ieee-color: #00629b;
  2. @brand-google-color: #276fea; // Not the "official" color but modified for a11y
  3. @brand-twitter-color: #1da1f2;
  4. @brand-orcid-color: #a6ce39;
  5. .login-register-alternatives {
  6. .form-group:last-child {
  7. margin-bottom: 0;
  8. }
  9. }
  10. .login-register-container {
  11. max-width: 400px;
  12. margin: 0 auto;
  13. padding-bottom: @line-height-computed * 5;
  14. }
  15. .login-register-header {
  16. padding-top: @line-height-computed;
  17. padding-bottom: @line-height-computed - 5;
  18. border-bottom: solid 1px @hr-border;
  19. }
  20. .login-register-header-heading {
  21. margin: 0;
  22. color: @text-color;
  23. }
  24. .login-register-card {
  25. padding-top: 0;
  26. padding-bottom: 0;
  27. text-align: center;
  28. }
  29. .login-register-form {
  30. padding: @line-height-computed;
  31. border-bottom: solid 1px @hr-border;
  32. &:last-child {
  33. border-bottom-width: 0;
  34. }
  35. }
  36. .login-register-other-links {
  37. padding: @line-height-computed;
  38. }
  39. .login-register-text,
  40. .login-register-hr-text-container {
  41. margin: 0;
  42. }
  43. .login-register-text {
  44. padding-bottom: 25px;
  45. font-size: 90%;
  46. &:last-child {
  47. padding-bottom: 0;
  48. }
  49. }
  50. .login-register-hr-text-container {
  51. line-height: 1;
  52. position: relative;
  53. padding: @line-height-computed 0;
  54. &::before {
  55. content: '';
  56. position: absolute;
  57. height: 1px;
  58. background-color: @hr-border;
  59. top: 50%;
  60. left: 0;
  61. right: 0;
  62. }
  63. }
  64. .login-register-hr-text {
  65. position: relative;
  66. background-color: #fff;
  67. padding: 0 (@line-height-computed / 2);
  68. }
  69. .login-btn-icon {
  70. position: absolute;
  71. top: 4px;
  72. left: 4px;
  73. background: #fff url(../../../public/img/brand/lion.svg) center/20px no-repeat;
  74. border-radius: 99999px;
  75. width: 26px;
  76. height: 26px;
  77. &::before {
  78. content: '\00a0'; // Non-breakable space. A non-breakable character here makes this icon work like font-awesome.
  79. }
  80. }
  81. .login-btn-icon-ieee {
  82. background-image: url(../../../public/img/other-brands/logo_ieee.svg);
  83. }
  84. .login-btn-icon-google {
  85. background-image: url(../../../public/img/other-brands/logo_google.svg);
  86. }
  87. .login-btn-icon-twitter {
  88. background-image: url(../../../public/img/other-brands/logo_twitter.svg);
  89. }
  90. .login-btn-icon-orcid {
  91. background-image: url(../../../public/img/other-brands/logo_orcid.svg);
  92. }
  93. .login-btn-icon-institution {
  94. background-image: url(../../../public/img/other-brands/logo_institution.svg);
  95. }
  96. .registration-message-heading {
  97. color: @text-color;
  98. }
  99. .registration-message-details {
  100. font-size: 90%;
  101. }
  102. .registration-block-separator {
  103. margin-bottom: 0px;
  104. }
  105. .website-redesign {
  106. .login-register-container {
  107. max-width: 320px;
  108. }
  109. .login-overleaf-logo-container {
  110. padding: 15px;
  111. width: 65px;
  112. display: flex;
  113. justify-content: center;
  114. align-items: center;
  115. .login-overleaf-logo {
  116. width: 35px;
  117. }
  118. @media (max-width: @screen-xs-max) {
  119. margin-top: @margin-lg;
  120. }
  121. }
  122. .login-register-text {
  123. font-size: 0.875rem;
  124. line-height: 1.4;
  125. text-align: left;
  126. &.login-register-text-center {
  127. text-align: center;
  128. }
  129. }
  130. .login-register-hr-text-container {
  131. padding: @line-height-computed 0 calc(@line-height-computed / 2) 0;
  132. &::before {
  133. top: calc(@line-height-computed + @line-height-computed / 4);
  134. }
  135. }
  136. .login-register-error-container {
  137. padding-bottom: calc(@line-height-computed / 2);
  138. }
  139. .login-register-other-links {
  140. padding: @line-height-computed 0;
  141. a {
  142. color: var(--emerald-green);
  143. text-decoration: underline;
  144. // text-decoration-;skip-ink is for letter with descender (like 'g' and 'y')
  145. // this will force underline to not skip the descender
  146. text-decoration-skip-ink: none;
  147. &:hover {
  148. color: var(--emerald-green-dark);
  149. }
  150. // for accessibility with keyboard navigation
  151. &:focus {
  152. outline: 2px solid var(--emerald-green);
  153. outline-offset: 1px;
  154. }
  155. }
  156. }
  157. .flex-center {
  158. display: flex;
  159. justify-content: center;
  160. }
  161. .login-btn {
  162. display: flex;
  163. align-items: center;
  164. justify-content: center;
  165. padding: 4px 0;
  166. }
  167. .login-btn-icon {
  168. position: relative;
  169. top: unset;
  170. left: unset;
  171. background: unset;
  172. border-radius: unset;
  173. width: 20px;
  174. height: 20px;
  175. margin-right: 5px;
  176. &::before {
  177. content: unset;
  178. }
  179. }
  180. .form-group {
  181. text-align: left;
  182. position: relative;
  183. label {
  184. font-size: @font-size-small;
  185. }
  186. }
  187. .form-group-password {
  188. display: flex;
  189. position: relative;
  190. .form-group-password-input {
  191. input.form-control {
  192. padding-right: 35px;
  193. }
  194. }
  195. .visibility-toggle {
  196. position: absolute;
  197. right: 0;
  198. top: 0;
  199. width: @input-height-base;
  200. height: @input-height-base;
  201. display: flex;
  202. align-items: center;
  203. justify-content: center;
  204. border: unset;
  205. background-color: unset;
  206. #visibility-icon-off {
  207. margin-top: 2px; // workaround for the icon not having the same center as the non-slashed one
  208. }
  209. }
  210. }
  211. .top-padding-computed-2 {
  212. padding-top: @line-height-computed * 2;
  213. }
  214. .form-group-password-input {
  215. display: flex;
  216. flex-direction: column;
  217. width: 100%;
  218. }
  219. .register-container {
  220. .register-content-container {
  221. display: flex;
  222. background-color: #f2f4f7;
  223. min-height: 100vh;
  224. }
  225. // TODO: One of these two classes should be removed when test is tearing down.
  226. .register-content-container-light {
  227. .register-content-container;
  228. background-color: @white;
  229. }
  230. .register-form {
  231. width: 100%;
  232. height: 100%;
  233. display: flex;
  234. justify-content: center;
  235. padding-top: @line-height-computed * 2;
  236. background-color: @white;
  237. @media (max-width: @screen-sm-max) {
  238. height: 100%;
  239. }
  240. .login-register-card {
  241. max-width: 320px;
  242. padding-bottom: @line-height-computed * 5; // for cookie banner
  243. }
  244. }
  245. .register-illustration-container {
  246. height: 100%;
  247. display: flex;
  248. align-items: center;
  249. .register-illustration {
  250. position: absolute;
  251. left: 80px;
  252. top: 100px;
  253. // for wide screen
  254. @media (min-width: 1700px) {
  255. position: relative;
  256. left: unset;
  257. top: unset;
  258. display: flex;
  259. align-items: center;
  260. justify-content: center;
  261. width: 100%;
  262. }
  263. .register-main-image {
  264. max-width: 850px;
  265. @media (max-width: 1350px) {
  266. max-width: 750px;
  267. }
  268. @media (max-width: 1150px) {
  269. max-width: 670px;
  270. }
  271. }
  272. .sticky-tags {
  273. position: absolute;
  274. height: 210px;
  275. bottom: -135px;
  276. right: 130px;
  277. // for wide screen
  278. @media (min-width: 1700px) {
  279. right: calc(50% - 300px);
  280. }
  281. }
  282. }
  283. }
  284. }
  285. .tos-agreement-notice {
  286. text-align: left;
  287. font-size: 12px;
  288. a {
  289. color: var(--emerald-green);
  290. text-decoration: underline;
  291. // text-decoration-;skip-ink is for letter with descender (like 'g' and 'y')
  292. // this will force underline to not skip the descender
  293. text-decoration-skip-ink: none;
  294. &:hover {
  295. color: var(--emerald-green-dark);
  296. }
  297. // for accessibility with keyboard navigation
  298. &:focus {
  299. outline: 2px solid var(--emerald-green);
  300. outline-offset: 1px;
  301. }
  302. }
  303. }
  304. // TODO: This is Temporary class for split test to center align the text, we can remove this during the tear down of the test based on the winner variant.
  305. .light-variant {
  306. .tos-agreement-notice {
  307. text-align: center;
  308. font-size: 12px;
  309. a {
  310. color: var(--emerald-green);
  311. text-decoration: underline;
  312. // text-decoration-;skip-ink is for letter with descender (like 'g' and 'y')
  313. // this will force underline to not skip the descender
  314. text-decoration-skip-ink: none;
  315. &:hover {
  316. color: var(--emerald-green-dark);
  317. }
  318. // for accessibility with keyboard navigation
  319. &:focus {
  320. outline: 2px solid var(--emerald-green);
  321. outline-offset: 1px;
  322. }
  323. }
  324. }
  325. }
  326. .register-header-logo {
  327. &:focus {
  328. outline: 2px solid var(--emerald-green);
  329. }
  330. }
  331. }