/* Styles for src/components/top-bar.js and nothing else. A Windows 10 title bar. */

.top-bar {
  display: flex;
  align-items: center;
  height: var(--topbar-height);
  padding: 0 0 0 var(--s-2);
  background: var(--c-title-bar);
  color: var(--c-text);
  border-bottom: 1px solid var(--c-etched);
  user-select: none;
}

.top-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: var(--s-2);
  background: #1f3a5f;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
}

.top-bar__title { flex: 1; font-size: var(--t-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.top-bar__controls { display: flex; height: 100%; }
.top-bar__ctl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 100%;
  font-size: 11px;
  color: var(--c-text);
}
.top-bar__ctl:hover { background: #e5e5e5; }
.top-bar__ctl--close:hover { background: #e81123; color: #ffffff; }
