buttons.scss 3.9 KB

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