2015-03-06 07:42:38 +08:00
|
|
|
@import "ui-variables";
|
|
|
|
@import "ui-mixins";
|
|
|
|
|
2015-02-21 05:17:11 +08:00
|
|
|
html,
|
|
|
|
body {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
font-family: @font-family;
|
|
|
|
font-size: @font-size;
|
2015-03-06 05:31:11 +08:00
|
|
|
line-height: @line-height-base;
|
2015-03-05 02:37:57 +08:00
|
|
|
-webkit-font-smoothing: antialiased;
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
atom-workspace {
|
|
|
|
display: block;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
font-family: @font-family;
|
|
|
|
|
|
|
|
atom-workspace-axis.horizontal {
|
|
|
|
display: -webkit-flex;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
atom-workspace-axis.vertical {
|
|
|
|
display: -webkit-flex;
|
|
|
|
-webkit-flex: 1;
|
|
|
|
-webkit-flex-flow: column;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sheet-container {
|
|
|
|
height:100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sheet-stack-enter {
|
2015-03-26 03:41:48 +08:00
|
|
|
left:30px;
|
2015-03-19 09:21:04 +08:00
|
|
|
opacity: 0;
|
2015-03-26 03:41:48 +08:00
|
|
|
transition: all .125s ease-out;
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sheet-stack-enter.sheet-stack-enter-active {
|
|
|
|
left:0;
|
2015-03-19 09:21:04 +08:00
|
|
|
opacity: 1;
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sheet-stack-leave {
|
|
|
|
left:0;
|
2015-03-19 09:21:04 +08:00
|
|
|
opacity: 1;
|
2015-03-26 03:41:48 +08:00
|
|
|
transition: all .125s ease-in;
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sheet-stack-leave.sheet-stack-leave-active {
|
2015-03-26 03:41:48 +08:00
|
|
|
left:30px;
|
2015-03-19 09:21:04 +08:00
|
|
|
opacity: 0;
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
|
2015-03-19 09:21:04 +08:00
|
|
|
.toolbar-window-controls {
|
|
|
|
padding-top:14px;
|
2015-03-14 08:02:46 +08:00
|
|
|
padding-left:@spacing-half;
|
2015-03-19 09:21:04 +08:00
|
|
|
order: -1000;
|
|
|
|
min-width: 102px;
|
|
|
|
width: 102px;
|
2015-03-21 05:52:10 +08:00
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
2015-03-14 08:02:46 +08:00
|
|
|
|
|
|
|
button {
|
|
|
|
-webkit-app-region: no-drag;
|
|
|
|
display:inline-block;
|
|
|
|
padding:0;
|
|
|
|
width:13px;
|
|
|
|
height:13px;
|
|
|
|
margin:4px;
|
|
|
|
border-radius: 13px;
|
|
|
|
border: 1px solid rgba(0,0,0,0.2);
|
|
|
|
float:left;
|
|
|
|
}
|
|
|
|
.close {
|
|
|
|
background-color: #FB0015;
|
|
|
|
&:hover {
|
|
|
|
background-color: darken(#FB0015, 10%);
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background-color: darken(#FB0015, 20%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.minimize {
|
|
|
|
background-color: #FCB40A;
|
|
|
|
&:hover {
|
|
|
|
background-color: darken(#FCB40A, 10%);
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background-color: darken(#FCB40A, 20%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.maximize {
|
|
|
|
background-color: #0AAF00;
|
|
|
|
&:hover {
|
|
|
|
background-color: darken(#0AAF00, 10%);
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background-color: darken(#0AAF00, 20%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
body.platform-win32, body.platform-linux {
|
2015-03-19 09:21:04 +08:00
|
|
|
.toolbar-window-controls {
|
2015-03-14 08:02:46 +08:00
|
|
|
display:none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
body.is-blurred {
|
2015-03-19 09:21:04 +08:00
|
|
|
.toolbar-window-controls {
|
2015-03-14 08:02:46 +08:00
|
|
|
button {
|
|
|
|
background-color: desaturate(fade(#FCB40A, 20%), 100%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-13 06:07:38 +08:00
|
|
|
.sheet-toolbar {
|
2015-03-14 08:02:46 +08:00
|
|
|
position: relative;
|
|
|
|
-webkit-app-region: drag;
|
2015-03-19 09:21:04 +08:00
|
|
|
-webkit-user-select:none;
|
2015-02-21 05:17:11 +08:00
|
|
|
background: @toolbar-background-color;
|
|
|
|
border-bottom: 1px solid @border-color-divider;
|
2015-03-07 03:05:25 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 50px;
|
2015-03-25 04:57:24 +08:00
|
|
|
|
2015-03-25 05:32:11 +08:00
|
|
|
box-shadow: 0 0 6px rgba(0,0,0,0.09);
|
2015-03-25 04:57:24 +08:00
|
|
|
|
2015-03-07 03:05:25 +08:00
|
|
|
// prevent flexbox from ever, ever resizing toolbars, no matter
|
|
|
|
// how much it thinks other content is being squished
|
|
|
|
min-height: 50px;
|
|
|
|
max-height: 50px;
|
|
|
|
|
|
|
|
// cover up the vertical resizing separators, so the toolbar appears
|
|
|
|
// to be one continuous bar.
|
|
|
|
z-index: 10;
|
2015-03-07 04:03:32 +08:00
|
|
|
|
2015-03-14 08:02:46 +08:00
|
|
|
.item-container > * {
|
|
|
|
-webkit-app-region: no-drag;
|
|
|
|
}
|
|
|
|
.item-spacer {
|
|
|
|
-webkit-app-region: drag;
|
|
|
|
}
|
2015-03-19 09:21:04 +08:00
|
|
|
.item-back {
|
|
|
|
order:-999;
|
|
|
|
padding-top: 5px;
|
|
|
|
padding-left: @spacing-three-quarters;
|
2015-03-21 05:52:10 +08:00
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
2015-03-19 09:21:04 +08:00
|
|
|
}
|
2015-03-14 08:02:46 +08:00
|
|
|
|
2015-03-07 04:03:32 +08:00
|
|
|
.btn-toolbar {
|
|
|
|
margin-top: @spacing-half;
|
|
|
|
margin-left: @spacing-three-quarters;
|
|
|
|
height:32px;
|
|
|
|
}
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
|
2015-03-14 04:11:24 +08:00
|
|
|
.sheet-toolbar-enter {
|
|
|
|
opacity:0;
|
2015-03-26 03:41:48 +08:00
|
|
|
transition: opacity .125s ease-out;
|
2015-03-14 04:11:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sheet-toolbar-enter.sheet-toolbar-enter-active {
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sheet-toolbar-leave {
|
|
|
|
opacity:1;
|
2015-03-26 03:41:48 +08:00
|
|
|
transition: opacity .125s ease-in;
|
2015-03-14 04:11:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sheet-toolbar-leave.sheet-toolbar-leave-active {
|
|
|
|
opacity:0;
|
|
|
|
}
|
|
|
|
|
2015-02-21 05:17:11 +08:00
|
|
|
.flexbox-handle-horizontal {
|
2015-03-04 10:09:57 +08:00
|
|
|
width: 6px;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 2;
|
|
|
|
position: absolute;
|
2015-02-21 05:17:11 +08:00
|
|
|
cursor: col-resize;
|
|
|
|
div {
|
|
|
|
height:100%;
|
|
|
|
border-right: 1px solid @border-color-divider;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.flexbox-handle-right {
|
|
|
|
right:-3px;
|
|
|
|
padding-right:3px;
|
|
|
|
}
|
|
|
|
&.flexbox-handle-left {
|
|
|
|
left:-3px;
|
|
|
|
padding-right:2px;
|
|
|
|
}
|
|
|
|
}
|
2015-02-28 07:34:37 +08:00
|
|
|
|
|
|
|
.flexbox-handle-vertical {
|
|
|
|
width:100%;
|
|
|
|
height:6px;
|
|
|
|
left:0;
|
|
|
|
right:0;
|
|
|
|
z-index:2;
|
|
|
|
position:absolute;
|
|
|
|
cursor: row-resize;
|
|
|
|
div {
|
|
|
|
width:100%;
|
2015-03-05 07:52:40 +08:00
|
|
|
// border-top: 1px solid @border-color-divider;
|
2015-02-28 07:34:37 +08:00
|
|
|
}
|
|
|
|
&.flexbox-handle-top {
|
|
|
|
top:-3px;
|
|
|
|
padding-right:3px;
|
|
|
|
}
|
|
|
|
&.flexbox-handle-bottom {
|
2015-03-06 07:42:38 +08:00
|
|
|
bottom: 0;
|
2015-02-28 07:34:37 +08:00
|
|
|
padding-right:2px;
|
|
|
|
}
|
|
|
|
}
|
2015-03-12 04:13:51 +08:00
|
|
|
|
|
|
|
|
|
|
|
body.platform-win32 {
|
|
|
|
.flexbox-handle-vertical {
|
|
|
|
cursor:ns-resize;
|
|
|
|
}
|
|
|
|
.flexbox-handle-horizontal {
|
|
|
|
cursor:ew-resize;
|
|
|
|
}
|
2015-03-25 04:57:24 +08:00
|
|
|
}
|