智慧水务管理系统 - 精河县供水工程综合管理平台

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. @use 'sass:map';
  2. @use 'mixins/mixins' as *;
  3. @use 'mixins/var' as *;
  4. @use 'mixins/utils' as *;
  5. @use 'common/var' as *;
  6. @include b(link) {
  7. @include set-component-css-var('link', $link);
  8. }
  9. @include b(link) {
  10. @include utils-inline-flex-center;
  11. flex-direction: row;
  12. vertical-align: middle;
  13. position: relative;
  14. text-decoration: none;
  15. outline: none;
  16. cursor: pointer;
  17. padding: 0;
  18. font-size: getCssVar('link', 'font-size');
  19. font-weight: getCssVar('link', 'font-weight');
  20. color: getCssVar('link', 'text-color');
  21. @include when(hover-underline) {
  22. &:hover:after {
  23. content: '';
  24. position: absolute;
  25. left: 0;
  26. right: 0;
  27. height: 0;
  28. bottom: 0;
  29. border-bottom: 1px solid getCssVar('link', 'hover-text-color');
  30. }
  31. }
  32. @include when(underline) {
  33. &:after {
  34. content: '';
  35. position: absolute;
  36. left: 0;
  37. right: 0;
  38. height: 0;
  39. bottom: 0;
  40. border-bottom: 1px solid getCssVar('link', 'text-color');
  41. }
  42. }
  43. &:hover {
  44. color: getCssVar('link', 'hover-text-color');
  45. &:after {
  46. border-color: getCssVar('link', 'hover-text-color');
  47. }
  48. }
  49. & [class*='#{$namespace}-icon-'] {
  50. & + span {
  51. margin-left: 5px;
  52. }
  53. }
  54. @include e(inner) {
  55. @include utils-inline-flex-center;
  56. }
  57. @each $type in $types {
  58. &.#{$namespace}-link--#{$type} {
  59. @include css-var-from-global(('link', 'text-color'), ('color', $type));
  60. @include css-var-from-global(
  61. ('link', 'hover-text-color'),
  62. ('color', $type, 'light-3')
  63. );
  64. @include css-var-from-global(
  65. ('link', 'disabled-text-color'),
  66. ('color', $type, 'light-5')
  67. );
  68. }
  69. }
  70. @include when(disabled) {
  71. color: getCssVar('link', 'disabled-text-color');
  72. cursor: not-allowed;
  73. &:after {
  74. border-color: getCssVar('link', 'disabled-text-color');
  75. }
  76. }
  77. }