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.

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