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.

215 lines
3.4 KiB

10 years ago
10 years ago
10 years ago
10 years ago
  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-weight: bold;
  38. text-align: center;
  39. text-transform: @dividerTextTransform;
  40. color: @dividerTextColor;
  41. }
  42. /*--------------
  43. Vertical
  44. ---------------*/
  45. .ui.vertical.divider {
  46. position: absolute;
  47. z-index: 2;
  48. top: 50%;
  49. left: 50%;
  50. margin: 0% 0% 0% -(@verticalDividerWidth / 2);
  51. width: @verticalDividerWidth;
  52. height: 50%;
  53. line-height: 0em;
  54. padding: 0em;
  55. }
  56. .ui.vertical.divider:before,
  57. .ui.vertical.divider:after {
  58. position: absolute;
  59. left: 50%;
  60. content: " ";
  61. z-index: 3;
  62. border-left: @shadowWidth solid @shadowColor;
  63. border-right: @highlightWidth solid @highlightColor;
  64. width: 0%;
  65. height: 80%;
  66. }
  67. .ui.vertical.divider:before {
  68. top: -100%;
  69. }
  70. .ui.vertical.divider:after {
  71. top: auto;
  72. bottom: 0px;
  73. }
  74. /*--------------
  75. Horizontal
  76. ---------------*/
  77. .ui.horizontal.divider {
  78. position: relative;
  79. top: 0%;
  80. left: 0%;
  81. margin: @horizontalDividerVerticalMargin 0em;
  82. height: auto;
  83. padding: 0em;
  84. line-height: 1;
  85. }
  86. .ui.horizontal.divider:before,
  87. .ui.horizontal.divider:after {
  88. position: absolute;
  89. top: 50%;
  90. content: '';
  91. z-index: 3;
  92. width: @horizontalDividerWidth;
  93. top: 50%;
  94. height: 0%;
  95. border-top: @shadowWidth solid @shadowColor;
  96. border-bottom: @highlightWidth solid @highlightColor;
  97. }
  98. .ui.horizontal.divider:before {
  99. left: 0%;
  100. }
  101. .ui.horizontal.divider:after {
  102. left: auto;
  103. right: 0%;
  104. }
  105. /*--------------
  106. Icon
  107. ---------------*/
  108. .ui.divider > .icon {
  109. margin: @dividerIconMargin;
  110. font-size: @dividerIconSize;
  111. height: 1em;
  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. /*--------------
  161. Sizes
  162. ---------------*/
  163. .ui.divider {
  164. font-size: 1rem;
  165. }
  166. .loadUIOverrides();