You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/05/11 03:00:43 UTC

[lucy-commits] svn commit: r1101703 - in /incubator/lucy/site/trunk: content/lucy/css/lucy.css templates/basic.html

Author: marvin
Date: Wed May 11 01:00:43 2011
New Revision: 1101703

URL: http://svn.apache.org/viewvc?rev=1101703&view=rev
Log:
Use faux-namespacing in our CSS.

To avoid clashes in the definitions for individual elements between our local
CSS and the CSS inherited from www.apache.org, add prefixes to our CSS
identifiers.

Modified:
    incubator/lucy/site/trunk/content/lucy/css/lucy.css
    incubator/lucy/site/trunk/templates/basic.html

Modified: incubator/lucy/site/trunk/content/lucy/css/lucy.css
URL: http://svn.apache.org/viewvc/incubator/lucy/site/trunk/content/lucy/css/lucy.css?rev=1101703&r1=1101702&r2=1101703&view=diff
==============================================================================
--- incubator/lucy/site/trunk/content/lucy/css/lucy.css (original)
+++ incubator/lucy/site/trunk/content/lucy/css/lucy.css Wed May 11 01:00:43 2011
@@ -14,37 +14,43 @@
  * limitations under the License.
  */
 
+/* To establish a common graphic identity with the larger Apache community, we
+ * inherit CSS stylesheets from www.apache.org.  However, to avoid style
+ * definition clashes for low-level elements, we prefix our own ids and
+ * classes with "lucy-".
+ */
+
 @import url('http://www.apache.org/css/style.css');
 
-#rigid_wrapper {
+#lucy-rigid_wrapper {
     width: 1060px;
     margin-left: auto;
     margin-right: auto;
 }
 
 /* Styling for Apache-centric top navigation bar. */
-#top_nav_box #top_nav_bar {
+#lucy-top_nav_box #lucy-top_nav_bar {
     float: left;
 }
-#top_nav_bar {
+#lucy-top_nav_bar {
     height: 34px;
     width: 100%;
     background: #303284;
 }
-#top_nav_bar ul {
+#lucy-top_nav_bar ul {
     float: left;
     margin-top: 5px;
 }
-#top_nav_bar ul li {
+#lucy-top_nav_bar ul li {
     display:inline;
     float:left;
     margin: 5px 0px;
 }
-#top_nav_bar ul li a {
+#lucy-top_nav_bar ul li a {
     padding: 10px 12px;
     color: #fff;
 }
-#top_nav_bar ul li a:hover {
+#lucy-top_nav_bar ul li a:hover {
     background: #3E4F90;
     text-decoration:none;
 }
@@ -55,12 +61,12 @@
     width: 100%
 }
 
-#top {
+#lucy-top {
     border-top: 0px;
     height: 110px;
 }
 
-#logo_box {
+#lucy-logo_box {
     text-align: center;
 }
 

Modified: incubator/lucy/site/trunk/templates/basic.html
URL: http://svn.apache.org/viewvc/incubator/lucy/site/trunk/templates/basic.html?rev=1101703&r1=1101702&r2=1101703&view=diff
==============================================================================
--- incubator/lucy/site/trunk/templates/basic.html (original)
+++ incubator/lucy/site/trunk/templates/basic.html Wed May 11 01:00:43 2011
@@ -8,16 +8,16 @@
 
   <body>
 
-    <div id="rigid_wrapper">
+    <div id="lucy-rigid_wrapper">
 
-    <div id="top" class="container_16">
+    <div id="lucy-top" class="container_16">
 
-      <div id="logo_box" class="grid_8">
+      <div id="lucy-logo_box" class="grid_8">
         <img src="images/lucy_logo_150x100.png" alt="Apache Lucy™">
       </div> <!-- header -->
 
-      <div #id="top_nav_box" class="grid_8">
-        <div id="top_nav_bar" class="container_8">
+      <div #id="lucy-top_nav_box" class="grid_8">
+        <div id="lucy-top_nav_bar" class="container_8">
         <ul>
           <li><a href="http://www.apache.org/" title="Apache Software Foundation">Apache Software Foundation</a></li>
           <li><a href="http://www.apache.org/licenses/" title="License">License</a></li>