/* Copyright 2013 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

.extension-error-list a {
  cursor: pointer;
}

.extension-error-list-contents {
  -webkit-transition: max-height 500ms ease-in-out;
  list-style-type: none;
  max-height: 50px;
  overflow-y: hidden;
}

.extension-error-list-contents.active {
  max-height: 200px;
}

.extension-error-list-contents.scrollable {
  overflow-y: auto;
}

/* These next three rules hide all except for the most recent three entries in
 * the list, unless the list is active. */
.extension-error-list-contents li {
  display: none;
}
.extension-error-list-contents.active li,
.extension-error-list ul li:nth-last-child(-n + 3) {
  display: initial;
}

.extension-error-list-contents {
  -webkit-padding-start: 20px;
}

.extension-error-list-show-more {
  text-align: center;
  width: 100%;
}

.extension-error-list-show-more button {
  width: auto;
}

.extension-error-metadata {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.extension-error-icon {
  -webkit-margin-end: 3px;
  -webkit-margin-start: 3px;
  height: 15px;
  vertical-align: middle;
  width: 15px;
}

.extension-error-message {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.extension-error-severity-info .extension-error-message {
  color: #333;
}
.extension-error-severity-info .extension-error-icon {
  content: url('extension_error_severity_info.png');
}

.extension-error-severity-warning .extension-error-message {
  color: rgba(250, 145, 0, 255);
}
.extension-error-severity-warning .extension-error-icon {
  content: url('extension_error_severity_warning.png');
}

.extension-error-severity-fatal .extension-error-message {
  color: rgba(200, 50, 50, 255);
}
.extension-error-severity-fatal .extension-error-icon {
  content: url('extension_error_severity_fatal.png');
}
