2016-11-09 18:52:14 +01:00
|
|
|
.sidebar {
|
2016-11-23 20:44:39 +01:00
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
2016-11-09 18:52:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__header {
|
2016-12-19 23:19:07 +01:00
|
|
|
padding-right: #{6 / $base-font-size}rem;
|
|
|
|
padding-left: #{19 / $base-font-size}rem;
|
2016-07-13 22:13:28 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2016-07-14 18:47:54 +02:00
|
|
|
align-items: center;
|
2016-12-19 23:07:04 +01:00
|
|
|
height: #{29 / $base-font-size}rem;
|
|
|
|
min-height: #{29 / $base-font-size}rem;
|
2019-06-12 21:58:02 +02:00
|
|
|
position: relative;
|
2016-07-13 22:13:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__title {
|
2016-12-19 23:07:04 +01:00
|
|
|
font-size: #{12 / $base-font-size}rem;
|
2016-07-13 22:13:28 +02:00
|
|
|
display: inline-block;
|
2016-07-14 18:47:54 +02:00
|
|
|
.sidebar--contracted & {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-08-11 22:50:31 +02:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
2016-07-13 22:13:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__add {
|
2019-06-19 22:21:25 +02:00
|
|
|
width: #{20 / $base-font-size}rem;
|
|
|
|
height: #{20 / $base-font-size}rem;
|
2017-06-26 23:46:47 +02:00
|
|
|
@include icon();
|
2016-09-13 23:05:42 +02:00
|
|
|
.sidebar--contracted & {
|
|
|
|
display: none;
|
2016-07-14 18:47:54 +02:00
|
|
|
}
|
2016-12-19 23:07:04 +01:00
|
|
|
& svg {
|
|
|
|
width: #{10 / $base-font-size}rem;
|
|
|
|
}
|
2016-07-13 22:13:28 +02:00
|
|
|
}
|
|
|
|
|
2016-07-06 21:09:05 +02:00
|
|
|
.sidebar__file-list {
|
2016-09-22 05:39:50 +02:00
|
|
|
@include themify() {
|
|
|
|
border-color: getThemifyVariable('ide-border-color')
|
|
|
|
}
|
|
|
|
border-top: 1px solid;
|
2016-07-14 18:47:54 +02:00
|
|
|
.sidebar--contracted & {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-07-06 21:09:05 +02:00
|
|
|
}
|
|
|
|
|
2016-08-30 20:39:37 +02:00
|
|
|
.sidebar__root-item {
|
|
|
|
position: relative;
|
2019-03-15 18:00:29 +01:00
|
|
|
overflow-y: auto;
|
2016-11-23 20:44:39 +01:00
|
|
|
flex: 1 1 auto;
|
2020-04-21 23:49:02 +02:00
|
|
|
@include themify() {
|
|
|
|
border-top: 1px solid map-get($theme-map, 'ide-border-color');
|
|
|
|
}
|
|
|
|
.sidebar--contracted & {
|
|
|
|
border: none;
|
|
|
|
}
|
2016-08-30 20:39:37 +02:00
|
|
|
}
|
|
|
|
|
2016-07-06 21:09:05 +02:00
|
|
|
.sidebar__file-item {
|
2016-12-19 23:07:04 +01:00
|
|
|
font-size: #{12 / $base-font-size}rem;
|
2016-07-12 18:25:48 +02:00
|
|
|
cursor: pointer;
|
2017-02-22 20:29:35 +01:00
|
|
|
position: relative;
|
2016-09-15 00:38:57 +02:00
|
|
|
@include themify() {
|
2020-04-21 23:49:02 +02:00
|
|
|
color: map-get($theme-map, 'primary-text-color');
|
|
|
|
// TODO get this to not affect parent, need to move it into JS
|
|
|
|
&:hover:not(.sidebar__file-item--selected) > .file-item__content {
|
|
|
|
background-color: map-get($theme-map, 'file-hover-color');
|
2016-09-15 00:38:57 +02:00
|
|
|
}
|
2016-08-25 23:32:27 +02:00
|
|
|
}
|
2016-07-06 21:09:05 +02:00
|
|
|
}
|
2016-07-14 18:47:54 +02:00
|
|
|
|
2017-05-10 19:19:37 +02:00
|
|
|
.sidebar__file-item--folder {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2016-08-30 20:39:37 +02:00
|
|
|
// to indent each row in the file tree
|
|
|
|
// not sure how to do this in a better way
|
|
|
|
// it won't work if the file tree is too nested
|
|
|
|
.file-item__spacer {
|
2017-03-15 18:31:30 +01:00
|
|
|
flex-shrink: 0;
|
2016-08-30 20:39:37 +02:00
|
|
|
.sidebar__file-item & {
|
2019-06-14 19:30:13 +02:00
|
|
|
width: #{19 / $base-font-size}rem;
|
2016-08-30 20:39:37 +02:00
|
|
|
.sidebar__file-item & {
|
2019-06-14 19:30:13 +02:00
|
|
|
width: #{39 / $base-font-size}rem;
|
2016-08-30 20:39:37 +02:00
|
|
|
.sidebar__file-item & {
|
2019-06-14 19:30:13 +02:00
|
|
|
width: #{59 / $base-font-size}rem;
|
2016-08-30 20:39:37 +02:00
|
|
|
.sidebar__file-item & {
|
2019-06-14 19:30:13 +02:00
|
|
|
width: #{79 / $base-font-size}rem;
|
2016-08-30 20:39:37 +02:00
|
|
|
.sidebar__file-item & {
|
2019-06-14 19:30:13 +02:00
|
|
|
width: #{99 / $base-font-size}rem;
|
2016-08-30 20:39:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-24 01:40:47 +02:00
|
|
|
.file-item__content {
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
2016-08-30 20:44:53 +02:00
|
|
|
.sidebar__file-item--selected > & {
|
2016-09-15 00:38:57 +02:00
|
|
|
@include themify() {
|
2016-09-22 00:52:44 +02:00
|
|
|
background-color: map-get($theme-map, 'file-selected-color');
|
2016-09-15 00:38:57 +02:00
|
|
|
}
|
2016-08-30 20:44:53 +02:00
|
|
|
}
|
2016-09-04 02:29:18 +02:00
|
|
|
.sidebar--contracted & {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-08-24 01:40:47 +02:00
|
|
|
}
|
|
|
|
|
2020-07-31 00:59:12 +02:00
|
|
|
.sidebar__file-item-name--ellipsis {
|
|
|
|
overflow-x: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
min-width: #{15 / $base-font-size}rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__file-item-name-text {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
min-width: #{50 / $base-font-size}rem;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2016-08-03 23:10:03 +02:00
|
|
|
.sidebar__file-item-name {
|
2016-12-19 23:07:04 +01:00
|
|
|
padding: #{4 / $base-font-size}rem 0;
|
2020-07-31 00:59:12 +02:00
|
|
|
padding-right: #{25 / $base-font-size}rem;
|
|
|
|
font-family: Inconsolata, monospace;
|
|
|
|
font-size: #{14 / $base-font-size}rem;
|
|
|
|
overflow: hidden;
|
2016-08-03 23:10:03 +02:00
|
|
|
.sidebar__file-item--editing & {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-02-22 20:29:35 +01:00
|
|
|
&:before {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
content: '';
|
|
|
|
width: 100%;
|
|
|
|
}
|
2020-04-21 23:49:02 +02:00
|
|
|
@include themify() {
|
|
|
|
color: map-get($theme-map, 'primary-text-color');
|
|
|
|
}
|
2016-08-03 23:10:03 +02:00
|
|
|
}
|
|
|
|
|
2016-08-03 21:11:59 +02:00
|
|
|
.sidebar__file-item-show-options {
|
2019-06-19 22:21:25 +02:00
|
|
|
width: #{20 / $base-font-size}rem;
|
|
|
|
height: #{20 / $base-font-size}rem;
|
2017-06-26 23:46:47 +02:00
|
|
|
@include icon();
|
2016-09-13 22:42:06 +02:00
|
|
|
@include themify() {
|
2019-06-19 22:21:25 +02:00
|
|
|
margin-right: #{5 / $base-font-size}rem;
|
2016-09-13 23:05:42 +02:00
|
|
|
}
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
2017-03-15 18:31:30 +01:00
|
|
|
right: 0;
|
2016-09-13 23:05:42 +02:00
|
|
|
.sidebar__file-item--selected > .file-item__content & {
|
|
|
|
display: inline-block;
|
2017-04-12 02:06:04 +02:00
|
|
|
.sidebar--cant-edit & {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-08-03 21:11:59 +02:00
|
|
|
}
|
2019-03-13 13:40:47 +01:00
|
|
|
.sidebar__file-item:hover > .file-item__content & {
|
|
|
|
display: inline-block;
|
2019-03-14 21:10:50 +01:00
|
|
|
.sidebar--cant-edit & {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-03-13 13:40:47 +01:00
|
|
|
}
|
2016-12-19 23:07:04 +01:00
|
|
|
& svg {
|
|
|
|
width: #{10 / $base-font-size}rem;
|
|
|
|
}
|
2019-03-14 21:10:50 +01:00
|
|
|
.sidebar__file-item--open > .file-item__content & {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2016-08-03 21:11:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__file-item-options {
|
2019-06-12 21:58:02 +02:00
|
|
|
@extend %dropdown-open-right;
|
2016-08-03 21:11:59 +02:00
|
|
|
display: none;
|
2019-06-12 21:58:02 +02:00
|
|
|
width: 100%;
|
|
|
|
max-width: #{180 / $base-font-size}rem;
|
2016-08-30 20:39:37 +02:00
|
|
|
.sidebar__file-item--open > .file-item__content & {
|
2019-06-12 21:58:02 +02:00
|
|
|
display: flex;
|
2016-12-20 06:21:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-03 23:10:03 +02:00
|
|
|
.sidebar__file-item-input {
|
|
|
|
display: none;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
2020-04-24 02:31:00 +02:00
|
|
|
width: calc(100% - #{63 / $base-font-size}rem);
|
2020-07-31 00:59:12 +02:00
|
|
|
font-family: Inconsolata, monospace;
|
|
|
|
font-size: #{14 / $base-font-size}rem;
|
2016-08-03 23:10:03 +02:00
|
|
|
.sidebar__file-item--editing & {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-29 00:01:25 +02:00
|
|
|
.sidebar__expand,
|
|
|
|
.sidebar__contract {
|
2017-06-26 23:46:47 +02:00
|
|
|
@include icon();
|
2016-12-19 23:07:04 +01:00
|
|
|
position: absolute;
|
2020-04-29 00:01:25 +02:00
|
|
|
top: #{2 / $base-font-size}rem;
|
|
|
|
left: #{0 / $base-font-size}rem;
|
|
|
|
height: #{25 / $base-font-size}rem;
|
|
|
|
width: #{49 / $base-font-size}rem;
|
|
|
|
border-radius: 2px;
|
2020-04-30 00:34:37 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2020-04-29 00:01:25 +02:00
|
|
|
@include themify() {
|
|
|
|
background-color: getThemifyVariable("toolbar-button-background-color");
|
2020-04-30 00:34:37 +02:00
|
|
|
& polygon, & path {
|
2020-04-29 00:01:25 +02:00
|
|
|
fill: getThemifyVariable("toolbar-button-color");
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
background-color: getThemifyVariable("button-background-hover-color");
|
2020-04-30 00:34:37 +02:00
|
|
|
& polygon, & path {
|
2020-04-29 00:01:25 +02:00
|
|
|
fill: getThemifyVariable("button-hover-color");
|
|
|
|
}
|
|
|
|
}
|
2016-09-13 23:05:42 +02:00
|
|
|
}
|
2020-04-29 00:01:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__expand {
|
2016-09-13 23:05:42 +02:00
|
|
|
display: none;
|
2020-04-29 00:01:25 +02:00
|
|
|
&:hover {
|
|
|
|
cursor: e-resize;
|
|
|
|
}
|
2016-09-13 23:05:42 +02:00
|
|
|
.sidebar--contracted & {
|
2020-04-30 00:34:37 +02:00
|
|
|
display: flex;
|
2016-07-14 18:47:54 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-13 23:05:42 +02:00
|
|
|
.sidebar__contract {
|
2020-04-29 00:01:25 +02:00
|
|
|
&:hover {
|
|
|
|
cursor: w-resize;
|
2016-09-13 23:05:42 +02:00
|
|
|
}
|
|
|
|
.sidebar--contracted & {
|
2016-09-13 22:42:06 +02:00
|
|
|
display: none;
|
2016-07-14 18:47:54 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__icons {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-06-12 21:58:02 +02:00
|
|
|
height: 100%;
|
2017-04-12 02:06:04 +02:00
|
|
|
.sidebar--cant-edit & {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-07-14 18:47:54 +02:00
|
|
|
}
|
2016-08-25 23:32:27 +02:00
|
|
|
|
|
|
|
.sidebar__folder-icon {
|
2016-12-19 23:07:04 +01:00
|
|
|
padding: #{4 / $base-font-size}rem 0;
|
2016-08-25 23:32:27 +02:00
|
|
|
margin-right: #{5 / $base-font-size}rem;
|
2020-04-30 00:34:37 +02:00
|
|
|
& path {
|
2016-09-15 00:38:57 +02:00
|
|
|
@include themify() {
|
|
|
|
fill: map-get($theme-map, 'primary-text-color');
|
|
|
|
}
|
2016-08-25 23:32:27 +02:00
|
|
|
}
|
2016-12-19 23:07:04 +01:00
|
|
|
& svg {
|
|
|
|
width: #{10 / $base-font-size}rem;
|
|
|
|
}
|
2016-08-25 23:32:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__file-item-icon {
|
2016-12-19 23:07:04 +01:00
|
|
|
padding: #{4 / $base-font-size}rem 0;
|
2016-08-25 23:32:27 +02:00
|
|
|
margin-right: #{5 / $base-font-size}rem;
|
2020-04-30 00:34:37 +02:00
|
|
|
& path {
|
2016-09-15 00:38:57 +02:00
|
|
|
@include themify() {
|
2020-04-27 22:48:55 +02:00
|
|
|
fill: getThemifyVariable('secondary-text-color');
|
2016-09-15 00:38:57 +02:00
|
|
|
}
|
|
|
|
}
|
2017-02-22 20:29:35 +01:00
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
2016-08-25 23:32:27 +02:00
|
|
|
}
|
2016-08-30 05:23:10 +02:00
|
|
|
|
2016-08-31 03:08:50 +02:00
|
|
|
.sidebar__file-item-closed {
|
|
|
|
@extend .sidebar__file-item-icon;
|
|
|
|
display: none;
|
|
|
|
.sidebar__file-item--closed & {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__file-item-open {
|
|
|
|
@extend .sidebar__file-item-icon;
|
2016-09-22 01:08:30 +02:00
|
|
|
display: inline-block;
|
2016-08-31 03:08:50 +02:00
|
|
|
.sidebar__file-item--closed & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-12 21:58:02 +02:00
|
|
|
.sidebar__file-item--closed .file-item__children {
|
2016-08-30 05:23:10 +02:00
|
|
|
display: none;
|
|
|
|
}
|
2016-08-31 00:46:59 +02:00
|
|
|
|
2019-06-12 21:58:02 +02:00
|
|
|
.sidebar__project-options {
|
|
|
|
@extend %dropdown-open-right;
|
2016-08-31 00:46:59 +02:00
|
|
|
display: none;
|
2019-06-12 21:58:02 +02:00
|
|
|
width: 100%;
|
|
|
|
max-width: #{180 / $base-font-size}rem;
|
|
|
|
.sidebar--project-options & {
|
|
|
|
display: flex;
|
|
|
|
}
|
2016-08-31 00:46:59 +02:00
|
|
|
}
|