// based css:
// https://bazaar.launchpad.net/~ubuntu-art-pkg/ubuntu-themes/trunk/view/head:/Ambiance/gtk-3.20/apps/unity.css

/*********
 * Unity *
 *********/
// Decorations
UnityDecoration {
  -UnityDecoration-extents: 28px 0 0 0;
  -UnityDecoration-input-extents: 8px;

  -UnityDecoration-shadow-offset-x: 0;
  -UnityDecoration-shadow-offset-y: 3px;
  -UnityDecoration-active-shadow-color: rgba(black, 0.48);
  -UnityDecoration-active-shadow-radius: 18px;
  -UnityDecoration-inactive-shadow-color: rgba(black, 0.32);
  -UnityDecoration-inactive-shadow-radius: 6px;

  -UnityDecoration-glow-size: 8px;
  -UnityDecoration-glow-color: $primary;

  -UnityDecoration-title-indent: 4px;
  -UnityDecoration-title-fade: 32px;
  -UnityDecoration-title-alignment: 0.0;

  .top {
    padding: 0 2px;
    border-style: none;
    border-radius: $window-radius $window-radius 0 0;
    box-shadow: inset 0 1px highlight($titlebar);
    background-color: $titlebar;
    color: $titlebar-text;

    &:backdrop {
      background-color: $titlebar-backdrop;
      color: $titlebar-text-secondary;
    }
  }

  .left,
  .right {}

  .bottom {}

  .menuitem {
    color: $titlebar-text-secondary;

    &:hover {
      box-shadow: inset 0 -2px $titlebar-indicator;
      background-color: transparent;
      color: $titlebar-text;
    }
  }
}

.background:not(.csd) headerbar:not(.titlebar) {
  border-radius: 0;
  box-shadow: $shadow-z1;

  &.inline-toolbar { border-style: none; }
}

sheet-style-dialog.unity-force-quit {
  // background-color: $background;
}

// Panel Style
UnityPanelWidget,
.unity-panel {
  background-color: $panel-solid;
  color: $titlebar-text;

  &:backdrop { color: $titlebar-text-secondary; }
}

.unity-panel.menubar,
.unity-panel .menubar {
}

.unity-panel.menuitem,
.unity-panel .menuitem {
  color: $titlebar-text-secondary;
}

.unity-panel.menubar.menuitem:hover,
.unity-panel.menubar .menuitem *:hover {
  box-shadow: inset 0 -2px $titlebar-indicator;
  background-color: transparent;
  color: $titlebar-text;
}

.menu IdoPlaybackMenuItem.menuitem:active {
  -gtk-icon-source: -gtk-icontheme('process-working-symbolic');
  animation: spin 1s linear infinite;
  color: $primary;
}
