styles.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. @import 'styles/_variables.scss';
  2. button.mdc-icon-button.btn-small {
  3. align-self: center;
  4. --mdc-ripple-fg-size: 14px;
  5. --mdc-ripple-left: 5px;
  6. --mdc-ripple-top: 5px;
  7. width: 24px;
  8. height: 24px;
  9. padding: 6px;
  10. font-size: 12px;
  11. .material-icons {
  12. font-size: 12px;
  13. }
  14. }
  15. button.cbk-btn {
  16. @include button-reset();
  17. @include button();
  18. margin: 0 .5em;
  19. -webkit-font-smoothing: antialiased;
  20. outline: 0;
  21. color: $grey-900;
  22. padding: 0 $spacing-small/2;
  23. line-height: 1.75rem;
  24. box-sizing: border-box;
  25. &:focus {
  26. outline: 0;
  27. background-color: $grey-300;
  28. }
  29. &:hover {
  30. background-color: $grey-300;
  31. }
  32. &:active {
  33. border: 0;
  34. background-color: $grey-400;
  35. }
  36. &--disabled {
  37. color: $grey-500!important;
  38. pointer-events: none!important;
  39. cursor: default;
  40. box-shadow: none!important;
  41. font-style: italic;
  42. background-color: white;
  43. &:hover,
  44. &:active {
  45. position: unset!important;
  46. }
  47. }
  48. &--raised {
  49. background-color: $black;
  50. color: $white;
  51. @include solidBoxShadow();
  52. position: relative;
  53. &:hover,
  54. &:focus {
  55. background-color: $black;
  56. color: $white;
  57. @include solidBoxShadow();
  58. box-shadow: 3px 3px $yellow;
  59. top: 1px;
  60. left: 1px;
  61. }
  62. &:active {
  63. background-color: $black;
  64. color: $white;
  65. border: 3px solid $black;
  66. box-shadow: none;
  67. top: 4px;
  68. left: 4px
  69. }
  70. &.cbk-btn--disabled {
  71. background-color: $grey-300;
  72. border-color: $grey-300;
  73. }
  74. }
  75. &--unelevated {
  76. background-color: $black;
  77. border: 3px solid $black;
  78. color: $white;
  79. &:hover,
  80. &:focus {
  81. background-color: $black;
  82. box-shadow: 3px 3px $yellow;
  83. }
  84. &:active {
  85. background-color: $black;
  86. border: 3px solid $black;
  87. box-shadow: 3px 3px $yellow-dark;
  88. }
  89. &.cbk-btn--disabled {
  90. background-color: $grey-300;
  91. border-color: $grey-300;
  92. }
  93. }
  94. &--outlined {
  95. background-color: white;
  96. border: 3px solid black;
  97. color: black;
  98. &:hover,
  99. &:focus {
  100. border: 3px solid black;
  101. color: black;
  102. background-image: linear-gradient(
  103. 45deg,
  104. $yellow 25%,
  105. $white 25%,
  106. $white 50%,
  107. $yellow 50%,
  108. $yellow 75%,
  109. $white 75%,
  110. $white 100%
  111. );
  112. background-size: 45.25px 45.25px;
  113. }
  114. &:active {
  115. border: 3px solid black;
  116. color: black;
  117. background-image: linear-gradient(
  118. 45deg,
  119. $yellow-dark 25%,
  120. $white 25%,
  121. $white 50%,
  122. $yellow-dark 50%,
  123. $yellow-dark 75%,
  124. $white 75%,
  125. $white 100%
  126. );
  127. background-size: 45.25px 45.25px;
  128. }
  129. &.cbk-btn--disabled {
  130. background-color: $white;
  131. border-color: $grey-300;
  132. }
  133. }
  134. &:last-child {
  135. margin-right: 0;
  136. }
  137. &:first-child {
  138. margin-left: 0;
  139. }
  140. }