breadcrumb.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. //@import '../theme/variables.scss';
  2. // @import '../theme/mixin.scss';
  3. // @import '../theme/_font.scss';
  4. @import './variables.scss';
  5. $module: #{$prefix}-breadcrumb;
  6. .#{$module} {
  7. overflow: hidden;
  8. &-wrapper {
  9. display: flex;
  10. flex-wrap: wrap;
  11. &-loose {
  12. @include font-size-regular;
  13. }
  14. &-compact {
  15. @include font-size-small;
  16. }
  17. }
  18. &-item-wrap {
  19. display: inline-flex;
  20. align-items: center;
  21. margin: $spacing-breadcrumb_item_wrap-marginY 0;
  22. margin-right: $spacing-breadcrumb_item_wrap-marginRight;
  23. }
  24. &-item {
  25. display: inline;
  26. // flex-shrink: 0;
  27. margin-right: $spacing-breadcrumb_item-marginRight;
  28. color: $color-breadcrumb_default-text-default;
  29. font-weight: $font-breadcrumb_default-fontWeight;
  30. .#{$prefix}-typography {
  31. color: inherit;
  32. }
  33. // removed to item-link cls
  34. // &:hover {
  35. // color: $color-breadcrumb_default-text-hover;
  36. // cursor: pointer;
  37. // }
  38. // &:active {
  39. // color: $color-breadcrumb_default-text-active;
  40. // cursor: pointer;
  41. // }
  42. &-title-inline {
  43. display: inline-flex;
  44. }
  45. }
  46. &-item-active {
  47. color: $color-breadcrumb_active-text-default;
  48. font-weight: $font-breadcrumb_active-fontWeight;
  49. &:hover,
  50. &:active {
  51. border: none;
  52. margin-bottom: 0px;
  53. color: $color-breadcrumb_active-text-active;
  54. cursor: default;
  55. }
  56. }
  57. &-item-icon {
  58. margin-bottom: -1px;
  59. }
  60. // &-item-title,
  61. &-item-more {
  62. & svg {
  63. vertical-align: middle;
  64. }
  65. }
  66. &-item-icon+&-item-title {
  67. margin-left: $spacing-breadcrumb_item_text-marginLeft;
  68. }
  69. &-item-link {
  70. display: inline-flex;
  71. align-items: center;
  72. column-gap: 4px;
  73. text-decoration: inherit;
  74. &:hover {
  75. color: $color-breadcrumb_default-text-hover;
  76. cursor: pointer;
  77. }
  78. &:active {
  79. color: $color-breadcrumb_default-text-active;
  80. cursor: pointer;
  81. }
  82. }
  83. &-collapse {
  84. display: inline-flex;
  85. flex-shrink: 0;
  86. }
  87. &-separator {
  88. display: flex;
  89. color: $color-breadcrumb_sepearator_default-icon-default;
  90. }
  91. &-restItem {
  92. color: $color-breadcrumb_restItem-text-default;
  93. margin-right: $spacing-breadcrumb_restItem-marginRight;
  94. }
  95. }
  96. @import './rtl.scss';