You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

207 lines
3.3 KiB

  1. /*
  2. * # Semantic - Divider
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'element';
  15. @element : 'divider';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Divider
  19. *******************************/
  20. .ui.divider {
  21. margin: @dividerMargin 0rem;
  22. border-top: @shadowWidth solid @shadowColor;
  23. border-bottom: @highlightWidth solid @highlightColor;
  24. line-height: 1;
  25. height: 0em;
  26. box-sizing: border-box;
  27. user-select: none;
  28. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  29. }
  30. .ui.vertical.divider,
  31. .ui.horizontal.divider {
  32. position: absolute;
  33. border: none;
  34. height: 0em;
  35. margin: 0em;
  36. background-color: transparent;
  37. font-size: @medium;
  38. font-weight: bold;
  39. text-align: center;
  40. text-transform: @dividerTextTransform;
  41. color: @dividerTextColor;
  42. }
  43. /*--------------
  44. Vertical
  45. ---------------*/
  46. .ui.vertical.divider {
  47. position: absolute;
  48. z-index: 2;
  49. top: 50%;
  50. left: 50%;
  51. margin: 0% 0% 0% (@verticalDividerWidth / 2);
  52. width: @verticalDividerWidth;
  53. height: 50%;
  54. line-height: 0;
  55. padding: 0em;
  56. }
  57. .ui.vertical.divider:before,
  58. .ui.vertical.divider:after {
  59. position: absolute;
  60. left: 50%;
  61. content: " ";
  62. z-index: 3;
  63. border-left: @shadowWidth solid @shadowColor;
  64. border-right: @highlightWidth solid @highlightColor;
  65. width: 0%;
  66. height: 80%;
  67. }
  68. .ui.vertical.divider:before {
  69. top: -100%;
  70. }
  71. .ui.vertical.divider:after {
  72. top: auto;
  73. bottom: 0px;
  74. }
  75. /*--------------
  76. Horizontal
  77. ---------------*/
  78. .ui.horizontal.divider {
  79. position: relative;
  80. top: 0%;
  81. left: 0%;
  82. margin: @horizontalDividerVerticalMargin 0em;
  83. height: auto;
  84. padding: 0em;
  85. line-height: 1;
  86. }
  87. .ui.horizontal.divider:before,
  88. .ui.horizontal.divider:after {
  89. position: absolute;
  90. top: 50%;
  91. content: '';
  92. z-index: 3;
  93. width: @horizontalDividerWidth;
  94. top: 50%;
  95. height: 0%;
  96. border-top: @shadowWidth solid @shadowColor;
  97. border-bottom: @highlightWidth solid @highlightColor;
  98. }
  99. .ui.horizontal.divider:before {
  100. left: 0%;
  101. }
  102. .ui.horizontal.divider:after {
  103. left: auto;
  104. right: 0%;
  105. }
  106. /*--------------
  107. Icon
  108. ---------------*/
  109. .ui.divider > .icon {
  110. margin: @dividerIconMargin;
  111. font-size: @dividerIconSize;
  112. vertical-align: middle;
  113. }
  114. /*******************************
  115. Variations
  116. *******************************/
  117. /*--------------
  118. Hidden
  119. ---------------*/
  120. .ui.hidden.divider {
  121. border-color: transparent;
  122. }
  123. /*--------------
  124. Inverted
  125. ---------------*/
  126. .ui.divider.inverted {
  127. color: @invertedTextColor;
  128. }
  129. .ui.vertical.inverted.divider,
  130. .ui.horizontal.inverted.divider {
  131. color: @directionalTextColor;
  132. }
  133. .ui.divider.inverted,
  134. .ui.divider.inverted:after,
  135. .ui.divider.inverted:before {
  136. border-top-color: @invertedShadowColor;
  137. border-bottom-color: @invertedHighlightColor;
  138. border-left-color: @invertedShadowColor;
  139. border-right-color: @invertedHighlightColor;
  140. }
  141. /*--------------
  142. Fitted
  143. ---------------*/
  144. .ui.fitted.divider {
  145. margin: 0em;
  146. }
  147. /*--------------
  148. Clearing
  149. ---------------*/
  150. .ui.clearing.divider {
  151. clear: both;
  152. }
  153. /*--------------
  154. Section
  155. ---------------*/
  156. .ui.section.divider {
  157. margin-top: @sectionMargin;
  158. margin-bottom: @sectionMargin;
  159. }
  160. .loadUIOverrides();