aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/title-bar.scss
blob: ecc85b4b52a58d8f492446f984af19c42a29a578 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
@import './config.scss';

.theme__dark #electron-app-title-bar {
  background: $dark-theme-gray-darker;

  .toolbar-dropdown {
    &.open > .toolbar-button > button {
      background: $dark-theme-gray-light;
      color: $dark-theme-gray-lightest;
    }

    &:not(.open) {
      .menu-item .menu-label { opacity: 1; }
      > .toolbar-button > button:hover {
        background: $dark-theme-gray-darkest;
      }
    }
  }

  #app-menu-bar #foldout-container .foldout {
    color: $dark-theme-gray-lightest;

    .menu-pane {
      background: $dark-theme-gray-light;

      .menu-item {
        .accelerator {
          color: lighten($dark-theme-gray-light, 20%);
        }
      }

      hr {
        border-color: $dark-theme-gray-lighter;
      }
    }
  }

  .list .ReactVirtualized__Grid {
    background: $dark-theme-gray-light;
  }
}

#electron-app-title-bar {
  background: $theme-gray-lightest;
  border-bottom: 0;
  box-shadow: 0 0 8px rgba(black, .1);

  span { line-height: normal; }

  div { height: auto; }

  .toolbar-dropdown {
    &.open { box-shadow: 0 0 8px rgba(black, 0.1); }

    &:not(.open) {
      .menu-item .menu-label { opacity: 1; }
      > .toolbar-button > button:hover { background: $theme-brand-primary; }
    }
  }

  .list-item {
    .menu-item {
      border-radius: $theme-border-radius-small;
      margin: 4px;

      .status-icon { min-width: 12px; }
    }

    &.selected,
    &.selected:focus {
      background: none;

      .menu-item { background: $theme-brand-primary; }
    }
  }

  .menu-pane {
    border-bottom-left-radius: $theme-border-radius-small;
    border-bottom-right-radius: $theme-border-radius-small;
    box-shadow: 0 0 10px rgba(black, .5);

    &.menu-endblock {
      border-left-width: 0px;
    }
  }
}