styles.scss 3.0 KB

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