/*
 * Copyright 2015-2016 Imply Data, Inc.
 * Copyright 2017-2019 Allegro.pl
 *
 * 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.
 */
@import '../../imports';

$total-width: 176px;

.total {
  display: inline-block;
  text-align: center;
  padding: 0 10px;
  margin-bottom: 34px;

  .measure-name {
    @include ellipsis;
    max-width: $total-width;
    cursor: default;
    font-size: 15px;
    padding-bottom: 8px;
    color: #999;
    user-select: text;
  }

  .measure-value {
    cursor: default;
    min-width: $total-width;
    font-size: 30px;
    user-select: text;
    margin-bottom: 12px;

    &--previous {
      font-size: 24px;
    }
  }

  .measure-delta-value {
    font-size: 15px;
    margin-top: 5px;
  }

  &:only-child {
    .measure-name {
      max-width: none;
      font-size: 22px;
      padding-bottom: 11px;
    }

    .measure-value {
      font-size: 44px;
      margin-bottom: 18px;

      &--previous {
        font-size: 30px;
      }

      .measure-delta-value {
        font-size: 24px;
        margin-top: 8px;
      }
    }
  }
}
