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.

199 lines
3.8 KiB

  1. /*
  2. * # Semantic - Accordion
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 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. width: 600px;
  17. max-width: 100%;
  18. overflow: hidden;
  19. font-size: 1rem;
  20. border-radius: 0.3125em;
  21. background-color: #FFFFFF;
  22. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  23. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  24. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  25. }
  26. .ui.accordion .title {
  27. cursor: pointer;
  28. margin: 0em;
  29. padding: 0.75em 1em;
  30. color: rgba(0, 0, 0, 0.6);
  31. border-top: 1px solid rgba(0, 0, 0, 0.05);
  32. -webkit-transition:
  33. background-color 0.2s ease-out
  34. ;
  35. -moz-transition:
  36. background-color 0.2s ease-out
  37. ;
  38. -o-transition:
  39. background-color 0.2s ease-out
  40. ;
  41. -ms-transition:
  42. background-color 0.2s ease-out
  43. ;
  44. transition:
  45. background-color 0.2s ease-out
  46. ;
  47. }
  48. .ui.accordion .title:first-child {
  49. border-top: none;
  50. }
  51. /* Content */
  52. .ui.accordion .content {
  53. display: none;
  54. margin: 0em;
  55. padding: 1.3em 1em;
  56. }
  57. /* Arrow */
  58. .ui.accordion .title .dropdown.icon {
  59. display: inline-block;
  60. float: none;
  61. margin: 0em 0.5em 0em 0em;
  62. -webkit-transition:
  63. -webkit-transform 0.2s ease,
  64. opacity 0.2s ease
  65. ;
  66. -moz-transition:
  67. -moz-transform 0.2s ease,
  68. opacity 0.2s ease
  69. ;
  70. -o-transition:
  71. -o-transform 0.2s ease,
  72. opacity 0.2s ease
  73. ;
  74. -ms-transition:
  75. -ms-transform 0.2s ease,
  76. opacity 0.2s ease
  77. ;
  78. transition:
  79. transform 0.2s ease,
  80. opacity 0.2s ease
  81. ;
  82. -webkit-transform: rotate(0deg);
  83. -moz-transform: rotate(0deg);
  84. -o-transform: rotate(0deg);
  85. -ms-transform: rotate(0deg);
  86. transform: rotate(0deg);
  87. }
  88. .ui.accordion .title .dropdown.icon:before {
  89. content: '\f0da';
  90. }
  91. /*--------------
  92. Loose Coupling
  93. ---------------*/
  94. .ui.basic.accordion.menu {
  95. background-color: #FFFFFF;
  96. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  97. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  98. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  99. }
  100. .ui.basic.accordion.menu .title,
  101. .ui.basic.accordion.menu .content {
  102. padding: 0em;
  103. }
  104. /*******************************
  105. Types
  106. *******************************/
  107. /*--------------
  108. Basic
  109. ---------------*/
  110. .ui.basic.accordion {
  111. background-color: transparent;
  112. -webkit-box-shadow: none;
  113. -moz-box-shadow: none;
  114. box-shadow: none;
  115. }
  116. .ui.basic.accordion .title,
  117. .ui.basic.accordion .title {
  118. background-color: transparent;
  119. border-top: none;
  120. padding-left: 0em;
  121. padding-right: 0em;
  122. }
  123. .ui.basic.accordion .content {
  124. padding: 0.5em 0em;
  125. }
  126. .ui.basic.accordion .active.title {
  127. background-color: transparent;
  128. }
  129. /*******************************
  130. States
  131. *******************************/
  132. /*--------------
  133. Hover
  134. ---------------*/
  135. .ui.accordion .title:hover,
  136. .ui.accordion .active.title {
  137. color: rgba(0, 0, 0, 0.8);
  138. }
  139. /*--------------
  140. Active
  141. ---------------*/
  142. .ui.accordion .active.title {
  143. background-color: rgba(0, 0, 0, 0.1);
  144. color: rgba(0, 0, 0, 0.8);
  145. }
  146. .ui.accordion .active.title .dropdown.icon {
  147. -webkit-transform: rotate(90deg);
  148. -moz-transform: rotate(90deg);
  149. -o-transform: rotate(90deg);
  150. -ms-transform: rotate(90deg);
  151. transform: rotate(90deg);
  152. }
  153. .ui.accordion .active.content {
  154. display: block;
  155. }
  156. /*******************************
  157. Variations
  158. *******************************/
  159. /*--------------
  160. Fluid
  161. ---------------*/
  162. .ui.fluid.accordion,
  163. .ui.fluid.accordion .accordion {
  164. width: 100%;
  165. }