src/hbcore/resources/themes/style/hbdefault/rules/widgets/hbtoolbutton/hbtoolbutton.css
changeset 0 16d8024aca5e
child 1 f7ac710697a9
equal deleted inserted replaced
-1:000000000000 0:16d8024aca5e
       
     1 HbToolButton{
       
     2     layout:icon_button;
       
     3 }
       
     4 
       
     5 HbToolButton[toolButtonStyle="1"]{	
       
     6     layout:icon_button;
       
     7 }
       
     8 
       
     9 HbToolButton[toolButtonStyle="2"]{
       
    10     layout:text_button;
       
    11 }
       
    12 
       
    13 HbToolButton[toolButtonStyle="3"]{
       
    14     layout:icon_text_button;
       
    15 }
       
    16 
       
    17 HbToolButton[toolbutton_extension_layout="true"][toolButtonStyle="3"] {
       
    18     layout: icon_text_button_extension;
       
    19 }
       
    20 
       
    21 HbToolBar > HbToolButton[toolButtonStyle="3"][orientation="2"] {
       
    22     min-width:15un;
       
    23     min-height:var(hb-param-widget-toolbar-height);
       
    24 }
       
    25 
       
    26 HbToolBar > HbToolButton[toolButtonStyle="2"][orientation="2"] {
       
    27     min-width:15un;
       
    28     min-height:var(hb-param-widget-toolbar-height);
       
    29 }
       
    30 
       
    31 HbToolBar > HbToolButton[toolButtonStyle="1"][orientation="2"] {
       
    32     min-width:9un;
       
    33     min-height:var(hb-param-widget-toolbar-height);
       
    34 }
       
    35 
       
    36 HbToolBar > HbToolButton[orientation="1"] {
       
    37     min-width:var(hb-param-widget-chrome-height);
       
    38     min-height:var(hb-param-widget-toolbar-height);
       
    39 }
       
    40 
       
    41 HbToolBar > HbToolButton[orientation="2"]::text {
       
    42     text-align: center;
       
    43 }
       
    44 
       
    45 HbToolBar > HbToolButton[orientation="1"]::text {
       
    46     left:-var(hb-param-margin-gene-middle-horizontal);
       
    47     right:var(hb-param-margin-gene-middle-horizontal);
       
    48     text-align: left;
       
    49 }
       
    50 
       
    51 HbToolButton[toolbutton_extension_layout]{
       
    52     fixed-width:expr(1/3*var(hb-param-screen-short-edge)-var(hb-param-margin-gene-popup-list)-var(hb-param-margin-gene-popup-list));
       
    53 }
       
    54 
       
    55 HbToolButton::text{
       
    56     left:-var(hb-param-margin-gene-left);
       
    57     right:var(hb-param-margin-gene-right);
       
    58     font-variant:primary;
       
    59     text-height:var(hb-param-text-height-tiny);
       
    60     text-align: center center;
       
    61     text-line-count-max: 2;
       
    62 }
       
    63 
       
    64 HbToolButton::icon{
       
    65     fixed-width:var(hb-param-graphic-size-function);
       
    66     fixed-height:var(hb-param-graphic-size-function);
       
    67 }
       
    68 
       
    69 HbToolButton::background{
       
    70     left:0un;
       
    71     right:0un;
       
    72     top:0un;
       
    73     bottom:0un;
       
    74 }
       
    75 
       
    76 HbToolButton[toolbutton_extension_layout="true"][toolButtonStyle="2"]::text {
       
    77     text-align: left;
       
    78 }
       
    79 
       
    80 HbToolButton[toolbutton_extension_layout="true"][toolButtonStyle="3"]::text {
       
    81     bottom:var(hb-param-margin-gene-bottom);
       
    82 }
       
    83 
       
    84 HbToolBar > HbToolButton[toolButtonStyle="3"]::icon{
       
    85     left:-var(hb-param-margin-gene-left);
       
    86 }
       
    87 
       
    88 HbToolBar > HbToolButton[toolButtonStyle="3"]::text{
       
    89     left:-var(hb-param-margin-gene-middle-horizontal);
       
    90     right:var(hb-param-margin-gene-right);
       
    91     font-variant:primary;
       
    92     text-height:var(hb-param-text-height-tiny);
       
    93     text-align: left;
       
    94 }
       
    95 
       
    96 HbToolButton[toolbutton_extension_layout="true"][toolButtonStyle="3"]::icon {
       
    97     top:-var(hb-param-margin-gene-middle-vertical);
       
    98 }
       
    99 
       
   100 HbToolButton[toolbutton_extension_layout="true"][toolButtonStyle="3"]::text{
       
   101     left:-var(hb-param-margin-gene-middle-horizontal);
       
   102     right:var(hb-param-margin-gene-middle-horizontal);
       
   103     top:-var(hb-param-margin-gene-middle-vertical);
       
   104     bottom:var(hb-param-margin-gene-middle-vertical);
       
   105     font-variant:primary;
       
   106     text-height:var(hb-param-text-height-tiny);
       
   107     text-align:center center;
       
   108     text-line-count-max: 1;
       
   109 }
       
   110 
       
   111 HbSoftKey > HbToolButton[toolButtonStyle="1"]::icon{
       
   112     left:-1.0un;
       
   113     right:1.0un;
       
   114     top:-1.0un;
       
   115     bottom:1.0un;
       
   116 }
       
   117 HbSoftKey > HbToolButton::background{
       
   118     left:0un;
       
   119     right:0un;
       
   120     top:0un;
       
   121     bottom:0un;
       
   122 }
       
   123 HbSoftKey > HbToolButton::icon{
       
   124     left:-1.5un;
       
   125     right:1.5un;
       
   126     top:-1.5un;
       
   127     bottom:1.5un;
       
   128 }
       
   129 
       
   130 HbToolButton[dialogtoolbar]{
       
   131     fixed-height:var(hb-param-widget-popup-softkey-height);
       
   132 }
       
   133 
       
   134 HbToolBar > HbToolButton[dialogtoolbar]::text {
       
   135     left:-0.75un;
       
   136     right:0.75un;
       
   137     font-variant:primary;
       
   138     text-height:var(hb-param-text-height-primary);
       
   139     text-align:center center;
       
   140     text-line-count-max: 1;
       
   141 }