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

Delta Between Two Patch Sets: 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
Left Patch Set: Created Sept. 18, 2017, 10:03 a.m.
Right Patch Set: Refactoring Created Sept. 28, 2017, 2:48 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 // This file is part of help.eyeo.com. 1 // This file is part of help.eyeo.com.
2 // Copyright (C) 2017 Eyeo GmbH 2 // Copyright (C) 2017 Eyeo GmbH
3 // 3 //
4 // help.eyeo.com is free software: you can redistribute it and/or modify 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 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 6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version. 7 // (at your option) any later version.
8 // 8 //
9 // help.eyeo.com is distributed in the hope that it will be useful, 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 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 14 matching lines...) Expand all
25 { 25 {
26 display: block; 26 display: block;
27 border: 0; 27 border: 0;
28 border-bottom: 1px solid $gray; 28 border-bottom: 1px solid $gray;
29 background-color: $gray-light; 29 background-color: $gray-light;
30 padding: $sm; 30 padding: $sm;
31 width: 100%; 31 width: 100%;
32 text-align: left; 32 text-align: left;
33 font: inherit; 33 font: inherit;
34 font-weight: $bold-weight; 34 font-weight: $bold-weight;
35 cursor: pointer;
36 outline: none;
35 } 37 }
36 38
37 [dir="rtl"] .accordion-toggle-button 39 [dir="rtl"] .accordion-toggle-button
38 { 40 {
39 text-align: right; 41 text-align: right;
42 }
43
44 .accordion-toggle-button:hover,
45 .accordion-toggle-button:focus
46 {
47 background-color: $gray-medium;
40 } 48 }
41 49
42 .accordion-heading:last-of-type .accordion-toggle-button[aria-expanded="false"] 50 .accordion-heading:last-of-type .accordion-toggle-button[aria-expanded="false"]
43 { 51 {
44 border-bottom: 0; 52 border-bottom: 0;
45 } 53 }
46 54
47 .accordion-toggle-button img 55 .accordion-toggle-button img
48 { 56 {
49 height: 0.6em; 57 height: 0.6em;
50 margin-right: 0.6em; 58 margin-right: 0.6em;
51 } 59 }
52 60
53 [dir="rtl"] .accordion-toggle-button img 61 [dir="rtl"] .accordion-toggle-button img
54 { 62 {
55 transform: rotate(180deg); 63 transform: rotate(180deg);
ire 2017/09/18 10:08:11 transforms aren't supported by IE8 (http://caniuse
56 margin-right: 0; 64 margin-right: 0;
57 margin-left: 0.6em; 65 margin-left: 0.6em;
58 } 66 }
59 67
60 .accordion-toggle-button[aria-expanded="false"] img 68 .accordion-toggle-button[aria-expanded="false"] img
61 { 69 {
62 transform: rotate(90deg); 70 transform: rotate(90deg);
63 } 71 }
64 72
65 .accordion-body 73 .accordion-body
66 { 74 {
67 padding: $sm; 75 padding: $sm;
68 border-bottom: 1px solid $gray; 76 border-bottom: 1px solid $gray;
77 background-color: $white;
69 } 78 }
70 79
71 .accordion-body:last-of-type 80 .accordion-body:last-of-type
72 { 81 {
73 border-bottom: 0; 82 border-bottom: 0;
74 } 83 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld