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

Side by Side 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: Add support for navigating between headings with arrow keys Created Sept. 19, 2017, 9:14 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « static/js/main.js ('k') | static/scss/main.scss » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // This file is part of help.eyeo.com.
2 // Copyright (C) 2017 Eyeo GmbH
3 //
4 // help.eyeo.com is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // help.eyeo.com is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>.
16
17 .accordion
18 {
19 border: 1px solid $gray;
20 border-radius: $xs;
21 overflow: hidden;
22 }
23
24 .accordion-toggle-button
25 {
26 display: block;
27 border: 0;
28 border-bottom: 1px solid $gray;
29 background-color: $gray-light;
30 padding: $sm;
31 width: 100%;
32 text-align: left;
33 font: inherit;
34 font-weight: $bold-weight;
35 cursor: pointer;
36 }
37
38 [dir="rtl"] .accordion-toggle-button
39 {
40 text-align: right;
41 }
42
43 .accordion-heading:last-of-type .accordion-toggle-button[aria-expanded="false"]
44 {
45 border-bottom: 0;
46 }
47
48 .accordion-toggle-button img
49 {
50 height: 0.6em;
51 margin-right: 0.6em;
52 }
53
54 [dir="rtl"] .accordion-toggle-button img
55 {
56 transform: rotate(180deg);
57 margin-right: 0;
58 margin-left: 0.6em;
59 }
60
61 .accordion-toggle-button[aria-expanded="false"] img
62 {
63 transform: rotate(90deg);
64 }
65
66 .accordion-body
67 {
68 padding: $sm;
69 border-bottom: 1px solid $gray;
70 }
71
72 .accordion-body:last-of-type
73 {
74 border-bottom: 0;
75 }
OLDNEW
« no previous file with comments | « static/js/main.js ('k') | static/scss/main.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld