buttons.scss 4.0 KB

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