/*
 * 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-cuba-table-paging {
  .c-table-rows-count {
    text-align: right;
    float: right;
    padding-left: round($v-layout-spacing-horizontal/2);
  }

  .c-table-rows-count,
  .c-paging-wrap {
    height: $v-unit-size;
  }

  .c-paging-wrap > * {
    vertical-align: middle;
    margin-right: round($v-layout-spacing-horizontal/2);
    margin-bottom: round($v-layout-spacing-vertical/2);
  }

  .v-button.c-paging-change-page {
    height: round($v-unit-size/1.5);
    width: ceil($v-unit-size * 2 / 3);
    padding: 0 round($v-unit-size/6);
    line-height: $v-font-size;

    img.v-icon {
      margin-left: -2px;
    }
  }

  .c-paging-status {
    line-height: $v-unit-size;
  }

  .c-paging-count {
    height: round($v-unit-size/1.5);
  }

  .v-button.v-button-link.c-paging-count-number {
    text-decoration: none;
    opacity: inherit;

    .v-button-wrap .v-button-caption {
      text-decoration: none;
      color: $v-font-color;
    }
  }
}