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.

174 lines
3.4 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. Button
  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. States
  105. *******************************/
  106. /*--------------
  107. Hover
  108. ---------------*/
  109. .ui.accordion .title:hover,
  110. .ui.accordion .active.title {
  111. color: rgba(0, 0, 0, 0.8);
  112. }
  113. /*--------------
  114. Active
  115. ---------------*/
  116. .ui.accordion .active.title {
  117. background-color: rgba(0, 0, 0, 0.1);
  118. color: rgba(0, 0, 0, 0.8);
  119. }
  120. .ui.accordion .active.title .dropdown.icon {
  121. -webkit-transform: rotate(90deg);
  122. -moz-transform: rotate(90deg);
  123. -o-transform: rotate(90deg);
  124. -ms-transform: rotate(90deg);
  125. transform: rotate(90deg);
  126. }
  127. .ui.accordion .active.content {
  128. display: block;
  129. }
  130. /*******************************
  131. Variations
  132. *******************************/
  133. .ui.basic.accordion {
  134. background-color: transparent;
  135. -webkit-box-shadow: none;
  136. -moz-box-shadow: none;
  137. box-shadow: none;
  138. }
  139. .ui.basic.accordion .title {
  140. background-color: transparent;
  141. border-top: none;
  142. }
  143. .ui.basic.accordion .title,
  144. .ui.basic.accordion .content {
  145. padding-left: 0em;
  146. padding-right: 0em;
  147. }