r8479: * Sync CSS with current samba.org stylesheets.
authorDeryck Hodge <deryck@samba.org>
Thu, 14 Jul 2005 19:21:02 +0000 (19:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:23:07 +0000 (13:23 -0500)
* Add wide.css so it's availble for future pages.
* Move SWAT specific styles to swat.css to make future syncs easier.

deryck
(This used to be commit 7ddc3ed5b87687a66995d2555c683efcb93be7e2)

swat/images/stripes.png [new file with mode: 0644]
swat/scripting/common.js
swat/scripting/header_columns.esp
swat/scripting/header_plain.esp
swat/style/columns.css [moved from swat/style/main.css with 60% similarity]
swat/style/common.css
swat/style/swat.css [new file with mode: 0644]
swat/style/wide.css [new file with mode: 0644]

diff --git a/swat/images/stripes.png b/swat/images/stripes.png
new file mode 100644 (file)
index 0000000..5c5941f
Binary files /dev/null and b/swat/images/stripes.png differ
index 631efcacb7749724d6092bd802694f41c0671333..c431c8c1b07d7d600b36894419e07f5a0f45ba75 100644 (file)
@@ -73,7 +73,9 @@ function always_allowed(uri) {
        var allowed = new Array("/images/favicon.ico", 
                                "/images/linkpad.gif",
                                "/images/logo.png",
        var allowed = new Array("/images/favicon.ico", 
                                "/images/linkpad.gif",
                                "/images/logo.png",
-                               "/style/main.css",
+                               "/images/stripes.png",
+                               "/style/columns.css",
+                               "/style/swat.css",
                                "/style/common.css");
        for (i in allowed) {
                if (allowed[i] == uri) {
                                "/style/common.css");
        for (i in allowed) {
                if (allowed[i] == uri) {
index 3d92bb9522f23a99284ba5ce83b9a6ef32910af8..e870a1110aefc30ad34d5e0c7e0909b5e53cb8a6 100644 (file)
@@ -6,7 +6,8 @@
   <title>@@global.page.title</title>
 
 <link rel="stylesheet" href="/style/common.css" type="text/css" media="all" />
   <title>@@global.page.title</title>
 
 <link rel="stylesheet" href="/style/common.css" type="text/css" media="all" />
-<link rel="stylesheet" href="/style/main.css" type="text/css" media="all" />
+<link rel="stylesheet" href="/style/columns.css" type="text/css" media="all" />
+<link rel="stylesheet" href="/style/swat.css" type="text/css" media="all" />
 <link rel="shortcut icon" href="/images/favicon.ico" />
 
 <!--[if gte IE 5.5]>
 <link rel="shortcut icon" href="/images/favicon.ico" />
 
 <!--[if gte IE 5.5]>
@@ -59,7 +60,7 @@ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images/logo.png'
   <h4>Samba Web Administration Tool</h4>
 </div>
 
   <h4>Samba Web Administration Tool</h4>
 </div>
 
-<div class="nav">
+<div id="nav">
      <% 
      include("/docs/menu.js"); 
      include("/esptest/menu.js");
      <% 
      include("/docs/menu.js"); 
      include("/esptest/menu.js");
index f9eaae9b9674398b0a39b8e47277f4e793df697d..8dd378910e63a3618bbe0587bf7b540a878c2c92 100644 (file)
@@ -6,7 +6,8 @@
   <title>@@global.page.title</title>
 
 <link rel="stylesheet" href="/style/common.css" type="text/css" media="all" />
   <title>@@global.page.title</title>
 
 <link rel="stylesheet" href="/style/common.css" type="text/css" media="all" />
-<link rel="stylesheet" href="/style/main.css" type="text/css" media="all" />
+<link rel="stylesheet" href="/style/columns.css" type="text/css" media="all" />
+<link rel="stylesheet" href="/style/swat.css" type="text/css" media="all" />
 <link rel="shortcut icon" href="/images/favicon.ico" />
 
 <!--[if gte IE 5.5]>
 <link rel="shortcut icon" href="/images/favicon.ico" />
 
 <!--[if gte IE 5.5]>
similarity index 60%
rename from swat/style/main.css
rename to swat/style/columns.css
index 791a89d9e09013b1e78de1a8d77794799eb0bdb5..c3be8cbf65b268371b8c93f8ec1325b1ef8dc185 100644 (file)
@@ -1,15 +1,30 @@
-/* main.css */
+/*
+       columns.css
+       Copyright (C) 2004-2005 Deryck Hodge <deryck@samba.org>
+
+       Creates a puesdo-three-column view.
+
+       You may freely use and modify the styles here, but if you 
+       intend to recreate the samba.org look exactly, please ask
+       permission first.
+*/
+
 
 
-               /******* Links for right-hand side of the page ******/
-               /****************************************************/
+/* Right-side column 
+***********************************************************/
 #links {
 #links {
-       float:right;
-       margin:115px 1em 0 0;  
+       float:left;
+       margin:115px 0 0 81%;  
        padding:0;
        padding:0;
-    width:173px;
+    width:18%;
 }
 }
-* html #links {        /* Applies to IE5/6 only */
-       margin:115px .5% 0 0;
+* html #links {
+       position:absolute;
+       top:115px;
+       left:82%;
+       float:none;
+       width:17%;
+       margin:0;
 }
 #links h4 {
        margin-top:10px;
 }
 #links h4 {
        margin-top:10px;
 .contacts li{
        list-style-type:disc;
 }
 .contacts li{
        list-style-type:disc;
 }
-               /****** Formats the page layout ********************/
-               /**************************************************/ 
-#content>.center {
-       min-height:800px;
-       z-index:0;
-}
-.center {
-       margin:0 22% 0 175px;
-       padding-top:130px;
+
+
+/* Middle content column
+***********************************************************/
+#content {
+       position:absolute;
+       top:100px;
+       margin:0 20% 0 175px;
+       padding-top:30px;
        padding-left:35px;
        padding-bottom:50px;
        padding-right:15px;
        background-color:#FFF;
        border-left:1px solid #FFFF64;
        border-right:1px solid #FFFF64;
        padding-left:35px;
        padding-bottom:50px;
        padding-right:15px;
        background-color:#FFF;
        border-left:1px solid #FFFF64;
        border-right:1px solid #FFFF64;
-       z-index:-1;
 }
 }
