aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/title-bar.scss
blob: 99c844c1c7c91d633a5efcc93459d1c49c071439 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
@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, 0.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 {
    &.menu-endblock {
      border-bottom-left-radius: $theme-border-radius-small;
      border-bottom-right-radius: $theme-border-radius-small;
      box-shadow: 0px 15px 10px -15px rgba(black, 0.5);
      border-left-width: 0px;
    }
  }
}