2016-11-09 17:52:14 +00:00
|
|
|
.sidebar {
|
2016-11-23 19:44:39 +00:00
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
|
2016-11-09 17:52:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__header {
|
2016-12-19 22:19:07 +00:00
|
|
|
padding-right: #{6 / $base-font-size}rem;
|
|
|
|
padding-left: #{19 / $base-font-size}rem;
|
2016-07-13 20:13:28 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2016-07-14 16:47:54 +00:00
|
|
|
align-items: center;
|
2016-12-19 22:07:04 +00:00
|
|
|
height: #{29 / $base-font-size}rem;
|
|
|
|
min-height: #{29 / $base-font-size}rem;
|
2016-07-13 20:13:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__title {
|
2016-12-19 22:07:04 +00:00
|
|
|
font-size: #{12 / $base-font-size}rem;
|
2016-07-13 20:13:28 +00:00
|
|
|
display: inline-block;
|
2016-07-14 16:47:54 +00:00
|
|
|
.sidebar--contracted & {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-08-11 20:50:31 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
2016-07-13 20:13:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__add {
|
2016-09-13 20:42:06 +00:00
|
|
|
@include themify() {
|
|
|
|
@extend %icon;
|
2016-09-13 21:05:42 +00:00
|
|
|
}
|
|
|
|
.sidebar--contracted & {
|
|
|
|
display: none;
|
2016-07-14 16:47:54 +00:00
|
|
|
}
|
2016-12-19 22:07:04 +00:00
|
|
|
& svg {
|
|
|
|
width: #{10 / $base-font-size}rem;
|
|
|
|
}
|
2016-07-13 20:13:28 +00:00
|
|
|
}
|
|
|
|
|
2016-07-06 19:09:05 +00:00
|
|
|
.sidebar__file-list {
|
2016-09-22 03:39:50 +00:00
|
|
|
@include themify() {
|
|
|
|
border-color: getThemifyVariable('ide-border-color')
|
|
|
|
}
|
|
|
|
border-top: 1px solid;
|
2016-07-14 16:47:54 +00:00
|
|
|
.sidebar--contracted & {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-07-06 19:09:05 +00:00
|
|
|
}
|
|
|
|
|
2016-08-30 18:39:37 +00:00
|
|
|
.sidebar__root-item {
|
|
|
|
position: relative;
|
2016-11-23 19:44:39 +00:00
|
|
|
overflow-y: scroll;
|
|
|
|
flex: 1 1 auto;
|
2016-08-30 18:39:37 +00:00
|
|
|
}
|
|
|
|
|
2016-07-06 19:09:05 +00:00
|
|
|
.sidebar__file-item {
|
2016-12-19 22:07:04 +00:00
|
|
|
height: #{20 / $base-font-size}rem;
|
|
|
|
font-size: #{12 / $base-font-size}rem;
|
2016-07-12 16:25:48 +00:00
|
|
|
cursor: pointer;
|
2017-02-22 19:29:35 +00:00
|
|
|
position: relative;
|
2016-09-14 22:38:57 +00:00
|
|
|
@include themify() {
|
|
|
|
color: map-get($theme-map, 'inactive-text-color');
|
|
|
|
&:hover > .file-item__content .sidebar__file-item-name {
|
|
|
|
color: map-get($theme-map, 'primary-text-color');
|
|
|
|
}
|
|
|
|
&:hover > .file-item__content .sidebar__file-item-icon g {
|
|
|
|
fill: map-get($theme-map, 'primary-text-color');
|
|
|
|
}
|
2016-08-25 21:32:27 +00:00
|
|
|
}
|
2016-07-06 19:09:05 +00:00
|
|
|
}
|
2016-07-14 16:47:54 +00:00
|
|
|
|
2016-08-30 18:39:37 +00: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 & {
|
2016-12-19 22:07:04 +00:00
|
|
|
width: #{33 / $base-font-size}rem;
|
2016-08-30 18:39:37 +00:00
|
|
|
.sidebar__file-item & {
|
2016-12-19 22:07:04 +00:00
|
|
|
width: #{53 / $base-font-size}rem;
|
2016-08-30 18:39:37 +00:00
|
|
|
.sidebar__file-item & {
|
2016-12-19 22:07:04 +00:00
|
|
|
width: #{73 / $base-font-size}rem;
|
2016-08-30 18:39:37 +00:00
|
|
|
.sidebar__file-item & {
|
2016-12-19 22:07:04 +00:00
|
|
|
width: #{93 / $base-font-size}rem;
|
2016-08-30 18:39:37 +00:00
|
|
|
.sidebar__file-item & {
|
2016-12-19 22:07:04 +00:00
|
|
|
width: #{113 / $base-font-size}rem;
|
2016-08-30 18:39:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-23 23:40:47 +00:00
|
|
|
.file-item__content {
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
2016-08-30 18:44:53 +00:00
|
|
|
.sidebar__file-item--selected > & {
|
2016-09-14 22:38:57 +00:00
|
|
|
@include themify() {
|
2016-09-21 22:52:44 +00:00
|
|
|
background-color: map-get($theme-map, 'file-selected-color');
|
2016-09-14 22:38:57 +00:00
|
|
|
}
|
2016-08-30 18:44:53 +00:00
|
|
|
}
|
2016-09-04 00:29:18 +00:00
|
|
|
.sidebar--contracted & {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-08-23 23:40:47 +00:00
|
|
|
}
|
|
|
|
|
2016-08-03 21:10:03 +00:00
|
|
|
.sidebar__file-item-name {
|
2016-12-19 22:07:04 +00:00
|
|
|
padding: #{4 / $base-font-size}rem 0;
|
2016-08-03 21:10:03 +00:00
|
|
|
.sidebar__file-item--editing & {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-02-22 19:29:35 +00:00
|
|
|
&:before {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
content: '';
|
|
|
|
width: 100%;
|
|
|
|
}
|
2016-08-03 21:10:03 +00:00
|
|
|
}
|
|
|
|
|
2016-08-03 19:11:59 +00:00
|
|
|
.sidebar__file-item-show-options {
|
2016-09-13 20:42:06 +00:00
|
|
|
@include themify() {
|
|
|
|
@extend %icon;
|
2016-12-19 22:07:04 +00:00
|
|
|
padding: #{4 / $base-font-size}rem 0;
|
2016-09-13 21:05:42 +00:00
|
|
|
}
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
2016-12-19 22:07:04 +00:00
|
|
|
right: #{6 / $base-font-size}rem;
|
2016-09-13 21:05:42 +00:00
|
|
|
.sidebar__file-item--selected > .file-item__content & {
|
|
|
|
display: inline-block;
|
2016-08-03 19:11:59 +00:00
|
|
|
}
|
2016-12-19 22:07:04 +00:00
|
|
|
& svg {
|
|
|
|
width: #{10 / $base-font-size}rem;
|
|
|
|
}
|
2016-08-03 19:11:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__file-item-options {
|
|
|
|
@extend %modal;
|
2016-09-14 22:38:57 +00:00
|
|
|
@include themify() {
|
2016-12-09 22:05:24 +00:00
|
|
|
background-color: getThemifyVariable('modal-background-color');
|
2016-12-20 05:21:04 +00:00
|
|
|
box-shadow: 0 0 18px getThemifyVariable('shadow-color');
|
2016-09-14 22:38:57 +00:00
|
|
|
}
|
2016-08-03 19:11:59 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 95%;
|
2016-12-09 22:05:24 +00:00
|
|
|
left: #{15 / $base-font-size}rem;
|
2016-12-20 05:21:04 +00:00
|
|
|
right: #{0 / $base-font-size}rem;
|
2016-08-03 19:11:59 +00:00
|
|
|
display: none;
|
|
|
|
z-index: 100;
|
2016-12-20 05:21:04 +00:00
|
|
|
padding: #{8 / $base-font-size}rem #{16 / $base-font-size}rem;
|
2016-08-30 18:39:37 +00:00
|
|
|
.sidebar__file-item--open > .file-item__content & {
|
2016-08-03 19:11:59 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-20 05:21:04 +00:00
|
|
|
.sidebar__project-options li, .sidebar__file-item-options li {
|
|
|
|
padding: #{4 / $base-font-size}rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__project-options a, .sidebar__file-item-options a {
|
|
|
|
@include themify() {
|
|
|
|
color: getThemifyVariable('secondary-text-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-03 21:10:03 +00:00
|
|
|
.sidebar__file-item-input {
|
|
|
|
display: none;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
2016-09-21 22:52:44 +00:00
|
|
|
width: calc(100% - #{100 / $base-font-size}rem);
|
2016-08-03 21:10:03 +00:00
|
|
|
.sidebar__file-item--editing & {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-13 21:05:42 +00:00
|
|
|
.sidebar__expand {
|
2016-09-13 20:42:06 +00:00
|
|
|
@include themify() {
|
|
|
|
@extend %icon;
|
2016-09-13 21:05:42 +00:00
|
|
|
}
|
2016-12-19 22:07:04 +00:00
|
|
|
position: absolute;
|
|
|
|
top: #{7 / $base-font-size}rem;
|
|
|
|
left: #{1 / $base-font-size}rem;
|
2016-09-13 21:05:42 +00:00
|
|
|
height: #{14 / $base-font-size}rem;
|
|
|
|
& svg {
|
2016-07-14 16:47:54 +00:00
|
|
|
height: #{14 / $base-font-size}rem;
|
2016-09-13 21:05:42 +00:00
|
|
|
}
|
|
|
|
display: none;
|
|
|
|
.sidebar--contracted & {
|
|
|
|
display: inline-block;
|
2016-07-14 16:47:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-13 21:05:42 +00:00
|
|
|
.sidebar__contract {
|
2016-09-13 20:42:06 +00:00
|
|
|
@include themify() {
|
|
|
|
@extend %icon;
|
2016-09-13 21:05:42 +00:00
|
|
|
}
|
2016-12-19 22:07:04 +00:00
|
|
|
position: absolute;
|
|
|
|
top: #{7 / $base-font-size}rem;
|
|
|
|
left: #{34 / $base-font-size}rem;
|
2016-09-13 21:05:42 +00:00
|
|
|
height: #{14 / $base-font-size}rem;
|
|
|
|
& svg {
|
2016-07-14 16:47:54 +00:00
|
|
|
height: #{14 / $base-font-size}rem;
|
2016-09-13 21:05:42 +00:00
|
|
|
}
|
|
|
|
.sidebar--contracted & {
|
2016-09-13 20:42:06 +00:00
|
|
|
display: none;
|
2016-07-14 16:47:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__icons {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2016-08-30 03:23:10 +00:00
|
|
|
position: relative;
|
2016-07-14 16:47:54 +00:00
|
|
|
}
|
2016-08-25 21:32:27 +00:00
|
|
|
|
|
|
|
.sidebar__folder-icon {
|
2016-12-19 22:07:04 +00:00
|
|
|
padding: #{4 / $base-font-size}rem 0;
|
2016-08-25 21:32:27 +00:00
|
|
|
margin-right: #{5 / $base-font-size}rem;
|
|
|
|
& g {
|
2016-09-14 22:38:57 +00:00
|
|
|
@include themify() {
|
|
|
|
fill: map-get($theme-map, 'primary-text-color');
|
|
|
|
}
|
2016-08-25 21:32:27 +00:00
|
|
|
}
|
2016-12-19 22:07:04 +00:00
|
|
|
& svg {
|
|
|
|
width: #{10 / $base-font-size}rem;
|
|
|
|
}
|
2016-08-25 21:32:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar__file-item-icon {
|
2016-12-19 22:07:04 +00:00
|
|
|
padding: #{4 / $base-font-size}rem 0;
|
2016-08-25 21:32:27 +00:00
|
|
|
margin-right: #{5 / $base-font-size}rem;
|
2016-09-14 22:38:57 +00:00
|
|
|
& g {
|
|
|
|
@include themify() {
|
|
|
|
fill: getThemifyVariable('inactive-text-color');
|
|
|
|
}
|
|
|
|
}
|
2016-12-19 22:07:04 +00:00
|
|
|
& svg {
|
|
|
|
height: #{10 / $base-font-size}rem;
|
|
|
|
}
|
2017-02-22 19:29:35 +00:00
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
2016-08-25 21:32:27 +00:00
|
|
|
}
|
2016-08-30 03:23:10 +00:00
|
|
|
|
2016-08-31 01:08:50 +00: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-21 23:08:30 +00:00
|
|
|
display: inline-block;
|
2016-08-31 01:08:50 +00:00
|
|
|
.sidebar__file-item--closed & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-30 03:23:10 +00:00
|
|
|
.sidebar__project-options {
|
|
|
|
@extend %modal;
|
2016-12-20 05:21:04 +00:00
|
|
|
@include themify() {
|
|
|
|
background-color: getThemifyVariable('modal-background-color');
|
|
|
|
box-shadow: 0 0 18px getThemifyVariable('shadow-color');
|
|
|
|
}
|
2016-08-30 03:23:10 +00:00
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
.sidebar--project-options & {
|
|
|
|
display: block;
|
|
|
|
}
|
2016-12-20 05:21:04 +00:00
|
|
|
top: #{22 / $base-font-size}rem;
|
|
|
|
right: #{-6 / $base-font-size}rem;
|
|
|
|
padding: #{8 / $base-font-size}rem #{16 / $base-font-size}rem;
|
|
|
|
width: #{145 / $base-font-size}rem;
|
2016-08-30 03:23:10 +00:00
|
|
|
}
|
2016-08-30 22:46:59 +00:00
|
|
|
|
2017-02-22 19:29:35 +00:00
|
|
|
.sidebar__file-item-option {
|
|
|
|
@include themify() {
|
|
|
|
@extend %link;
|
|
|
|
}
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2016-12-20 05:21:04 +00:00
|
|
|
|
2016-08-30 22:46:59 +00:00
|
|
|
.sidebar__file-item--closed .file-item__children {
|
|
|
|
display: none;
|
|
|
|
}
|