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.

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