Commit d4d8e6ecebfafbedb3d28d331db6431df17cb83e

Authored by Brad Shuttleworth
1 parent db9dcc73

- fix the css files to use relative urls, avoiding the degradation in sub-hosted environments.

- correct a secondary degeneration in IE.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4280 c91229c3-7414-0410-bfa2-8a42b809f60b
resources/css/kt-contenttypes.css
@@ -12,10 +12,10 @@ @@ -12,10 +12,10 @@
12 padding-bottom: 5px; 12 padding-bottom: 5px;
13 } 13 }
14 14
15 -.contenttype.ms-presentation { background-image: url(/resources/mimetypes/powerp.gif); }  
16 -.contenttype.ms-word { background-image: url(/resources/mimetypes/word.gif); }  
17 -.contenttype.ms-excel { background-image: url(/thirdparty/icon-theme/16x16/mimetypes/x-office-spreadsheet.png); }  
18 -.contenttype.oo-impress { background-image: url(/resources/mimetypes/ooimpress.gif); } 15 +.contenttype.ms-presentation { background-image: url(../../resources/mimetypes/powerp.gif); }
  16 +.contenttype.ms-word { background-image: url(../../resources/mimetypes/word.gif); }
  17 +.contenttype.ms-excel { background-image: url(../../thirdparty/icon-theme/16x16/mimetypes/x-office-spreadsheet.png); }
  18 +.contenttype.oo-impress { background-image: url(../..resources/mimetypes/ooimpress.gif); }
19 19
20 -.contenttype.unspecified_type { background-image: url(/thirdparty/icon-theme/16x16/mimetypes/text-x-generic.png); }  
21 -.contenttype.folder { background-image: url(/thirdparty/icon-theme/16x16/mimetypes/x-directory-normal.png); } 20 +.contenttype.unspecified_type { background-image: url(../../thirdparty/icon-theme/16x16/mimetypes/text-x-generic.png); }
  21 +.contenttype.folder { background-image: url(../../thirdparty/icon-theme/16x16/mimetypes/x-directory-normal.png); }
