/* * # Semantic - Accordion * http://github.com/jlukic/semantic-ui/ * * * Copyright 2013 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Accordion *******************************/ .ui.accordion, .ui.accordion .accordion { width: 600px; max-width: 100%; font-size: 1rem; border-radius: 0.3125em; background-color: #FFFFFF; -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1); box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1); } .ui.accordion .title, .ui.accordion .accordion .title { cursor: pointer; margin: 0em; padding: 0.75em 1em; color: rgba(0, 0, 0, 0.6); border-top: 1px solid rgba(0, 0, 0, 0.05); -webkit-transition: background-color 0.2s ease-out ; -moz-transition: background-color 0.2s ease-out ; transition: background-color 0.2s ease-out ; } .ui.accordion > .title:first-child, .ui.accordion .accordion > .title:first-child { border-top: none; } /* Content */ .ui.accordion > .content, .ui.accordion .content > .content, .ui.accordion .accordion .content { display: none; margin: 0em; padding: 1.3em 1em; } /* Arrow */ .ui.accordion .title .dropdown.icon, .ui.accordion .accordion .title .dropdown.icon { display: inline-block; float: none; margin: 0em 0em 0em 0.5em; -webkit-transition: -webkit-transform 0.2s ease, opacity 0.2s ease ; -moz-transition: -moz-transform 0.2s ease, opacity 0.2s ease ; transition: transform 0.2s ease, opacity 0.2s ease ; -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); } .ui.accordion .title .dropdown.icon:before, .ui.accordion .accordion .title .dropdown.icon:before { content: '\f0d9'; } /*-------------- Loose Coupling ---------------*/ .ui.basic.accordion.menu { background-color: #FFFFFF; -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1); box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1); } .ui.basic.accordion.menu .title, .ui.basic.accordion.menu .content { padding: 0em; } .ui.accordion.menu .content{ display: none; } /******************************* Types *******************************/ /*-------------- Basic ---------------*/ .ui.basic.accordion { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; } .ui.basic.accordion .title, .ui.basic.accordion .accordion .title { background-color: transparent; border-top: none; padding-right: 0em; padding-left: 0em; } .ui.basic.accordion .content, .ui.basic.accordion .accordion .content { padding: 0.5em 0em; } .ui.basic.accordion .active.title, .ui.basic.accordion .accordion .active.title { background-color: transparent; } /******************************* States *******************************/ /*-------------- Hover ---------------*/ .ui.accordion .title:hover, .ui.accordion .active.title, .ui.accordion .accordion .title:hover, .ui.accordion .accordion .active.title { color: rgba(0, 0, 0, 0.8); } /*-------------- Active ---------------*/ .ui.accordion .active.title, .ui.accordion .accordion .active.title { background-color: rgba(0, 0, 0, 0.1); color: rgba(0, 0, 0, 0.8); } .ui.accordion .active.title .dropdown.icon, .ui.accordion .accordion .active.title .dropdown.icon { -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); -ms-transform: rotate(-90deg); transform: rotate(-90deg); } .ui.accordion .active.content, .ui.accordion .accordion .active.content { display: block; } /******************************* Variations *******************************/ /*-------------- Fluid ---------------*/ .ui.fluid.accordion, .ui.fluid.accordion .accordion { width: 100%; }