-.center ul {
+* html #content {
+       width:51%;
+       margin-right:0;
+}
+#content ul {
        list-style-type:none;
 }
        list-style-type:none;
 }
+
+
+/* Misc
+************************************************************/
 .headline {
         margin-left:20px;
         font-style:italic;
 }
 .headline {
         margin-left:20px;
         font-style:italic;
 }
-               /*********T-shirts and mirror footnotes *************/
-               /****************************************************/
 .plugs {
        font-style:italic;
        text-align:center;
 .plugs {
        font-style:italic;
        text-align:center;
     text-align:center;
     margin:10px 0 25px 0;
 }
     text-align:center;
     margin:10px 0 25px 0;
 }
-
-/*
-       styles for data tables
-*/
-table.data {
-          border: 2px;
-}
-table.data th {
-       margin-top:20px;
-       text-align:left;
-        background-color: #F5C915;
-}
-table.data tr {
-        background-color: #E5C995;
-       text-align:left;
-}
index 58406ccc4083d937aa2175a6a07affde457a797f..6b4fa65a4cf98025d050eab7cdd6fe5594d9ac6b 100644 (file)
@@ -1,15 +1,45 @@
-/* common.css */
+/* 
+       common.css
+       Copyright (C) 2004-2005 Deryck Hodge <deryck@samba.org>
 
 
-       /********* Basic elements across the site **********/
-       /***************************************************/
+       Basic styles common to all of samba.org, including VirtualHosts
+       bugzilla.samba.org, build.samba.org, and news.samba.org.
 
 
+       You may freely use and modify the styles here, but if you 
+       intend to recreate the samba.org look exactly, please ask
+       permission first.
+*/
+
+
+/* Base elements
+***********************************************************/
 body {
 body {
+       background:url(/images/stripes.png) repeat-x 0 0;
        margin:0;
        margin:0;
+       padding:0;
        background-color:#E5E9F5;
        font-family:Lucidasans, Helvetica, Verdana, sans-serif;
        font-size:medium;
        color:#000;
 }
        background-color:#E5E9F5;
        font-family:Lucidasans, Helvetica, Verdana, sans-serif;
        font-size:medium;
        color:#000;
 }
