// This stylesheet is loaded when Atom starts up and is reloaded automatically
// when it is changed.

// Zen coding, courtesy of @as-cii 🧘‍♂️💻
//
// Focus on your content and avoid visual noise. When you're viewing/editing a
// file, reduce the opacity of other Atom components, including the docks, the
// status bar, and inactive tabs. When you focus any of those components or
// hover over them, restore their full opacity.
atom-dock, status-bar, .tab-bar .tab {
  opacity: 0.3;
  transition: 0.2s;
  &:hover, &:focus-within {
    opacity: 1.0;
  }
}
.tab-bar .tab.active {
  opacity: 1;
}

// De-emphasize inactive panes, in order to make it easy to quickly see which
// pane is active.
//
// Credit: http://discuss.atom.io/t/how-to-know-which-pane-is-focused/10577/2
atom-pane:not(.active) {
  opacity: 0.75;
}

.results-view {
  font-size: 13px;
}

.search-result .highlight-info {
  color: #000;
  background-color: yellow;
}

// This stylesheet is loaded when Atom starts up and is reloaded automatically
// when it is changed.

// Zen coding, courtesy of @as-cii 🧘‍♂️💻
//
// Focus on your content and avoid visual noise. When you're viewing/editing a
// file, reduce the opacity of other Atom components, including the docks, the
// status bar, and inactive tabs. When you focus any of those components or
// hover over them, restore their full opacity.
atom-dock, status-bar, .tab-bar .tab {
  opacity: 0.3;
  transition: 0.2s;
  &:hover, &:focus-within {
    opacity: 1.0;
  }
}
.tab-bar .tab.active {
  opacity: 1;
}

// De-emphasize inactive panes, in order to make it easy to quickly see which
// pane is active.
//
// Credit: http://discuss.atom.io/t/how-to-know-which-pane-is-focused/10577/2
atom-pane:only-of-type {
  opacity: 1 !important;
}

atom-pane:not(.active) {
  opacity: 0.75;
}

.results-view {
  font-size: 13px;
}

.search-result .highlight-info {
  color: #000;
  background-color: yellow;
}

Fix opacity when Atom opens with only one pane
:atom: Fix opacity when Atom opens with only one pane

When Atom launches and has only one pane open, for some reason the pane
doesn't have the `active` class. This commit works around this issue.
This is possibly (probably?) a bug in Atom. If only we knew someone who
could help! :trollface:

Co-authored-by: Antonio Scandurra <0e17b4d558b07b12cd221e35c438be378ba118cf@github.com>
