2016-07-13 22:13:28 +02:00
|
|
|
.sidebar__header {
|
|
|
|
padding: #{10 / $base-font-size}rem #{6 / $base-font-size}rem;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
border-top: 1px solid $ide-border-color;
|
2016-07-14 18:47:54 +02:00
|
|
|
align-items: center;
|
|
|
|
height: #{47 / $base-font-size}rem;
|
2016-07-13 22:13:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__title {
|
2016-07-14 18:47:54 +02:00
|
|
|
font-size: #{16 / $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 {
|
2016-08-01 03:38:46 +02:00
|
|
|
@extend %icon;
|
2016-07-13 22:13:28 +02:00
|
|
|
cursor: pointer;
|
2016-08-25 23:32:27 +02:00
|
|
|
// height: #{26 / $base-font-size}rem;
|
|
|
|
// margin-right: #{16 / $base-font-size}rem;
|
|
|
|
// font-size: #{24 / $base-font-size}rem;
|
2016-07-14 18:47:54 +02:00
|
|
|
.sidebar--contracted & {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-07-13 22:13:28 +02:00
|
|
|
}
|
|
|
|
|
2016-07-06 21:09:05 +02:00
|
|
|
.sidebar__file-list {
|
2016-07-12 18:25:48 +02:00
|
|
|
border-top: 1px solid $ide-border-color;
|
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;
|
|
|
|
}
|
|
|
|
|
2016-07-06 21:09:05 +02:00
|
|
|
.sidebar__file-item {
|
2016-07-14 18:47:54 +02:00
|
|
|
font-size: #{16 / $base-font-size}rem;
|
2016-07-06 21:09:05 +02:00
|
|
|
color: $light-inactive-text-color;
|
2016-07-12 18:25:48 +02:00
|
|
|
cursor: pointer;
|
2016-08-30 20:39:37 +02:00
|
|
|
&:hover > .file-item__content .sidebar__file-item-name {
|
2016-08-11 02:02:55 +02:00
|
|
|
color: $light-primary-text-color;
|
|
|
|
}
|
2016-08-30 20:39:37 +02:00
|
|
|
&:hover > .file-item__content .sidebar__file-item-icon g {
|
2016-08-25 23:32:27 +02:00
|
|
|
fill: $light-primary-text-color;
|
|
|
|
}
|
2016-07-06 21:09:05 +02:00
|
|
|
}
|
2016-07-14 18:47:54 +02:00
|
|
|
|
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 {
|
|
|
|
.sidebar__file-item & {
|
|
|
|
width: #{20 / $base-font-size}rem;
|
|
|
|
.sidebar__file-item & {
|
|
|
|
width: #{40 / $base-font-size}rem;
|
|
|
|
.sidebar__file-item & {
|
|
|
|
width: #{60 / $base-font-size}rem;
|
|
|
|
.sidebar__file-item & {
|
|
|
|
width: #{80 / $base-font-size}rem;
|
|
|
|
.sidebar__file-item & {
|
|
|
|
width: #{100 / $base-font-size}rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-24 01:40:47 +02:00
|
|
|
.file-item__content {
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
2016-08-30 20:44:53 +02:00
|
|
|
padding: #{8 / $base-font-size}rem 0;
|
|
|
|
.sidebar__file-item--selected > & {
|
|
|
|
background-color: $ide-border-color;
|
|
|
|
}
|
|
|
|
|
2016-08-24 01:40:47 +02:00
|
|
|
}
|
|
|
|
|
2016-08-03 23:10:03 +02:00
|
|
|
.sidebar__file-item-name {
|
|
|
|
.sidebar__file-item--editing & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-03 21:11:59 +02:00
|
|
|
.sidebar__file-item-show-options {
|
|
|
|
@extend %icon;
|
|
|
|
display: none;
|
2016-08-30 20:39:37 +02:00
|
|
|
position: absolute;
|
|
|
|
right: #{20 / $base-font-size}rem;
|
|
|
|
.sidebar__file-item--selected > .file-item__content & {
|
2016-08-03 21:11:59 +02:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__file-item-options {
|
|
|
|
@extend %modal;
|
|
|
|
position: absolute;
|
|
|
|
top: 95%;
|
|
|
|
left: 77%;
|
2016-08-30 05:43:02 +02:00
|
|
|
right: -65%;
|
2016-08-03 21:11:59 +02:00
|
|
|
display: none;
|
|
|
|
z-index: 100;
|
|
|
|
padding: #{8 / $base-font-size}rem #{16 / $base-font-size}rem;
|
|
|
|
background-color: $light-modal-background-color;
|
|
|
|
z-index: 100;
|
2016-08-30 20:39:37 +02:00
|
|
|
.sidebar__file-item--open > .file-item__content & {
|
2016-08-03 21:11:59 +02:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-03 23:10:03 +02:00
|
|
|
.sidebar__file-item-input {
|
|
|
|
display: none;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
max-width: 90%;
|
|
|
|
.sidebar__file-item--editing & {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-14 18:47:54 +02:00
|
|
|
.sidebar__contract {
|
|
|
|
@extend %icon;
|
2016-08-25 23:32:27 +02:00
|
|
|
margin-left: #{4 / $base-font-size}rem;
|
2016-07-14 18:47:54 +02:00
|
|
|
height: #{14 / $base-font-size}rem;
|
|
|
|
& svg {
|
|
|
|
height: #{14 / $base-font-size}rem;
|
|
|
|
}
|
|
|
|
.sidebar--contracted & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__expand {
|
|
|
|
@extend %icon;
|
|
|
|
height: #{14 / $base-font-size}rem;
|
|
|
|
& svg {
|
|
|
|
height: #{14 / $base-font-size}rem;
|
|
|
|
}
|
|
|
|
display: none;
|
|
|
|
.sidebar--contracted & {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__icons {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2016-08-30 05:23:10 +02:00
|
|
|
position: relative;
|
2016-07-14 18:47:54 +02:00
|
|
|
}
|
2016-08-25 23:32:27 +02:00
|
|
|
|
|
|
|
.sidebar__folder-icon {
|
|
|
|
margin-right: #{5 / $base-font-size}rem;
|
|
|
|
& g {
|
|
|
|
fill: $light-primary-text-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__file-item-icon {
|
|
|
|
margin-right: #{5 / $base-font-size}rem;
|
|
|
|
}
|
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;
|
|
|
|
.sidebar__file-item--closed & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-30 05:23:10 +02:00
|
|
|
.sidebar__project-options {
|
|
|
|
@extend %modal;
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
.sidebar--project-options & {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
top: 100%;
|
|
|
|
padding: #{8 / $base-font-size}rem;
|
|
|
|
width: #{110 / $base-font-size}rem;
|
|
|
|
}
|
2016-08-31 00:46:59 +02:00
|
|
|
|
|
|
|
.sidebar__file-item--closed .file-item__children {
|
|
|
|
display: none;
|
|
|
|
}
|