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

Side by Side Diff: static/css/main.css

Issue 29551738: Issue 5634 - Replaced logo and refactored navbar width and colors (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Minor refactoring, added fonts, added install background-color Created Sept. 25, 2017, 3:48 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 | « no previous file | static/css/main-desktop.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 @font-face
2 {
3 font-family: "Source Sans Pro";
4 font-weight: 400;
5 font-style: normal;
6
7 src: url("/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.eot");
8 src: url("/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.eot?#iefix") format("embedded-opentype"),
9 local("Source Sans Pro"),
10 local("Source-Sans-Pro-regular"),
11 url("/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.woff2") format("wo ff2"),
12 url("/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.woff") format("wof f"),
13 url("/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.ttf") format("true type"),
14 url("/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.svg#SourceSansPro" ) format("svg");
15 }
16
17 @font-face
18 {
19 font-family: "Source Sans Pro";
20 font-weight: 700;
21 font-style: bold;
22
23 src: url("/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.eot");
24 src: url("/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.eot?#iefix") format(" embedded-opentype"),
25 local("Source Sans Pro Bold"),
26 local("Source-Sans-Pro-700"),
27 url("/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.woff2") format("woff2"),
28 url("/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.woff") format("woff"),
29 url("/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.ttf") format("truetype"),
30 url("/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.svg#SourceSansPro") format ("svg");
31 }
32
1 * 33 *
2 { 34 {
3 font-family: Arial, sans; 35 font-family: 'Source Sans Pro', sans-serif;
4 font-size: 16px; 36 font-size: 16px;
5 } 37 }
6 38
7 body 39 body
8 { 40 {
9 margin: 0; 41 margin: 0;
10 line-height: 1.5; 42 line-height: 1.5;
11 } 43 }
12 44
13 a img 45 a img
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 background-repeat: no-repeat; 78 background-repeat: no-repeat;
47 } 79 }
48 80
49 nav ul 81 nav ul
50 { 82 {
51 list-style: none; 83 list-style: none;
52 margin: 0; 84 margin: 0;
53 padding: 0; 85 padding: 0;
54 } 86 }
55 87
56 nav a:link, nav a:visited 88 nav a:link,
89 nav a:visited
57 { 90 {
58 color: #7d7d7d; 91 color: #7d7d7d;
59 text-decoration: none; 92 text-decoration: none;
60 } 93 }
61 94
62 nav a:hover 95 nav a:hover
63 { 96 {
64 text-decoration: underline; 97 text-decoration: underline;
65 } 98 }
66 99
67 header 100 .container
101 {
102 margin: 0 15px;
103 max-width: 1170px;
104 }
105
106 @media (min-width: 1200px)
107 {
108 .container
109 {
110 margin: 0 auto;
111 }
112 }
113
114 .accent
115 {
116 background-color: #c70d2c;
117 color: #fff;
118 }
119
120 .accent a,
121 .accent a:link,
122 .accent a:visited
123 {
124 color: #fff;
125 }
126
127 .secondary
128 {
129 background-color: #292929;
130 color: #fff;
131 }
132
133 .secondary a,
134 .secondary a:link,
135 .secondary a:visited
136 {
137 color: #fff;
138 }
139
140 .navbar
141 {
142 height: 70px;
143 }
144
145 .navbar a:hover,
146 .navbar a:active,
147 .navbar a:focus
148 {
149 text-decoration: none;
150 }
151
152 .navbar-brand img
153 {
154 display: inline;
155 height: 48px;
156 padding: 11px 0px;
157 line-height: 48px;
158 }
159
160 .navbar-brand,
161 .navbar-nav li
162 {
163 float: left;
164 }
165
166 .navbar-nav
167 {
168 float: right;
169 }
170
171 .navbar-nav a
172 {
173 display: inline-block;
174 padding: 26px 15px;
175 font-size: 18px;
176 line-height: 1;
177 }
178
179 .navbar-nav a:hover,
180 .navbar-nav a:active,
181 .navbar-nav a:focus
182 {
183 background-color: #AE0013;
184 }
185
186 .navbar-nav,
187 .navbar-nav li
188 {
189 display: inline-block;
190 list-style-type: none;
191 }
192
193 .dropdown
194 {
195 position: relative;
196 }
197
198 .dropdown-menu
199 {
200 position: absolute;
201 display: none;
202 min-width: 160px;
203 max-height: 384px;
204 max-height: 50vh;
205 top: 100%;
206 right: 0;
207 overflow: auto;
208 z-index: 1000;
209 }
210
211 .dropdown-menu.visible
68 { 212 {
69 display: block; 213 display: block;
70 position: relative;
71 background: white;
72 border: 1px solid #d9d9d9;
73 border-top: none;
74 box-shadow: 1px 1px 0 0 #d9d9d9;
75 z-index: 1;
76 } 214 }
77 215
78 header nav li 216 .dropdown-menu li,
217 .dropdown-menu a
79 { 218 {
80 padding: 0px 5px; 219 display: block;
220 float: none;
221 white-space: nowrap;
81 } 222 }
82 223
83 header nav li.selected 224 .dropdown-menu a
84 { 225 {
85 color: #db1313; 226 font-size: 16px;
86 text-shadow: 1px 1px 1px #eee; 227 line-height: 50px;
87 cursor: default; 228 padding: 0px 15px;
88 } 229 }
89 230
90 header nav li.install-link a 231 .dropdown-menu a:hover,
232 .dropdown-menu a:active,
233 .dropdown-menu a:focus
91 { 234 {
92 color: #048e48; 235 background-color: #434343;
93 } 236 }
94 237
95 header nav li.install-link .install-link-icon 238 .dropdown-toggle::after
96 { 239 {
97 display: inline-block; 240 display: inline-block;
98 width: 12px; 241 width: 0;
99 height: 12px; 242 height: 0;
100 background-position: -167px -13px; 243 margin-left: .255em;
244 vertical-align: .255em;
245 content: "";
246 border-top: .3em solid;
247 border-right: .3em solid transparent;
248 border-left: .3em solid transparent;
101 } 249 }
102 250
103 .language-entry a 251 .navbar .install-link a,
252 .navbar .install-link a:hover,
253 .navbar .install-link a:active,
254 .navbar .install-link a:focus
104 { 255 {
105 display: block; 256 background-color: #000;
106 } 257 }
107 258
108 #flag-ar 259 #flag-ar
109 { 260 {
110 background-position: 0px 0px; 261 background-position: 0px 0px;
111 } 262 }
112 263
113 #flag-bg 264 #flag-bg
114 { 265 {
115 background-position: -17px 0px; 266 background-position: -17px 0px;
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 565
415 [dir="ltr"] .alert 566 [dir="ltr"] .alert
416 { 567 {
417 border-left: 5px solid #d14841; 568 border-left: 5px solid #d14841;
418 } 569 }
419 570
420 [dir="rtl"] .alert 571 [dir="rtl"] .alert
421 { 572 {
422 border-right: 5px solid #d14841; 573 border-right: 5px solid #d14841;
423 } 574 }
OLDNEW
« no previous file with comments | « no previous file | static/css/main-desktop.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld