index.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. @import "../common/abstracts/variable";
  2. @import "../common/abstracts/mixin";
  3. .wot-theme-dark {
  4. @include b(password-input) {
  5. @include e(item) {
  6. color: $-dark-color;
  7. background: $-dark-background2;
  8. @include when(border) {
  9. border-color: $-dark-border-color;
  10. }
  11. }
  12. @include e(mask) {
  13. background-color: $-dark-color;
  14. }
  15. @include e(cursor) {
  16. background-color: $-dark-color;
  17. }
  18. @include e(info) {
  19. color: $-dark-color;
  20. @include when(border) {
  21. color: $-dark-color2;
  22. }
  23. }
  24. }
  25. }
  26. @include b(password-input) {
  27. position: relative;
  28. margin: 0 $-password-input-margin;
  29. user-select: none;
  30. @include e(security) {
  31. display: flex;
  32. width: 100%;
  33. height: $-password-input-height;
  34. cursor: pointer;
  35. }
  36. @include e(item) {
  37. position: relative;
  38. display: flex;
  39. flex: 1;
  40. align-items: center;
  41. justify-content: center;
  42. height: 100%;
  43. color: $-password-input-text-color;
  44. font-size: $-password-input-font-size;
  45. line-height: 1.2;
  46. background: $-password-input-background;
  47. @include when(border) {
  48. border: 1px solid $-password-input-border-color;
  49. &:not(:last-child) {
  50. border-right: none;
  51. }
  52. &:first-child {
  53. border-top-left-radius: $-password-input-radius;
  54. border-bottom-left-radius: $-password-input-radius;
  55. }
  56. &:last-child {
  57. border-top-right-radius: $-password-input-radius;
  58. border-bottom-right-radius: $-password-input-radius;
  59. }
  60. }
  61. }
  62. @include e(mask) {
  63. position: absolute;
  64. top: 50%;
  65. left: 50%;
  66. width: $-password-input-dot-size;
  67. height: $-password-input-dot-size;
  68. background: $-password-input-dot-color;
  69. border-radius: 100%;
  70. transform: translate(-50%, -50%);
  71. visibility: hidden;
  72. }
  73. @include e(cursor) {
  74. position: absolute;
  75. top: 50%;
  76. left: 50%;
  77. width: $-password-input-cursor-width;
  78. height: $-password-input-cursor-height;
  79. background: $-password-input-cursor-color;
  80. transform: translate(-50%, -50%);
  81. animation: $-password-input-cursor-duration cursor-flicker infinite;
  82. }
  83. @include e(info) {
  84. margin-top: $-password-input-margin;
  85. font-size: $-password-input-info-font-size;
  86. text-align: center;
  87. color: $-password-input-info-color;
  88. @include when(error) {
  89. color: $-password-input-error-info-color;
  90. }
  91. }
  92. }
  93. @keyframes cursor-flicker {
  94. from {
  95. opacity: 0;
  96. }
  97. 50% {
  98. opacity: 1;
  99. }
  100. 100% {
  101. opacity: 0;
  102. }
  103. }