buttons.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. li {
  46. font-size: 0.5em;
  47. list-style-type: none;
  48. display: inline-block;
  49. background: get-light-color('accent-color');
  50. margin-left: 0.1em;
  51. margin-right: 0.1em;
  52. }
  53. a {
  54. color: get-light-color('text-over-accent-color');
  55. text-decoration: none !important;
  56. }
  57. }
  58. .icon-button {
  59. background-color: get-light-color('text-color');
  60. color: get-light-color('text-over-accent-color') !important;
  61. padding: 0.25rem 0.5rem;
  62. line-height: 1.5;
  63. border-radius: 0.2rem;
  64. border: none;
  65. &:hover,
  66. &:focus {
  67. background-color: get-light-color('accent-color') !important;
  68. @include transition();
  69. }
  70. }
  71. .filled-button {
  72. background-color: get-light-color('accent-color') !important;
  73. color: get-light-color('text-over-accent-color') !important;
  74. @include transition();
  75. &:hover,
  76. &:active {
  77. background-color: get-light-color('hover-over-accent-color') !important;
  78. @include transition();
  79. }
  80. }
  81. html[data-theme='dark'] {
  82. .btn-dark {
  83. background-color: get-dark-color('accent-color') !important;
  84. border-color: get-dark-color('accent-color') !important;
  85. color: get-dark-color('text-over-accent-color') !important;
  86. &:hover,
  87. &:focus {
  88. background-color: get-dark-color('hover-over-accent-color') !important;
  89. border-color: get-dark-color('hover-over-accent-color') !important;
  90. }
  91. }
  92. .btn-info {
  93. background-color: get-dark-color('bg-card') !important;
  94. color: get-dark-color('text-color') !important;
  95. border: 1px solid get-dark-color('muted-text-color') !important;
  96. &:hover,
  97. &:focus {
  98. background-color: get-dark-color('hover-over-accent-color') !important;
  99. }
  100. }
  101. .btn-outline-info {
  102. color: get-dark-color('accent-color') !important;
  103. border-color: get-dark-color('accent-color') !important;
  104. &:hover,
  105. &:focus {
  106. background-color: get-dark-color('accent-color') !important;
  107. color: get-dark-color('text-over-accent-color') !important;
  108. }
  109. }
  110. .btn-link {
  111. color: get-dark-color('accent-color');
  112. &:hover,
  113. &:focus {
  114. color: get-dark-color('hover-over-accent-color');
  115. }
  116. }
  117. .nav-button {
  118. color: get-dark-color('muted-text-color');
  119. }
  120. .tags {
  121. li {
  122. background: get-dark-color('accent-color');
  123. a {
  124. background-color: get-dark-color('bg-card');
  125. border: 1px solid get-dark-color('muted-text-color');
  126. color: get-dark-color('text-over-accent-color');
  127. }
  128. }
  129. }
  130. .icon-button {
  131. background-color: get-dark-color('muted-text-color');
  132. color: get-dark-color('text-over-accent-color') !important;
  133. &:hover,
  134. &:focus {
  135. background-color: get-dark-color('accent-color') !important;
  136. }
  137. }
  138. .filled-button {
  139. background-color: get-dark-color('accent-color') !important;
  140. color: get-dark-color('text-over-accent-color') !important;
  141. &:hover,
  142. &:active {
  143. background-color: get-dark-color('hover-over-accent-color') !important;
  144. }
  145. }
  146. }