egroupware_official/pixelegg/less/def_buttons.less

408 lines
9.8 KiB
Plaintext
Raw Normal View History

2013-11-14 20:11:29 +01:00
/**
* EGroupware: CSS with less preprocessor
*
* Definitions for buttons
*
* 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 phpgwapi
* @version $Id$
*/
@import (reference) "def_design_pattern_color_font_shadow.less";
2013-11-22 06:27:29 +01:00
2013-11-14 20:11:29 +01:00
//#####################
//# Complete Button #
//#####################
.Complete_Button_normal{
2013-11-22 06:27:29 +01:00
.border_normal;
2014-01-23 09:44:38 +01:00
/*.box_shadow_standard_light;*/
2013-12-16 10:37:26 +01:00
.rounded (3px);
2013-12-30 18:32:42 +01:00
color: @gray_100;
2014-01-14 09:20:19 +01:00
-webkit-transition-property: background-color;
-moz-transition-property: background-color;
-o-transition-property: background-color;
transition-property: background-color;
-webkit-transition-duration: 0.5s;
-moz-transition-duration: 0.5s;
-o-transition-duration: 0.5s;
transition-duration: 0.5s;
-webkit-transition-timing-function: linear;
-moz-transition-timing-function: linear;
-o-transition-timing-function: linear;
transition-timing-function: linear;
2014-02-06 18:35:54 +01:00
background-color: @gray_30;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_hover{
2013-11-22 06:27:29 +01:00
// .border_hover;
.box_shadow_standard_light_hover;
background-color: inherit !important;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_active{
2013-11-22 06:27:29 +01:00
// .border_hover;
.box_shadow_standard_light_inset;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_focus{
2013-11-22 06:27:29 +01:00
// .border_hover;
.box_shadow_standard_light_inset;
2013-11-14 20:11:29 +01:00
}
2014-01-06 09:47:46 +01:00
/*ADD / Hinzufügen*/
2013-11-14 20:11:29 +01:00
.Complete_Button_add {
2013-11-22 06:27:29 +01:00
color: #FFF;
text-shadow: none;
2014-02-12 09:10:04 +01:00
.dimension_height_m;
2013-11-25 04:16:41 +01:00
/* height: auto;*/
2013-11-22 06:27:29 +01:00
background-image: none !important;
2014-01-06 09:47:46 +01:00
/*.border_radius_button_lefttop;*/
2013-11-22 06:27:29 +01:00
2013-12-08 22:36:30 +01:00
&:before {content: "+";font-size: 1.5em;color: @egw_color_1; line-height: 1.1em;}
2013-11-14 20:11:29 +01:00
}
2014-01-17 09:10:35 +01:00
2013-11-14 20:11:29 +01:00
.Complete_Button_add_hover {
2013-11-22 06:27:29 +01:00
background-color: @egw_color_blue_lightest !important;
color: @egw_color_1;
.box_shadow_standard_light_hover;
.border_radius_button_lefttop;
2013-11-14 20:11:29 +01:00
}
2014-01-06 09:47:46 +01:00
2014-01-17 09:10:35 +01:00
/*ADD / Hinzufügen = only PLUS */
.Complete_Button_add_only_plus {
2014-02-12 09:10:04 +01:00
.dimension_width_height_m;
2014-01-17 09:10:35 +01:00
border: 1px solid rgba(0, 0, 0, 0.15);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
2014-02-05 08:43:53 +01:00
padding: -0.5em;
background-color: @egw_color_2_e !important;
2014-01-17 09:10:35 +01:00
2014-01-17 09:10:35 +01:00
&:before {
content: "";
font-size: 2em;
color: @egw_color_1_a;
line-height: 0.6em;
2014-01-17 09:10:35 +01:00
padding-left: 0.1em;
padding-right: 4em;
}
2014-02-05 08:43:53 +01:00
2014-01-17 09:10:35 +01:00
&:active {background-color: @color_positive_action_active;}
}
.Complete_Button_add_only_plus_hover {
background-color: @egw_color_blue_lightest !important;
color: @egw_color_1;
.box_shadow_standard_light_hover;
.border_radius_button_lefttop;
}
2014-01-06 09:47:46 +01:00
2013-11-14 20:11:29 +01:00
.Complete_Button_hinweis{
2013-11-22 06:27:29 +01:00
.Button_size_square_32;
.border_normal;
padding: 0 0.2em;
border-left: 3px solid;
border-left-color: @lightgray;
2013-11-14 20:11:29 +01:00
}
2014-02-14 16:32:25 +01:00
/* ########################################################################################
*
* Button löschen / delete / => color-negative-action // red
*
######################################################################################## */
.Complete_Button_delete{
/*background-color: @color_negative_action_hover !important;*/
background-image:url('../images/delete.png')!important;
margin-left: 3em;
background-color: @gray_30;
.Complete_Button_text_icon_before;
/*background-color: @color-negative-action !important;*/
/*color: @gray_0 !important;*/
&:hover {
background-image:url('../images/delete-hover.png') !important;
background-color: @color_negative_action_hover !important;
.Complete_Button_text_icon_before;
color: @gray_0 !important;;
}
&:active {
background-image:url('../images/delete-hover.png') !important;
background-color: @color_negative_action_active !important;
.Complete_Button_text_icon_before;
color: @gray_0;
}
}
/* ########################################################################################
*
* Button cancel / => color-cancel-action // yellow
*
######################################################################################## */
.Complete_Button_cancel{
background-image:url('../images/cancel.png') !important;
.Complete_Button_text_icon_before;
content: "ID missing";
&:hover {background-color: @color_cancel_action_hover !important; color: @gray_100; .box_shadow_standard_light_hover;}
&:active {background-color: @color_cancel_action_active !important; color: @gray_100; .box_shadow_standard_light_inset;}
}
/* ########################################################################################
*
* Button edit + save + apply + copy => color-positive-action // green
*
######################################################################################## */
.Complete_Button_save_apply_copy{
img[url*="svg"]{.gradient_vertical (@gray_30, @gray_30); fill: red;}
&:hover {background-color: @color_positive_action !important; color: @gray_100; .box_shadow_standard_light_hover;}
&:active {background-color: @color_positive_action_active;}
}
2013-11-14 20:11:29 +01:00
// select
.Complete_Button_select{
2013-11-22 06:27:29 +01:00
.box_shadow_standard_light;
width: auto;
2013-12-12 21:27:20 +01:00
margin: 5px 0em 5px 5px;
2013-11-22 06:27:29 +01:00
padding:3px;
2013-11-14 20:11:29 +01:00
outline:none;
display: inline-block;
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
cursor:pointer;
2013-11-22 06:27:29 +01:00
}
2013-11-14 20:11:29 +01:00
.Complete_Button_select_hover {
2013-11-22 06:27:29 +01:00
.box_shadow_standard_light_hover;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_select_focus {
2013-11-22 06:27:29 +01:00
outline:0;
border-width:1px;
border-style: solid;
2013-12-30 18:32:42 +01:00
border-color: @gray_30;
2013-11-22 06:27:29 +01:00
-webkit-box-shadow: 0 0 2px 1px rgba(0,0,0, 0.10);
-moz-box-shadow: 0 0 2px 1px rgba(0,0,0, 0.10);
box-shadow: 0 0 2px 1px rgba(0,0,0, 0.10);
}
2013-11-14 20:11:29 +01:00
// Input
.Complete_Button_input{
2013-11-22 06:27:29 +01:00
.border_normal;
2013-12-30 18:32:42 +01:00
border-color: @gray_30;
2013-11-22 06:27:29 +01:00
.box_shadow_standard_light;
width: auto;
2013-12-20 10:36:43 +01:00
/*margin: 0.5em 0em 0.5em 0;*/
2013-11-22 06:27:29 +01:00
.border_radius_button_normal;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_input_hover{
2013-11-22 06:27:29 +01:00
.box_shadow_standard_light_hover;
2013-11-14 20:11:29 +01:00
}
2013-12-20 10:36:43 +01:00
2013-11-14 20:11:29 +01:00
.Complete_Button_input_focus {
2013-11-22 06:27:29 +01:00
outline:0;
border-width:1px;
border-style: solid;
2013-12-30 18:32:42 +01:00
border-color: @gray_30;
2013-11-22 06:27:29 +01:00
-webkit-box-shadow: 0 0 2px 1px rgba(0,0,0, 0.10);
-moz-box-shadow: 0 0 2px 1px rgba(0,0,0, 0.10);
box-shadow: 0 0 2px 1px rgba(0,0,0, 0.10);
2013-11-14 20:11:29 +01:00
}
// Suchen button
.Complete_Button_search_action{
2013-11-22 06:27:29 +01:00
.border_normal;
2013-12-30 18:32:42 +01:00
border-color: @gray_30;
2013-11-22 06:27:29 +01:00
.box_shadow_standard_light;
2013-12-12 21:27:20 +01:00
width: 45px;
2014-01-14 17:05:31 +01:00
/*height: 1.6em;*/
2013-12-12 21:27:20 +01:00
2013-12-08 22:36:30 +01:00
.border_radius_button_righttop;
2013-12-30 18:32:42 +01:00
.background_color_search;
2013-11-14 20:11:29 +01:00
2013-12-08 22:36:30 +01:00
color: lighten(@egw_color_1, 15%);
2013-11-14 20:11:29 +01:00
text-decoration: none;
cursor: pointer;
2013-12-12 21:27:20 +01:00
padding: 0px;
2014-01-18 18:51:29 +01:00
margin: 7px;
2013-12-20 10:36:43 +01:00
margin-left: 0px;
2013-12-08 22:36:30 +01:00
background-image: url("../images/search.png");
background-position: center 0;
background-size: contain;
background-repeat: no-repeat;
2013-11-14 20:11:29 +01:00
}
// Buchstaben
.Complete_Button_lettersearch{
2013-11-22 06:27:29 +01:00
.border_radius_button_normal;
.box_shadow_standard_light;
.border_normal;
// border: 1px solid #D3DCE3;
text-align: center;
cursor: pointer;
2013-11-14 20:11:29 +01:00
}
// Text
.Complete_Button_text{
2013-11-22 06:27:29 +01:00
.border_radius_button_normal;
2013-12-30 18:32:42 +01:00
.background_color_10_gray;
border-color: @gray_50;
2013-11-22 06:27:29 +01:00
cursor: pointer;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_text_hover {
2013-11-22 06:27:29 +01:00
.border_radius_button_normal;
.border_hover;
text-align: center;
cursor: pointer;
2013-12-30 18:32:42 +01:00
.background_color_30_gray;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_text_active{
2013-11-22 06:27:29 +01:00
color: @gray;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_text_icon_before{
2013-11-22 06:27:29 +01:00
.Complete_Button_normal;
padding-left: 30px !important;
background-position: 6px center !important;
background-repeat: no-repeat !important;
background-size: 20px auto !important;
2014-02-12 09:10:04 +01:00
/*.Button_size_h32_auto;*/
.dimension_height_m;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_text_icon_before_hover{
2013-11-22 06:27:29 +01:00
.Complete_Button_text_icon_before;
.box_shadow_standard_light_hover;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_text_icon_before_active{
2013-11-22 06:27:29 +01:00
.Complete_Button_text_icon_before;
.box_shadow_standard_light_hover;
2013-11-14 20:11:29 +01:00
}
// Buttons nur Icon
.Complete_Button_Icon_normal {
2014-01-08 08:57:35 +01:00
/*.background_color_10_gray;*/
2013-11-22 06:27:29 +01:00
.box_shadow_standard_light;
.border_normal;
2013-11-22 06:27:29 +01:00
.border_radius_button_normal;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_Icon_hover {
2014-01-08 08:57:35 +01:00
/*.background_color_20_gray;*/
2013-11-22 06:27:29 +01:00
.box_shadow_standard_light_hover;
.border_hover;
.border_radius_button_normal;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_Icon_active {
2014-01-08 08:57:35 +01:00
/*.background_color_30_gray;*/
2013-11-22 06:27:29 +01:00
.border_active;
.border_radius_button_normal;
2013-12-12 21:27:20 +01:00
.box_shadow_standard_light_inset;
2014-01-08 08:57:35 +01:00
background-color: @color_positive_action_active;
2013-11-14 20:11:29 +01:00
}
// #############################
// Button Sub Menupunkte
.Complete_Button_Module_Menu_Links{
2013-12-30 18:32:42 +01:00
.background_color_10_gray;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_Module_Menu_Links_Hover{
2013-12-30 18:32:42 +01:00
.background_color_30_gray;
.color_5_gray;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_Module_Menu_Links_active{
2013-12-30 18:32:42 +01:00
.background_color_10_gray;
2013-11-14 20:11:29 +01:00
}
// Button Sub Sub Menupunkte
.Complete_Button_Module_Menu_Links_Sub_Hover {
2013-11-22 06:27:29 +01:00
margin-left: 2px;
padding-top: 0px;
padding-bottom: 5px;
.border_normal;
2013-12-30 18:32:42 +01:00
.background_color_15_gray;
2013-11-14 20:11:29 +01:00
}
.Complete_Button_Module_Menu_Links_Sub {
2013-11-22 06:27:29 +01:00
margin-left: 3px;
padding-top: 0px;
padding-bottom: 5px;
.border_normal;
border-top-width: 0px;
2013-12-30 18:32:42 +01:00
.background_color_10_gray;
2013-11-22 06:27:29 +01:00
margin-top: -7px;
padding-left: 14px;
width: 93%;
}
2013-12-16 10:37:26 +01:00
2014-01-14 09:20:19 +01:00
/*#####################################################
Images svg
#####################################################*/
/*delete*/
img[url*="delete"]{.gradient_vertical (@gray_30, @gray_30);}
//