auth.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. /**
  2. * Auth Styles
  3. * ============================================================================
  4. */
  5. .auth {
  6. h3 {
  7. font-size: 24px;
  8. margin: 10px 0 30px;
  9. }
  10. .form-actions {
  11. margin-top: 20px;
  12. }
  13. .form-actions-samlidp {
  14. margin: 10px 0;
  15. }
  16. }
  17. section.org-login {
  18. h3 {
  19. margin: 0 0 20px;
  20. }
  21. .org-avatar {
  22. width: 56px;
  23. height: 56px;
  24. border-radius: 3px;
  25. margin-bottom: 20px;
  26. }
  27. }
  28. .provider-logo {
  29. display: inline-block;
  30. width: 16px;
  31. height: 16px;
  32. vertical-align: text-top;
  33. margin-right: 4px;
  34. border-radius: 2px;
  35. position: relative;
  36. top: 1px;
  37. background-size: cover;
  38. &.google {
  39. background-image: url(~sentry-logos/logo-google.svg);
  40. }
  41. &.github {
  42. background-image: url(~sentry-logos/logo-github.svg);
  43. }
  44. &.onelogin {
  45. background-image: url(~sentry-logos/logo-onelogin.svg);
  46. }
  47. &.auth0 {
  48. background-image: url(~sentry-logos/logo-auth0.svg);
  49. }
  50. &.okta {
  51. background-image: url(~sentry-logos/logo-okta.svg);
  52. }
  53. &.jumpcloud {
  54. background-image: url(~sentry-logos/logo-jumpcloud.svg);
  55. }
  56. &.rippling {
  57. background-image: url(~sentry-logos/logo-rippling.svg);
  58. }
  59. &.active-directory {
  60. background-image: url(~sentry-logos/logo-microsoft.svg);
  61. }
  62. &.saml2 {
  63. background-image: url(~sentry-logos/logo-saml2.svg);
  64. }
  65. &.slack {
  66. background-image: url(~sentry-logos/logo-slack.svg);
  67. }
  68. &.vsts {
  69. background-image: url(~sentry-logos/logo-azure.svg);
  70. }
  71. &.fly {
  72. background-image: url(~sentry-logos/logo-fly.svg);
  73. }
  74. }
  75. .btn-default > .provider-logo {
  76. margin-right: 8px;
  77. }
  78. .sso-link {
  79. text-align: center;
  80. margin-bottom: 24px;
  81. .avatar {
  82. width: 36px;
  83. height: 36px;
  84. }
  85. }
  86. .sso-grid {
  87. display: grid;
  88. grid-template-columns: 50% 50%;
  89. grid-column-gap: 15px;
  90. &.flex {
  91. grid-template-columns: auto auto;
  92. }
  93. .column {
  94. display: flex;
  95. flex-direction: column;
  96. }
  97. .left-column {
  98. text-align: right;
  99. }
  100. .right-column {
  101. text-align: left;
  102. }
  103. .avatar-row {
  104. margin: 4px 0 16px;
  105. }
  106. .email-truncate {
  107. text-overflow: ellipsis;
  108. white-space: nowrap;
  109. overflow: hidden;
  110. width: 270px;
  111. }
  112. }
  113. // 2FA
  114. div.u2f-box {
  115. position: relative;
  116. padding: 20px;
  117. text-align: center;
  118. margin-bottom: 20px;
  119. div.device-animation-frame {
  120. margin: 0 auto;
  121. border-radius: 50%;
  122. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  123. border: 1px solid darken(@trim, 5);
  124. width: 100px;
  125. height: 100px;
  126. overflow: hidden;
  127. position: relative;
  128. }
  129. div.loading-dots {
  130. position: absolute;
  131. top: 60%;
  132. left: 50%;
  133. margin-left: -25px;
  134. margin-top: -9px;
  135. opacity: 0;
  136. transition: all ease-in 0.4s;
  137. .dot {
  138. display: inline-block;
  139. width: 14px;
  140. height: 14px;
  141. background: @blue;
  142. border-radius: 50%;
  143. margin-right: 4px;
  144. //Animate
  145. animation-name: blink;
  146. animation-duration: 1.6s;
  147. animation-iteration-count: infinite;
  148. animation-fill-mode: both;
  149. &:nth-child(2) {
  150. animation-delay: 0.4s;
  151. }
  152. &:nth-child(3) {
  153. animation-delay: 0.8s;
  154. }
  155. &:last-child {
  156. margin-right: 0;
  157. }
  158. }
  159. }
  160. div.device-animation {
  161. background: url(../images/spot/u2f-small.gif);
  162. background-size: 100px 100px;
  163. width: 100px;
  164. height: 100px;
  165. transition: opacity 0.3s;
  166. }
  167. div.device-failed {
  168. display: none;
  169. position: relative;
  170. width: 100px;
  171. height: 100px;
  172. text-align: center;
  173. font-size: 46px;
  174. font-weight: bold;
  175. line-height: 100px;
  176. color: @red;
  177. &:after {
  178. content: ':-(';
  179. }
  180. }
  181. div.inner {
  182. margin: 0 auto;
  183. padding-top: 20px;
  184. max-width: 360px;
  185. p {
  186. margin: 0;
  187. }
  188. }
  189. div.failure-message {
  190. p {
  191. margin: 0 0 10px 0;
  192. }
  193. }
  194. &.tapped {
  195. .loading-dots {
  196. opacity: 1;
  197. top: 50%;
  198. display: block;
  199. }
  200. .device-animation {
  201. -webkit-filter: blur(4px);
  202. filter: blur(4px);
  203. }
  204. }
  205. &.device-failure {
  206. .device-animation {
  207. visibility: hidden;
  208. }
  209. .device-failed {
  210. display: block;
  211. }
  212. }
  213. }
  214. @keyframes blink {
  215. 0% {
  216. opacity: 0.1;
  217. }
  218. 30% {
  219. opacity: 1;
  220. }
  221. 100% {
  222. opacity: 0.1;
  223. }
  224. }