accordion.css
Same filename in other branches
.accordion-wrapper { padding: 30px; background: #fff; float: left; width: 80%; box-sizing: border-box; margin: 10%; box-shadow: 0 1.5em 85px 0 rgba(0, 0, 0, 0.2); } .accordion-item { float: left; display: block; width: 100%; box-sizing: border-box; font-family: "Open-sans", Arial, sans-serif; } .accordion-item-header { cursor: pointer; margin: 0 0 10px 0; padding: 10px; background: #2980b9; color: #fff; width: 100%; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; box-sizing: border-box; } .close .accordion-item-content { height: 0px; transition: height 1s ease-out; -webkit-transform: scaleY(0); -o-transform: scaleY(0); -ms-transform: scaleY(0); transform: scaleY(0); float: left; display: block; } .open .accordion-item-content { padding: 20px; background-color: #fff; border: 1px solid #ddd; width: 100%; margin: 0 0 10px 0; display: block; -webkit-transform: scaleY(1); -o-transform: scaleY(1); -ms-transform: scaleY(1); transform: scaleY(1); -webkit-transform-origin: top; -o-transform-origin: top; -ms-transform-origin: top; transform-origin: top; -webkit-transition: -webkit-transform 0.4s ease-out; -o-transition: -o-transform 0.4s ease; -ms-transition: -ms-transform 0.4s ease; transition: transform 0.4s ease; box-sizing: border-box; } .open .accordion-item-header { margin: 0; -webkit-border-radius: 3px 3px 0 0; -moz-border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0; background-color: #bdc3c7; color: #7f8c8d; }
File
-
modules/
js_example/ css/ accordion.css
View source
- .accordion-wrapper {
- padding: 30px;
- background: #fff;
- float: left;
- width: 80%;
- box-sizing: border-box;
- margin: 10%;
- box-shadow: 0 1.5em 85px 0 rgba(0, 0, 0, 0.2);
- }
-
- .accordion-item {
- float: left;
- display: block;
- width: 100%;
- box-sizing: border-box;
- font-family: "Open-sans", Arial, sans-serif;
- }
-
- .accordion-item-header {
- cursor: pointer;
- margin: 0 0 10px 0;
- padding: 10px;
- background: #2980b9;
- color: #fff;
- width: 100%;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- box-sizing: border-box;
- }
-
- .close .accordion-item-content {
- height: 0px;
- transition: height 1s ease-out;
- -webkit-transform: scaleY(0);
- -o-transform: scaleY(0);
- -ms-transform: scaleY(0);
- transform: scaleY(0);
- float: left;
- display: block;
- }
-
- .open .accordion-item-content {
- padding: 20px;
- background-color: #fff;
- border: 1px solid #ddd;
- width: 100%;
- margin: 0 0 10px 0;
- display: block;
- -webkit-transform: scaleY(1);
- -o-transform: scaleY(1);
- -ms-transform: scaleY(1);
- transform: scaleY(1);
- -webkit-transform-origin: top;
- -o-transform-origin: top;
- -ms-transform-origin: top;
- transform-origin: top;
- -webkit-transition: -webkit-transform 0.4s ease-out;
- -o-transition: -o-transform 0.4s ease;
- -ms-transition: -ms-transform 0.4s ease;
- transition: transform 0.4s ease;
- box-sizing: border-box;
- }
-
- .open .accordion-item-header {
- margin: 0;
- -webkit-border-radius: 3px 3px 0 0;
- -moz-border-radius: 3px 3px 0 0;
- border-radius: 3px 3px 0 0;
- background-color: #bdc3c7;
- color: #7f8c8d;
- }