Subversion Repositories wimsdev

Rev

Rev 10732 | Rev 11935 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. /* * Boutons CSS3 * */
  2.  
  3. input[type="submit"],
  4. .wims_button,
  5. .wims_button_help {
  6.     margin: 0 0 2px 2px;
  7. }
  8.  
  9. input[type="submit"],
  10. .wims_button,
  11. .wims_button_help,
  12. .wims_button_feedback,
  13. .wims_tab,
  14. .wims_tabselect,
  15. /* Jquery UI hack : */ .ui-widget input[type="submit"]{
  16.    display:inline-block;
  17.    width:auto;
  18.    padding:.2em .6em;
  19.    font-family: AllerBold, Arial, Helvetica, sans-serif;
  20.    font-weight:bold;
  21.    cursor:pointer;
  22.    overflow:visible;
  23.    position:relative;
  24.    text-decoration:none;
  25.    line-height: 2em;
  26.    border-color: #999;
  27.    /*border-color: rgba(0, 0, 0, .1) rgba(0, 0, 0, .1) rgba(0, 0, 0, .25);*/
  28.    border-color: transparent rgba(0, 0, 0, .25) rgba(0, 0, 0, .5);
  29.    border-style:solid;
  30.    border-width:1px;
  31.    border-radius:4px;
  32.  
  33.    background-image: linear-gradient(transparent, rgba(0, 0, 0, .25)) ;
  34.  
  35.    /*background-image: linear-gradient(transparent, rgba(0, 0, 0, .25));*/
  36.    /* 3D effect */
  37.    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 1px 2px rgba(0, 0, 0, .25);
  38.    font-size: 12px;
  39. }
  40.  
  41. input[type="button"].wims_button {
  42.    display:inline-block;
  43.    width:auto;
  44.    font-family: 'AllerBold', Arial, Helvetica, sans-serif;
  45.    margin-bottom: .1em;
  46.    padding:.2em .6em;
  47.    cursor:pointer;
  48.    overflow:visible;
  49.    position:relative;
  50.    text-decoration:none;
  51.    text-shadow:0 -1px 1px rgba(0, 0, 0, .5);
  52.    box-shadow: rgba(255, 255, 255, 0.75) 0 1px 1px;
  53.    font-size: .8em;
  54.    font-weight:bold;
  55. }
  56.  
  57. /* Text shadow for dark buttons (i.e : when color:white). Not suitable for black text*/
  58. input[type="submit"],
  59. .wims_button,
  60. .wims_button_feedback,
  61. .wims_tab,
  62. .wims_tabselect{
  63.    text-shadow:0 -1px 1px rgba(0, 0, 0, .5);
  64. }
  65. /* Text shadow for light buttons (i.e : when color:black). Not suitable for white text*/
  66. /*.wims_button_help{
  67.    text-shadow:0 -1px 1px rgba(255, 255, 255, .5);
  68. }*/
  69.  
  70. .wims_button_feedback {
  71.    border-radius:50px;
  72.    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .25));
  73.    text-shadow:0 -1px 1px rgba(0, 0, 0, .5);
  74.    box-shadow: rgba(255, 255, 255, .75) 0 1px 1px;
  75.    font-size: 1em;
  76.    height: 5em;
  77.    background-color: orange;
  78.    color:black;
  79. }
  80.  
  81. input[type="submit"]:hover,
  82. .wims_button:hover,
  83. .wims_button_help:hover,
  84. .wims_tab:hover {
  85.     background-image: linear-gradient(rgba(0, 0, 0, .25), transparent) ;
  86.     border-color: rgba(0, 0, 0, .25);
  87. }
  88.  
  89. /* "pressed button" style */
  90. input[type="submit"]:active,
  91. .wims_button:active,
  92. .wims_button_help:active,
  93. .wims_button_feedback:active,
  94. .wims_tab:active {
  95.    top:1px;
  96.    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .5);
  97. }
  98.  
  99.  
  100. body.main_body .wims_secondary_button{
  101.    background-color: #EEE;
  102.    color:#000;
  103.    text-shadow:0 -1px 1px rgba(255, 255, 255, .5),
  104.                0  1px 1px rgba(255, 255, 255, .5);
  105.    /*background-image: linear-gradient(to bottom, rgba(255,255,255,.1),rgba(255,255,255,.2));*/
  106. }
  107.  
  108. body.main_body .wims_button.wims_warning,
  109. input[type="submit"].wims_warning,
  110. input[type="button"].wims_warning{
  111.    background-color : brown;
  112. }
  113.  
  114. .wims_button.disabled{
  115.   opacity: .6;
  116.   background-image:none;
  117.   box-shadow: none;
  118. }
  119. .wims_button.disabled:hover{
  120.   top:0;
  121.   box-shadow: none;
  122.   cursor: default;
  123. }
  124.  
  125.