Commit d4d8e6ecebfafbedb3d28d331db6431df17cb83e
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
Showing
5 changed files
with
31 additions
and
33 deletions
resources/css/kt-contenttypes.css
| ... | ... | @@ -12,10 +12,10 @@ |
| 12 | 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 | 53 | { |
| 54 | 54 | position: relative; |
| 55 | 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 | 57 | border: 1px solid #6c8c2f; |
| 58 | 58 | padding: 0em 1em; |
| 59 | 59 | margin-bottom: 1em; |
| ... | ... | @@ -87,7 +87,7 @@ body |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 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 | 91 | height: 100px; |
| 92 | 92 | } |
| 93 | 93 | |
| ... | ... | @@ -104,7 +104,7 @@ body |
| 104 | 104 | } |
| 105 | 105 | /* |
| 106 | 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 | 108 | padding-left: 1.5em; |
| 109 | 109 | } |
| 110 | 110 | */ |
| ... | ... | @@ -191,7 +191,7 @@ a.main_nav_item { |
| 191 | 191 | { |
| 192 | 192 | margin: 0; |
| 193 | 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 | 195 | padding-top: 0.25em; |
| 196 | 196 | padding-bottom: 0.25em; |
| 197 | 197 | padding-left: 0.5em; |
| ... | ... | @@ -221,9 +221,7 @@ a.main_nav_item { |
| 221 | 221 | #content |
| 222 | 222 | { |
| 223 | 223 | position: relative; |
| 224 | - left: 15em; | |
| 225 | - top: 0; | |
| 226 | - right: 0; | |
| 224 | + padding-left: 15em; | |
| 227 | 225 | } |
| 228 | 226 | |
| 229 | 227 | .noportlets #content { |
| ... | ... | @@ -360,7 +358,7 @@ a.main_nav_item { |
| 360 | 358 | margin-left: 0.5em; |
| 361 | 359 | padding-left: 10px; |
| 362 | 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 | 364 | .errorMessage |
| ... | ... | @@ -504,14 +502,14 @@ a.main_nav_item { |
| 504 | 502 | border-left: 1px solid #ccc; |
| 505 | 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 | 508 | .kt_collection th.sort_on.sort_desc { |
| 511 | 509 | border-left: 1px solid #ccc; |
| 512 | 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 | 515 | .kt_collection th, |
| ... | ... | @@ -553,7 +551,7 @@ a.main_nav_item { |
| 553 | 551 | |
| 554 | 552 | .ktError p { |
| 555 | 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 | 557 | /* block level. */ |
| ... | ... | @@ -567,14 +565,14 @@ a.main_nav_item { |
| 567 | 565 | |
| 568 | 566 | .ktInfo p { |
| 569 | 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 | 572 | /** portlet stuff. */ |
| 575 | 573 | #portlet-search-text { |
| 576 | 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 | 576 | margin: 0.5em; |
| 579 | 577 | padding: 3px; |
| 580 | 578 | padding-left: 17px; |
| ... | ... | @@ -613,10 +611,10 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes |
| 613 | 611 | } |
| 614 | 612 | |
| 615 | 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 | 619 | /* =========== standard listings. */ |
| 622 | 620 | ... | ... |
resources/css/kt-headings.css
| ... | ... | @@ -4,7 +4,7 @@ |
| 4 | 4 | #content h1.browse_collections { |
| 5 | 5 | border: 1px solid #565963; |
| 6 | 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 | 8 | padding: 5px; |
| 9 | 9 | color: white; |
| 10 | 10 | } |
| ... | ... | @@ -15,7 +15,7 @@ |
| 15 | 15 | #content h1.preferences { |
| 16 | 16 | border: 1px solid #565963; |
| 17 | 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 | 19 | padding: 5px; |
| 20 | 20 | color: white; |
| 21 | 21 | } |
| ... | ... | @@ -26,7 +26,7 @@ |
| 26 | 26 | #content h1.dashboard { |
| 27 | 27 | border: 1px solid #565963; |
| 28 | 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 | 30 | padding: 5px; |
| 31 | 31 | color: white; |
| 32 | 32 | } |
| ... | ... | @@ -37,7 +37,7 @@ |
| 37 | 37 | #content h1.search { |
| 38 | 38 | border: 1px solid #565963; |
| 39 | 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 | 41 | padding: 5px; |
| 42 | 42 | color: white; |
| 43 | 43 | } |
| ... | ... | @@ -47,7 +47,7 @@ |
| 47 | 47 | #content h1.preferences { |
| 48 | 48 | border: 1px solid #565963; |
| 49 | 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 | 51 | padding: 5px; |
| 52 | 52 | color: white; |
| 53 | 53 | } |
| ... | ... | @@ -58,7 +58,7 @@ |
| 58 | 58 | #content h1.administration { |
| 59 | 59 | border: 1px solid #565963; |
| 60 | 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 | 62 | padding: 5px; |
| 63 | 63 | color: white; |
| 64 | 64 | } |
| ... | ... | @@ -70,7 +70,7 @@ |
| 70 | 70 | #content h1.document_details { |
| 71 | 71 | border: 1px solid #565963; |
| 72 | 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 | 74 | padding: 5px; |
| 75 | 75 | color: white; |
| 76 | 76 | } | ... | ... |
resources/css/kt-login.css
| ... | ... | @@ -58,5 +58,5 @@ |
| 58 | 58 | |
| 59 | 59 | .ktError p { |
| 60 | 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 | 14 | text-align: left; |
| 15 | 15 | } |
| 16 | 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 | 18 | padding-left: 15px; |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 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 | 25 | .kt_treenodes li.active > ul { | ... | ... |