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.

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