| Index: static/scss/components/_accordion.scss | 
| =================================================================== | 
| new file mode 100644 | 
| --- /dev/null | 
| +++ b/static/scss/components/_accordion.scss | 
| @@ -0,0 +1,75 @@ | 
| +// This file is part of help.eyeo.com. | 
| +// Copyright (C) 2017 Eyeo GmbH | 
| +// | 
| +// help.eyeo.com is free software: you can redistribute it and/or modify | 
| +// it under the terms of the GNU General Public License as published by | 
| +// the Free Software Foundation, either version 3 of the License, or | 
| +// (at your option) any later version. | 
| +// | 
| +// help.eyeo.com is distributed in the hope that it will be useful, | 
| +// but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
| +// GNU General Public License for more details. | 
| +// | 
| +// You should have received a copy of the GNU General Public License | 
| +// along with help.eyeo.com.  If not, see <http://www.gnu.org/licenses/>. | 
| + | 
| +.accordion | 
| +{ | 
| +  border: 1px solid $gray; | 
| +  border-radius: $xs; | 
| +  overflow: hidden; | 
| +} | 
| + | 
| +.accordion-toggle-button | 
| +{ | 
| +  display: block; | 
| +  border: 0; | 
| +  border-bottom: 1px solid $gray; | 
| +  background-color: $gray-light; | 
| +  padding: $sm; | 
| +  width: 100%; | 
| +  text-align: left; | 
| +  font: inherit; | 
| +  font-weight: $bold-weight; | 
| +  cursor: pointer; | 
| +} | 
| + | 
| +[dir="rtl"] .accordion-toggle-button | 
| +{ | 
| +  text-align: right; | 
| +} | 
| + | 
| +.accordion-heading:last-of-type .accordion-toggle-button[aria-expanded="false"] | 
| +{ | 
| +  border-bottom: 0; | 
| +} | 
| + | 
| +.accordion-toggle-button img | 
| +{ | 
| +  height: 0.6em; | 
| +  margin-right: 0.6em; | 
| +} | 
| + | 
| +[dir="rtl"] .accordion-toggle-button img | 
| +{ | 
| +  transform: rotate(180deg); | 
| +  margin-right: 0; | 
| +  margin-left: 0.6em; | 
| +} | 
| + | 
| +.accordion-toggle-button[aria-expanded="false"] img | 
| +{ | 
| +  transform: rotate(90deg); | 
| +} | 
| + | 
| +.accordion-body | 
| +{ | 
| +  padding: $sm; | 
| +  border-bottom: 1px solid $gray; | 
| +} | 
| + | 
| +.accordion-body:last-of-type | 
| +{ | 
| +  border-bottom: 0; | 
| +} | 
|  |