login-register.less 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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. }
  133. .login-register-error-container {
  134. padding-bottom: calc(@line-height-computed / 2);
  135. }
  136. .login-register-other-links {
  137. padding: @line-height-computed 0;
  138. a {
  139. color: var(--emerald-green);
  140. text-decoration: underline;
  141. // text-decoration-;skip-ink is for letter with descender (like 'g' and 'y')
  142. // this will force underline to not skip the descender
  143. text-decoration-skip-ink: none;
  144. &:hover {
  145. color: var(--emerald-green-dark);
  146. }
  147. // for accessibility with keyboard navigation
  148. &:focus {
  149. outline: 2px solid var(--emerald-green);
  150. outline-offset: 1px;
  151. }
  152. }
  153. }
  154. .login-btn {
  155. display: flex;
  156. align-items: center;
  157. justify-content: center;
  158. padding: 4px 0;
  159. }
  160. .login-btn-icon {
  161. position: relative;
  162. top: unset;
  163. left: unset;
  164. background: unset;
  165. border-radius: unset;
  166. width: 20px;
  167. height: 20px;
  168. margin-right: 5px;
  169. &::before {
  170. content: unset;
  171. }
  172. }
  173. .form-group {
  174. text-align: left;
  175. position: relative;
  176. label {
  177. font-size: @font-size-small;
  178. }
  179. }
  180. .form-group-password {
  181. display: flex;
  182. position: relative;
  183. input.form-control {
  184. padding-right: 35px;
  185. }
  186. .visibility-toggle {
  187. position: absolute;
  188. right: 0;
  189. top: 0;
  190. width: @input-height-base;
  191. height: @input-height-base;
  192. display: flex;
  193. align-items: center;
  194. justify-content: center;
  195. border: unset;
  196. background-color: unset;
  197. #visibility-icon-off {
  198. margin-top: 2px; // workaround for the icon not having the same center as the non-slashed one
  199. }
  200. }
  201. }
  202. .form-group-password-input {
  203. display: flex;
  204. flex-direction: column;
  205. width: 100%;
  206. }
  207. .register-container {
  208. .register-content-container {
  209. display: flex;
  210. background-color: #f2f4f7;
  211. min-height: 100vh;
  212. }
  213. .register-form {
  214. width: 100%;
  215. height: 100%;
  216. display: flex;
  217. justify-content: center;
  218. padding-top: @line-height-computed * 7;
  219. background-color: @white;
  220. @media (max-width: @screen-sm-max) {
  221. height: 100%;
  222. padding-top: @line-height-computed * 2;
  223. }
  224. .login-register-card {
  225. max-width: 320px;
  226. padding-bottom: @line-height-computed * 5; // for cookie banner
  227. }
  228. }
  229. .register-illustration-container {
  230. height: 100%;
  231. display: flex;
  232. align-items: center;
  233. .register-illustration {
  234. position: absolute;
  235. left: 80px;
  236. // for wide screen
  237. @media (min-width: 1700px) {
  238. position: relative;
  239. left: unset;
  240. display: flex;
  241. align-items: center;
  242. justify-content: center;
  243. width: 100%;
  244. }
  245. .register-main-image {
  246. max-width: 850px;
  247. @media (max-width: 1350px) {
  248. max-width: 750px;
  249. }
  250. @media (max-width: 1150px) {
  251. max-width: 670px;
  252. }
  253. }
  254. .sticky-tags {
  255. position: absolute;
  256. height: 210px;
  257. bottom: -135px;
  258. right: 130px;
  259. // for wide screen
  260. @media (min-width: 1700px) {
  261. right: calc(50% - 300px);
  262. }
  263. }
  264. }
  265. }
  266. }
  267. .tos-agreement-notice {
  268. text-align: left;
  269. font-size: 12px;
  270. a {
  271. color: var(--emerald-green);
  272. text-decoration: underline;
  273. // text-decoration-;skip-ink is for letter with descender (like 'g' and 'y')
  274. // this will force underline to not skip the descender
  275. text-decoration-skip-ink: none;
  276. &:hover {
  277. color: var(--emerald-green-dark);
  278. }
  279. // for accessibility with keyboard navigation
  280. &:focus {
  281. outline: 2px solid var(--emerald-green);
  282. outline-offset: 1px;
  283. }
  284. }
  285. }
  286. .register-header-logo {
  287. &:focus {
  288. outline: 2px solid var(--emerald-green);
  289. }
  290. }
  291. }