_tabler.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. // Disable font-ligatures for Chromium based browsers
  2. // Chromium requires `font-variant-ligatures: none` in addition to `font-feature-settings "liga" 0`
  3. * {
  4. font-feature-settings: "liga" 0;
  5. font-variant-ligatures: none;
  6. }
  7. // Restore default foreground & background colors for <pre> blocks
  8. pre {
  9. background-color: transparent;
  10. color: inherit;
  11. }
  12. // Slightly increase alert contrast between bg and text
  13. .alert {
  14. background: var(--#{$prefix}bg-surface);
  15. }
  16. // Button adjustments
  17. .btn {
  18. // Tabler sets display: flex
  19. display: inline-block;
  20. &:focus {
  21. // Add button focus state
  22. border: 1px solid var(--tblr-primary-fg);
  23. outline: 2px solid var(--tblr-primary) !important;
  24. }
  25. }
  26. .btn-sm {
  27. // $border-radius-sm (2px) is too small
  28. border-radius: $border-radius;
  29. }
  30. // Dropdown items
  31. .dropdown-item {
  32. // Tabler sets display: flex
  33. display: inline-block;
  34. }
  35. // Set footer icon color
  36. .footer .text-primary {
  37. color: $rich-black !important;
  38. }
  39. // Tabs
  40. .nav-tabs {
  41. .nav-link {
  42. // Tabler sets display: flex
  43. display: inline-block;
  44. }
  45. }
  46. // Altering background colors
  47. .page, .page-tabs .nav-tabs .nav-link.active {
  48. background-color: var(--#{$prefix}bg-surface-tertiary) !important;
  49. }
  50. .page-body .card .card-header {
  51. background: var(--tblr-bg-surface-secondary) !important;
  52. }
  53. // Dark mode colors
  54. @if $enable-dark-mode {
  55. @include color-mode(dark, true) {
  56. --#{$prefix}alert-color: darken(var(--#{$prefix}warning),10%);
  57. --#{$prefix}link-color: #{$bright-teal};
  58. --#{$prefix}link-color-rgb: 0,242,212;
  59. --#{$prefix}link-hover-color-rgb: 0,242,212;
  60. --#{$prefix}secondary: #{$gray-400};
  61. --#{$prefix}primary: #{$bright-teal};
  62. --#{$prefix}primary-fg: #{$rich-black};
  63. --#{$prefix}primary-rgb: 0,242,212;
  64. --#{$prefix}btn-active-color: #{$rich-black};
  65. }
  66. }
  67. // Dark mode overrides
  68. body[data-bs-theme=dark] {
  69. // Override background color alpha value
  70. ::selection {
  71. background-color: rgba(var(--tblr-primary-rgb),.48);
  72. }
  73. .btn-primary {
  74. color: $rich-black !important;
  75. }
  76. // Change content color when primary teal changes with theme
  77. .bg-primary {
  78. .card-title,a,i {
  79. color: $rich-black !important;
  80. }
  81. }
  82. .text-bg-primary {
  83. color: $rich-black !important;
  84. }
  85. // Altering background colors
  86. .card {
  87. background: $rich-black !important;
  88. }
  89. // Background colors to match brand colors
  90. background-color: $rich-black;
  91. .navbar, .page-header {
  92. background-color: $rich-black;
  93. }
  94. .page, .page-tabs .nav-tabs .nav-link.active {
  95. background-color: $rich-black-light !important;
  96. }
  97. .page-link.active, .active>.page-link {
  98. color: $rich-black;
  99. }
  100. // Adjusting text colors
  101. .text- {
  102. &bg-primary {
  103. color: $rich-black !important;
  104. }
  105. &muted {
  106. color: var(--#{$prefix}secondary-color) !important;
  107. }
  108. &secondary {
  109. color: $gray-400 !important;
  110. }
  111. }
  112. .footer .text-primary {
  113. color: white !important;
  114. }
  115. }