auth.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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. &.discord {
  75. background-image: url(~sentry-logos/logo-discord.svg);
  76. }
  77. }
  78. .btn-default > .provider-logo {
  79. margin-right: 8px;
  80. }
  81. .sso-link {
  82. text-align: center;
  83. margin-bottom: 24px;
  84. .avatar {
  85. width: 36px;
  86. height: 36px;
  87. }
  88. }
  89. .sso-grid {
  90. display: grid;
  91. grid-template-columns: 50% 50%;
  92. grid-column-gap: 15px;
  93. &.flex {
  94. grid-template-columns: auto auto;
  95. }
  96. .column {
  97. display: flex;
  98. flex-direction: column;
  99. }
  100. .left-column {
  101. text-align: right;
  102. }
  103. .right-column {
  104. text-align: left;
  105. }
  106. .avatar-row {
  107. margin: 4px 0 16px;
  108. }
  109. .email-truncate {
  110. text-overflow: ellipsis;
  111. white-space: nowrap;
  112. overflow: hidden;
  113. width: 270px;
  114. }
  115. }
  116. // 2FA
  117. div.u2f-box {
  118. position: relative;
  119. padding: 20px;
  120. text-align: center;
  121. margin-bottom: 20px;
  122. div.device-animation-frame {
  123. margin: 0 auto;
  124. border-radius: 50%;
  125. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  126. border: 1px solid darken(@trim, 5);
  127. width: 100px;
  128. height: 100px;
  129. overflow: hidden;
  130. position: relative;
  131. }
  132. div.loading-dots {
  133. position: absolute;
  134. top: 60%;
  135. left: 50%;
  136. margin-left: -25px;
  137. margin-top: -9px;
  138. opacity: 0;
  139. transition: all ease-in 0.4s;
  140. .dot {
  141. display: inline-block;
  142. width: 14px;
  143. height: 14px;
  144. background: @blue;
  145. border-radius: 50%;
  146. margin-right: 4px;
  147. //Animate
  148. animation-name: blink;
  149. animation-duration: 1.6s;
  150. animation-iteration-count: infinite;
  151. animation-fill-mode: both;
  152. &:nth-child(2) {
  153. animation-delay: 0.4s;
  154. }
  155. &:nth-child(3) {
  156. animation-delay: 0.8s;
  157. }
  158. &:last-child {
  159. margin-right: 0;
  160. }
  161. }
  162. }
  163. div.device-animation {
  164. background: url(../images/spot/u2f-small.gif);
  165. background-size: 100px 100px;
  166. width: 100px;
  167. height: 100px;
  168. transition: opacity 0.3s;
  169. }
  170. div.device-failed {
  171. display: none;
  172. position: relative;
  173. width: 100px;
  174. height: 100px;
  175. text-align: center;
  176. font-size: 46px;
  177. font-weight: bold;
  178. line-height: 100px;
  179. color: @red;
  180. &:after {
  181. content: ':-(';
  182. }
  183. }
  184. div.inner {
  185. margin: 0 auto;
  186. padding-top: 20px;
  187. max-width: 360px;
  188. p {
  189. margin: 0;
  190. }
  191. }
  192. div.failure-message {
  193. p {
  194. margin: 0 0 10px 0;
  195. }
  196. }
  197. &.tapped {
  198. .loading-dots {
  199. opacity: 1;
  200. top: 50%;
  201. display: block;
  202. }
  203. .device-animation {
  204. -webkit-filter: blur(4px);
  205. filter: blur(4px);
  206. }
  207. }
  208. &.device-failure {
  209. .device-animation {
  210. visibility: hidden;
  211. }
  212. .device-failed {
  213. display: block;
  214. }
  215. }
  216. }
  217. @keyframes blink {
  218. 0% {
  219. opacity: 0.1;
  220. }
  221. 30% {
  222. opacity: 1;
  223. }
  224. 100% {
  225. opacity: 0.1;
  226. }
  227. }