breadcrumb.scss 2.8 KB

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