From d4d8e6ecebfafbedb3d28d331db6431df17cb83e Mon Sep 17 00:00:00 2001 From: Brad Shuttleworth Date: Thu, 1 Dec 2005 09:28:57 +0000 Subject: [PATCH] - fix the css files to use relative urls, avoiding the degradation in sub-hosted environments. - correct a secondary degeneration in IE. --- resources/css/kt-contenttypes.css | 12 ++++++------ resources/css/kt-framing.css | 32 +++++++++++++++----------------- resources/css/kt-headings.css | 14 +++++++------- resources/css/kt-login.css | 2 +- resources/css/kt-treewidget.css | 4 ++-- 5 files changed, 31 insertions(+), 33 deletions(-) diff --git a/resources/css/kt-contenttypes.css b/resources/css/kt-contenttypes.css index 37a1d91..2c39af6 100644 --- a/resources/css/kt-contenttypes.css +++ b/resources/css/kt-contenttypes.css @@ -12,10 +12,10 @@ padding-bottom: 5px; } -.contenttype.ms-presentation { background-image: url(/resources/mimetypes/powerp.gif); } -.contenttype.ms-word { background-image: url(/resources/mimetypes/word.gif); } -.contenttype.ms-excel { background-image: url(/thirdparty/icon-theme/16x16/mimetypes/x-office-spreadsheet.png); } -.contenttype.oo-impress { background-image: url(/resources/mimetypes/ooimpress.gif); } +.contenttype.ms-presentation { background-image: url(../../resources/mimetypes/powerp.gif); } +.contenttype.ms-word { background-image: url(../../resources/mimetypes/word.gif); } +.contenttype.ms-excel { background-image: url(../../thirdparty/icon-theme/16x16/mimetypes/x-office-spreadsheet.png); } +.contenttype.oo-impress { background-image: url(../..resources/mimetypes/ooimpress.gif); } -.contenttype.unspecified_type { background-image: url(/thirdparty/icon-theme/16x16/mimetypes/text-x-generic.png); } -.contenttype.folder { background-image: url(/thirdparty/icon-theme/16x16/mimetypes/x-directory-normal.png); } +.contenttype.unspecified_type { background-image: url(../../thirdparty/icon-theme/16x16/mimetypes/text-x-generic.png); } +.contenttype.folder { background-image: url(../../thirdparty/icon-theme/16x16/mimetypes/x-directory-normal.png); } diff --git a/resources/css/kt-framing.css b/resources/css/kt-framing.css index 6340a14..b6f17cf 100644 --- a/resources/css/kt-framing.css +++ b/resources/css/kt-framing.css @@ -53,7 +53,7 @@ body { position: relative; width: auto; - background: #a6c367 url(/resources/graphics/menubg.png) top left repeat-x; + background: #a6c367 url(../../resources/graphics/menubg.png) top left repeat-x; border: 1px solid #6c8c2f; padding: 0em 1em; margin-bottom: 1em; @@ -87,7 +87,7 @@ body } #navbar ul li.active { - background: #6c8c2f url(/resources/graphics/menubg-active.png) top left repeat-x; + background: #6c8c2f url(../../resources/graphics/menubg-active.png) top left repeat-x; height: 100px; } @@ -104,7 +104,7 @@ body } /* a.main_nav_item { - background: transparent url(/resources/graphics/home-navbar.gif) center left no-repeat; + background: transparent url(../../resources/graphics/home-navbar.gif) center left no-repeat; padding-left: 1.5em; } */ @@ -191,7 +191,7 @@ a.main_nav_item { { margin: 0; border: 0; - background: #a8a8a8; /* url(/resources/graphics/portlet-bg.png) center right no-repeat; */ + background: #a8a8a8; /* url(../../resources/graphics/portlet-bg.png) center right no-repeat; */ padding-top: 0.25em; padding-bottom: 0.25em; padding-left: 0.5em; @@ -221,9 +221,7 @@ a.main_nav_item { #content { position: relative; - left: 15em; - top: 0; - right: 0; + padding-left: 15em; } .noportlets #content { @@ -360,7 +358,7 @@ a.main_nav_item { margin-left: 0.5em; padding-left: 10px; color: white; - background: transparent url(/resources/graphics/required.png) center left no-repeat; + background: transparent url(../../resources/graphics/required.png) center left no-repeat; } .errorMessage @@ -504,14 +502,14 @@ a.main_nav_item { border-left: 1px solid #ccc; border-right: 1px solid #ccc; - background: transparent url(/resources/graphics/sort_asc.png) center right no-repeat; + background: transparent url(../../resources/graphics/sort_asc.png) center right no-repeat; } .kt_collection th.sort_on.sort_desc { border-left: 1px solid #ccc; border-right: 1px solid #ccc; - background: transparent url(/resources/graphics/sort_desc.png) center right no-repeat; + background: transparent url(../../resources/graphics/sort_desc.png) center right no-repeat; } .kt_collection th, @@ -553,7 +551,7 @@ a.main_nav_item { .ktError p { padding-left: 25px; - background: transparent url(/thirdparty/icon-theme/16x16/status/dialog-warning.png) center left no-repeat; + background: transparent url(../../thirdparty/icon-theme/16x16/status/dialog-warning.png) center left no-repeat; } /* block level. */ @@ -567,14 +565,14 @@ a.main_nav_item { .ktInfo p { padding-left: 25px; - background: transparent url(/thirdparty/icon-theme/16x16/status/dialog-information.png) center left no-repeat; + background: transparent url(../../thirdparty/icon-theme/16x16/status/dialog-information.png) center left no-repeat; } /** portlet stuff. */ #portlet-search-text { border: 1px solid black; - background: white url(/resources/graphics/search-button.png) center left no-repeat; + background: white url(../../resources/graphics/search-button.png) center left no-repeat; margin: 0.5em; padding: 3px; padding-left: 17px; @@ -613,10 +611,10 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes } /* FIXME when available icon-naming-conformant sets have better coverage, make these more accurate. */ -.ktAction.ktDelete { background: transparent url(/thirdparty/icon-theme/16x16/mimetypes/x-directory-trash.png) top left no-repeat; } -.ktAction.ktEdit { background: transparent url(/thirdparty/icon-theme/16x16/actions/document-properties.png) top left no-repeat; } -.ktAction.ktAddUser { background: transparent url(/thirdparty/icon-theme/16x16/actions/contact-new.png) top left no-repeat; } -.ktAction.ktAddGroup { background: transparent url(/thirdparty/icon-theme/16x16/actions/contact-new.png) top left no-repeat; } +.ktAction.ktDelete { background: transparent url(../../thirdparty/icon-theme/16x16/mimetypes/x-directory-trash.png) top left no-repeat; } +.ktAction.ktEdit { background: transparent url(../../thirdparty/icon-theme/16x16/actions/document-properties.png) top left no-repeat; } +.ktAction.ktAddUser { background: transparent url(../../thirdparty/icon-theme/16x16/actions/contact-new.png) top left no-repeat; } +.ktAction.ktAddGroup { background: transparent url(../../thirdparty/icon-theme/16x16/actions/contact-new.png) top left no-repeat; } /* =========== standard listings. */ diff --git a/resources/css/kt-headings.css b/resources/css/kt-headings.css index c502bff..b876210 100644 --- a/resources/css/kt-headings.css +++ b/resources/css/kt-headings.css @@ -4,7 +4,7 @@ #content h1.browse_collections { border: 1px solid #565963; height: 20px; - background: #a0a9b8 url(/resources/graphics/fahrner_browse.png) center left no-repeat; + background: #a0a9b8 url(../../resources/graphics/fahrner_browse.png) center left no-repeat; padding: 5px; color: white; } @@ -15,7 +15,7 @@ #content h1.preferences { border: 1px solid #565963; height: 20px; - background: #a0a9b8 url(/resources/graphics/fahrner_preferences.png) center left no-repeat; + background: #a0a9b8 url(../../resources/graphics/fahrner_preferences.png) center left no-repeat; padding: 5px; color: white; } @@ -26,7 +26,7 @@ #content h1.dashboard { border: 1px solid #565963; height: 40px; - background: #a0a9b8 url(/resources/graphics/fahrner_dashboard.png) center left no-repeat; + background: #a0a9b8 url(../../resources/graphics/fahrner_dashboard.png) center left no-repeat; padding: 5px; color: white; } @@ -37,7 +37,7 @@ #content h1.search { border: 1px solid #565963; height: 20px; - background: #a0a9b8 url(/resources/graphics/fahrner_search.png) center left no-repeat; + background: #a0a9b8 url(../../resources/graphics/fahrner_search.png) center left no-repeat; padding: 5px; color: white; } @@ -47,7 +47,7 @@ #content h1.preferences { border: 1px solid #565963; height: 20px; - background: #a0a9b8 url(/resources/graphics/fahrner_preferences.png) center left no-repeat; + background: #a0a9b8 url(../../resources/graphics/fahrner_preferences.png) center left no-repeat; padding: 5px; color: white; } @@ -58,7 +58,7 @@ #content h1.administration { border: 1px solid #565963; height: 20px; - background: #a0a9b8 url(/resources/graphics/fahrner_administration.png) center left no-repeat; + background: #a0a9b8 url(../../resources/graphics/fahrner_administration.png) center left no-repeat; padding: 5px; color: white; } @@ -70,7 +70,7 @@ #content h1.document_details { border: 1px solid #565963; height: 20px; - background: #a0a9b8 url(/resources/graphics/fahrner_details.png) center left no-repeat; + background: #a0a9b8 url(../../resources/graphics/fahrner_details.png) center left no-repeat; padding: 5px; color: white; } diff --git a/resources/css/kt-login.css b/resources/css/kt-login.css index 5cf6887..3b0e367 100644 --- a/resources/css/kt-login.css +++ b/resources/css/kt-login.css @@ -58,5 +58,5 @@ .ktError p { padding-left: 25px; - background: transparent url(/thirdparty/icon-theme/16x16/status/dialog-warning.png) center left no-repeat; + background: transparent url(../../thirdparty/icon-theme/16x16/status/dialog-warning.png) center left no-repeat; } diff --git a/resources/css/kt-treewidget.css b/resources/css/kt-treewidget.css index 282d712..b01c288 100644 --- a/resources/css/kt-treewidget.css +++ b/resources/css/kt-treewidget.css @@ -14,12 +14,12 @@ text-align: left; } .kt_treenodes li.treenode > a.pathnode { - background: transparent url(/graphics/plus.png) center left no-repeat; + background: transparent url(../../graphics/plus.png) center left no-repeat; padding-left: 15px; } .kt_treenodes li.treenode.active > a.pathnode { - background: transparent url(/graphics/minus.png) center left no-repeat; + background: transparent url(../../graphics/minus.png) center left no-repeat; } .kt_treenodes li.active > ul { -- libgit2 0.21.4