Merge lp:~tblue/quam-plures/bug12-fix_toolbar_colors into lp:quam-plures

Proposed by Tilman Blumenbach
Status: Merged
Merged at revision: 7626
Proposed branch: lp:~tblue/quam-plures/bug12-fix_toolbar_colors
Merge into: lp:quam-plures
Diff against target: 188 lines (+64/-30)
1 file modified
qp_rsc/css/basic.css (+64/-30)
To merge this branch: bzr merge lp:~tblue/quam-plures/bug12-fix_toolbar_colors
Reviewer Review Type Date Requested Status
EdB Approve
Review via email: mp+73814@code.launchpad.net

Description of the change

See http://bugs.quamplures.net/cgi-bin/show_bug.cgi?id=12

Fixes issues with toolbar colors in Opera by "hardcoding" them instead of using the (deprecated) CSS2 system color names.

To post a comment you must log in.
Revision history for this message
EdB (edb) wrote :

downloading now, sorry for the delay, will test and review and report back.

Revision history for this message
EdB (edb) wrote :

Approving even though the comment in the css file is pure bloat. I mean, it is cool info, but there is no reason at all to send that info to every visitor.

Anyway looks good works pretty much as expected so yay :)

Slight color diffs for me (FF 3.foo.bar), which is a good thing. It if really does blend in with the browser frame stuff then it kinda isn't obviously part of the pages.

I'll do a handful of merges this weekend.

review: Approve
Revision history for this message
Tilman Blumenbach (tblue) wrote :

> Approving even though the comment in the css file is pure bloat. I mean, it is cool info, but there is no reason at all to send that info to every visitor.

