buttons.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. .copy-code-button {
  91. float: right;
  92. margin-top: 0.5em;
  93. margin-left: -2.6em;
  94. margin-right: 3em;
  95. background-color: get-light-color('text-color') !important;
  96. color: get-light-color('inverse-text-color') !important;
  97. padding: 0.25rem 0.5rem;
  98. line-height: 1.5;
  99. border-radius: 0.2rem;
  100. border: none;
  101. &:hover,
  102. &:focus {
  103. background-color: get-light-color('accent-color') !important;
  104. color: get-light-color('text-over-accent-color') !important;
  105. @include transition();
  106. }
  107. &:focus {
  108. &::before {
  109. content: 'Copied!';
  110. position: absolute;
  111. padding: 0.3em;
  112. border-radius: 0.2em;
  113. margin-left: -5em;
  114. margin-top: -0.2em;
  115. background-color: get-light-color('accent-color') !important;
  116. color: get-light-color('text-over-accent-color') !important;
  117. @include transition();
  118. }
  119. }
  120. }
  121. html[data-theme='dark'] {
  122. .btn-dark {
  123. background-color: get-dark-color('accent-color') !important;
  124. border-color: get-dark-color('accent-color') !important;
  125. color: get-dark-color('text-over-accent-color') !important;
  126. &:hover,
  127. &:focus {
  128. background-color: get-dark-color('hover-over-accent-color') !important;
  129. border-color: get-dark-color('hover-over-accent-color') !important;
  130. }
  131. }
  132. .btn-info {
  133. background-color: get-dark-color('bg-card') !important;
  134. color: get-dark-color('text-color') !important;
  135. border: 1px solid get-dark-color('muted-text-color') !important;
  136. &:hover,
  137. &:focus {
  138. background-color: get-dark-color('hover-over-accent-color') !important;
  139. }
  140. }
  141. .btn-outline-info {
  142. color: get-dark-color('accent-color') !important;
  143. border-color: get-dark-color('accent-color') !important;
  144. &:hover,
  145. &:focus {
  146. background-color: get-dark-color('accent-color') !important;
  147. color: get-dark-color('text-over-accent-color') !important;
  148. }
  149. }
  150. .btn-link {
  151. color: get-dark-color('accent-color');
  152. &:hover,
  153. &:focus {
  154. color: get-dark-color('hover-over-accent-color');
  155. }
  156. }
  157. .nav-button {
  158. color: get-dark-color('muted-text-color');
  159. }
  160. .icon-button {
  161. background-color: get-dark-color('muted-text-color');
  162. color: get-dark-color('text-over-accent-color') !important;
  163. &:hover,
  164. &:focus {
  165. background-color: get-dark-color('accent-color') !important;
  166. }
  167. }
  168. .filled-button {
  169. background-color: get-dark-color('accent-color') !important;
  170. color: get-dark-color('text-over-accent-color') !important;
  171. &:hover,
  172. &:active {
  173. background-color: get-dark-color('hover-over-accent-color') !important;
  174. }
  175. }
  176. .copy-code-button {
  177. background-color: get-dark-color('bg-primary') !important;
  178. color: get-dark-color('muted-text-color') !important;
  179. &:hover,
  180. &:focus,
  181. &::before {
  182. background-color: get-dark-color('accent-color') !important;
  183. color: get-dark-color('text-over-accent-color') !important;
  184. }
  185. }
  186. }