<commit_before>
@import 'hub/sidebar';
@import 'hub/bread';
@import 'hub/item';
@import 'hub/search';
@import 'hub/history';
@import 'hub/downloads';
@import 'hub/browser-meat';
@import 'hub/game-browser-bar';
@import 'hub/preferences';
@import 'hub/library';
@import 'hub/new-tab';

.hub-page {
  overflow: hidden;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
}

.hub-content {
  border-left: 1px solid $sidebar-border-color;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-grow: 1;

  .hub-bread {
    flex-shrink: 0;
    flex-grow: 0;
  }
  .hub-meat {
    flex-shrink: 1;
    flex-grow: 1;
  }
}

.hub-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  align-content: flex-start;

  .criterion-bar {
    flex-basis: 100%;
    display: flex;
  }

  .hub-item {
    width: $grid-item-width;
    margin: .5em;
  }

  .hub-filler {
    width: $grid-item-width;
    height: 0;
    margin: 0 .5em;
  }
}

.hub-meat {
  background: #333131; // FIXME colors
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;

  .hub-meat-tab {
    display: flex;
    height: 0;
    overflow: hidden;
    flex-basis: 0;
    flex-grow: 0;

    &.visible {
      display: flex;<commit_msg>Actually hide tabs when they're not focused (trade slight flashing for speed up)<commit_after>
@import 'hub/sidebar';
@import 'hub/bread';
@import 'hub/item';
@import 'hub/search';
@import 'hub/history';
@import 'hub/downloads';
@import 'hub/browser-meat';
@import 'hub/game-browser-bar';
@import 'hub/preferences';
@import 'hub/library';
@import 'hub/new-tab';

.hub-page {
  overflow: hidden;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
}

.hub-content {
  border-left: 1px solid $sidebar-border-color;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-grow: 1;

  .hub-bread {
    flex-shrink: 0;
    flex-grow: 0;
  }
  .hub-meat {
    flex-shrink: 1;
    flex-grow: 1;
  }
}

.hub-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  align-content: flex-start;

  .criterion-bar {
    flex-basis: 100%;
    display: flex;
  }

  .hub-item {
    width: $grid-item-width;
    margin: .5em;
  }

  .hub-filler {
    width: $grid-item-width;
    height: 0;
    margin: 0 .5em;
  }
}

.hub-meat {
  background: #333131; // FIXME colors
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;

  .hub-meat-tab {
    display: none;

    &.visible {
      display: flex;
{'fraction_non_alphanumeric': 0.1593783881460065, 'fraction_numerical': 0.017708709794000722, 'mean_word_length': 2.8497913769123784, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2984768', 'n_tokens_mistral': 1123, 'n_tokens_neox': 1059, 'n_words': 249}