border-management.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. @mixin border-management($parent-cls, $border-width: null, $border-color: null, $border-radius: null, $border-radius-big) {
  2. .#{$prefix}#{$parent-cls}-outer-border-l {
  3. border-left-color: left($border-color) !important;
  4. border-left-width: left($border-width) !important;
  5. }
  6. .#{$prefix}#{$parent-cls}-outer-border-b {
  7. border-bottom-color: bottom($border-color) !important;
  8. border-bottom-width: bottom($border-width) !important;
  9. }
  10. .#{$prefix}#{$parent-cls}-outer-border-bl {
  11. border-bottom-color: bottom($border-color) !important;
  12. border-bottom-width: bottom($border-width) !important;
  13. border-left-color: left($border-color) !important;
  14. border-left-width: left($border-width) !important;
  15. border-radius: 0 0 0 left($border-radius);
  16. @if $enable-big {
  17. .#{$prefix}big & {
  18. border-radius: 0 0 0 left($border-radius-big);
  19. }
  20. }
  21. }
  22. .#{$prefix}#{$parent-cls}-outer-border-r {
  23. border-right-color: right($border-color) !important;
  24. border-right-width: right($border-width) !important;
  25. }
  26. .#{$prefix}#{$parent-cls}-outer-border-rl {
  27. border-right-color: right($border-color) !important;
  28. border-right-width: right($border-width) !important;
  29. border-left-color: left($border-color) !important;
  30. border-left-width: left($border-width) !important;
  31. }
  32. .#{$prefix}#{$parent-cls}-outer-border-rb {
  33. border-right-color: right($border-color) !important;
  34. border-right-width: right($border-width) !important;
  35. border-bottom-color: bottom($border-color) !important;
  36. border-bottom-width: bottom($border-width) !important;
  37. border-radius: 0 0 bottom($border-radius);
  38. @if $enable-big {
  39. .#{$prefix}big & {
  40. border-radius: 0 0 bottom($border-radius-big);
  41. }
  42. }
  43. }
  44. .#{$prefix}#{$parent-cls}-outer-border-rbl {
  45. border-right-color: right($border-color) !important;
  46. border-right-width: right($border-width) !important;
  47. border-bottom-color: bottom($border-color) !important;
  48. border-bottom-width: bottom($border-width) !important;
  49. border-left-color: left($border-color) !important;
  50. border-left-width: left($border-width) !important;
  51. border-radius: 0 0 bottom($border-radius) left($border-radius);
  52. @if $enable-big {
  53. .#{$prefix}big & {
  54. border-radius: 0 0 bottom($border-radius-big) left($border-radius-big);
  55. }
  56. }
  57. }
  58. .#{$prefix}#{$parent-cls}-outer-border-t {
  59. border-top-color: top($border-color) !important;
  60. border-top-width: top($border-width) !important;
  61. }
  62. .#{$prefix}#{$parent-cls}-outer-border-tl {
  63. border-top-color: top($border-color) !important;
  64. border-top-width: top($border-width) !important;
  65. border-left-color: left($border-color) !important;
  66. border-left-width: left($border-width) !important;
  67. border-radius: top($border-radius) 0 0;
  68. @if $enable-big {
  69. .#{$prefix}big & {
  70. border-radius: top($border-radius-big) 0 0;
  71. }
  72. }
  73. }
  74. .#{$prefix}#{$parent-cls}-outer-border-tb {
  75. border-top-color: top($border-color) !important;
  76. border-top-width: top($border-width) !important;
  77. border-bottom-color: bottom($border-color) !important;
  78. border-bottom-width: bottom($border-width) !important;
  79. }
  80. .#{$prefix}#{$parent-cls}-outer-border-tbl {
  81. border-top-color: top($border-color) !important;
  82. border-top-width: top($border-width) !important;
  83. border-bottom-color: bottom($border-color) !important;
  84. border-bottom-width: bottom($border-width) !important;
  85. border-left-color: left($border-color) !important;
  86. border-left-width: left($border-width) !important;
  87. border-radius: top($border-radius) 0 0 left($border-radius);
  88. @if $enable-big {
  89. .#{$prefix}big & {
  90. border-radius: top($border-radius-big) 0 0 left($border-radius-big);
  91. }
  92. }
  93. }
  94. .#{$prefix}#{$parent-cls}-outer-border-tr {
  95. border-top-color: top($border-color) !important;
  96. border-top-width: top($border-width) !important;
  97. border-right-color: right($border-color) !important;
  98. border-right-width: right($border-width) !important;
  99. border-radius: 0 right($border-radius) 0 0;
  100. @if $enable-big {
  101. .#{$prefix}big & {
  102. border-radius: 0 right($border-radius-big) 0 0;
  103. }
  104. }
  105. }
  106. .#{$prefix}#{$parent-cls}-outer-border-trl {
  107. border-top-color: top($border-color) !important;
  108. border-top-width: top($border-width) !important;
  109. border-right-color: right($border-color) !important;
  110. border-right-width: right($border-width) !important;
  111. border-left-color: left($border-color) !important;
  112. border-left-width: left($border-width) !important;
  113. border-radius: top($border-radius) right($border-radius) 0 0;
  114. @if $enable-big {
  115. .#{$prefix}big & {
  116. border-radius: top($border-radius-big) right($border-radius-big) 0 0;
  117. }
  118. }
  119. }
  120. .#{$prefix}#{$parent-cls}-outer-border-trb {
  121. border-top-color: top($border-color) !important;
  122. border-top-width: top($border-width) !important;
  123. border-right-color: right($border-color) !important;
  124. border-right-width: right($border-width) !important;
  125. border-bottom-color: bottom($border-color) !important;
  126. border-bottom-width: bottom($border-width) !important;
  127. border-radius: 0 right($border-radius) bottom($border-radius) 0;
  128. @if $enable-big {
  129. .#{$prefix}big & {
  130. border-radius: 0 right($border-radius-big) bottom($border-radius-big) 0;
  131. }
  132. }
  133. }
  134. .#{$prefix}#{$parent-cls}-outer-border-trbl {
  135. border-color: $border-color !important;
  136. border-width: $border-width !important;
  137. border-radius: $border-radius;
  138. @if $enable-big {
  139. .#{$prefix}big & {
  140. border-radius: $border-radius-big;
  141. }
  142. }
  143. }
  144. }