/*
 * Copyright (c) 2008-2016 Haulmont.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

@mixin halo-notification($primary-stylename: v-Notification) {
  .#{$primary-stylename} {
    h1 {
      display: block;
      text-align: center;
      font-size: $v-font-size--h1;
    }

    p {
      white-space: normal;
      font-size: $v-font-size;
    }

    .#{$primary-stylename}-caption {
      font-size: $v-font-size--h1;

      ~ .#{$primary-stylename}-description {
        margin:0;
      }
    }

    .#{$primary-stylename}-description {
      word-wrap: break-word;
    }
  }

  .#{$primary-stylename}.tray {
    background: #C0DBF7;

    h1 {
      display: block;
      color: #2980B9;
      font-size: $v-font-size--h2;
    }

    p {
      display: block;
      color: #2C3E50;
      font-size: $v-font-size;
    }
  }

  .#{$primary-stylename}.system {
    h1 {
      display: block;
      margin: 0;
    }
  }

  .#{$primary-stylename}.humanized {
    background: #C0DBF7;

    h1 {
      color: #2980B9
    }

    p {
      color: #2C3E50;
    }
  }

  .#{$primary-stylename}.error,
  .#{$primary-stylename}.warning {
    @include box-shadow(none);
    @include animation(none);
  }

  .#{$primary-stylename}.error:after {
    margin-top: 0;
    top: $v-unit-size/3;
  }

  .c-notification-modalitycurtain {
    position: fixed;
  	top: 0;
  	right: 0;
  	bottom: 0;
  	left: 0;
  	background-color: #222;
  	opacity: 0.72;
  	filter: alpha(opacity=72);
  }
}