@charset "UTF-8";

/* Use a more-intuitive box-sizing model. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100vh;
  height: -webkit-fill-available;
  max-height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

select {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

#files,
#diff {
  border: 1px solid #ccc;
}

#files + #diff {
  border-left: none;
}

#files {
  flex-grow: 1;
}

#diff {
  flex-grow: 7;
  position: relative;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100%;
  padding: 20px;
}

.content {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  margin-top: 20px;
  align-items: stretch;
}

.files {
  flex: 1;
  max-width: 300px;
  border-right: 1px solid #ccc;
  overflow-y: scroll;
}

.no-changes {
  padding: 0.1em 0.33em;
}

.file {
  padding: 0.1em 0.33em;
  display: block;
  /* don't break line */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  text-decoration: none;
  color: #333;
  cursor: default;
}

.file.selected {
  font-weight: bold;
}

.file:hover {
  background-color: #f6f8fa;
}

.file.new {
  background-color: #ebf1dc;
}

.file.new:hover {
  background-color: #d6e3b9;
}

.file.deleted {
  text-decoration: line-through;
}

.file.renamed {
  background-color: #e6f6ff;
}

.file.renamed:hover {
  background-color: #c6e6ff;
}

.diff {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
}

#diff .loader {
  position: absolute;
  display: none;
  padding: 20px;
}

#diff.loading .diff {
  display: none;
}

#diff.loading .loader {
  display: block;
}
