/* Copyright 2022 The LUCI Authors.
 *
 * 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.
 */

/*
  Make sure jquery UI components don't override the font as specified
  for body.interface. If jquery UI components proliferate to other
  pages you may want to move this directly into default.css.
*/
.ui-widget {
  font-family: Verdana, sans-serif;
  font-size: 10px;
}

/* Turns off the tab widget's border. */
#tabs.ui-widget-content {
  border: 0px;
}
/*
  TODO(dburger): these status styles could come from default.css but are
  apparently overridden by styles from .vis-item. This could likely be
  fixed by tweaking the style in default.css to get higher specificity.

  In the following the second selector with the "a" tag
  takes care of a specificity problem where jquery's
  .ui-widget-content a {color: #333;} ends up winning for a tags nested in
  a div with one of the following classes as is done on the "Results"
  time list that gets the .ui-widget-content from being inside jquery
  tabs on the timeline page.
*/
.status-Expired, .status-Expired a {
  color: #FFFFFF;
  background-color: #ac39ac;
  border-color: #ACA0B3;
}

.status-Exception, .status-Exception a {
  color: #FFFFFF;
  background-color: #c6c;
  border-color: #ACA0B3;
}

.status-InfraFailure, .status-InfraFailure a {
  color: #FFFFFF;
  background-color: #c6c;
  border-color: #ACA0B3;
}

.status-Warning, .status-Warning a {
  color: #FFFFFF;
  background-color: #fa3;
  border-color: #C29D46;
}

.status-NotRun, .status-NotRun a {
  color: #000;
  background-color: #ccc;
  border-color: #ccc;
}

.status-Running, .status-Running a {
  color: #000;
  background-color: #fd3;
  border-color: #C5C56D;
}

.status-Failure, .status-Failure a {
  color: #000;
  background-color: #e88;
  border-color: #A77272;
}

.status-Canceled, .status-Canceled a {
  color: #000;
  background-color: #8ef;
  border-color: #00d8fc;
}

.status-Success, .status-Success a {
  color: #000;
  background-color: #8d4;
  border-color: #4F8530;
}

