LT-275: Final polish on style for both versions

This commit is contained in:
Bruno Alves de Faria 2016-08-19 18:09:39 -03:00
parent 8fdf9c2b1c
commit 8f98efc7ea
4 changed files with 50 additions and 18 deletions

View File

@ -76,6 +76,7 @@ $gray6 = #303030
display: block display: block
margin: 0 margin: 0
padding: 5px padding: 5px
position: relative
text-align: center text-align: center
span span
@ -85,6 +86,14 @@ $gray6 = #303030
input input
border-color: $gray5 border-color: $gray5
font-weight: normal font-weight: normal
padding-left: 34px
& ~ i
color: $gray1
font-size: 18px
left: 16px
position: absolute
top: 37px
.tree-breadcrumb .tree-breadcrumb
line-height: 32px line-height: 32px
@ -171,7 +180,7 @@ $gray6 = #303030
border-radius: 5px border-radius: 5px
color: white color: white
opacity: 0.9 opacity: 0.9
padding: 5px 12px 12px padding: 0 15px 12px
position: absolute position: absolute
top: 50% top: 50%
transform(translateY(-50%)) transform(translateY(-50%))
@ -179,13 +188,21 @@ $gray6 = #303030
h5.title h5.title
color: $gray5 color: $gray5
font-size: 12px
font-weight: normal font-weight: normal
line-height: 20px line-height: 20px
margin: 0 margin: 12px 0 16px
label label
cursor: pointer
display: block display: block
font-weight: 300
line-height: 26px
margin: 0
padding-left: 3px
transition(padding 0.3s ease)
&:hover
padding-left: 0
.select-tree-root .select-tree-root

View File

@ -3,6 +3,7 @@
<button class="btn-add">Add label</button> <button class="btn-add">Add label</button>
{{#if eq instance.state.get 'selected'}} {{#if eq instance.state.get 'selected'}}
<div class="tree-leaf"> <div class="tree-leaf">
<i class="icon-check"></i>
<span>{{instance.value.label}}</span> <span>{{instance.value.label}}</span>
{{#if instance.descriptionEdit.get}} {{#if instance.descriptionEdit.get}}
<div class="description clearfix"> <div class="description clearfix">

View File

@ -39,22 +39,11 @@
&>.tree-leaf &>.tree-leaf
position: relative position: relative
&:before .icon-check
animateZoomIn()
background-color: $activeColor background-color: $activeColor
border-radius: 20px
color: $uiGray
content: '\f00c'
display: block
font-family: FontAwesome
font-size: 24px
height: 40px
left: -46px left: -46px
line-height: 40px
position: absolute position: absolute
text-align: center
top: 3px top: 3px
width: 40px
span span
background: white background: white
@ -127,8 +116,9 @@
&.selected .select-tree-common .content &.selected .select-tree-common .content
animation-name: selectTreeCommonCloseLeft animation-name: selectTreeCommonCloseLeft
.tree-search input .tree-search
display: none input, i
display: none
.select-tree-common .select-tree-common
padding-left: 0 padding-left: 0
@ -170,3 +160,25 @@
width: calc(100% - 6px) width: calc(100% - 6px)
} }
} }
.icon-check
background-color: white
border-radius: 20px
display: block
height: 40px
overflow: hidden
position: relative
width: 40px
&:before
border: 2px solid black
border-left-width: 0
border-top-width: 0
content: ''
display: block
height: 18px
left: 15px
position: absolute
top: 9px
transform(rotate(45deg))
width: 9px

View File

@ -11,11 +11,13 @@
<div class="tree-content"> <div class="tree-content">
{{#let currentNode=this.currentNode.get}} {{#let currentNode=this.currentNode.get}}
{{#if (and (not this.root) (ne this.search false))}} {{#if (and (not this.root) (ne this.search false))}}
{{>inputText {{#inputText
label=this.label label=this.label
labelClass='tree-search' labelClass='tree-search'
placeholder=(choose this.searchPlaceholder 'Search') placeholder=(choose this.searchPlaceholder 'Search')
}} }}
<i class="fa fa-search"></i>
{{/inputText}}
{{/if}} {{/if}}
<div class="tree-options {{#if currentNode}}collapsed{{/if}}"> <div class="tree-options {{#if currentNode}}collapsed{{/if}}">
{{#if this.root}} {{#if this.root}}