login-register.less 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. @brand-sharelatex-color: #a93529;
  6. .login-register-alternatives {
  7. .form-group:last-child {
  8. margin-bottom: 0;
  9. }
  10. }
  11. .login-register-container {
  12. max-width: 400px;
  13. margin: 0 auto;
  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. .login-register-sharelatex {
  31. padding: @line-height-computed;
  32. border-bottom: solid 1px @hr-border;
  33. &:last-child {
  34. border-bottom-width: 0;
  35. }
  36. }
  37. .login-register-other-links {
  38. padding: @line-height-computed;
  39. }
  40. .login-register-text,
  41. .login-register-hr-text-container {
  42. margin: 0;
  43. }
  44. .login-register-text {
  45. padding-bottom: 25px;
  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-register-sharelatex-tooltip {
  70. display: inline-block;
  71. font-size: 135%;
  72. position: relative;
  73. top: 2px;
  74. margin-left: 3px;
  75. color: @link-color;
  76. cursor: pointer;
  77. }
  78. .login-register-newsletter {
  79. font-size: 90%;
  80. margin-top: @line-height-computed;
  81. text-align: left;
  82. & > .checkbox {
  83. margin-bottom: 0;
  84. }
  85. }
  86. .login-btn-sharelatex {
  87. background-color: @brand-sharelatex-color;
  88. &:focus,
  89. &:hover {
  90. background-color: darken(@brand-sharelatex-color, 8%);
  91. }
  92. &:active {
  93. background-color: darken(@brand-sharelatex-color, 16%);
  94. }
  95. }
  96. .login-btn-icon {
  97. position: absolute;
  98. top: 4px;
  99. left: 4px;
  100. background: #fff url(../../../public/img/brand/lion.svg) center/20px no-repeat;
  101. border-radius: 99999px;
  102. width: 26px;
  103. height: 26px;
  104. &::before {
  105. content: '\00a0'; // Non-breakable space. A non-breakable character here makes this icon work like font-awesome.
  106. }
  107. }
  108. .login-btn-icon-ieee {
  109. background-image: url(../../../public/img/other-brands/logo_ieee.svg);
  110. }
  111. .login-btn-icon-google {
  112. background-image: url(../../../public/img/other-brands/logo_google.svg);
  113. }
  114. .login-btn-icon-twitter {
  115. background-image: url(../../../public/img/other-brands/logo_twitter.svg);
  116. }
  117. .login-btn-icon-orcid {
  118. background-image: url(../../../public/img/other-brands/logo_orcid.svg);
  119. }
  120. .login-btn-icon-institution {
  121. background-image: url(../../../public/img/other-brands/logo_institution.svg);
  122. }
  123. .login-btn-icon-sharelatex {
  124. background-size: 22px;
  125. }
  126. .login-register-header-heading {
  127. margin: 0;
  128. color: @text-color;
  129. }
  130. .registration-message-heading {
  131. color: @text-color;
  132. }
  133. .registration-message-details {
  134. font-size: 90%;
  135. }
  136. .registration-block-separator {
  137. margin-bottom: 0px;
  138. }