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.

204 lines
3.4 KiB

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. line-height: 1;
  23. height: 0em;
  24. font-weight: @fontWeight;
  25. text-transform: @textTransform;
  26. color: @color;
  27. user-select: none;
  28. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  29. }
  30. /*--------------
  31. Basic
  32. ---------------*/
  33. .ui.divider:not(.vertical):not(.horizontal) {
  34. border-top: @shadowWidth solid @shadowColor;
  35. border-bottom: @highlightWidth solid @highlightColor;
  36. }
  37. /*--------------
  38. Coupling
  39. ---------------*/
  40. .ui.grid > .ui.divider {
  41. font-size: 1rem;
  42. }
  43. /*--------------
  44. Horizontal
  45. ---------------*/
  46. .ui.horizontal.divider {
  47. position: relative;
  48. height: auto;
  49. margin: @horizontalMargin;
  50. overflow: hidden;
  51. line-height: 1;
  52. text-align: center;
  53. }
  54. .ui.horizontal.divider:before,
  55. .ui.horizontal.divider:after {
  56. position: absolute;
  57. top: 50%;
  58. content: '';
  59. z-index: 3;
  60. width: 50%;
  61. top: 50%;
  62. height: 0px;
  63. border-top: @shadowWidth solid @shadowColor;
  64. border-bottom: @highlightWidth solid @highlightColor;
  65. }
  66. .ui.horizontal.divider:before {
  67. margin-left: -(50% + @horizontalDividerMargin);
  68. }
  69. .ui.horizontal.divider:after {
  70. margin-left: @horizontalDividerMargin;
  71. }
  72. /*--------------
  73. Vertical
  74. ---------------*/
  75. .ui.vertical.divider {
  76. position: absolute;
  77. z-index: 2;
  78. top: 50%;
  79. left: 50%;
  80. margin: 0rem;
  81. padding: 0em;
  82. width: auto;
  83. height: 50%;
  84. line-height: 0em;
  85. text-align: center;
  86. }
  87. .ui.vertical.divider:before,
  88. .ui.vertical.divider:after {
  89. position: absolute;
  90. left: 50%;
  91. content: '';
  92. z-index: 3;
  93. border-left: @shadowWidth solid @shadowColor;
  94. border-right: @highlightWidth solid @highlightColor;
  95. width: 0%;
  96. height: @verticalDividerHeight;
  97. }
  98. .ui.vertical.divider:before {
  99. top: -100%;
  100. }
  101. .ui.vertical.divider:after {
  102. top: auto;
  103. bottom: 0px;
  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 !important;
  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: @invertedTextColor;
  132. }
  133. .ui.divider.inverted,
  134. .ui.divider.inverted:after,
  135. .ui.divider.inverted:before {
  136. border-top-color: @invertedShadowColor !important;
  137. border-bottom-color: @invertedHighlightColor !important;
  138. border-left-color: @invertedShadowColor !important;
  139. border-right-color: @invertedHighlightColor !important;
  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();