2014-04-03 22:06:30 +00:00
|
|
|
//window frame
|
|
|
|
.titlebar {
|
|
|
|
-webkit-app-region: drag;
|
|
|
|
-webkit-transform: translateZ(0);
|
|
|
|
transform: translateZ(0);
|
|
|
|
z-index: 999;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
|
|
|
padding: 4px 16px;
|
|
|
|
background: linear-gradient(to left, @background, mix(@background, #888, 90%));
|
|
|
|
|
|
|
|
.toolbar, .window-controls {
|
|
|
|
-webkit-app-region: no-drag;
|
|
|
|
}
|
|
|
|
|
|
|
|
.app-name {
|
|
|
|
margin-right: 10px;
|
|
|
|
padding-right: 10px;
|
|
|
|
border-right: 1px solid @foreground;
|
|
|
|
}
|
|
|
|
|
|
|
|
.window-controls {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
display: flex;
|
|
|
|
align-content: stretch;
|
|
|
|
align-items: baseline;
|
|
|
|
padding: 0 4px;
|
|
|
|
|
|
|
|
a {
|
|
|
|
width: 40px;
|
|
|
|
display: block;
|
|
|
|
margin-left: 1px;
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: bold;
|
|
|
|
text-align: center;
|
|
|
|
background: mix(@background, #888, 65%);
|
|
|
|
color: mix(@foreground, #888, 50%);
|
|
|
|
transition: opacity .3s ease;
|
|
|
|
opacity: .8;
|
|
|
|
color: @foreground;
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
color: @foreground;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.close {
|
|
|
|
background: @accent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//menus
|
2013-09-01 19:41:39 +00:00
|
|
|
.toolbar {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2013-09-13 22:57:57 +00:00
|
|
|
color: @foreground;
|
2013-09-01 19:41:39 +00:00
|
|
|
line-height: 30px;
|
|
|
|
list-style-type: none;
|
|
|
|
z-index: 99;
|
|
|
|
|
|
|
|
hr {
|
2013-09-06 07:04:20 +00:00
|
|
|
border: none;
|
2013-09-15 16:55:29 +00:00
|
|
|
border-top: 1px solid rgba(128, 128, 128, .2);
|
2013-09-01 19:41:39 +00:00
|
|
|
margin: 4px 8px;
|
|
|
|
}
|
2013-09-04 17:28:31 +00:00
|
|
|
|
2013-09-06 18:24:20 +00:00
|
|
|
.shortcut {
|
2013-09-13 22:57:57 +00:00
|
|
|
color: fade(@foreground, 50%);
|
2013-09-06 18:24:20 +00:00
|
|
|
margin-left: 1em;
|
|
|
|
}
|
|
|
|
|
2013-09-04 17:28:31 +00:00
|
|
|
//nested menus (default)
|
|
|
|
li {
|
2013-11-21 17:30:59 +00:00
|
|
|
transition: opacity .2s;
|
2013-09-06 18:24:20 +00:00
|
|
|
display: flex;
|
2013-09-04 17:28:31 +00:00
|
|
|
padding: 4px 8px;
|
2013-09-06 18:24:20 +00:00
|
|
|
justify-content: space-between;
|
2014-02-20 21:11:14 +00:00
|
|
|
position: relative;
|
2013-09-04 17:28:31 +00:00
|
|
|
|
2013-09-06 07:04:20 +00:00
|
|
|
&:hover, &.active {
|
2014-02-22 06:07:27 +00:00
|
|
|
background: mix(@background, #888, 80%);
|
2013-09-06 07:04:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.parent:hover, &.active {
|
2013-09-04 17:28:31 +00:00
|
|
|
|
|
|
|
& > .menu {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2013-09-01 19:41:39 +00:00
|
|
|
}
|
2013-09-04 17:28:31 +00:00
|
|
|
|
2013-09-01 19:41:39 +00:00
|
|
|
.menu {
|
|
|
|
display: none;
|
2014-02-08 18:05:07 +00:00
|
|
|
min-width: 250px;
|
2013-09-01 19:41:39 +00:00
|
|
|
position: absolute;
|
2014-02-22 06:07:27 +00:00
|
|
|
margin-left: 90%;
|
2013-09-04 17:28:31 +00:00
|
|
|
margin-top: -2em;
|
2013-09-01 19:41:39 +00:00
|
|
|
z-index: 999;
|
2013-09-13 22:57:57 +00:00
|
|
|
background: @background;
|
2014-02-22 06:07:27 +00:00
|
|
|
padding: 8px 0;
|
|
|
|
box-shadow: 4px 8px 16px rgba(0, 0, 0, .25);
|
2013-09-01 19:41:39 +00:00
|
|
|
}
|
2013-09-04 17:28:31 +00:00
|
|
|
|
2013-09-06 07:04:20 +00:00
|
|
|
&.parent::after {
|
2014-02-08 18:05:07 +00:00
|
|
|
content: "►";
|
2013-09-06 07:04:20 +00:00
|
|
|
font-family: serif;
|
|
|
|
position: absolute;
|
|
|
|
right: 4px;
|
2014-02-20 21:11:14 +00:00
|
|
|
top: 0;
|
2013-09-13 22:57:57 +00:00
|
|
|
color: fade(@foreground, 50%);
|
2013-09-06 07:04:20 +00:00
|
|
|
}
|
|
|
|
|
2013-09-04 17:28:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//base-level menus
|
|
|
|
& > li {
|
|
|
|
display: inline-block;
|
2013-09-06 07:04:20 +00:00
|
|
|
padding: 4px 8px;
|
2013-09-04 17:28:31 +00:00
|
|
|
line-height: initial;
|
|
|
|
|
|
|
|
& > .menu {
|
|
|
|
margin-left: -8px;
|
2013-09-06 07:04:20 +00:00
|
|
|
margin-top: 4px;
|
2013-09-01 19:41:39 +00:00
|
|
|
}
|
|
|
|
}
|
2013-09-04 17:28:31 +00:00
|
|
|
|
2013-09-01 19:41:39 +00:00
|
|
|
}
|
|
|
|
|
2014-04-03 22:06:30 +00:00
|
|
|
//status bar
|
2013-09-01 19:41:39 +00:00
|
|
|
.bottom-bar {
|
|
|
|
margin: 0;
|
2013-09-15 20:00:16 +00:00
|
|
|
padding: 2px 5px;
|
2013-09-04 17:01:12 +00:00
|
|
|
|
2013-09-20 19:43:17 +00:00
|
|
|
.status-text {
|
2013-09-04 17:01:12 +00:00
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2013-09-01 19:41:39 +00:00
|
|
|
|
|
|
|
select {
|
2013-09-04 17:01:12 +00:00
|
|
|
margin: 0;
|
|
|
|
border: none;
|
2013-09-15 20:00:16 +00:00
|
|
|
width: 150px;
|
2013-09-13 22:57:57 +00:00
|
|
|
background: @background;
|
|
|
|
color: @foreground;
|
2013-12-18 18:22:01 +00:00
|
|
|
-webkit-appearance: none;
|
2013-09-01 19:41:39 +00:00
|
|
|
}
|
2013-12-19 22:52:41 +00:00
|
|
|
}
|
|
|
|
|
2014-04-03 22:06:30 +00:00
|
|
|
//app-wide scrollbar
|
2013-12-19 22:52:41 +00:00
|
|
|
::-webkit-scrollbar {
|
|
|
|
width: 15px;
|
|
|
|
height: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-button {
|
|
|
|
height: 0px;
|
|
|
|
width: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-track {
|
2013-12-19 22:59:52 +00:00
|
|
|
background-color: transparent;
|
2013-12-19 22:52:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
background-color: mix(@foreground, @background, 30%);
|
|
|
|
border: 3px solid transparent;
|
|
|
|
border-radius: 6px;
|
|
|
|
background-clip: content-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
|
|
background-color: mix(@foreground, @background, 35%);
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-corner {
|
|
|
|
background-color: mix(@foreground, @background, 15%);
|
|
|
|
}
|