+body#news  {
+       background:none;
+       background-color:#FFF;
+}
+blockquote {                           
+       margin:35px;                    
+       padding:15px;                   
+       border-left:2px groove #CCC;
+       border-top:2px groove #CCC;
+}
+img {
+       border:0;
+}
+
+
+
+/* Headings
+***********************************************************/
 h1 {
        font-size:x-large;
 }
 h1 {
        font-size:x-large;
 }
@@ -42,6 +72,17 @@ h6 {
 h6 a {
        margin-right:3px;
 }
 h6 a {
        margin-right:3px;
 }
+
+
+/* Lists
+***********************************************************/
+ol li {
+       margin-bottom:12px;
+}
+
+
+/* Tables
+***********************************************************/
 table.real thead { 
         background-color: #E5E9F5;
 }
 table.real thead { 
         background-color: #E5E9F5;
 }
@@ -58,50 +99,30 @@ a:link:hover {
        color:#CC0033;
        background-color:#FFFF64;
 }
        color:#CC0033;
        background-color:#FFFF64;
 }
-ol li {
-       margin-bottom:12px;
-}
-blockquote {                           
-       margin:35px;                    
-       padding:15px;                   
-       border-left:2px groove #CCC;
-       border-top:2px groove #CCC;
-}
-img {
-       border:0;
-}
-.punch {                       /*creates a bold typeface */
-       font-weight:bold;
-}
 
 
-       /********************* header styles *******************************/
-       /******************************************************************/
+
+/* Header (yellow and blue stripes)
+***********************************************************/
 #banner {
        position:absolute;
        top:0;
        left:0;
 #banner {
        position:absolute;
        top:0;
        left:0;
-       height:90px;
+       height:95px;
        width:100%;
        padding-top:4px;
        width:100%;
        padding-top:4px;
-       background-color:#FFFF64;
+       z-index:1;
 }
 }
-.logout {
+.srch {
        text-align:right;
        text-align:right;
-
+  margin:0 5px 0 0;
 }
 }
-.logout form {
+.srch form {
        display:inline;
 }
        display:inline;
 }
-.stripe {
-       position:absolute;
-       top:40px;
-       left:0;
-       height:55px;
-       width:100%;
-       background-color:#3878CD;
-       border-top:2px solid #575756;
-       border-bottom:2px solid #575756;
-}
+
+
+/* Slogan ("Opening windows to a wider world")
+***********************************************************/
 .slogan {
        position:absolute;
        left:187px;
 .slogan {
        position:absolute;
        left:187px;
@@ -117,8 +138,9 @@ html>body .slogan {         /**** Opera needs its own rule *********/
        top:100px;
 }
 
        top:100px;
 }
 
-               /******** PNG logo with transparency across browsers  */
-               /******************************************************/
+
+/* Logo (with hacks for PNG transparency across browsers)
+***********************************************************/
 #logo>.logo_hack {
        background-image:url(/images/logo.png);
        background-position:center;
 #logo>.logo_hack {
        background-image:url(/images/logo.png);
        background-position:center;
@@ -132,14 +154,16 @@ html>body .slogan {       /**** Opera needs its own rule *********/
        height:119px;
        padding:0;
        margin:0;
        height:119px;
        padding:0;
        margin:0;
+       z-index:1;
 }
 .logo_hack a:hover {
        background:transparent;
 }
 
 }
 .logo_hack a:hover {
        background:transparent;
 }
 
-               /******** Main nav menu styles ****************/
-               /**********************************************/
-.nav {
+
+/* Nav menu
+***********************************************************/
+#nav {
        position:absolute;
        top:152px;
        left:20px;
        position:absolute;
        top:152px;
        left:20px;
@@ -151,35 +175,45 @@ html>body .slogan {       /**** Opera needs its own rule *********/
        margin:0;
        z-index:1;
 }
        margin:0;
        z-index:1;
 }
-.nav ul {
+#nav ul {
        list-style-type:none;
        text-align:center;
        padding:0;
        margin:0;
 }
        list-style-type:none;
        text-align:center;
        padding:0;
        margin:0;
 }
-.nav a,
-.nav a:link,
-.nav a:visited {
+#nav a,
+#nav a:link,
+#nav a:visited {
        display:block;
        height:20px;
        font-size:small;
        color:#2B5C9F;
 }
        display:block;
        height:20px;
        font-size:small;
        color:#2B5C9F;
 }
