You are here

function _high_contrast_get_default_css_styles in High contrast 6

Same name and namespace in other branches
  1. 7 high_contrast.module \_high_contrast_get_default_css_styles()
3 calls to _high_contrast_get_default_css_styles()
high_contrast_install in ./high_contrast.install
Implementation of hook_install()
high_contrast_settings_form in ./high_contrast.module
Settings form
_high_contrast_get_current_css_styles in ./high_contrast.module

File

./high_contrast.module, line 272

Code

function _high_contrast_get_default_css_styles() {
  $color1 = 'black';
  $color2 = 'yellow';
  $color3 = 'white';
  $css = '
*{
  background-color:' . $color1 . ' !important;
  background-image:none !important;
  color:' . $color3 . ' !important;
  line-height:1.5em !important;
  text-shadow: none !important;
}

a, a *{
  background-color:' . $color1 . ' !important;
  color:' . $color2 . ' !important;
  text-decoration:underline !important;
}
  a:hover, a:hover *{
    background-color:' . $color2 . ' !important;
    color:' . $color1 . ' !important;
    text-decoration:underline !important;
    text-decoration:none !important;
  }

input{
  background-color:' . $color3 . ' !important;
  color:' . $color1 . ' !important;
}

input[type=submit],
input[type=button],
button{
  background-color: ' . $color2 . ' !important;
  color: ' . $color1 . ' !important;
}
  input[type=submit]:hover,
  input[type=button]:hover,
  button:hover{
    text-decoration:underline !important;
  }
';
  return $css;
}