I knew you would say that, but I think it's useful info for us developers. It will get stripped out by minify anyway (I'll work on including that soon).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qp_rsc/css/basic.css'
--- qp_rsc/css/basic.css 2011-08-04 18:00:51 +0000
+++ qp_rsc/css/basic.css 2011-09-02 13:51:18 +0000
@@ -1,4 +1,39 @@
1/* Obviously, this file no longer contains only basic styles */1/* Obviously, this file no longer contains only basic styles.
2 *
3 * For the toolbar, we do not use the system colors defined by CSS2 as they are
4 * deprecated in CSS3 and don't seem to work correctly in Opera. Instead, we use
5 * the following values (taken from Firefox 6.0.1 which probably uses the standard
6 * GTK+ theme colors or something):
7 *
8 * ActiveBorder: #FFFFFF
9 * ActiveCaption: #DCDAD5
10 * AppWorkspace: #DCDAD5
11 * Background: #DCDAD5
12 * ButtonFace: #DCDAD5
13 * ButtonHighlight: #FFFFFF
14 * ButtonShadow: #9E9A91
15 * ButtonText: #000000
16 * CaptionText: #000000
17 * GrayText: #757575
18 * Highlight: #4B6983
19 * HighlightText: #FFFFFF
20 * InactiveBorder: #DCDAD5
21 * InactiveCaption: #DCDAD5
22 * InactiveCaptionText: #757575
23 * InfoBackground: #EEE1B3
24 * InfoText: #000000
25 * Menu: #DCDAD5
26 * MenuText: #000000
27 * Scrollbar: #C4C2BD
28 * ThreeDDarkShadow: #000000
29 * ThreeDFace: #DCDAD5
30 * ThreeDHighlight: #FFFFFF
31 * ThreeDLightShadow: #DCDAD5
32 * ThreeDShadow: #9E9A91
33 * Window: #DCDAD5
34 * WindowFrame: #DCDAD5
35 * WindowText: #000000
36 */
237
3@import url("basic_styles.css"); /* Import the REAL basic styles */38@import url("basic_styles.css"); /* Import the REAL basic styles */
439
@@ -105,13 +140,12 @@
105 * any too general styles a template may want to bring in for its own body/general display.140 * any too general styles a template may want to bring in for its own body/general display.
106 */141 */
107div#toolbar {142div#toolbar {
108 background-color: ThreeDFace;143 background-color: #DCDAD5;
109 color: ButtonText;144 color: #000000;
110 border-top: 1px solid ThreeDHighlight;145 border-top: 1px solid #FFFFFF;
111 border-bottom: 1px solid ThreeDShadow;146 border-bottom: 1px solid #9E9A91;
112 text-align: left;147 text-align: left;
113 margin: 0;148 margin: 0;
114 /* font: menu; /* -- poorly supported */
115 font-size: 11px;149 font-size: 11px;
116 font-family: "Microsoft sans serif", sans-serif, Arial, Helvetica;150 font-family: "Microsoft sans serif", sans-serif, Arial, Helvetica;
117 position: fixed;151 position: fixed;
@@ -201,11 +235,11 @@
201 margin-bottom: 1em;235 margin-bottom: 1em;
202}236}
203.sf-menu a {237.sf-menu a {
204 border: 1px solid ThreeDFace;238 border: 1px solid #DCDAD5;
205 background-color: ThreeDFace;239 background-color: #DCDAD5;
206 padding: 3px 1ex; /* .5em need to macth global height above */240 padding: 3px 1ex; /* .5em need to macth global height above */
207 text-decoration:none;241 text-decoration:none;
208 color: ButtonText;242 color: #000000;
209}243}
210.sf-menu-right a {244.sf-menu-right a {
211 padding: 3px 1ex 3px; /* .5em need to macth global height above */245 padding: 3px 1ex 3px; /* .5em need to macth global height above */
@@ -217,7 +251,7 @@
217/* visited pseudo selector so IE6 applies text colour*/251/* visited pseudo selector so IE6 applies text colour*/
218.sf-menu a,252.sf-menu a,
219.sf-menu a:visited {253.sf-menu a:visited {
220 color: ButtonText;254 color: #000000;
221}255}
222.sf-menu li {256.sf-menu li {
223 /* background: #0ff; */257 /* background: #0ff; */
@@ -225,19 +259,19 @@
225.sf-menu li ul {259.sf-menu li ul {
226}260}
227.sf-menu li li {261.sf-menu li li {
228 background: ThreeDFace; /* IE6 */262 background: #DCDAD5; /* IE6 */
229}263}
230.sf-menu li li a {264.sf-menu li li a {
231 padding: 6px 2ex;265 padding: 6px 2ex;
232 border: none;266 border: none;
233 border-left: 1px solid ThreeDHighlight;267 border-left: 1px solid #FFFFFF;
234 border-right: 1px solid ThreeDShadow;268 border-right: 1px solid #9E9A91;
235}269}
236.sf-menu li li:first-child > a {270.sf-menu li li:first-child > a {
237 border-top: 1px solid ThreeDHighlight;271 border-top: 1px solid #FFFFFF;
238}272}
239.sf-menu li li:last-child > a {273.sf-menu li li:last-child > a {
240 border-bottom: 1px solid ThreeDShadow;274 border-bottom: 1px solid #9E9A91;
241}275}
242.sf-menu li.separator {276.sf-menu li.separator {
243 padding: 0;277 padding: 0;
@@ -250,7 +284,7 @@
250 margin: 0;284 margin: 0;
251}285}
252.sf-menu li.separator a:hover {286.sf-menu li.separator a:hover {
253 background-color: ThreeDFace;287 background-color: #DCDAD5;
254}288}
255.sf-menu .separator span {289.sf-menu .separator span {
256 height: 0px;290 height: 0px;
@@ -258,8 +292,8 @@
258 padding: 0;292 padding: 0;
259 margin: 0;293 margin: 0;
260 border: none;294 border: none;
261 border-top: 1px solid ThreeDShadow;295 border-top: 1px solid #9E9A91;
262 border-bottom: 1px solid ThreeDHighlight;296 border-bottom: 1px solid #FFFFFF;
263 width: 100%;297 width: 100%;
264}298}
265299
@@ -272,7 +306,7 @@
272306
273.sf-menu a.disabled,307.sf-menu a.disabled,
274.sf-menu a.disabled:hover {308.sf-menu a.disabled:hover {
275 color: GrayText;309 color: #757575;
276}310}
277.sf-menu a.noborder {311.sf-menu a.noborder {
278 border: none;312 border: none;
@@ -284,11 +318,11 @@
284.sf-menu a:active {318.sf-menu a:active {
285 text-decoration: none;319 text-decoration: none;
286 outline: 0;320 outline: 0;
287 border-top-color: ThreeDHighlight;321 border-top-color: #FFFFFF;
288 border-left-color: ThreeDHighlight;322 border-left-color: #FFFFFF;
289 border-bottom-color: ThreeDShadow;323 border-bottom-color: #9E9A91;
290 border-right-color: ThreeDShadow;324 border-right-color: #9E9A91;
291 color: ButtonText;325 color: #000000;
292}326}
293.sf-menu li li:hover,327.sf-menu li li:hover,
294.sf-menu li li.sfHover,328.sf-menu li li.sfHover,
@@ -296,24 +330,24 @@
296.sf-menu li li a:hover,330.sf-menu li li a:hover,
297.sf-menu li li a:active {331.sf-menu li li a:active {
298 border: none;332 border: none;
299 background-color: Highlight;333 background-color: #4B6983;
300 color: HighlightText;334 color: #FFFFFF;
301}335}
302.sf-menu li li a:focus,336.sf-menu li li a:focus,
303.sf-menu li li a:hover,337.sf-menu li li a:hover,
304.sf-menu li li a:active {338.sf-menu li li a:active {
305 border-left: 1px solid ThreeDHighlight;339 border-left: 1px solid #FFFFFF;
306 border-right: 1px solid ThreeDShadow;340 border-right: 1px solid #9E9A91;
307}341}
308.sf-menu li li:first-child > a:focus,342.sf-menu li li:first-child > a:focus,
309.sf-menu li li:first-child > a:hover,343.sf-menu li li:first-child > a:hover,
310.sf-menu li li:first-child > a:active {344.sf-menu li li:first-child > a:active {
311 border-top: 1px solid ThreeDHighlight;345 border-top: 1px solid #FFFFFF;
312}346}
313.sf-menu li li:last-child > a:focus,347.sf-menu li li:last-child > a:focus,
314.sf-menu li li:last-child > a:hover,348.sf-menu li li:last-child > a:hover,
315.sf-menu li li:last-child > a:active {349.sf-menu li li:last-child > a:active {
316 border-bottom: 1px solid ThreeDShadow;350 border-bottom: 1px solid #9E9A91;
317}351}
318/* point right for anchors in subs */352/* point right for anchors in subs */
319.sf-menu ul .sf-sub-indicator {353.sf-menu ul .sf-sub-indicator {

Subscribers

People subscribed via source and target branches