0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 18:48:37 -05:00

wip dashboard sidebar

This commit is contained in:
Juan de la Cruz 2019-12-19 13:23:30 +01:00
parent 758c70f7c3
commit b1d13b3d42
3 changed files with 18 additions and 12 deletions

View file

@ -126,7 +126,7 @@
h3 { h3 {
color: $intense-ui-text; color: $intense-ui-text;
font-size: $fs16; font-size: $fs15;
font-weight: 400; font-weight: 400;
overflow: hidden; overflow: hidden;
padding: 0; padding: 0;

View file

@ -17,7 +17,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
padding-top: 60px; padding-top: 40px;
.library-tabs { .library-tabs {
align-items: center; align-items: center;
@ -61,21 +61,24 @@
padding-bottom: 20px; padding-bottom: 20px;
li { li {
border-bottom: 1px solid $secondary-ui-bg;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-shrink: 0; flex-shrink: 0;
padding: 10px; padding: $medium;
span.element-title { span.element-title {
color: $color-gray-dark; color: $intense-ui-text;
font-weight: bold; font-size: $fs14;
margin-bottom: 5px;
overflow-x: hidden; overflow-x: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
&.recent-projects {
border-top: 1px solid $dark-ui-bg;
border-bottom: 1px solid $dark-ui-bg;
}
input.element-title { input.element-title {
border: 0; border: 0;
@ -101,13 +104,17 @@
font-style: italic; font-style: italic;
} }
&:hover, &:hover {
&.current {
background-color: $main-ui-color; background-color: $main-ui-color;
color: $intense-ui-text;
}
&.current {
span.element-title, span.element-title,
.element-subtitle { .element-subtitle {
color: $color-white; color: $intense-ui-text;
font-weight: bold;
} }
input.element-title { input.element-title {
color: $color-gray-dark; color: $color-gray-dark;

View file

@ -241,8 +241,7 @@
[:a.btn-primary #_{:on-click #(st/emit! di/create-collection)} [:a.btn-primary #_{:on-click #(st/emit! di/create-collection)}
"new project +"]] "new project +"]]
[:li {:style {:marginBottom "20px"} [:li.recent-projects {:on-click #(st/emit! (udp/go-to-project nil))
:on-click #(st/emit! (udp/go-to-project nil))
:class-name (when (nil? id) "current")} :class-name (when (nil? id) "current")}
[:span.element-title "Recent"]] [:span.element-title "Recent"]]