aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/layout.scss
blob: 9a003a922f45fd79d48f8d60dc95dd6e2f36726e (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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
@import './config.scss';

html { overflow: hidden; }

.theme__dark .app {
  .sidebar {
    background: $dark-theme-gray-darker;
    box-shadow: 0 0 5px 0 $dark-theme-black;
    color: $theme-text-color;

    .sidebar__add-service {
      color: $dark-theme-gray-lighter;
      background: $dark-theme-gray;
    }

    .sidebar__button {
      color: $dark-theme-gray-lighter;
      font-size: 22px;

      &:hover,
      &:active { color: $dark-theme-gray-smoke; }
      &.is-muted { color: $theme-brand-primary; }
    }
  }

  .app-loader .app-loader__title { color: $dark-theme-gray-lightest; }
}

.app {
  display: flex;
  flex-direction: column;

  .app__content { display: flex; }

  .app__service {
    display: flex;
    flex: 1;
    flex-direction: column;
  }
}

.electron-app-title-bar { z-index: 99999999; }

.window-draggable {
  height: 35px;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 9999;
  -webkit-app-region: drag;
}

.darwin .sidebar { padding-top: 23px; }

.sidebar {
  align-items: center;
  background: $theme-gray-lightest;
  box-shadow: 1px 0 10px rgba(0, 0, 0, .08);
  color: $theme-text-color;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  text-align: center;
  width: $theme-sidebar-width;
  z-index: 200;

  .sidebar__add-service {
    color: $theme-gray-light;
    background: $theme-gray-lighter;
    border-radius: $theme-border-radius-small;
    height: 32px;
    margin: 10px auto;
    width: 32px;
  }

  .sidebar__button {
    color: $theme-gray-light;
    font-size: 24px;
    padding: 7px 0;
    position: relative;
    width: $theme-sidebar-width;

    &:hover,
    &:active { color: lighten($theme-gray-light, 10%); }
    &.is-muted { color: $theme-brand-primary; }
    &--new-service { padding-bottom: 6px; }
  }

  & > div {
    display: flex;
    overflow-y: scroll;

    &::-webkit-scrollbar { display: none; }
  }
}

.grid .grid__row {
  display: flex;
  flex-direction: row;

  & > * { margin-right: 20px; }
  & :last-child { margin-right: 0; }
}

.app-loader {
  align-items: center;
  display: flex;
  justify-content: center;

  .app-loader__title {
    color: #FFF;
    font-size: 40px;
  }

  & > span { height: auto; }
}

.dev-warning { display: none; }

.isDevMode .dev-warning {
  border-radius: 3px;
  background: $theme-brand-warning;
  color: #FFF;
  display: block;
  font-size: 8px;
  height: auto;
  padding: 4px;
  position: fixed;
  left: 9px;
  bottom: 0px;
  transition: opacity .5s ease;
  width: auto;
  z-index: 999999999;
  pointer-events: none;
}