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.9 KiB

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