resources/css/kt-framing.css
@@ -53,7 +53,7 @@ body @@ -53,7 +53,7 @@ body
53 { 53 {
54 position: relative; 54 position: relative;
55 width: auto; 55 width: auto;
56 - background: #a6c367 url(/resources/graphics/menubg.png) top left repeat-x; 56 + background: #a6c367 url(../../resources/graphics/menubg.png) top left repeat-x;
57 border: 1px solid #6c8c2f; 57 border: 1px solid #6c8c2f;
58 padding: 0em 1em; 58 padding: 0em 1em;
59 margin-bottom: 1em; 59 margin-bottom: 1em;
@@ -87,7 +87,7 @@ body @@ -87,7 +87,7 @@ body
87 } 87 }
88 88
89 #navbar ul li.active { 89 #navbar ul li.active {
90 - background: #6c8c2f url(/resources/graphics/menubg-active.png) top left repeat-x; 90 + background: #6c8c2f url(../../resources/graphics/menubg-active.png) top left repeat-x;
91 height: 100px; 91 height: 100px;
92 } 92 }
93 93
@@ -104,7 +104,7 @@ body @@ -104,7 +104,7 @@ body
104 } 104 }
105 /* 105 /*
106 a.main_nav_item { 106 a.main_nav_item {
107 - background: transparent url(/resources/graphics/home-navbar.gif) center left no-repeat; 107 + background: transparent url(../../resources/graphics/home-navbar.gif) center left no-repeat;
108 padding-left: 1.5em; 108 padding-left: 1.5em;
109 } 109 }
110 */ 110 */
@@ -191,7 +191,7 @@ a.main_nav_item { @@ -191,7 +191,7 @@ a.main_nav_item {
191 { 191 {
192 margin: 0; 192 margin: 0;
193 border: 0; 193 border: 0;
194 - background: #a8a8a8; /* url(/resources/graphics/portlet-bg.png) center right no-repeat; */ 194 + background: #a8a8a8; /* url(../../resources/graphics/portlet-bg.png) center right no-repeat; */
195 padding-top: 0.25em; 195 padding-top: 0.25em;
196 padding-bottom: 0.25em; 196 padding-bottom: 0.25em;
197 padding-left: 0.5em; 197 padding-left: 0.5em;
@@ -221,9 +221,7 @@ a.main_nav_item { @@ -221,9 +221,7 @@ a.main_nav_item {
221 #content 221 #content
222 { 222 {
223 position: relative; 223 position: relative;
224 - left: 15em;  
225 - top: 0;  
226 - right: 0; 224 + padding-left: 15em;
227 } 225 }
228 226
229 .noportlets #content { 227 .noportlets #content {
@@ -360,7 +358,7 @@ a.main_nav_item { @@ -360,7 +358,7 @@ a.main_nav_item {
360 margin-left: 0.5em; 358 margin-left: 0.5em;
361 padding-left: 10px; 359 padding-left: 10px;
362 color: white; 360 color: white;
363 - background: transparent url(/resources/graphics/required.png) center left no-repeat; 361 + background: transparent url(../../resources/graphics/required.png) center left no-repeat;
364 } 362 }
365 363
366 .errorMessage 364 .errorMessage
@@ -504,14 +502,14 @@ a.main_nav_item { @@ -504,14 +502,14 @@ a.main_nav_item {
504 border-left: 1px solid #ccc; 502 border-left: 1px solid #ccc;
505 border-right: 1px solid #ccc; 503 border-right: 1px solid #ccc;
506 504
507 - background: transparent url(/resources/graphics/sort_asc.png) center right no-repeat; 505 + background: transparent url(../../resources/graphics/sort_asc.png) center right no-repeat;
508 } 506 }
509 507
510 .kt_collection th.sort_on.sort_desc { 508 .kt_collection th.sort_on.sort_desc {
511 border-left: 1px solid #ccc; 509 border-left: 1px solid #ccc;
512 border-right: 1px solid #ccc; 510 border-right: 1px solid #ccc;
513 511
514 - background: transparent url(/resources/graphics/sort_desc.png) center right no-repeat; 512 + background: transparent url(../../resources/graphics/sort_desc.png) center right no-repeat;
515 } 513 }
516 514
517 .kt_collection th, 515 .kt_collection th,
@@ -553,7 +551,7 @@ a.main_nav_item { @@ -553,7 +551,7 @@ a.main_nav_item {
553 551
554 .ktError p { 552 .ktError p {
555 padding-left: 25px; 553 padding-left: 25px;
556 - background: transparent url(/thirdparty/icon-theme/16x16/status/dialog-warning.png) center left no-repeat; 554 + background: transparent url(../../thirdparty/icon-theme/16x16/status/dialog-warning.png) center left no-repeat;
557 } 555 }
558 556
559 /* block level. */ 557 /* block level. */
@@ -567,14 +565,14 @@ a.main_nav_item { @@ -567,14 +565,14 @@ a.main_nav_item {
567 565
568 .ktInfo p { 566 .ktInfo p {
569 padding-left: 25px; 567 padding-left: 25px;
570 - background: transparent url(/thirdparty/icon-theme/16x16/status/dialog-information.png) center left no-repeat; 568 + background: transparent url(../../thirdparty/icon-theme/16x16/status/dialog-information.png) center left no-repeat;
571 } 569 }
572 570
573 571
574 /** portlet stuff. */ 572 /** portlet stuff. */
575 #portlet-search-text { 573 #portlet-search-text {
576 border: 1px solid black; 574 border: 1px solid black;
577 - background: white url(/resources/graphics/search-button.png) center left no-repeat; 575 + background: white url(../../resources/graphics/search-button.png) center left no-repeat;
578 margin: 0.5em; 576 margin: 0.5em;
579 padding: 3px; 577 padding: 3px;
580 padding-left: 17px; 578 padding-left: 17px;
@@ -613,10 +611,10 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes @@ -613,10 +611,10 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes
613 } 611 }
614 612
615 /* FIXME when available icon-naming-conformant sets have better coverage, make these more accurate. */ 613 /* FIXME when available icon-naming-conformant sets have better coverage, make these more accurate. */
616 -.ktAction.ktDelete { background: transparent url(/thirdparty/icon-theme/16x16/mimetypes/x-directory-trash.png) top left no-repeat; }  
617 -.ktAction.ktEdit { background: transparent url(/thirdparty/icon-theme/16x16/actions/document-properties.png) top left no-repeat; }  
618 -.ktAction.ktAddUser { background: transparent url(/thirdparty/icon-theme/16x16/actions/contact-new.png) top left no-repeat; }  
619 -.ktAction.ktAddGroup { background: transparent url(/thirdparty/icon-theme/16x16/actions/contact-new.png) top left no-repeat; } 614 +.ktAction.ktDelete { background: transparent url(../../thirdparty/icon-theme/16x16/mimetypes/x-directory-trash.png) top left no-repeat; }
  615 +.ktAction.ktEdit { background: transparent url(../../thirdparty/icon-theme/16x16/actions/document-properties.png) top left no-repeat; }
  616 +.ktAction.ktAddUser { background: transparent url(../../thirdparty/icon-theme/16x16/actions/contact-new.png) top left no-repeat; }
  617 +.ktAction.ktAddGroup { background: transparent url(../../thirdparty/icon-theme/16x16/actions/contact-new.png) top left no-repeat; }
620 618
621 /* =========== standard listings. */ 619 /* =========== standard listings. */
622 620
resources/css/kt-headings.css
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 #content h1.browse_collections { 4 #content h1.browse_collections {
5 border: 1px solid #565963; 5 border: 1px solid #565963;
6 height: 20px; 6 height: 20px;
7 - background: #a0a9b8 url(/resources/graphics/fahrner_browse.png) center left no-repeat; 7 + background: #a0a9b8 url(../../resources/graphics/fahrner_browse.png) center left no-repeat;
8 padding: 5px; 8 padding: 5px;
9 color: white; 9 color: white;
10 } 10 }
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 #content h1.preferences { 15 #content h1.preferences {
16 border: 1px solid #565963; 16 border: 1px solid #565963;
17 height: 20px; 17 height: 20px;
18 - background: #a0a9b8 url(/resources/graphics/fahrner_preferences.png) center left no-repeat; 18 + background: #a0a9b8 url(../../resources/graphics/fahrner_preferences.png) center left no-repeat;
19 padding: 5px; 19 padding: 5px;
20 color: white; 20 color: white;
21 } 21 }
@@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
26 #content h1.dashboard { 26 #content h1.dashboard {
27 border: 1px solid #565963; 27 border: 1px solid #565963;
28 height: 40px; 28 height: 40px;
29 - background: #a0a9b8 url(/resources/graphics/fahrner_dashboard.png) center left no-repeat; 29 + background: #a0a9b8 url(../../resources/graphics/fahrner_dashboard.png) center left no-repeat;
30 padding: 5px; 30 padding: 5px;
31 color: white; 31 color: white;
32 } 32 }
@@ -37,7 +37,7 @@ @@ -37,7 +37,7 @@
37 #content h1.search { 37 #content h1.search {
38 border: 1px solid #565963; 38 border: 1px solid #565963;
39 height: 20px; 39 height: 20px;
40 - background: #a0a9b8 url(/resources/graphics/fahrner_search.png) center left no-repeat; 40 + background: #a0a9b8 url(../../resources/graphics/fahrner_search.png) center left no-repeat;
41 padding: 5px; 41 padding: 5px;
42 color: white; 42 color: white;
43 } 43 }
@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
47 #content h1.preferences { 47 #content h1.preferences {
48 border: 1px solid #565963; 48 border: 1px solid #565963;
49 height: 20px; 49 height: 20px;
50 - background: #a0a9b8 url(/resources/graphics/fahrner_preferences.png) center left no-repeat; 50 + background: #a0a9b8 url(../../resources/graphics/fahrner_preferences.png) center left no-repeat;
51 padding: 5px; 51 padding: 5px;
52 color: white; 52 color: white;
53 } 53 }
@@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
58 #content h1.administration { 58 #content h1.administration {
59 border: 1px solid #565963; 59 border: 1px solid #565963;
60 height: 20px; 60 height: 20px;
61 - background: #a0a9b8 url(/resources/graphics/fahrner_administration.png) center left no-repeat; 61 + background: #a0a9b8 url(../../resources/graphics/fahrner_administration.png) center left no-repeat;
62 padding: 5px; 62 padding: 5px;
63 color: white; 63 color: white;
64 } 64 }
@@ -70,7 +70,7 @@ @@ -70,7 +70,7 @@
70 #content h1.document_details { 70 #content h1.document_details {
71 border: 1px solid #565963; 71 border: 1px solid #565963;
72 height: 20px; 72 height: 20px;
73 - background: #a0a9b8 url(/resources/graphics/fahrner_details.png) center left no-repeat; 73 + background: #a0a9b8 url(../../resources/graphics/fahrner_details.png) center left no-repeat;
74 padding: 5px; 74 padding: 5px;
75 color: white; 75 color: white;
76 } 76 }
resources/css/kt-login.css
@@ -58,5 +58,5 @@ @@ -58,5 +58,5 @@
58 58
59 .ktError p { 59 .ktError p {
60 padding-left: 25px; 60 padding-left: 25px;
61 - background: transparent url(/thirdparty/icon-theme/16x16/status/dialog-warning.png) center left no-repeat; 61 + background: transparent url(../../thirdparty/icon-theme/16x16/status/dialog-warning.png) center left no-repeat;
62 } 62 }
resources/css/kt-treewidget.css
@@ -14,12 +14,12 @@ @@ -14,12 +14,12 @@
14 text-align: left; 14 text-align: left;
15 } 15 }
16 .kt_treenodes li.treenode > a.pathnode { 16 .kt_treenodes li.treenode > a.pathnode {
17 - background: transparent url(/graphics/plus.png) center left no-repeat; 17 + background: transparent url(../../graphics/plus.png) center left no-repeat;
18 padding-left: 15px; 18 padding-left: 15px;
19 } 19 }
20 20
21 .kt_treenodes li.treenode.active > a.pathnode { 21 .kt_treenodes li.treenode.active > a.pathnode {
22 - background: transparent url(/graphics/minus.png) center left no-repeat; 22 + background: transparent url(../../graphics/minus.png) center left no-repeat;
23 } 23 }
24 24
25 .kt_treenodes li.active > ul { 25 .kt_treenodes li.active > ul {