diff --git a/app/app/components/dropdown-dialog.js b/app/app/components/dropdown-dialog.js index 70ff7ea3..ba9986c2 100644 --- a/app/app/components/dropdown-dialog.js +++ b/app/app/components/dropdown-dialog.js @@ -57,7 +57,7 @@ export default Ember.Component.extend({ classes: 'drop-theme-basic', position: self.get('position'), openOn: self.get('open'), - constrainToWindow: false, + constrainToWindow: true, constrainToScrollParent: false, tetherOptions: { offset: self.offset, diff --git a/app/app/styles/view/document/content.scss b/app/app/styles/view/document/content.scss index 47756abd..ed980dc5 100644 --- a/app/app/styles/view/document/content.scss +++ b/app/app/styles/view/document/content.scss @@ -39,23 +39,21 @@ > .wysiwyg { > .is-a-page { - .page-title { - > .page-toolbar { - // opacity: 0.5; - opacity: 0; - @extend .transition-all; + @extend .transition-all; - // &:hover { - // opacity: 1; - // } - } - - &:hover { - .page-toolbar { + &:hover { + .page-title { + > .page-toolbar { opacity: 1; } } } + + .page-title { + > .page-toolbar { + opacity: 0; + } + } } } } @@ -65,3 +63,7 @@ margin-top: 150px; text-align: center; } + +.dropdown-page-toolbar { + width: 300px; +} \ No newline at end of file diff --git a/app/app/styles/view/document/wizard.scss b/app/app/styles/view/document/wizard.scss index e9996962..df85126b 100644 --- a/app/app/styles/view/document/wizard.scss +++ b/app/app/styles/view/document/wizard.scss @@ -19,6 +19,10 @@ margin: 0; padding: 0; + > .min-height { + min-height: 87px; + } + > .item { list-style: none; cursor: pointer; @@ -29,17 +33,19 @@ &:hover { @include ease-in(); - > .actions { - display: inline-block; + >.icon { + .actions { + display: inline-block; + } } > .details { > .title { - color: $color-primary; + color: $color-link; } > .desc { - color: $color-primary; + color: $color-link; } } } @@ -50,18 +56,32 @@ width: 50px; > .img { - float: left; text-align: center; display: inline-block; height: 40px; width: 40px; } + + > .actions { + display: none; + vertical-align: top; + text-align: center; + margin-top: 5px; + opacity: 0.5; + + > .material-icons, a { + color: $color-gray; + + &:hover { + color: $color-link; + } + } + } } > .details { vertical-align: top; display: inline-block; - width: 80%; > .title { font-size: 1rem; @@ -76,19 +96,6 @@ margin-top: 5px; } } - - > .actions { - display: none; - vertical-align: top; - text-align: center; - width: 20px; - margin-top: 5px; - opacity: 0.4; - - > .material-icons, a { - color: $color-gray; - } - } } } } diff --git a/app/app/styles/view/page-documents.scss b/app/app/styles/view/page-documents.scss index 544b93c6..20ad9df7 100644 --- a/app/app/styles/view/page-documents.scss +++ b/app/app/styles/view/page-documents.scss @@ -212,18 +212,27 @@ padding: 0; > .item { + cursor: pointer; list-style: none; padding: 10px 5px; - margin: 20px 0; + margin: 10px 0; + min-height: 90px; @include ease-in(); + &:hover { + > .icon { + > .edit-control { + display: block; + } + } + } + .icon { text-align: center; display: inline-block; width: 50px; > .img { - float: left; text-align: center; display: inline-block; height: 40px; @@ -231,15 +240,16 @@ } > .edit-control { - color: $color-gray; - font-size: 0.9rem; + display: none; + vertical-align: top; text-align: center; - float: left; - margin: 5px 0 0 9px; + margin-top: 5px; + opacity: 0.5; cursor: pointer; + color: $color-gray; &:hover { - color: $color-link; + color: $color-link; } } } @@ -247,7 +257,7 @@ > .details { vertical-align: top; display: inline-block; - width: 80%; + width: 85%; cursor: pointer; > .title { @@ -258,7 +268,7 @@ } > .desc { - color: $color-off-black; + color: $color-gray; font-size: 0.9rem; margin-top: 5px; } diff --git a/app/app/templates/components/document/page-heading.hbs b/app/app/templates/components/document/page-heading.hbs index 95258f8b..014be543 100644 --- a/app/app/templates/components/document/page-heading.hbs +++ b/app/app/templates/components/document/page-heading.hbs @@ -56,7 +56,7 @@
Select where the content should be copied to
- {{ui-select content=documentList action=(action 'onTargetChange') optionValuePath="id" optionLabelPath="name" selection=document}} + {{ui-select cssClass="dropdown-page-toolbar" content=documentList action=(action 'onTargetChange') optionValuePath="id" optionLabelPath="name" selection=document}}
{{/dropdown-dialog}} {{#dropdown-dialog id=moveDialogId target=moveButtonId position="bottom right" button="Move" color="flat-green" onOpenCallback=(action 'onCopyDialogOpen') onAction=(action 'onMovePage' page)}} @@ -68,7 +68,7 @@
Select where the content should be moved to
- {{ui-select content=documentListOthers action=(action 'onTargetChange') optionValuePath="id" optionLabelPath="name"}} + {{ui-select cssClass="dropdown-page-toolbar" content=documentListOthers action=(action 'onTargetChange') optionValuePath="id" optionLabelPath="name"}}
{{/dropdown-dialog}} {{/if}} diff --git a/app/app/templates/components/document/page-wizard.hbs b/app/app/templates/components/document/page-wizard.hbs index 3dce7e20..2ae1bbdf 100644 --- a/app/app/templates/components/document/page-wizard.hbs +++ b/app/app/templates/components/document/page-wizard.hbs @@ -24,9 +24,15 @@
Reusable content