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.

138 lines
2.8 KiB

11 years ago
11 years ago
11 years ago
11 years ago
  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. height: 0em;
  20. -webkit-box-sizing: border-box;
  21. -moz-box-sizing: border-box;
  22. -ms-box-sizing: border-box;
  23. box-sizing: border-box;
  24. -webkit-user-select: none;
  25. -moz-user-select: none;
  26. -ms-user-select: none;
  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: 0.8rem;
  38. font-weight: bold;
  39. text-align: center;
  40. text-transform: uppercase;
  41. color: rgba(0, 0, 0, 0.8);
  42. }
  43. /*--------------
  44. Vertical
  45. ---------------*/
  46. .vertical.ui.divider {
  47. position: absolute;
  48. z-index: 2;
  49. top: 50%;
  50. left: 50%;
  51. margin: 0% 0% 0% -3%;
  52. width: 6%;
  53. height: 50%;
  54. line-height: 0;
  55. padding: 0em;
  56. }
  57. .vertical.ui.divider:before,
  58. .vertical.ui.divider:after {
  59. position: absolute;
  60. left: 50%;
  61. content: " ";
  62. z-index: 3;
  63. border-left: 1px solid rgba(0, 0, 0, 0.1);
  64. border-right: 1px solid rgba(255, 255, 255, 0.8);
  65. width: 0%;
  66. height: 80%;
  67. }
  68. .vertical.ui.divider:before {
  69. top: -100%;
  70. }
  71. .vertical.ui.divider:after {
  72. top: auto;
  73. bottom: 0px;
  74. }
  75. /*--------------
  76. Horizontal
  77. ---------------*/
  78. .horizontal.ui.divider {
  79. position: relative;
  80. top: 0%;
  81. left: 0%;
  82. margin: 1rem 0rem;
  83. width: 100%;
  84. height: 1em;
  85. padding: 0em;
  86. line-height: 1;
  87. }
  88. .horizontal.ui.divider:before,
  89. .horizontal.ui.divider:after {
  90. position: absolute;
  91. content: " ";
  92. z-index: 3;
  93. width: 45%;
  94. top: 50%;
  95. height: 0%;
  96. border-top: 1px solid rgba(0, 0, 0, 0.1);
  97. border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  98. }
  99. .horizontal.ui.divider:before {
  100. left: 0%;
  101. }
  102. .horizontal.ui.divider:after {
  103. left: auto;
  104. right: 0%;
  105. }
  106. /*******************************
  107. Variations
  108. *******************************/
  109. /*--------------
  110. Inverted
  111. ---------------*/
  112. .ui.divider.inverted {
  113. color: #ffffff;
  114. }
  115. .ui.vertical.inverted.divider,
  116. .ui.horizontal.inverted.divider {
  117. color: rgba(255, 255, 255, 0.9);
  118. }
  119. .ui.divider.inverted,
  120. .ui.divider.inverted:after,
  121. .ui.divider.inverted:before {
  122. border-top-color: rgba(0, 0, 0, 0.15);
  123. border-bottom-color: rgba(255, 255, 255, 0.15);
  124. border-left-color: rgba(0, 0, 0, 0.15);
  125. border-right-color: rgba(255, 255, 255, 0.15);
  126. }
  127. /*--------------
  128. Fitted
  129. ---------------*/
  130. .ui.fitted.divider {
  131. margin: 0em;
  132. }
  133. /*--------------
  134. Clearing
  135. ---------------*/
  136. .ui.clearing.divider {
  137. clear: both;
  138. }