Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: static/scss/components/_accordion.scss

Issue 29548567: Issue 4925 - Create accordion component for Help Center (Closed) Base URL: https://hg.adblockplus.org/help.eyeo.com
Patch Set: Refactoring Created Sept. 28, 2017, 2:48 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: static/scss/components/_accordion.scss
===================================================================
new file mode 100644
--- /dev/null
+++ b/static/scss/components/_accordion.scss
@@ -0,0 +1,83 @@
+// 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;
+ outline: none;
+}
+
+[dir="rtl"] .accordion-toggle-button
+{
+ text-align: right;
+}
+
+.accordion-toggle-button:hover,
+.accordion-toggle-button:focus
+{
+ background-color: $gray-medium;
+}
+
+.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;
+ background-color: $white;
+}
+
+.accordion-body:last-of-type
+{
+ border-bottom: 0;
+}
« static/js/main.js ('K') | « static/js/main.js ('k') | static/scss/main.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld