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

Side by Side Diff: static/scss/layout/_breadcrumbs.scss

Issue 29794555: Noissue - Fix broken layout from changeset 1940351cdb4c (Closed) Base URL: https://hg.adblockplus.org/web.acceptableads.com
Patch Set: Created May 30, 2018, 10:17 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/scss/layout/_body.scss ('k') | static/scss/layout/_navbar.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 acceptableads.org. 1 // This file is part of acceptableads.org.
2 // Copyright (C) 2016-present eyeo GmbH 2 // Copyright (C) 2016-present eyeo GmbH
3 // 3 //
4 // acceptableads.org is free software: you can redistribute it and/or modify 4 // acceptableads.org 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 // acceptableads.org is distributed in the hope that it will be useful, 9 // acceptableads.org 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 acceptableads.org. If not, see <http://www.gnu.org/licenses/>. 15 // along with acceptableads.org. If not, see <http://www.gnu.org/licenses/>.
16 16
17 #breadcrumbs 17 #breadcrumbs
18 { 18 {
19 position: absolute; 19 position: absolute;
20 z-index: 1;
21 top: $lg; 20 top: $lg;
22 left: 0; 21 left: 0;
23 width: 100%; 22 width: 100%;
24 text-transform: uppercase; 23 text-transform: uppercase;
25 color: $secondary-fg; 24 color: $secondary-fg;
26 background-color: $secondary-bg; 25 background-color: $secondary-bg;
27 font-size: $font-size-xs; 26 font-size: $font-size-xs;
28 font-weight: 400; 27 font-weight: 400;
29 28
30 a, 29 a,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 width: $md; 75 width: $md;
77 content: ">"; 76 content: ">";
78 color: $secondary-fg; 77 color: $secondary-fg;
79 font-weight: 300; 78 font-weight: 300;
80 } 79 }
81 } 80 }
82 } 81 }
83 82
84 .js #breadcrumbs 83 .js #breadcrumbs
85 { 84 {
86 position: fixed; 85 z-index: 1;
87 } 86 }
88 87
89 @media(max-width: $sidebar-breakpoint-x - 1) 88 @media(max-width: $sidebar-breakpoint-x - 1)
90 { 89 {
91 #breadcrumbs ol 90 #breadcrumbs ol
92 { 91 {
93 padding: 0 $sm; 92 padding: 0 $sm;
94 } 93 }
94
95 html:not(.open-sidebar).mobile #breadcrumbs
96 {
97 position: fixed;
98 transition: transform 0.2s ease-in-out;
99 }
100
101 html:not(.open-sidebar).mobile.scrollDown #breadcrumbs
102 {
103 transform: translate(0,-$header-height);
104 }
95 } 105 }
96 106
97 // Fix breadcrumbs on desktops 107 // Fix breadcrumbs on desktops
98 @media(min-width: $sidebar-breakpoint-x) 108 @media(min-width: $sidebar-breakpoint-x)
99 { 109 {
100 html[dir="ltr"] #breadcrumbs 110 html[dir="ltr"] #breadcrumbs
101 { 111 {
102 margin-left: $sidebar-width; 112 padding-left: $sidebar-width;
103 } 113 }
104 114
105 html[dir="rtl"] #breadcrumbs 115 html[dir="rtl"] #breadcrumbs
106 { 116 {
107 margin-right: $sidebar-width; 117 padding-right: $sidebar-width;
108 } 118 }
109 } 119 }
OLDNEW
« no previous file with comments | « static/scss/layout/_body.scss ('k') | static/scss/layout/_navbar.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld