dbc196f0a6939ba99885fcd93ef32892a9aaf25afd274a70b19f29a6be2370e40a34f6c4579528230b1ef253a7fb0cd49d1c90447dced9466db0fd5e9efe92 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. @import "mixins/mixins";
  2. @import "common/var";
  3. @import "./checkbox";
  4. @import "./radio";
  5. @import "./scrollbar";
  6. @include b(cascader-panel) {
  7. display: flex;
  8. border-radius: $--cascader-menu-radius;
  9. font-size: $--cascader-menu-font-size;
  10. @include when(bordered) {
  11. border: $--cascader-menu-border;
  12. border-radius: $--cascader-menu-radius;
  13. }
  14. }
  15. @include b(cascader-menu) {
  16. min-width: 180px;
  17. box-sizing: border-box;
  18. color: $--cascader-menu-font-color;
  19. border-right: $--cascader-menu-border;
  20. &:last-child {
  21. border-right: none;
  22. .el-cascader-node {
  23. padding-right: 20px;
  24. }
  25. }
  26. @include e(wrap) {
  27. height: 204px;
  28. }
  29. @include e(list) {
  30. position: relative;
  31. min-height: 100%;
  32. margin: 0;
  33. padding: 6px 0;
  34. list-style: none;
  35. box-sizing: border-box;
  36. }
  37. @include e(hover-zone) {
  38. position: absolute;
  39. top: 0;
  40. left: 0;
  41. width: 100%;
  42. height: 100%;
  43. pointer-events: none;
  44. }
  45. @include e(empty-text) {
  46. position: absolute;
  47. top: 50%;
  48. left: 50%;
  49. transform: translate(-50%, -50%);
  50. text-align: center;
  51. color: $--cascader-color-empty;
  52. }
  53. }
  54. @include b(cascader-node) {
  55. position: relative;
  56. display: flex;
  57. align-items: center;
  58. padding: 0 30px 0 20px;
  59. height: 34px;
  60. line-height: 34px;
  61. outline: none;
  62. &.is-selectable.in-active-path {
  63. color: $--cascader-menu-font-color;
  64. }
  65. &.in-active-path,
  66. &.is-selectable.in-checked-path,
  67. &.is-active {
  68. color: $--cascader-menu-selected-font-color;
  69. font-weight: bold;
  70. }
  71. &:not(.is-disabled) {
  72. cursor: pointer;
  73. &:hover, &:focus {
  74. background: $--cascader-node-background-hover;
  75. }
  76. }
  77. @include when(disabled) {
  78. color: $--cascader-node-color-disabled;
  79. cursor: not-allowed;
  80. }
  81. @include e(prefix) {
  82. position: absolute;
  83. left: 10px;
  84. }
  85. @include e(postfix) {
  86. position: absolute;
  87. right: 10px;
  88. }
  89. @include e(label) {
  90. flex: 1;
  91. padding: 0 10px;
  92. white-space: nowrap;
  93. overflow: hidden;
  94. text-overflow: ellipsis;
  95. }
  96. > .el-radio {
  97. margin-right: 0;
  98. .el-radio__label {
  99. padding-left: 0;
  100. }
  101. }
  102. }