-.nav a:hover {
+#nav a:hover {
        color:#FFF;
        background-color:#3878CD;
 }
        color:#FFF;
        background-color:#3878CD;
 }
-.nav a:active {
+#nav a:active {
        color:#FFFF64;
        background-color:#3878CD;
        font-size:14px;
 }
        color:#FFFF64;
        background-color:#3878CD;
        font-size:14px;
 }
-.nav img {
+#nav img {
        padding:0;
        margin:0;
        width:180px;
        height:30px;
 }
        padding:0;
        margin:0;
        width:180px;
        height:30px;
 }
+
+
+/* Text and alignment formats
+***********************************************************/
+.punch {
+       font-weight:bold;
+}
+.tilt {
+       font-style:italic;
+}
 .colophon {
        margin-left:20px;
 }
 .colophon {
        margin-left:20px;
 }
diff --git a/swat/style/swat.css b/swat/style/swat.css
new file mode 100644 (file)
index 0000000..0c8f720
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+       swat.css
+       
+       Styles added to the samba.org stylesheets 
+       specifically for SWAT.
+*/
+
+
+/* Forms
+***********************************************************/
+.logout {
+       text-align:right;
+}
+.logout form {
+       display:inline;
+}
+
+
+/* Tables
+***********************************************************/
+table.data {
+          border: 2px;
+}
+table.data th {
+       margin-top:20px;
+       text-align:left;
+        background-color: #F5C915;
+}
+table.data tr {
+        background-color: #E5C995;
+       text-align:left;
+}
diff --git a/swat/style/wide.css b/swat/style/wide.css
new file mode 100644 (file)
index 0000000..0107b33
--- /dev/null
@@ -0,0 +1,113 @@
+/*
+       wide.css
+       Copyright (C) 2004-2005 Deryck Hodge <deryck@samba.org>
+
+       An alternate two-column "wide" style for those pages
+       with lots and lots of text (download, devel, etc.)
+
+       You may freely use and modify the styles here, but if you 
+       intend to recreate the samba.org look exactly, please ask
+       permission first.
+*/
+
+
+/* Primary content section 
+***********************************************************/
+#content {
+       position:absolute;
+       top:100px;
+       clear:left;
+       margin:0 1% 0 175px;
+       padding-top:30px;
+       padding-left:35px;
+       padding-bottom:50px;
+       padding-right:15px;
+       background-color:#FFF;
+       border-left:1px solid #FFFF64;
+       border-right:1px solid #FFFF64;
+}
+* html #content {
+       width:70%;
+}
+#content h4 {
+       font-weight:bold;
+       margin:50px 10px 15px 0;
+}
+pre {
+    margin:15px 0 30px 5px;
+}    
+
+
+/* Team section
+***********************************************************/
+.teampic {
+       text-align:center;
+}
+.teampic img {
+       width:431px;
+       height:300px;
+}
+
+
+/* Release history/Release notes
+***********************************************************/
+.notes {
+       position:absolute;
+       top:265px;
+       left:0;
+}
+.notes h6 {
+    text-align:left;
+    margin:10px 5px;
+}
+.notes ul {
+       list-style-type:none;
+       text-align:left;
+       padding-left:12px;
+       margin:0 0 0 10px;
+       font-size:10px;
+}
+.intro {
+       margin-top:30px;
+}
+.headline {
+       margin-left:20px;
+       font-style:italic;
+}
+.latest ul {
+       list-style-type:none;
+       margin-left:40px;
+}
+
+
+/* Support providers pages
+***********************************************************/
+#countries {
+       float:left;
+       margin:240px 0 0 5px;
+       padding:0;
+       background-color:#E5E9F5;
+}
+#countries ul {
+       list-style-type:none;
+}
+#countries a {
+       font-size:small;
+}
+#countries h4 {
+       margin-top:10px;
+       margin-left:1px;
+       font-size:small;
+}
+.disclaimer {
+       margin:30px;
+       font-style:italic;
+}
+.info {
+       margin:75px 15px 15px 15px;
+       padding:10px;
+       font-size:small;
+       border-top:1px dotted #3878CD;
+       border-bottom:1px dotted #3878CD;
+}
+