Browse Source

Improve list title form

Maxime Quandalle 9 years ago
parent
commit
039cfe7edf

+ 11 - 10
client/components/boards/boardBody.jade

@@ -27,13 +27,14 @@ template(name="boardBody")
 
 
 template(name="addListForm")
 template(name="addListForm")
   .list.js-list.list-composer.js-list-composer
   .list.js-list.list-composer.js-list-composer
-    +inlinedForm(autoclose=false)
-      input.list-name-input(type="text" placeholder="{{_ 'add-list'}}"
-        autocomplete="off" autofocus)
-      .edit-controls.clearfix
-        button.primary.confirm(type="submit") {{_ 'save'}}
-        a.fa.fa-times-thin.js-close-inlined-form
-    else
-      a.js-open-inlined-form
-        i.fa.fa-plus
-        | {{_ 'add-list'}}
+    .list-header
+      +inlinedForm(autoclose=false)
+        input.list-name-input.full-line(type="text" placeholder="{{_ 'add-list'}}"
+          autocomplete="off" autofocus)
+        .edit-controls.clearfix
+          button.primary.confirm(type="submit") {{_ 'save'}}
+          a.fa.fa-times-thin.js-close-inlined-form
+      else
+        a.open-list-composer.js-open-inlined-form
+          i.fa.fa-plus
+          | {{_ 'add-list'}}

+ 13 - 13
client/components/boards/boardBody.styl

@@ -17,6 +17,19 @@ position()
     position: cover
     position: cover
     transition: margin .1s
     transition: margin .1s
 
 
+    &.is-sibling-sidebar-open
+      margin-right: 248px
+
+    .lists
+      align-items: flex-start
+      display: flex
+      flex-direction: row
+      margin: 0 0 10px
+      padding: 0 40px 5px 0
+      overflow-x: auto
+      overflow-y: hidden
+      position: cover
+
     .board-overlay
     .board-overlay
       position: cover
       position: cover
       top: -100px
       top: -100px
@@ -26,20 +39,7 @@ position()
       animation: fadeIn 0.2s
       animation: fadeIn 0.2s
       z-index: 16
       z-index: 16
 
 
-    &.is-sibling-sidebar-open
-      margin-right: 248px
-
     &.is-dragging-active
     &.is-dragging-active
       .open-minicard-composer,
       .open-minicard-composer,
       .minicard-wrapper.is-checked
       .minicard-wrapper.is-checked
         display: none
         display: none
-
-  .lists
-    align-items: flex-start
-    display: flex
-    flex-direction: row
-    margin: 0 0 10px
-    padding: 0 40px 5px 0
-    overflow-x: auto
-    overflow-y: hidden
-    position: cover

+ 0 - 1
client/components/forms/forms.styl

@@ -110,7 +110,6 @@ button
   background: #cfcfcf
   background: #cfcfcf
   background: linear-gradient(#cfcfcf, #c2c2c2)
   background: linear-gradient(#cfcfcf, #c2c2c2)
   border: none
   border: none
-  box-shadow: 0 1px 0 #8c8c8c
   cursor: pointer
   cursor: pointer
   display: inline-block
   display: inline-block
   font-weight: 700
   font-weight: 700

+ 6 - 19
client/components/lists/list.styl

@@ -12,6 +12,7 @@
   height: 100%
   height: 100%
   border-left: 1px solid darken(white, 20%)
   border-left: 1px solid darken(white, 20%)
   padding: 0
   padding: 0
+  float: left
 
 
   &:first-child
   &:first-child
     margin-left: 5px
     margin-left: 5px
@@ -35,27 +36,13 @@
     box-shadow: none
     box-shadow: none
     height: 100px
     height: 100px
 
 
-  &.list-composer, & list-composer
-    padding: 17px
-
-    form
-      margin-top: -5px
+  &.list-composer, & .list-composer
+    .open-list-composer
+      color: #8c8c8c
 
 
     .list-name-input
     .list-name-input
-      background: rgba(255, 255, 255, .4)
-      border-color: #aaa
-      display: block
-      margin: 0
-      transition: margin 85ms ease-in,
-        background 85ms ease-in
-      width: 100%
-
-    .edit-controls
-      height: 32px
-      transition: margin 85ms ease-in,
-        height 85ms ease-in
-      overflow: hidden
-      margin: 4px 0 0
+      background: white
+      margin: -3px 0 8px
 
 
 .list-header
 .list-header
   flex: 0 0 auto
   flex: 0 0 auto

+ 1 - 1
client/components/lists/listHeader.jade

@@ -11,7 +11,7 @@ template(name="listHeader")
 
 
 template(name="editListTitleForm")
 template(name="editListTitleForm")
   .list-composer
   .list-composer
-    input.full-line(type="text" value="{{../trySomething}}" autofocus)
+    input.list-name-input.full-line(type="text" value=title autofocus)
     .edit-controls.clearfix
     .edit-controls.clearfix
       button.primary.confirm(type="submit") {{_ 'save'}}
       button.primary.confirm(type="submit") {{_ 'save'}}
       a.fa.fa-times-thin.js-close-inlined-form
       a.fa.fa-times-thin.js-close-inlined-form

+ 2 - 2
client/components/sidebar/sidebar.styl

@@ -89,10 +89,10 @@
   height: @width
   height: @width
   left: -@width
   left: -@width
   position: absolute
   position: absolute
-  top: 12px
+  top: 0px
   z-index: 15
   z-index: 15
   background: darken(white, 3%)
   background: darken(white, 3%)
-  border-radius: left 3px
+  border-bottom-left-radius: 3px
   box-shadow: -4px 0px 7px -4px darken(white, 30%)
   box-shadow: -4px 0px 7px -4px darken(white, 30%)
   color: darken(white, 50%)
   color: darken(white, 50%)
   transition: left .1s
   transition: left .1s