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

Side by Side Diff: static/scss/components/_aside-icon.scss

Issue 29588588: Issue 5848 - Fix vertical alignment on .heading-icon images in help.eyeo.com (Closed) Base URL: https://hg.adblockplus.org/help.eyeo.com
Patch Set: Created Oct. 25, 2017, 10:21 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
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 // Aside Icon //////////////////////////////////////////////////////////////////
ire 2017/10/25 10:23:01 I changed the name to .aside-icon from .heading-ic
juliandoucette 2017/10/26 11:42:57 suggest: `has-icon`, `has-pre-icon`, `pre-icon`, `
ire 2017/10/30 09:45:37 Done.
ire 2017/10/30 09:45:37 I like `has-pre-icon`
18
19 .aside-icon-container
20 {
21 display: table;
22 }
23
24 .aside-icon-container span
juliandoucette 2017/10/26 11:42:57 The icon still seems offcenter (too far up).
ire 2017/10/30 09:45:37 You're right. I rewrote this to use background-ima
25 {
26 display: table-cell;
27 vertical-align: middle;
28 }
29
30 .aside-icon-container img
31 {
32 height: 0.9em;
33 margin-right: 0.3em;
34 }
35
36 [dir="rtl"] .aside-icon-container img
37 {
38 margin-right: 0;
39 margin-left: 0.3em;
40 }
OLDNEW

Powered by Google App Engine
This is Rietveld