diff public/libervia.css @ 102:eead497c87f7

browser side: CSS update, tabs & dialogs
author Adrien Vigneron <adrienvigneron@mailoo.org>
date Tue, 28 Jun 2011 23:35:56 +0200
parents db435e82197d
children 35917ffd1df4
line wrap: on
line diff
--- a/public/libervia.css	Tue Jun 28 14:23:12 2011 +0200
+++ b/public/libervia.css	Tue Jun 28 23:35:56 2011 +0200
@@ -99,7 +99,7 @@
 /* CSS Reset END */
 
 body {
-    background: #fff url('media/libervia/worldmap_gray.jpg') repeat-x;
+    background: #fff url('media/libervia/bg.png');
 }
 
 /* Misc Pyjamas stuff */
@@ -175,7 +175,7 @@
 }
 
 .gwt-MenuBar {
-     background-color: #fff;
+    background-color: #fff;
     filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#fff’, endColorstr=’#ccc’);
     background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ccc));
     background: -moz-linear-gradient(top, #fff, #ccc);
@@ -285,13 +285,62 @@
   -moz-border-radius: 7px 7px 0 0;
 }
 
+/* button, listbox, textbox */
+
+.gwt-button {
+    background-color: #ccc;
+    border-radius: 5px 5px 5px 5px;
+    -webkit-border-radius: 5px 5px 5px 5px;
+    -moz-border-radius: 5px 5px 5px 5px;
+    box-shadow: 0px 1px 4px #000;
+    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
+    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
+    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#fff&#888;, endColorstr=’#ccc’); 
+    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ccc)); 
+    background: -moz-linear-gradient(top, #fff, #ccc); 
+    background-image: -o-linear-gradient(#fff,#ccc);
+	 text-shadow: 0 -1px 1px rgba(255,255,255,0.25);
+	 padding: 3px 5px 3px 5px;
+	 margin: 10px 5px 5px 5px;
+	 color: #222;
+	 font-weight: bold;
+	 font: normal 1em/1.4em Arial, Helvetica, sans-serif;
+	 border: none;
+}
+
+.gwt-button:hover {
+	background-color: #cf2828;
+	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#cf2828&#888;, endColorstr=’#b01e1e’); 
+   background: -webkit-gradient(linear, left top, left bottom, from(#cf2828), to(#b01e1e)); 
+   background: -moz-linear-gradient(top, #cf2828, #b01e1e); 
+   background-image: -o-linear-gradient(#cf2828,#b01e1e);
+   color: #fff;
+   text-shadow: 0 -1px 1px rgba(0,0,0,0.25);  
+}
+
+.gwt-TextBox, .gwt-ListBox {
+	 background-color: #fff;
+    border-radius: 5px 5px 5px 5px;
+    -webkit-border-radius: 5px 5px 5px 5px;
+    -moz-border-radius: 5px 5px 5px 5px;
+    box-shadow:inset 0px 1px 4px #000;
+    -webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.6);
+    -moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.6);
+    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#ccc&#888;, endColorstr=’#eee’); 
+    background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#eee)); 
+    background: -moz-linear-gradient(top, #ccc, #eee); 
+    background-image: -o-linear-gradient(#ccc,#eee);
+	 text-shadow: 0 -1px 1px rgba(255,255,255,0.25);
+	 padding: 3px 5px 3px 5px;
+	 color: #222;
+	 font-weight: bold;
+	 font: normal 1em/1.4em Arial, Helvetica, sans-serif;
+	 border: none;
+}
+
 .gwt-ListBox {
+    overflow: auto;
     width: 100%;
-    background-color: #fff;
-    padding: 3px;
-    margin: 5px 0 5px 0;
-    border: 1px solid #aaa;
-
 }
 
 /* Custom Dialogs */
@@ -316,27 +365,17 @@
 }
 
 .contactTitle {
-    color: #fff;
+    color: #cf2828;
     font-weight: bold;
-    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
     font: normal 1.2em/1.4em Arial, Helvetica, sans-serif;
-    text-indent: 15px;
+    text-indent: 5px;
+    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
     width: 200px;
     height: 30px; 
-    border-radius: 10px 10px 0 0; 
-    -webkit-border-radius: 10px 10px 0 0; 
-    -moz-border-radius: 10px 10px 0 0;
-    background-color: #cf2828;
-    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#cf2828&#888;, endColorstr=’#b01e1e’); 
-    background: -webkit-gradient(linear, left top, left bottom, from(#cf2828), to(#b01e1e)); 
-    background: -moz-linear-gradient(top, #cf2828, #b01e1e) !important; 
-    background-image: -o-linear-gradient(#cf2828,#b01e1e);    
 }
 .groupList {
     font: normal 0.8em/1.4em Arial, Helvetica, sans-serif;
-    width: 100%;
-    border: 1px solid #fff;
-    background-color: #fff;    
+    width: 100%;    
 }
 
 .groupList tr:first-child td {
@@ -360,7 +399,10 @@
     background: -moz-linear-gradient(top, #eee, #aaa); 
     background-image: -o-linear-gradient(#eee,#aaa);
     color: #444;
-    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);   
+    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
+    box-shadow:inset 0px 1px 1px #000;
+    -webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.6);
+    -moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.6);  
 }
 
 div.group:hover {
@@ -376,7 +418,7 @@
    -o-transition: color 0.1s linear;  
 }
 .contact {
-     font-family: Arial, Helvetica, sans-serif;
+    font-family: Arial, Helvetica, sans-serif;
     font-size: 0.8em;
     margin-top: 3px;
     padding: 3px 10px 3px 10px;
@@ -389,8 +431,8 @@
 
 .selected {
     color: #fff;
-   background-color: #cf2828;
-   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#cf2828&#888;, endColorstr=’#981a1a’); 
+    background-color: #cf2828;
+    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#cf2828&#888;, endColorstr=’#981a1a’); 
     background: -webkit-gradient(linear, left top, left bottom, from(#cf2828), to(#981a1a)); 
     background: -moz-linear-gradient(top, #cf2828, #981a1a); 
     background-image: -o-linear-gradient(#cf2828,#981a1a);
@@ -427,6 +469,9 @@
     margin: auto;
     text-align: center;
     width: 80%;
+    padding-top: 10px;
+    min-height: 30px;
+    text-shadow: 0 -1px 1px rgba(255,255,255,0.25);
 }
 
 .status {
@@ -458,7 +503,7 @@
 }
 
 .registerPanel_tabs .gwt-TabBarItem div {
-    color: #444444;
+    color: #444;
 }
 
 .registerPanel_tabs .gwt-TabBarItem div:hover {
@@ -523,8 +568,6 @@
 /* Fix for Opera */
 .button, .button:visited {
     border-radius: 6px 6px 6px 6px !important;
-   -moz-border-radius: 6px 6px 6px 6px !important;
-   -webkit-border-radius: 6px 6px 6px 6px !important;
 }
 
 .registerPanel_content .button:hover { background-color: #111; color: #fff; }
@@ -583,7 +626,7 @@
     border-bottom: 1px solid #666;
     border-left: 1px solid #666;
    border-top: 0;
-   border-right: 0;
+   border-right: 1px solid #666;
     border-radius: 0 10px 0 0; 
     -webkit-border-radius: 0 10px 0 0; 
     -moz-border-radius: 0 10px 0 0; 
@@ -614,7 +657,6 @@
 }
 
 .widgetBody {
-    border: 1px solid #ddd;
     border-radius: 0 0 10px 10px; 
     -webkit-border-radius: 0 0 10px 10px; 
     -moz-border-radius: 0 0 10px 10px;
@@ -689,6 +731,8 @@
 
 .chatText {
   /* font-size: smaller; */
+  font: normal 0.8em/1.4em Arial, Helvetica, sans-serif;
+  margin-top: 5px;
 }
 
 .chatTextInfo {
@@ -706,14 +750,27 @@
 
 .chat_text_timestamp {
     font-style: italic;
+    margin-right: -4px;
+    padding: 1px 3px 1px 3px;
+    -moz-border-radius: 15px 0 0 15px;
+    -webkit-border-radius: 15px 0 0 15px;
+    border-radius: 15px 0 0 15px;
+    background-color: #eee;
+    color: #888;
 }
 
 .chat_text_nick {
     font-weight: bold;
+    padding: 1px 3px 1px 3px;
+    -moz-border-radius: 0 15px 15px 0;
+    -webkit-border-radius: 10 15px 15px 0;
+    border-radius: 0 15px 15px 0;
+    background-color: #ddd;
+    color: #555;
 }
 
 .chat_text_mymess {
-    color: blue;
+    color: #5e0000;
 }
 
 .occupant {
@@ -800,47 +857,65 @@
 }
 
 .gwt-TabPanelBottom {
-    height: 100%;
+  height: 100%;
 }
 
 .gwt-TabBar {
-  /*background-color: #C3D9FF;*/
+  color: #fff;
   position: fixed;
   z-index: 10;
   bottom: 0;
-  font-size: small;
+  font: normal 0.8em/1.4em Arial, Helvetica, sans-serif;
+  font-weight: bold;
+  text-decoration: none;
+  height: 32px;
+  box-shadow: 0px 1px 4px #000;
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
+  border-top: 1px solid #ddd;
+  border-bottom: 1px solid #ddd;
+  background-color: #222;
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’444444′, endColorstr=’#222222’);
+  background: -webkit-gradient(linear, left top, left bottom, from(#444444), to(#222222));
+  background: -moz-linear-gradient(top, #444444, #222222);
+  background-image: -o-linear-gradient(#444444,#222222);
 }
 
 .gwt-TabBar .gwt-TabBarFirst {
   height: 100%;
-  padding-left: 3px;
 }
 
 .gwt-TabBar .gwt-TabBarRest {
-  padding-right: 3px;
 }
 
 .mainTabPanel .gwt-TabBar .gwt-TabBarItem {
-  border-top: 1px solid #C3D9FF;
-  border-bottom: 1px solid #C3D9FF;
-  border-right:  1px solid #C3D9FF;
-  background: white;
-  padding: 2px;
   cursor: pointer;
+  padding: 3px 15px 3px 15px;
+  margin-left: 10px;
+}
+
+.gwt-TabBarItem-selected, div.gwt-TabBarItem:hover {
+  background-color: #fff;
+  color: #e7e5e5;
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#fff′, endColorstr=’#ccc’);
+  background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ccc));
+  background: -moz-linear-gradient(top, #fff, #ccc);
+  background-image: -o-linear-gradient(#fff,#ccc);
+  box-shadow: 0px 1px 4px #000;
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
+  padding: 3px 15px;
+  border-top: 1px solid #fff;
+  border-radius: 1em 1em 1em 1em;
+  -webkit-border-radius: 1em 1em 1em 1em;
+  -moz-border-radius: 1em 1em 0 0;
+  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
 }
 
 .mainTabPanel div.gwt-TabBarItem:hover {
-  background: yellow;
 }
 
 .mainTabPanel .gwt-TabBar .gwt-TabBarItem-selected {
-  font-weight: bold;
-  background-color: #E8EEF7;
-  border-top: 1px solid #87B3FF;
-  border-left: 1px solid #87B3FF;
-  border-right: 1px solid #87B3FF;
-  border-bottom: 1px solid #E8EEF7;
-  padding: 2px;
   cursor: default;
 }
 
@@ -851,7 +926,11 @@
     /* this property is set when a widget is the current target of the uniBox
      * (messages entered in unibox will be sent to this widget)
      */
-    background: #cf2828 !important;
+    background-color: #cf2828;
+    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#cf2828&#888;, endColorstr=’#b01e1e’); 
+    background: -webkit-gradient(linear, left top, left bottom, from(#cf2828), to(#b01e1e)); 
+    background: -moz-linear-gradient(top, #cf2828, #b01e1e); 
+    background-image: -o-linear-gradient(#cf2828,#b01e1e);
 }
 
 .infoFrame {