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.

200 lines
3.1 KiB

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