auth.less 4.1 KB

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