misc.scss 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .paginator {
  2. width: -moz-fit-content;
  3. width: fit-content;
  4. margin: auto;
  5. vertical-align: bottom;
  6. .page-item {
  7. & > a {
  8. color: get-light-color('accent-color');
  9. }
  10. &.active,
  11. &:hover > a {
  12. background-color: get-light-color('accent-color') !important;
  13. color: get-light-color('text-over-accent-color') !important;
  14. }
  15. }
  16. }
  17. pre {
  18. margin: 5px;
  19. & > code {
  20. padding: 10px !important;
  21. }
  22. }
  23. @include media('<=large') {
  24. pre {
  25. margin: 0px;
  26. & > code {
  27. padding: 0px !important;
  28. }
  29. }
  30. }
  31. $alert-types: ('success', 'info', 'warning', 'danger');
  32. .alert {
  33. @each $type in $alert-types {
  34. &.#{$type} {
  35. background: get-alert-bg-color($type, 'light');
  36. svg {
  37. width: 1.25rem;
  38. height: 1.25rem;
  39. color: get-alert-text-color($type, 'light') !important;
  40. }
  41. strong {
  42. padding-left: 0.5rem;
  43. color: get-alert-text-color($type, 'light') !important;
  44. }
  45. }
  46. }
  47. }
  48. html[data-theme='dark'] {
  49. .paginator {
  50. .page-item {
  51. & > a {
  52. color: get-dark-color('accent-color');
  53. }
  54. &.active,
  55. &:hover > a {
  56. background-color: get-dark-color('accent-color') !important;
  57. color: get-dark-color('text-over-accent-color') !important;
  58. }
  59. }
  60. }
  61. .alert {
  62. @each $type in $alert-types {
  63. &.#{$type} {
  64. background: get-alert-bg-color($type, 'dark');
  65. svg {
  66. color: get-alert-text-color($type, 'dark') !important;
  67. }
  68. strong {
  69. color: get-alert-text-color($type, 'dark') !important;
  70. }
  71. }
  72. }
  73. }
  74. }