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

Side by Side Diff: static/src/scss/components/_accordion.scss

Issue 29633564: Issue 5765 - Remove custom spacing units in help.eyeo.com (Closed) Base URL: https://hg.adblockplus.org/help.eyeo.com
Patch Set: Fixed issues with rebase Created Dec. 11, 2017, 4:37 p.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/src/scss/base/_variables.scss ('k') | static/src/scss/components/_article.scss » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details. 12 // GNU General Public License for more details.
13 // 13 //
14 // You should have received a copy of the GNU General Public License 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/>. 15 // along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>.
16 16
17 /******************************************************************************* 17 /*******************************************************************************
18 * Accordion 18 * Accordion
19 ******************************************************************************/ 19 ******************************************************************************/
20 20
21 .accordion 21 .accordion
22 { 22 {
23 overflow: hidden; 23 overflow: hidden;
24 border: 1px solid $gray; 24 border: 1px solid $gray;
25 border-radius: $xs; 25 border-radius: 5px;
26 } 26 }
27 27
28 .accordion-toggle-button 28 .accordion-toggle-button
29 { 29 {
30 display: block; 30 display: block;
31 width: 100%; 31 width: 100%;
32 padding: $sm; 32 padding: $small-space;
33 border: 0; 33 border: 0;
34 border-bottom: 1px solid $gray; 34 border-bottom: 1px solid $gray;
35 outline: none; 35 outline: none;
36 background-color: $gray-light; 36 background-color: $gray-light;
37 font: inherit; 37 font: inherit;
38 font-weight: $bold-weight; 38 font-weight: $bold-weight;
39 text-align: left; 39 text-align: left;
40 cursor: pointer; 40 cursor: pointer;
41 } 41 }
42 42
43 [dir="rtl"] .accordion-toggle-button 43 [dir="rtl"] .accordion-toggle-button
44 { 44 {
45 text-align: right; 45 text-align: right;
46 } 46 }
47 47
48 .accordion-toggle-button:hover, 48 .accordion-toggle-button:hover,
49 .accordion-toggle-button:focus 49 .accordion-toggle-button:focus
50 { 50 {
51 background-color: $gray; 51 background-color: $gray;
52 } 52 }
53 53
54 .accordion-heading:last-of-type .accordion-toggle-button[aria-expanded="false"] 54 .accordion-heading:last-of-type .accordion-toggle-button[aria-expanded="false"]
55 { 55 {
56 border-bottom: 0; 56 border-bottom: 0;
57 } 57 }
58 58
59 .accordion-toggle-button img 59 .accordion-toggle-button img
60 { 60 {
61 height: 0.6em; 61 height: $x-small-space;
62 margin-right: 0.6em; 62 margin-right: $x-small-space;
63 } 63 }
64 64
65 [dir="rtl"] .accordion-toggle-button img 65 [dir="rtl"] .accordion-toggle-button img
66 { 66 {
67 margin-right: 0; 67 margin-right: 0;
68 margin-left: 0.6em; 68 margin-left: $x-small-space;
69 transform: rotate(180deg); 69 transform: rotate(180deg);
70 } 70 }
71 71
72 .accordion-toggle-button[aria-expanded="false"] img 72 .accordion-toggle-button[aria-expanded="false"] img
73 { 73 {
74 transform: rotate(90deg); 74 transform: rotate(90deg);
75 } 75 }
76 76
77 .accordion-body 77 .accordion-body
78 { 78 {
79 padding: $sm; 79 padding: 0 $small-space;
80 border-bottom: 1px solid $gray; 80 border-bottom: 1px solid $gray;
81 background-color: $white; 81 background-color: $white;
82 } 82 }
83 83
84 .accordion-body:last-of-type 84 .accordion-body:last-of-type
85 { 85 {
86 border-bottom: 0; 86 border-bottom: 0;
87 } 87 }
OLDNEW
« no previous file with comments | « static/src/scss/base/_variables.scss ('k') | static/src/scss/components/_article.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld