buttons.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. .btn-dark {
  2. background-color: get-light-color('text-color') !important;
  3. border-color: get-light-color('text-color') !important;
  4. color: get-light-color('text-over-accent-color') !important;
  5. @include transition();
  6. &:hover,
  7. &:focus {
  8. background-color: get-light-color('accent-color') !important;
  9. border-color: get-light-color('accent-color') !important;
  10. @include transition();
  11. }
  12. }
  13. .btn-info {
  14. background-color: get-light-color('accent-color') !important;
  15. color: get-light-color('text-over-accent-color') !important;
  16. &:hover,
  17. &:focus {
  18. background-color: get-light-color('hover-over-accent-color') !important;
  19. }
  20. }
  21. .btn-outline-info {
  22. color: get-light-color('accent-color') !important;
  23. border-color: get-light-color('accent-color') !important;
  24. &:hover,
  25. &:focus {
  26. background-color: get-light-color('accent-color') !important;
  27. color: get-light-color('text-over-accent-color') !important;
  28. }
  29. }
  30. .btn-link {
  31. color: get-light-color('accent-color');
  32. &:hover,
  33. &:focus {
  34. color: get-light-color('hover-over-accent-color');
  35. }
  36. }
  37. .nav-button {
  38. background-color: transparent;
  39. border: 1px solid transparent;
  40. border-radius: 0.25rem;
  41. color: get-light-color('muted-text-color');
  42. }
  43. .tags {
  44. text-align: left;
  45. padding-top: 0.5em;
  46. li {
  47. font-size: 0.5em;
  48. list-style-type: none;
  49. display: inline-block;
  50. background: get-light-color('accent-color');
  51. margin-left: 0.2em;
  52. margin-right: 0.2em;
  53. margin-top: 0.6em;
  54. margin-bottom: 0.6em;
  55. }
  56. a {
  57. color: get-light-color('text-over-accent-color');
  58. text-decoration: none !important;
  59. }
  60. }
  61. .icon-button {
  62. background-color: get-light-color('text-color');
  63. color: get-light-color('text-over-accent-color') !important;
  64. padding: 0.25rem 0.5rem;
  65. line-height: 1.5;
  66. border-radius: 0.2rem;
  67. border: none;
  68. &:hover,
  69. &:focus {
  70. background-color: get-light-color('accent-color') !important;
  71. @include transition();
  72. }
  73. }
  74. .filled-button {
  75. background-color: get-light-color('accent-color') !important;
  76. color: get-light-color('text-over-accent-color') !important;
  77. @include transition();
  78. &:hover,
  79. &:active {
  80. background-color: get-light-color('hover-over-accent-color') !important;
  81. @include transition();
  82. }
  83. }
  84. html[data-theme='dark'] {
  85. .btn-dark {
  86. background-color: get-dark-color('accent-color') !important;
  87. border-color: get-dark-color('accent-color') !important;
  88. color: get-dark-color('text-over-accent-color') !important;
  89. &:hover,
  90. &:focus {
  91. background-color: get-dark-color('hover-over-accent-color') !important;
  92. border-color: get-dark-color('hover-over-accent-color') !important;
  93. }
  94. }
  95. .btn-info {
  96. background-color: get-dark-color('bg-card') !important;
  97. color: get-dark-color('text-color') !important;
  98. border: 1px solid get-dark-color('muted-text-color') !important;
  99. &:hover,
  100. &:focus {
  101. background-color: get-dark-color('hover-over-accent-color') !important;
  102. }
  103. }
  104. .btn-outline-info {
  105. color: get-dark-color('accent-color') !important;
  106. border-color: get-dark-color('accent-color') !important;
  107. &:hover,
  108. &:focus {
  109. background-color: get-dark-color('accent-color') !important;
  110. color: get-dark-color('text-over-accent-color') !important;
  111. }
  112. }
  113. .btn-link {
  114. color: get-dark-color('accent-color');
  115. &:hover,
  116. &:focus {
  117. color: get-dark-color('hover-over-accent-color');
  118. }
  119. }
  120. .nav-button {
  121. color: get-dark-color('muted-text-color');
  122. }
  123. .tags {
  124. li {
  125. background: get-dark-color('accent-color');
  126. a {
  127. background-color: get-dark-color('bg-card');
  128. border: 1px solid get-dark-color('muted-text-color');
  129. color: get-dark-color('text-over-accent-color');
  130. }
  131. }
  132. }
  133. .icon-button {
  134. background-color: get-dark-color('muted-text-color');
  135. color: get-dark-color('text-over-accent-color') !important;
  136. &:hover,
  137. &:focus {
  138. background-color: get-dark-color('accent-color') !important;
  139. }
  140. }
  141. .filled-button {
  142. background-color: get-dark-color('accent-color') !important;
  143. color: get-dark-color('text-over-accent-color') !important;
  144. &:hover,
  145. &:active {
  146. background-color: get-dark-color('hover-over-accent-color') !important;
  147. }
  148. }
  149. }