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.

242 lines
4.5 KiB

10 years ago
  1. /*
  2. * # Semantic UI
  3. * git://github.com/Semantic-Org/Semantic-UI.git
  4. *
  5. *
  6. * Copyright 2014 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Divider
  13. *******************************/
  14. .ui.divider {
  15. margin: 1rem 0rem;
  16. line-height: 1;
  17. height: 0em;
  18. font-weight: bold;
  19. text-transform: uppercase;
  20. color: rgba(0, 0, 0, 0.85);
  21. -webkit-user-select: none;
  22. -moz-user-select: none;
  23. -ms-user-select: none;
  24. user-select: none;
  25. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  26. }
  27. /*--------------
  28. Basic
  29. ---------------*/
  30. .ui.divider:not(.vertical):not(.horizontal) {
  31. border-top: 1px solid rgba(0, 0, 0, 0.1);
  32. border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  33. }
  34. /*--------------
  35. Coupling
  36. ---------------*/
  37. .ui.grid > .ui.divider {
  38. font-size: 1rem;
  39. }
  40. /*--------------
  41. Horizontal
  42. ---------------*/
  43. .ui.horizontal.divider {
  44. position: relative;
  45. height: auto;
  46. margin: '';
  47. overflow: hidden;
  48. line-height: 1;
  49. text-align: center;
  50. }
  51. .ui.horizontal.divider:before,
  52. .ui.horizontal.divider:after {
  53. position: absolute;
  54. content: '';
  55. z-index: 3;
  56. width: 50%;
  57. top: 50%;
  58. height: 0px;
  59. border-top: 1px solid rgba(0, 0, 0, 0.1);
  60. border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  61. }
  62. .ui.horizontal.divider:before {
  63. margin-left: -51.5%;
  64. }
  65. .ui.horizontal.divider:after {
  66. margin-left: 1.5%;
  67. }
  68. /*--------------
  69. Vertical
  70. ---------------*/
  71. .ui.vertical.divider {
  72. position: absolute;
  73. z-index: 2;
  74. top: 50%;
  75. left: 50%;
  76. margin: 0rem;
  77. padding: 0em;
  78. width: auto;
  79. height: 50%;
  80. line-height: 0em;
  81. text-align: center;
  82. -webkit-transform: translateX(-50%);
  83. -ms-transform: translateX(-50%);
  84. transform: translateX(-50%);
  85. }
  86. .ui.vertical.divider:before,
  87. .ui.vertical.divider:after {
  88. position: absolute;
  89. left: 50%;
  90. content: '';
  91. z-index: 3;
  92. border-left: 1px solid rgba(0, 0, 0, 0.1);
  93. border-right: 1px solid rgba(255, 255, 255, 0.2);
  94. width: 0%;
  95. height: -webkit-calc(100% - 1rem );
  96. height: calc(100% - 1rem );
  97. }
  98. .ui.vertical.divider:before {
  99. top: -100%;
  100. }
  101. .ui.vertical.divider:after {
  102. top: auto;
  103. bottom: 0px;
  104. }
  105. /* Inside grid */
  106. @media only screen and (max-width: 767px) {
  107. .ui.stackable.grid .ui.vertical.divider,
  108. .ui.grid .stackable.row .ui.vertical.divider {
  109. position: relative;
  110. margin: 1rem 0rem;
  111. left: 50%;
  112. height: auto;
  113. overflow: hidden;
  114. line-height: 1;
  115. text-align: center;
  116. }
  117. .ui.stackable.grid .ui.vertical.divider:before,
  118. .ui.grid .stackable.row .ui.vertical.divider:before,
  119. .ui.stackable.grid .ui.vertical.divider:after,
  120. .ui.grid .stackable.row .ui.vertical.divider:after {
  121. position: absolute;
  122. left: auto;
  123. content: '';
  124. z-index: 3;
  125. width: 50%;
  126. top: 50%;
  127. height: 0px;
  128. border-top: 1px solid rgba(0, 0, 0, 0.1);
  129. border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  130. }
  131. .ui.stackable.grid .ui.vertical.divider:before,
  132. .ui.grid .stackable.row .ui.vertical.divider:before {
  133. margin-left: -51.5%;
  134. }
  135. .ui.stackable.grid .ui.vertical.divider:after,
  136. .ui.grid .stackable.row .ui.vertical.divider:after {
  137. margin-left: 1.5%;
  138. }
  139. }
  140. /*--------------
  141. Icon
  142. ---------------*/
  143. .ui.divider > .icon {
  144. margin: 0rem;
  145. font-size: 1rem;
  146. height: 1em;
  147. vertical-align: middle;
  148. }
  149. /*******************************
  150. Variations
  151. *******************************/
  152. /*--------------
  153. Hidden
  154. ---------------*/
  155. .ui.hidden.divider {
  156. border-color: transparent !important;
  157. }
  158. /*--------------
  159. Inverted
  160. ---------------*/
  161. .ui.divider.inverted {
  162. color: #ffffff;
  163. }
  164. .ui.vertical.inverted.divider,
  165. .ui.horizontal.inverted.divider {
  166. color: #ffffff;
  167. }
  168. .ui.divider.inverted,
  169. .ui.divider.inverted:after,
  170. .ui.divider.inverted:before {
  171. border-top-color: rgba(0, 0, 0, 0.15) !important;
  172. border-bottom-color: rgba(255, 255, 255, 0.15) !important;
  173. border-left-color: rgba(0, 0, 0, 0.15) !important;
  174. border-right-color: rgba(255, 255, 255, 0.15) !important;
  175. }
  176. /*--------------
  177. Fitted
  178. ---------------*/
  179. .ui.fitted.divider {
  180. margin: 0em;
  181. }
  182. /*--------------
  183. Clearing
  184. ---------------*/
  185. .ui.clearing.divider {
  186. clear: both;
  187. }
  188. /*--------------
  189. Section
  190. ---------------*/
  191. .ui.section.divider {
  192. margin-top: 2rem;
  193. margin-bottom: 2rem;
  194. }
  195. /*--------------
  196. Sizes
  197. ---------------*/
  198. .ui.divider {
  199. font-size: 1rem;
  200. }
  201. /*******************************
  202. Theme Overrides
  203. *******************************/
  204. /*******************************
  205. Site Overrides
  206. *******************************/