egroupware/pixelegg/less/layout_raster.less
2013-11-27 07:20:56 +00:00

1087 lines
26 KiB
Plaintext

/**
* EGroupware: Stylite Pixelegg template
*
* Definitions for layout and raster
*
* Please do NOT change css-files directly, instead change less-files and compile them!
*
* @link http://www.egroupware.org
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @author Stefan Reinhardt <stefan.reinhardt@pixelegg.de>
* @package pixelegg
* @version $Id$
*/
@import "def_buttons.less";
//############## Layout ########################################################################################
// Allgemeines
/* #################################################
* Basecontainer
* #################################################
*/
//IFRAME
.egw_fw_content_browser_iframe,
#divMainView {
// .background-color-0-gray;
margin: 0;
body {.background-color-0-gray; }
}
.egwGridView_scrollarea {
width: 100%;
overflow: auto;
}
#egw_fw_header{
width: 100%;
float: left;
// Logo
#egw_divLogo {
float: left;
width: 255px;
display: block;
margin-left: -8px;
text-align: center;
height: 45px;
.background-color-5-gray;
img {
height: 40px;
border: none;
.background-color-5-gray;
}
}
/* ###########################################################################################################################################
/* ###########################################################################################################################################
* Topmenu / Home / Einstellungen / usw..
/* ###########################################################################################################################################
*/
#egw_fw_topmenu ul,
#egw_fw_topmenu > * > ul > li,
.topmenu_info_item,
#egw_fw_topmenu_items,
#egw_fw_topmenu_info_items {
display: inline;
}
#egw_fw_topmenu{
#egw_fw_topmenu_items {
float: left;
padding-top: 10px;
// height: 30px;
ul {
// padding: 10px;
// margin-left: 2em;
li{
.color-100-gray;
.Button_size_square_32;
padding: 0.3em 0.4em;
.Complete_Button_normal;
&:hover{.Complete_Button_hover;.color-100-gray;}
a {.color-100-gray;}
a:hover {
.color-50-gray;
border-color: @gray-50;
}
}
li:first-child{
margin-left: 10px;
:before{border: none;}
}
} // Ende ul
} // Ende Items
} // Ende Topmenu
} // Ende Header
/*#################################################
###################################################
Slide Effekt
###################################################*/
#egw_fw_topmenu_slide{
// width: 100%;
width: auto;
text-align: center;
height: 15px;
float: left;
position: fixed;
left: 194px;
}
#egw_fw_topmenu_slide.slidedown{
background-image: url("../images/list.png");
background-position: center center;
height: 15px;
width: 15px;
display: block;
margin-left: 5px;
margin-top: 10px;
background-size: 15px 15px;
float: left;
position: relative;
left: -5px;
}
#egw_fw_topmenu_slide.slideup{
background-image: url("../images/slideup.png");
background-position: center center;
height: 15px;
width: 15px;
display: block;
margin-top: -55px;
margin-left: 40px;
}
#slidetoggle{
width: 20px;
height: 20px;
display: block;
}
/*#################################################
###################################################
Add / Print / Logout /
- Name / Date
###################################################*/
#egw_fw_topmenu_addons{
// ########################################
// quick_add
span#quick_add{
.Complete_Button_add;
position: fixed;
right: 88px;
top: 0;
z-index: 200;
padding: 0 0.8em 0.5em 0.5em;
&:before {content: "+";font-size: 2em;color: @egw_color_1;}
select#quick_add_selectbox{
.border_normal;
.box_shadow_standard_light;
height: 30px;
padding: 0 0 0 10px;
font-size: 0.9em;
line-height: 1.1em;
&:hover {.box_shadow_standard_light_hover;}
&:focus {.box_shadow_standard_light_inset;}
/* option {
&:first-child{
&:before {content: "+";font-size: 2em;color: @egw_color_1;}
}*/
}
}
}
// Logout
#egw_fw_logout {
background-image: url(../images/logout.png);
background-size: 16px 16px;
background-position: center center;
background-repeat: no-repeat;
cursor: pointer;
display: inline-block;
float: right;
margin-right: 1em;
margin-top: 0px;
z-index: 200;
.Button_size_square_16;
.border_normal;
.box_shadow_standard_light;
padding: 0.5em;
top: 5px;
position: fixed;
right: 5px;
&:hover {.box_shadow_standard_light_hover;}
}
// Print
#egw_fw_print {
background-image: url(../images/print.png);
background-size: 16px 16px;
background-position: center center;
background-repeat: no-repeat;
cursor: pointer;
display: inline-block;
float: right;
margin-right: 5px;
margin-top: 0px;
position: fixed;
.Button_size_square_16;
.border_normal;
.box_shadow_standard_light;
padding: 0.5em;
top: 5px;
right: 45px;
z-index: 200;
&:hover {.box_shadow_standard_light_hover;}
&:focus {.box_shadow_standard_light_inset;}
}
/*Name / Datum / angemeldete User*/
#egw_fw_topmenu_info_items {
padding-right: 20px;
white-space: nowrap;
float: right;
display: flex;
.topmenu_info_item {
// Info Bell
&:nth-child(1) {
}
// Name
&:nth-child(2) {
/*float: right;*/
margin-top: 0;
font-size: 1em;
padding-right: 5px;
}
// angemeldete User
&:nth-child(3) {
position: relative;
top: 0px;
display: inline-block;
&:hover {.box_shadow_standard_light_hover;}
&:focus {.box_shadow_standard_light_inset;}
&:before {content: "| ";font-size: 1em;color: @egw_color_2_a;}
}
// Add
&:nth-child(4) {
}
}
}
// Ende items
/* ################################################################################################################
* Sidebar
* ################################################################################################################*/
#egw_fw_sidebar {
position: fixed;
overflow: hidden;
top: 57px;
left: 0px;
bottom: 20px;
width: 225px;
.background-color-5-gray;
//Menu
#egw_fw_sidemenu {
position: absolute;
top: 0px;
bottom: 4px;
left: 4px;
right: 5px;
overflow: hidden;
z-index: 0;
padding-top: 0.6em;
// .background-color-0-gray;
.egw_fw_ui_scrollarea_outerdiv{
.background-color-5-gray;
// Alle Tabs
.egw_fw_ui_sidemenu_entry_header {
cursor: pointer;
display: block;
height: 30px;
margin: 0 0;
padding: 4px 5px 5px 15px;
.background-color-5-gray;
background-image: none;
border-color: @gray-10;
.rounded(5px);
&:hover { .background-color-15-gray;}
h1 {
font-size: 1em;
font-weight: normal;
margin: 0 0 10px 0;
padding-top: 0.31em;
.color-40-gray;
}
}
// aktive APP
// aktiver Tab
.egw_fw_ui_sidemenu_entry_header_active {
//
cursor: pointer;
background-image: url("../images/header_active.png");
background-position: 95% -3000px;
background-repeat: no-repeat;
/*background-image: none;*/
.background-color-10-gray;
border-radius: 27px 0px 0 0;
// border-width: medium 1px;
border-top: 1px solid #C6CED6;
border-left: 1px solid #C6CED6;
margin: 0 0 0 0;
-moz-border-radius-topright: 5px;
-webkit-border-top-right-radius:5px;
-moz-border-radius-topleft: 5px;
-webkit-border-top-left-radius:27px;
border-bottom: none;
height: 44px;
img {padding-left: 10px; padding-top: 8px;}
h1 {text-transform: uppercase; font-size: 1.4em; .color-100-gray; padding-top: 8px;}
&:hover {.box_shadow_standard_light_inset;}
&:focus {
background-image: url("../images/ajax-loader.gif");
background-repeat: no-repeat;
background-position: 90% 50%;
.Complete_Button_active;
.background-color-25-gray;
}
.egw_fw_ui_ajaxloader {margin-top: -26px;}
}
// Rahmen um APP Einstellungen
.egw_fw_ui_sidemenu_entry_content {
display: block;
background-image: none;
.border-radius (0, 0, 27px, 0);
border-color: @gray-30;
border-style: solid;
border-width: 0px;
margin: 0 0 2em 0;
// padding: 0 0.3em 2em 0.3em;
> div:nth-of-type(1) {
padding: 5px 0.3em 1.5em 0.3em;
margin: 0 0 10px 0;
.background-color-25-gray;
.border-radius (0, 0, 27px, 0);
border-color: @gray-30;
}
// Schaltflächen
// Normal
.egw_fw_ui_category {
margin: 10px 5px 0px 5px;
padding: 0.5em 1em;
cursor: pointer;
// border-top: 7px solid;
border-color: @gray-30;
background-color: @gray-50;
.border-radius(3px,3px,3px,3px);
h1 {
margin: 5px 0px 3px 5px;
padding: 0px 0px 0px 15px;
font-size: 9pt;
background-image:url(../images/arrow_left.png);
background-repeat:no-repeat;
background-position:left center;
}
}
// Hover
.egw_fw_ui_category:hover {
.background-color-30-gray;
padding: 0.5em 1em;
}
// Active
.egw_fw_ui_category_active {
border-bottom-width: 0px;
margin-top: 0px;
.background-color-50-gray;
.color-5-gray;
h1 {
background-image:url(../images/arrow_down.png);
a {
color: #FFF;
img {height: 16px; width: 16px;}
}
a:hover {
padding: 5px 30px 5px 0px;
width: 200px;
.background-color-10-gray;
.color-50-gray;
.Complete_Button_hover;
}
}
}
}
.egw_fw_ui_sidemenu_entry_content_bottom {
border-width: 0px 1px 1px 1px;
}
.egw_fw_ui_sidemenu_entry_header_bottom {
border-width: 0px;
border-color: @gray-0;
}
.egw_fw_ui_sidemenu_entry_icon {
display: inline-block;
width: 20px;
height: 20px;
padding-left: 0;
padding-right: 10px;
float: left;
/*filter grey*/
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
/*filter: url(grayscale.svg); Firefox 4+ */
filter: gray; /* IE 6-9 */
}
}
}
// Trenner (Splitter)
#egw_fw_splitter {
position: absolute;
// background-color: RGB(200, 200, 255);
.background-color-25-gray;
width: 5px;
top: 61px;
bottom: 3px;
right: 0px;
&:hover {background-color: @egw_color_1;}
.egw_fw_ui_splitter_vertical {
background-image: url(../images/splitter_vert.png);
background-position: center;
background-repeat: no-repeat;
position: absolute;
width: 5px;
height: 100%;
cursor: col-resize;
}
}
// Ende Sidebar
}
// Menu Seite links
// Submenu / Unterpunkte in der Seitenleiste
.egw_fw_ui_category_content {
.background-color-0-gray;
border-top-width: 0;
border-left: 0px solid;
border-bottom: 0px solid;
margin-left: 4px;
margin-top: 0px;
padding-bottom: 5px;
padding-left: 0px;
padding-top: 14px;
margin-right: 5px;
min-height: 50px;
img { height: 16px; width: 16px}
&:hover {
.background-color-0-gray;
border-color: @gray-50;
}
// Favoriten anlegen und löschen
.sidebox-favorites{} // ist in etemplate2.less definiert
}
// Sub Sub Menu Item
.egw_fw_ui_sidemenu_listitem {
padding: 0.5em 0;
margin: 4px 0 5px 0px;
position: relative;
// Icon before
img.egw_fw_ui_sidemenu_listitem_icon {
height: 9px;
width: 9p;
padding: 0px;
float: left;
background-image: url("../images/bullet.png");
}
input {
height: 16px;
width: 81% !important;
}
input[type="image"] {
height: 10px;
width: 10px !important;
margin-left: 1px;
} // mehrere Benutzer auswählen
select { max-width: 85% !important; }
// Icon rechts der Liste - Auswahl Button
img {
height: 9px;
width: 9px;
padding: 0px;
float: right;
}
// normale Links
a {
// .Complete_Button_text;
padding: 5px 0px 5px 5px;
text-decoration: none;
min-width: 5em;
&:hover{
.color-100-gray;
}
&:active {
.box_shadow_standard_light_inset;
}
}
div {
a:first-child{
.Complete_Button_text;
// padding: 2px;
// padding: 5px 30px 5px 0px;
width: 72% !important;
// background-color: red;
}
a:first-child:hover {
// .Complete_Button_text_hover;
// .background-color-30-gray;
// padding: 5px 30px 5px 0px;
// width: 200px;
}
//löschen
a:nth-child(2){
// float: left;
position: absolute;
// margin-left: 72%;
right: 0;
top: 0;
background: transparent;
// .Complete_Button_Icon_normal;
// margin-right: 0.5em;
padding: 0px 2px 0 2px;
width: 10px;
min-width: 5px;
img {
margin: 0 0 0 0;
padding: 0em 0em 0 0em;
height: 10px;
width: 10px;
}
}
a:nth-child(2):hover {
background-color: @color-warning;
.Complete_Button_Icon_hover ;
.color-0-gray;
// width: auto;
}
}
// Submenu Item
&:hover{
.color-100-gray;
background-color: @egw_color_1_e;
padding: 0.5em 0;
}
} // .egw_fw_ui_sidemenu_listitem
// Scrollarea
.egw_fw_ui_scrollarea
{
overflow: hidden;
z-index: 0;
}
.egw_fw_ui_scrollarea_button
{
position: absolute;
display: block;
width: 100%;
height: 12px;
z-index: 2;
}
.egw_fw_ui_scrollarea_button_up.egw_fw_ui_scrollarea_button_hover,
.egw_fw_ui_scrollarea_button_down.egw_fw_ui_scrollarea_button_hover
{
background-image:url(../images/scroll_hover.png);
}
.egw_fw_ui_scrollarea_button_disabled
{
display: none !important;
}
.egw_fw_ui_scrollarea_button_up, .egw_fw_ui_scrollarea_button_down
{
height: 14px;
background-image:url(../images/scroll.png);
background-color: white;
background-repeat: no-repeat;
background-position: center;
}
.egw_fw_ui_scrollarea_button_up
{
top: 0px;
}
.egw_fw_ui_scrollarea_button_down
{
bottom: 0px;
}
.egw_fw_ui_scrollarea_outerdiv
{
height: 100%;
}
.egw_fw_content_browser_div {
display: block;
// overflow: auto;
/* background-color: RGB(240, 240, 255);*/
}
.egw_fw_content_browser_div_loading {
position: absolute;
z-index: 1000;
top: 0px;
left: 0px;
width: 16px;
height: 16px;
background-image: url(../images/ajax-loader.gif);
background-position: center;
background-repeat: no-repeat;
}
/* ###########################################################################################################################################
/*extended for calender app*/
div#calendar-container {
margin-left: 0px;
div.calendar{
margin-bottom: 1em;
background-color: inherit;
padding: 2%;
table {
font-size: 0.9em;
color: #000;
cursor: default;
padding: 0.3em;
.background-color-5-gray;
.basefontfamily;
thead {
// Month
.title {
background-color: @egw_color_1_a;
}
// << today >>
.headrow {}
// daynames
.daynames {
background-color: @egw_color_2_e;
}
}
tbody {
tr.daysrow {
&:hover {background-color: @egw_color_1_a;}
// fields
.name {}
.day {}
.weekend {}
}
// hover tr
tr.rowhilite td{background-color: @egw_color_1_a;}
}
} // table
}
}
/* ###########################################################################################################################################
/* ###########################################################################################################################################
/* ###########################################################################################################################################
* Main
/* ###########################################################################################################################################
*/
#egw_fw_main {
// margin: 0;
// float: left;
margin: 3px 0em 0em 2em;
// .background-color-0-gray;
padding: 0;
width: auto;
// ########################################
// APPS
#egw_fw_tabs{
position: relative;
background-color: transparent;
float: left;
width: 100%;
// ############################################################
// Tabnavigation
// Statusmeldung
// definiert in def_messages.less
// .egw_fw_ui_app_header_container { }
// ############################################################
// # # # # # # # # # ####
// # # # # # # # # # ####
// # # # # # # # # # ####
// # # # # # # # # # ####
// ############################################################
// Div um Tabs
.egw_fw_ui_tabs_header {
.border-radius(5px,0, 0, 5px);
margin: 0;
-moz-border-radius-topright: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-webkit-border-top-left-radius: 5px;
border-top-right-radius: 5px;
border-top-left-radius: 5px;
padding: 0px 5px 0px 5px;
background-position: bottom;
background-repeat: repeat-x;
background-color: transparent;
h1 {
// font-size: 8pt;
float: left;
width: 100%;
text-align: center;
-webkit-margin-before: 0;
-webkit-margin-after: 0;
}
img{
text-align:center;
float: none;
margin: 0 auto;
}
// Tab
// ##########
// # #
// # 16x16 #
// ##########
// aktive
.egw_fw_ui_tab_header {
text-align: center;
padding-left: 0;
padding-right: 0;
position: relative;
-moz-border-radius-topright:3px;
-webkit-border-top-right-radius:3px;
-moz-border-radius-topleft:3px;
-webkit-border-top-left-radius:3px;
border-top-right-radius:3px;
border-top-left-radius:3px;
.background-color-5-gray;
display: inline-block;
margin: 3px 5px 0px 0px;
padding: 2px 10px 2px 10px;
cursor: pointer;
border-width: 1px;
border-style: solid;
border-color: #c6ced6;
background-repeat:repeat-x;
height: 49px;
&:hover {.background-color-25-gray ;}
h1 {font-size: 100%; line-height: 1em; margin-top:0;}
}
.egw_fw_ui_tab_header_active {
border-width: 1px 1px 0px 1px !important;
padding: 2px 10px 3px 10px !important;
.background-color-25-gray ;
background-image:none !important;
&:hover {.background-color-25-gray ;}
}
// Bilder
img.egw_fw_ui_tab_icon {
display: inline-block;
width: 20px;
height: 20px;
margin-right: 5px;
margin-top: 10px;
}
}
.egw_fw_ui_tab_close_button {
position: absolute;
right: 1px;
top: 1px;
display: inline-block;
width: 16px;
height: 16px;
margin-left: 5px;
background-repeat: no-repeat;
background-position: center;
background-image: url(../images/close_button.png);
float: right;
:hover {
background-image: url(../images/close_button_hover.png);
}
}
// Ende Tabs
}
// Hover
.egw_fw_ui_tab_header_hover{
background-color: transparent;
}
// Der eigentliche Inhalt der APP
// ############################################################
// # # # # # # # # # ####
// # # # # # # # # # ####
// ############################################################
//
// Content / Inhalt
//
// ############################################################
.egw_fw_ui_tab_content {
border-width: 0px 9px 0px 9px;
border-style: solid;
border-color: @gray-30;
// background-color: white;
// width: 99.5%;
div:nth-child(1) {
// height: 100%;
// min-height: 400px;
iframe{
height: 100%;
min-height: 99%;
}
}
}
// Ende Main
}
//