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.

237 lines
8.2 KiB

10 years ago
10 years ago
  1. /*
  2. * # Semantic UI
  3. * git://github.com/Semantic-Org/Semantic-UI.git#1.0
  4. *
  5. *
  6. * Copyright 2014 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. font-size: 1em;
  18. }
  19. .ui.accordion .accordion {
  20. margin: 1em 0em 0em;
  21. padding: 0em;
  22. }
  23. /* Title */
  24. .ui.accordion .title,
  25. .ui.accordion .accordion .title {
  26. cursor: pointer;
  27. }
  28. /* Default Styling */
  29. .ui.accordion .title:not(.ui) {
  30. padding: 0.5em 0em;
  31. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  32. font-size: 1em;
  33. color: rgba(0, 0, 0, 0.8);
  34. }
  35. /* Content */
  36. .ui.accordion .title ~ .content,
  37. .ui.accordion .accordion .title ~ .content {
  38. display: none;
  39. }
  40. /* Default Styling */
  41. .ui.accordion:not(.styled) .title ~ .content:not(.ui),
  42. .ui.accordion:not(.styled) .accordion .title ~ .content:not(.ui) {
  43. margin: 0em;
  44. padding: 0.5em 0em 1em;
  45. }
  46. .ui.accordion:not(.styled) .title ~ .content:not(.ui):last-child {
  47. padding-bottom: 0em;
  48. }
  49. /* Arrow */
  50. .ui.accordion .title .dropdown.icon,
  51. .ui.accordion .accordion .title .dropdown.icon {
  52. display: inline-block;
  53. float: none;
  54. opacity: 0.75;
  55. width: 1.25em;
  56. height: 1em;
  57. margin: 0em 0.25rem 0em 0rem;
  58. padding: 0em;
  59. -webkit-transition: -webkit-transform 0.2s ease, opacity 0.2s ease;
  60. transition: transform 0.2s ease, opacity 0.2s ease;
  61. vertical-align: baseline;
  62. -webkit-transform: rotate(0deg);
  63. -ms-transform: rotate(0deg);
  64. transform: rotate(0deg);
  65. }
  66. /* Coupling with accordion */
  67. .ui.accordion.menu .item .title {
  68. display: block;
  69. padding: 0em;
  70. }
  71. .ui.accordion.menu .item .title > .dropdown.icon {
  72. float: right;
  73. margin: 0.165em 0em 0em 1em;
  74. -webkit-transform: rotate(180deg);
  75. -ms-transform: rotate(180deg);
  76. transform: rotate(180deg);
  77. }
  78. /*******************************
  79. States
  80. *******************************/
  81. .ui.accordion .active.title .dropdown.icon,
  82. .ui.accordion .accordion .active.title .dropdown.icon {
  83. -webkit-transform: rotate(90deg);
  84. -ms-transform: rotate(90deg);
  85. transform: rotate(90deg);
  86. }
  87. .ui.accordion.menu .item .active.title > .dropdown.icon {
  88. -webkit-transform: rotate(90deg);
  89. -ms-transform: rotate(90deg);
  90. transform: rotate(90deg);
  91. }
  92. /*******************************
  93. Types
  94. *******************************/
  95. /*--------------
  96. Styled
  97. ---------------*/
  98. .ui.styled.accordion {
  99. width: 600px;
  100. }
  101. .ui.styled.accordion,
  102. .ui.styled.accordion .accordion {
  103. border-radius: 0.2857rem;
  104. background: #ffffff;
  105. box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(39, 41, 43, 0.15);
  106. }
  107. .ui.styled.accordion .title,
  108. .ui.styled.accordion .accordion .title {
  109. margin: 0em;
  110. padding: 0.75em 1em;
  111. color: rgba(0, 0, 0, 0.4);
  112. font-weight: bold;
  113. border-top: 1px solid rgba(39, 41, 43, 0.15);
  114. -webkit-transition: background 0.2s ease, color 0.2s ease;
  115. transition: background 0.2s ease, color 0.2s ease;
  116. }
  117. .ui.styled.accordion .title:first-child,
  118. .ui.styled.accordion .accordion .title:first-child {
  119. border-top: none;
  120. }
  121. /* Content */
  122. .ui.styled.accordion .content,
  123. .ui.styled.accordion .accordion .content {
  124. margin: 0em;
  125. padding: 0.5em 1em 1.5em;
  126. }
  127. .ui.styled.accordion .accordion .content {
  128. padding: 0em;
  129. padding: 0.5em 1em 1.5em;
  130. }
  131. /* Hover */
  132. .ui.styled.accordion .title:hover,
  133. .ui.styled.accordion .active.title,
  134. .ui.styled.accordion .accordion .title:hover,
  135. .ui.styled.accordion .accordion .active.title {
  136. background: transparent;
  137. color: rgba(0, 0, 0, 0.8);
  138. }
  139. .ui.styled.accordion .accordion .title:hover,
  140. .ui.styled.accordion .accordion .active.title {
  141. background: transparent;
  142. color: rgba(0, 0, 0, 0.8);
  143. }
  144. /* Active */
  145. .ui.styled.accordion .active.title {
  146. background: transparent;
  147. color: rgba(0, 0, 0, 0.8);
  148. }
  149. .ui.styled.accordion .accordion .active.title {
  150. background: transparent;
  151. color: rgba(0, 0, 0, 0.8);
  152. }
  153. /*******************************
  154. States
  155. *******************************/
  156. /*--------------
  157. Active
  158. ---------------*/
  159. .ui.accordion .active.content,
  160. .ui.accordion .accordion .active.content {
  161. display: block;
  162. }
  163. /*******************************
  164. Variations
  165. *******************************/
  166. /*--------------
  167. Fluid
  168. ---------------*/
  169. .ui.fluid.accordion,
  170. .ui.fluid.accordion .accordion {
  171. width: 100%;
  172. }
  173. /*******************************
  174. Theme Overrides
  175. *******************************/
  176. @font-face {
  177. font-family: 'Accordion';
  178. src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMggjB5AAAAC8AAAAYGNtYXAPfOIKAAABHAAAAExnYXNwAAAAEAAAAWgAAAAIZ2x5Zryj6HgAAAFwAAAAyGhlYWT/0IhHAAACOAAAADZoaGVhApkB5wAAAnAAAAAkaG10eAJuABIAAAKUAAAAGGxvY2EAjABWAAACrAAAAA5tYXhwAAgAFgAAArwAAAAgbmFtZfC1n04AAALcAAABPHBvc3QAAwAAAAAEGAAAACAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADw2gHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEADgAAAAKAAgAAgACAAEAI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AAAAADgCuAAEAAAAAAAEADAAAAAEAAAAAAAIADgBAAAEAAAAAAAMADAAiAAEAAAAAAAQADABOAAEAAAAAAAUAFgAMAAEAAAAAAAYABgAuAAEAAAAAAAoANABaAAMAAQQJAAEADAAAAAMAAQQJAAIADgBAAAMAAQQJAAMADAAiAAMAAQQJAAQADABOAAMAAQQJAAUAFgAMAAMAAQQJAAYADAA0AAMAAQQJAAoANABaAHIAYQB0AGkAbgBnAFYAZQByAHMAaQBvAG4AIAAxAC4AMAByAGEAdABpAG4AZ3JhdGluZwByAGEAdABpAG4AZwBSAGUAZwB1AGwAYQByAHIAYQB0AGkAbgBnAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('woff');
  179. font-weight: normal;
  180. font-style: normal;
  181. }
  182. /* Dropdown Icon */
  183. .ui.accordion .title .dropdown.icon,
  184. .ui.accordion .accordion .title .dropdown.icon {
  185. font-family: Accordion;
  186. line-height: 1;
  187. -webkit-backface-visibility: hidden;
  188. backface-visibility: hidden;
  189. font-weight: normal;
  190. font-style: normal;
  191. text-align: center;
  192. }
  193. .ui.accordion .title .dropdown.icon:before,
  194. .ui.accordion .accordion .title .dropdown.icon:before {
  195. content: '\f0da' /*rtl:'\f0d9'*/;
  196. }
  197. /*******************************
  198. User Overrides
  199. *******************************/