p5.js-web-editor/client/styles/components/_sidebar.scss

116 lines
2.2 KiB
SCSS
Raw Normal View History

.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;
}
.sidebar__title {
2016-07-14 18:47:54 +02:00
font-size: #{16 / $base-font-size}rem;
display: inline-block;
2016-07-14 18:47:54 +02:00
.sidebar--contracted & {
display: none;
}
}
.sidebar__add {
2016-08-01 03:38:46 +02:00
@extend %icon;
cursor: pointer;
2016-07-14 18:47:54 +02:00
height: #{26 / $base-font-size}rem;
margin-right: #{16 / $base-font-size}rem;
font-size: #{24 / $base-font-size}rem;
.sidebar--contracted & {
display: none;
}
}
.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;
}
}
.sidebar__file-item {
2016-07-14 18:47:54 +02:00
font-size: #{16 / $base-font-size}rem;
padding: #{8 / $base-font-size}rem #{20 / $base-font-size}rem;
color: $light-inactive-text-color;
2016-07-12 18:25:48 +02:00
cursor: pointer;
2016-08-03 21:11:59 +02:00
display: flex;
justify-content: space-between;
position: relative;
2016-07-12 18:25:48 +02:00
&--selected {
background-color: $ide-border-color;
}
}
2016-07-14 18:47:54 +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;
.sidebar__file-item--selected & {
display: inline-block;
}
}
.sidebar__file-item-options {
@extend %modal;
position: absolute;
top: 95%;
left: 77%;
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;
.sidebar__file-item--open & {
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;
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;
}