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.

223 lines
4.6 KiB

  1. /*!
  2. * # Semantic UI 2.1.6 - Accordion
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Accordion
  13. *******************************/
  14. .ui.accordion,
  15. .ui.accordion .accordion {
  16. max-width: 100%;
  17. }
  18. .ui.accordion .accordion {
  19. margin: 1em 0em 0em;
  20. padding: 0em;
  21. }
  22. /* Title */
  23. .ui.accordion .title,
  24. .ui.accordion .accordion .title {
  25. cursor: pointer;
  26. }
  27. /* Default Styling */
  28. .ui.accordion .title:not(.ui) {
  29. padding: 0.5em 0em;
  30. font-family: 'Arial', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  31. font-size: 1em;
  32. color: rgba(0, 0, 0, 0.87);
  33. }
  34. /* Content */
  35. .ui.accordion .title ~ .content,
  36. .ui.accordion .accordion .title ~ .content {
  37. display: none;
  38. }
  39. /* Default Styling */
  40. .ui.accordion:not(.styled) .title ~ .content:not(.ui),
  41. .ui.accordion:not(.styled) .accordion .title ~ .content:not(.ui) {
  42. margin: '';
  43. padding: 0.5em 0em 1em;
  44. }
  45. .ui.accordion:not(.styled) .title ~ .content:not(.ui):last-child {
  46. padding-bottom: 0em;
  47. }
  48. /* Arrow */
  49. .ui.accordion .title .dropdown.icon,
  50. .ui.accordion .accordion .title .dropdown.icon {
  51. display: inline-block;
  52. float: none;
  53. opacity: 1;
  54. width: 1.25em;
  55. height: 1em;
  56. margin: 0em 0.25rem 0em 0rem;
  57. padding: 0em;
  58. font-size: 1em;
  59. -webkit-transition: -webkit-transform 0.1s ease, opacity 0.1s ease;
  60. transition: transform 0.1s ease, opacity 0.1s ease;
  61. vertical-align: baseline;
  62. -webkit-transform: none;
  63. transform: none;
  64. }
  65. /*--------------
  66. Coupling
  67. ---------------*/
  68. /* Menu */
  69. .ui.accordion.menu .item .title {
  70. display: block;
  71. padding: 0em;
  72. }
  73. .ui.accordion.menu .item .title > .dropdown.icon {
  74. float: right;
  75. margin: 0.21425em 0em 0em 1em;
  76. -webkit-transform: rotate(180deg);
  77. transform: rotate(180deg);
  78. }
  79. /* Header */
  80. .ui.accordion .ui.header .dropdown.icon {
  81. font-size: 1em;
  82. margin: 0em 0.25rem 0em 0rem;
  83. }
  84. /*******************************
  85. States
  86. *******************************/
  87. .ui.accordion .active.title .dropdown.icon,
  88. .ui.accordion .accordion .active.title .dropdown.icon {
  89. -webkit-transform: rotate(90deg);
  90. transform: rotate(90deg);
  91. }
  92. .ui.accordion.menu .item .active.title > .dropdown.icon {
  93. -webkit-transform: rotate(90deg);
  94. transform: rotate(90deg);
  95. }
  96. /*******************************
  97. Types
  98. *******************************/
  99. /*--------------
  100. Styled
  101. ---------------*/
  102. .ui.styled.accordion {
  103. width: 600px;
  104. }
  105. .ui.styled.accordion,
  106. .ui.styled.accordion .accordion {
  107. border-radius: 0.2307em;
  108. background: #FFFFFF;
  109. box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.13), 0px 0px 0px 1px rgba(0, 0, 0, 0.13);
  110. }
  111. .ui.styled.accordion .title,
  112. .ui.styled.accordion .accordion .title {
  113. margin: 0em;
  114. padding: 0.75em 1em;
  115. color: rgba(0, 0, 0, 0.4);
  116. font-weight: bold;
  117. border-top: 1px solid rgba(0, 0, 0, 0.13);
  118. -webkit-transition: background 0.1s ease, color 0.1s ease;
  119. transition: background 0.1s ease, color 0.1s ease;
  120. }
  121. .ui.styled.accordion > .title:first-child,
  122. .ui.styled.accordion .accordion .title:first-child {
  123. border-top: none;
  124. }
  125. /* Content */
  126. .ui.styled.accordion .content,
  127. .ui.styled.accordion .accordion .content {
  128. margin: 0em;
  129. padding: 0.5em 1em 1.5em;
  130. }
  131. .ui.styled.accordion .accordion .content {
  132. padding: 0em;
  133. padding: 0.5em 1em 1.5em;
  134. }
  135. /* Hover */
  136. .ui.styled.accordion .title:hover,
  137. .ui.styled.accordion .active.title,
  138. .ui.styled.accordion .accordion .title:hover,
  139. .ui.styled.accordion .accordion .active.title {
  140. background: transparent;
  141. color: rgba(0, 0, 0, 0.87);
  142. }
  143. .ui.styled.accordion .accordion .title:hover,
  144. .ui.styled.accordion .accordion .active.title {
  145. background: transparent;
  146. color: rgba(0, 0, 0, 0.87);
  147. }
  148. /* Active */
  149. .ui.styled.accordion .active.title {
  150. background: transparent;
  151. color: rgba(0, 0, 0, 0.95);
  152. }
  153. .ui.styled.accordion .accordion .active.title {
  154. background: transparent;
  155. color: rgba(0, 0, 0, 0.95);
  156. }
  157. /*******************************
  158. States
  159. *******************************/
  160. /*--------------
  161. Active
  162. ---------------*/
  163. .ui.accordion .active.content,
  164. .ui.accordion .accordion .active.content {
  165. display: block;
  166. }
  167. /*******************************
  168. Variations
  169. *******************************/
  170. /*--------------
  171. Fluid
  172. ---------------*/
  173. .ui.fluid.accordion,
  174. .ui.fluid.accordion .accordion {
  175. width: 100%;
  176. }
  177. /*--------------
  178. Inverted
  179. ---------------*/
  180. .ui.inverted.accordion .title:not(.ui) {
  181. color: rgba(255, 255, 255, 0.9);
  182. }
  183. /*******************************
  184. User Overrides
  185. *******************************/