Mercurial > libervia-web
view public/libervia.css @ 85:a8f027738c16
browser side: widgets cells can now be added by putting a widget on a border
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 27 Jun 2011 03:14:37 +0200 |
parents | bd575203d456 |
children | 3029e3fdbd40 |
line wrap: on
line source
/* Libervia: a Salut à Toi frontend Copyright (C) 2011 Jérôme Poisson <goffi@goffi.org> Copyright (C) 2011 Adrien Vigneron <adrienvigneron@mailoo.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* * CSS Reset: see http://pyjs.org/wiki/csshellandhowtodealwithit/ */ /* reset/default styles */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; color: #444; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } :focus { outline: 0; } ins { text-decoration: none; } del { text-decoration: line-through; } table { border-collapse: collapse; border-spacing: 0; } /* pyjamas iframe hide */ iframe { position: absolute; } html, body { width: 100%; height: 100%; min-height: 100%; } body { line-height: 1em; font-size: 1em; overflow: auto; } .scrollpanel { margin-bottom: -10000px; } .iescrollpanelfix { position: relative; top: 100%; margin-bottom: -10000px; } /* undo part of the above (non-IE) */ html>body .iescrollpanelfix { position: static; } /* CSS Reset END */ body { background: #fff url('media/libervia/worldmap_gray.jpg') repeat-x; } /* Misc Pyjamas stuff */ .menuContainer { margin: 0 32px 0 20px; } .gwt-MenuBar,.gwt-MenuBar-horizontal { /*background-color: #01FF78; border: 1px solid #87B3FF; cursor: default;*/ width: 100%; height: 28px; margin: 0; font: normal 0.8em/1.4em Arial, Helvetica, sans-serif; padding: 5px 5px 0 5px; line-height: 100%; 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: 1px solid #ddd; border-radius: 0 0 1em 1em; -webkit-border-radius: 0 0 1em 1em; -moz-border-radius: 0 0 1em 1em; 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); display: inline-block; } .gwt-MenuBar-horizontal .gwt-MenuItem { text-decoration: none; font-weight: bold; height: 100%; color: #e7e5e5; padding: 3px 15px; /*display: block;*/ border-radius: 1em; -webkit-border-radius: 1em; -moz-border-radius: 1em; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4); -webkit-transition: color 0.2s linear; -moz-transition: color 0.2s linear; -o-transition: color 0.2s linear; } .gwt-MenuItem img { padding-right: 2px; } .gwt-MenuBar-horizontal .gwt-MenuItem-selected { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#eee’, endColorstr=’#aaa′); background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#aaa)); 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); cursor: pointer; } .menuSeparator { width: 100%; } .menuSeparator.gwt-MenuItem-selected { border: 0; background: inherit; cursor: default; } .gwt-MenuBar { 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); /*display: none;*/ height: 100%; min-width: 148px; margin: 0; padding: 0; /*min-width: 148px; top: 28px;*/ border: solid 1px #aaa; -webkit-border-radius: 0 0 10px 10px; -moz-border-radius: 0 0 10px 10px; border-radius: 0 0 10px 10px; -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .3); -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, .3); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); } .gwt-MenuBar table { width: 100%; display: inline-table; } .gwt-MenuBar .gwt-MenuItem { padding: 8px 15px; } .gwt-MenuBar .gwt-MenuItem-selected { background: #cf2828 !important; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#cf2828’, endColorstr=’#b01e1e’); background: -webkit-gradient(linear, left top, left bottom, from(#cf2828), to(#b01e1e)) !important; background: -moz-linear-gradient(top, #cf2828, #b01e1e) !important; background-image: -o-linear-gradient(#cf2828,#b01e1e); color: #fff !important; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; text-shadow: 0 1px 1px rgba(0, 0, 0, .1); transition: color 0.2s linear; -webkit-transition: color 0.2s linear; -moz-transition: color 0.2s linear; -o-transition: color 0.2s linear; cursor: pointer; } .gwt-MenuBar tr:last-child td { border-radius: 0 0 9px 9px !important; -webkit-border-radius: 0 0 9px 9px !important; -moz-border-radius: 0 0 9px 9px !important; } .menuLastPopup div tr:first-child td{ border-radius: 0 9px 0 0 !important; -webkit-border-radius: 0 9px 0 0 !important; -moz-border-radius: 0 9px 0 0 !important; } .menuLastPopup .gwt-MenuBar { border-top-right-radius: 9px; -webkit-border-top-right-radius: 9px; -moz-border-top-right-radius: 9px; } .gwt-AutoCompleteTextBox { width: 80%; border: 1px solid #87B3FF; margin-top: 20px; } .gwt-DialogBox { padding: 10px; font: normal 0.8em/1.4em Arial, Helvetica, sans-serif; border: 1px solid #aaa; 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); background-image: -o-linear-gradient(#fff,#ccc); border-radius: 9px; -webkit-border-radius: 9px; -moz-border-radius: 9px; 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); } .gwt-DialogBox .Caption { height: 20px; font-size: 1.3em !important; background-color: #cf2828; background: #cf2828 !important; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#cf2828’, endColorstr=’#b01e1e’); background: -webkit-gradient(linear, left top, left bottom, from(#cf2828), to(#b01e1e)) !important; background: -moz-linear-gradient(top, #cf2828, #b01e1e) !important; background-image: -o-linear-gradient(#cf2828,#b01e1e); color: #fff; padding: 3px; margin: -10px; margin-bottom: 5px; font-weight: bold; cursor: default; text-align: center; border-radius: 7px 7px 0 0; -webkit-border-radius: 7px 7px 0 0; -moz-border-radius: 7px 7px 0 0; } .gwt-ListBox { width: 100%; background-color: #fff; padding: 3px; margin: 5px 0 5px 0; border: 1px solid #aaa; } /* Custom Dialogs */ .formWarning { /* used when a form is not valid and must be corrected before submission */ font-weight: bold; color: red; } .contactsChooser { text-align: center; } .infoDialogBody { width: 100%; height: 100% } /* Contact List */ div.contactBox { margin-left: 20px; } .contactTitle { color: #fff; 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; width: 200px; height: 30px; border-radius: 10px 10px 0 0; -webkit-border-radius: 10px 10px 0 0; -moz-border-radius: 10px 10px 0 0; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#cf2828͸, 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; } .groupList tr:first-child td { padding-top: 10px; } .group { padding: 2px 15px; margin: 0.2em 0 0.2em 5px; display: inline-block; text-decoration: none; font-weight: bold; color: #e7e5e5; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4); border-radius: 1em; -webkit-border-radius: 1em; -moz-border-radius: 1em; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#eee’, endColorstr=’#aaa͸); background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#aaa)); 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); } div.group:hover { color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#cf2828͸, 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); -webkit-transition: color 0.1s linear; -moz-transition: color 0.1s linear; -o-transition: color 0.1s linear; } .contact { font-family: Arial, Helvetica, sans-serif; font-size: 0.8em; margin-top: 3px; padding: 3px 10px 3px 10px; } .contactConnected { color: #3c7e0c; font-weight: bold; } .selected { color: #fff; background-color: #cf2828; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#cf2828͸, 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); border-radius: 1em; -webkit-border-radius: 1em; -moz-border-radius: 1em; } /* UniBox & Status */ .uniBoxPanel { margin: auto; width: 80%; } .uniBox { margin-top: 1em; width: 100%; height: 50px; padding: 5px; font-family: Arial, Helvetica, sans-serif; border: 1px solid #bbb; color: #444; background: #fff url('media/libervia/unibox.png') top right no-repeat; border-radius: 9px 9px 9px 9px; -webkit-border-radius: 9px 9px 9px 9px; -moz-border-radius: 9px 9px 9px 9px; box-shadow:inset 0 0 10px #ddd; -webkit-box-shadow:inset 0 0 10px #ddd; -moz-box-shadow:inset 0 0 10px #ddd; } .statusPanel { margin: auto; text-align: center; width: 80%; } .status { font-style: italic; } /* RegisterBox */ .registerPanel_main button { margin: 0; padding: 0; border: 0; } .registerPanel_main div, .registerPanel_main button { color: #fff; font-family: Verdana, sans-serif; text-decoration: none; } .registerPanel_main{ height: 100%; } .registerPanel_tabs .gwt-Label { margin-top: 20px; margin-left: 15px; cursor: pointer; } .registerPanel_tabs .gwt-TabBarItem div { color: #444444; } .registerPanel_tabs .gwt-TabBarItem div:hover { color: #fff; } .registerPanel_tabs .gwt-TabBarItem-selected div { color: #fff; } .registerPanel_right_side { background: #111 url('media/libervia/register_right.png'); height: 100%; width: 100%; } .registerPanel_content { margin-left: 50px; margin-top: 30px; } .registerPanel_content div { font-size: 0.8em; margin-left: 10px; margin-top: 15px; font-style: bold; color: #888; } .registerPanel_content input { height: 25px; line-height: 25px; width: 200px; text-indent: 11px; text-align:-webkit-center; background: #000; color: #aaa; border: 1px solid #222; border-radius:15px; -webkit-border-radius: 15px; -moz-border-radius: 15px; } .registerPanel_content input:focus { border: 1px solid #444; } .registerPanel_content .button, .registerPanel_content .button:visited { background: #222 url('media/libervia/gradient.png') repeat-x; display: inline-block; text-decoration: none; -moz-border-radius: 6px; -webkit-border-radius: 6px; -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6); -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6); border-bottom: 1px solid rgba(0,0,0,0.25); cursor: pointer; margin-top: 30px; } .registerPanel_content .button:hover { background-color: #111; color: #fff; } .registerPanel_content .button:active { top: 1px; } .registerPanel_content .button, .registerPanel_content .button:visited { font-size: 14px; font-weight: bold; line-height: 1; text-shadow: 0 -1px 1px rgba(0,0,0,0.25); padding: 7px 10px 8px; } .registerPanel_content .red.button, .registerPanel_content .red.button:visited { background-color: #000; } .registerPanel_content .red.button:hover { background-color: #bc0000; } /* Widgets */ .widgetsPanel td { vertical-align: top; } .widgetsPanel > table { border-collapse: separate !important; border-spacing: 7px; } .widgetHeader { margin: auto; height: 30px; /*border: 1px solid #ddd;*/ border-radius: 10px 10px 0 0; -webkit-border-radius: 10px 10px 0 0; -moz-border-radius: 10px 10px 0 0; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#444͸, endColorstr=’#222’); background: -webkit-gradient(linear, left top, left bottom, from(#444), to(#222)); background: -moz-linear-gradient(top, #444, #222); background-image: -o-linear-gradient(#444,#222); } .widgetHeader_title { color: #fff; text-align: center; z-index: 0; margin-top: 5px; } .widgetHeader_buttonsWrapper { position: absolute; top: 0; height: 100%; width: 100%; } .widgetHeader_buttonGroup { float: right; z-index: 1; } .widgetHeader_buttonGroup img { background-color: transparent; /*width: 25px;*/ height: 22px; padding: 0; border-bottom: 1px solid #666; border-left: 1px solid #666; border-top: 0; border-right: 0; border-radius: 0 10px 0 0; -webkit-border-radius: 0 10px 0 0; -moz-border-radius: 0 10px 0 0; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#555͸, endColorstr=’#333’); background: -webkit-gradient(linear, left top, left bottom, from(#555), to(#333)); background: -moz-linear-gradient(top, #555, #333); background-image: -o-linear-gradient(#555,#333); z-index: 10; } .widgetHeader_closeButton { border-radius: 0 10px 0 0 !important; -webkit-border-radius: 0 10px 0 0 !important; -moz-border-radius: 0 10px 0 0 !important; z-index: 50; } .widgetHeader_settingButton { border-radius: 0 0 0 10px !important; -webkit-border-radius: 0 0 0 10px !important; -moz-border-radius: 0 0 0 10px !important; z-index: 50; } .widgetHeader_buttonGroup img:hover { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#cf2828͸, 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); z-index: 50; } .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; 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); } /* BorderWidgets */ .bottomBorderWidget { height: 5px !important; } .leftBorderWidget, .rightBorderWidget { width: 5px !important; } /* Microblog */ .microblogPanel { margin: auto; width: 95% !important; } .microblogEntry { text-align:center; border: 1px solid LightGray; border-bottom-width: 1px; margin-bottom: 5px; margin-top: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px; padding-bottom: 5px; -moz-border-radius: 15px; -webkit-border-radius: 15px; border-radius: 15px; } .mb_entry_header { font-size: small; } .mb_entry_author { font-weight: bold; } .mb_entry_timestamp { font-style: italic; } /* Chat & MUC Room */ .chatPanel { height: 100%; width: 100%; } .chatPanel_body { height: 100%; width: 100%; } .chatContent { overflow: auto; } .chatText { /* font-size: smaller; */ } .chatTextInfo { font-weight: bold; } .chatTextInfo { font-style: italic; } .chatArea { height:100%; width:100%; } .chat_text_timestamp { font-style: italic; } .chat_text_nick { font-weight: bold; } .chat_text_mymess { color: blue; } .occupant { padding-right: 15px; } .occupantsList { border-right: 1px solid lightGray; margin-left: 5px; margin-right: 10px; height: 100%; } /* Games */ .cardPanel { background: #02FE03; margin: 0 auto; } .cardGamePlayerNick { font-weight: bold; } /* Drag and drop */ .dragover { background: #cf2828 !important; border-radius: 1em !important; -webkit-border-radius: 1em !important; -moz-border-radius: 1em !important; } .dragover .widgetHeader, .dragover .widgetBody, .dragover .widgetHeader img { background: #cf2828 !important; } .dragover.widgetHeader { border-radius: 1em 1em 0 0 !important; -webkit-border-radius: 1em 1em 0 0 !important; -moz-border-radius: 1em 1em 0 0 !important; } .dragover.widgetBody { border-radius: 0 0 1em 1em !important; -webkit-border-radius: 0 0 1em 1em !important; -moz-border-radius: 0 0 1em 1em !important; } /* Warning message */ .warningPopup { width: 100%; text-align: center; background-color: white; padding: 4px 0; } .warningTarget { font-weight: bold; } .targetPublic { background-color: red; } .targetGroup { background-color: #00FFFB; } .targetOne2One { background-color: #72FF06; } .targetStatus { } /* Tab panel */ .mainTabPanel { } .gwt-TabPanel { } .gwt-TabPanelBottom { height: 100%; } .gwt-TabBar { /*background-color: #C3D9FF;*/ position: fixed; z-index: 10; bottom: 0; font-size: small; } .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; } .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; } /* Misc */ .selected_widget { /* this property is set when a widget is the current target of the uniBox * (messages entered in unibox will be sent to this widget) */ border: 3px dashed red; } .infoFrame { position: relative; width: 100%; height: 100%; }