You are here

views-accordion.css in Views Accordion 6

Same filename and directory in other branches
  1. 7 views-accordion.css
/*
 * @file
 * Style sheet for the views_accordion module
 * 
 * You can disable the loading of this file in your style options, just uncheck 'Use the module's default styling'
 *
 * .views-accordion-item wrappers get per-row classes like item-0, item-1 and so on
 *  style each row independently like this:
 * .views-accordion .item-1
*/

/* the whole accordion (only when js is enabled) */
.accordion-active {
 border: 1px solid #ddd;
 margin-bottom:1em;
}

/* all accordion sections */
.views-accordion-item {
}

/* the content hidden/shown within each section (only when js is enabled) */
.views-accordion-item .accordion-content {
  background-color: #fff;
  color: #333;
  border-bottom: 1px solid #ddd;
}
.views-accordion-item .accordion-content p {
  margin: 0px; /* so that the animation doesn't jump */
}
/* the header the user clicks to open sections (only when js is enabled)*/
.accordion-header {
  cursor: pointer;
  color: #111;
  display: block; /* we dont know what html tag it will be, otherwise spans will display weirdly */
}
h3.accordion-header {
  margin-bottom:0;
  
}
.views-accordion-item .accordion-header,
h3.accordion-header {
  background-color:    #eee;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.accordion-item-even .accordion-header {
  background-color:    #ddd;
  border-color: #ccc;
}

/*
 * Don't use padding/margin top/bottom on .views-accordion-item, or the animation will jump for that ammount
 * so apply it to the header and the first divs inside the accordion-content
 */
.views-accordion-item .accordion-content div,
.views-accordion-item .accordion-header,
h3.accordion-header {
 padding: 0.5em 1em;
}
.views-accordion-item .accordion-content div div {
  padding: 0;
}

/* header mouse-over and section-opened states (only when js is enabled)*/
.views-accordion-item .accordion-header-hover,
h3.accordion-header-hover {
  border-color: #fff;
}
.views-accordion-item .accordion-header-active,
h3.accordion-header-active {
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

/* Buttons */
span.stop-accordion,
span.toggleAccordion {
  display: block;
  text-align: right;
}

File

views-accordion.css
View source
  1. /*
  2. * @file
  3. * Style sheet for the views_accordion module
  4. *
  5. * You can disable the loading of this file in your style options, just uncheck 'Use the module's default styling'
  6. *
  7. * .views-accordion-item wrappers get per-row classes like item-0, item-1 and so on
  8. * style each row independently like this:
  9. * .views-accordion .item-1
  10. */
  11. /* the whole accordion (only when js is enabled) */
  12. .accordion-active {
  13. border: 1px solid #ddd;
  14. margin-bottom:1em;
  15. }
  16. /* all accordion sections */
  17. .views-accordion-item {
  18. }
  19. /* the content hidden/shown within each section (only when js is enabled) */
  20. .views-accordion-item .accordion-content {
  21. background-color: #fff;
  22. color: #333;
  23. border-bottom: 1px solid #ddd;
  24. }
  25. .views-accordion-item .accordion-content p {
  26. margin: 0px; /* so that the animation doesn't jump */
  27. }
  28. /* the header the user clicks to open sections (only when js is enabled)*/
  29. .accordion-header {
  30. cursor: pointer;
  31. color: #111;
  32. display: block; /* we dont know what html tag it will be, otherwise spans will display weirdly */
  33. }
  34. h3.accordion-header {
  35. margin-bottom:0;
  36. }
  37. .views-accordion-item .accordion-header,
  38. h3.accordion-header {
  39. background-color: #eee;
  40. border-top: 1px solid #ddd;
  41. border-bottom: 1px solid #ddd;
  42. }
  43. .accordion-item-even .accordion-header {
  44. background-color: #ddd;
  45. border-color: #ccc;
  46. }
  47. /*
  48. * Don't use padding/margin top/bottom on .views-accordion-item, or the animation will jump for that ammount
  49. * so apply it to the header and the first divs inside the accordion-content
  50. */
  51. .views-accordion-item .accordion-content div,
  52. .views-accordion-item .accordion-header,
  53. h3.accordion-header {
  54. padding: 0.5em 1em;
  55. }
  56. .views-accordion-item .accordion-content div div {
  57. padding: 0;
  58. }
  59. /* header mouse-over and section-opened states (only when js is enabled)*/
  60. .views-accordion-item .accordion-header-hover,
  61. h3.accordion-header-hover {
  62. border-color: #fff;
  63. }
  64. .views-accordion-item .accordion-header-active,
  65. h3.accordion-header-active {
  66. font-weight: bold;
  67. border-bottom: 1px solid #eee;
  68. }
  69. /* Buttons */
  70. span.stop-accordion,
  71. span.toggleAccordion {
  72. display: block;
  73. text-align: right;
  74. }