diff --git a/app/react/App/scss/Vars.scss b/app/react/App/scss/Vars.scss deleted file mode 100644 index 311e23b636..0000000000 --- a/app/react/App/scss/Vars.scss +++ /dev/null @@ -1,21 +0,0 @@ -$brandColor: rgb(100, 161, 163); -$primary: rgb(80, 140, 184); - -$backGroundColor1: rgb(153, 153, 153); -$backGroundColor2: rgb(250, 250, 250); -$backGroundColor3: rgb(238, 238, 238); -$backGroundColor4: rgb(84, 84, 84); -$softFontColor: #989495; -$hardFontColor: #333; - -$successColor: rgb(122, 184, 96); -$infoColor: rgb(80, 140, 184); -$warningColor: rgb(213, 133, 88); -$dangerColor: rgb(183, 104, 61); -$fancyColor: rgb(175, 77, 156); - -$xxs: "(max-width: 640px)"; -$xs: "(max-width: 767px)"; -$sm: "(min-width: 768px) and (max-width: 992px)"; -$md: "(min-width: 992px) and (max-width: 1200px)"; -$lg: "(min-width: 1200px)"; diff --git a/app/react/App/scss/elements/_panel.scss b/app/react/App/scss/elements/_panel.scss index e01ee22eb1..c0a0064b7f 100644 --- a/app/react/App/scss/elements/_panel.scss +++ b/app/react/App/scss/elements/_panel.scss @@ -10,7 +10,12 @@ } .panel > .list-group .list-group-item { - //border-width: 1px 0 1px 3px; + display: -webkit-flex; + display: flex; + -webkit-align-items: center; + align-items: center; + -webkit-justify-content: space-between; + justify-content: space-between; line-height: 23px; border-color: $c-grey-light; border-left-color: transparent; @@ -42,13 +47,18 @@ } .form-group { - margin: 0 0 5px; + width: 100%; + margin: 3px 0; } .form-control { margin: 0; } } +.list-group-item-actions { + white-space: nowrap; +} + .panel { .list-group { .list-group-item { @@ -96,10 +106,5 @@ opacity: 0; } } - .list-group-item-actions { - position: absolute; - top: 10px; - right: 10px; - } } } diff --git a/app/react/App/scss/modules/_settings-nav.scss b/app/react/App/scss/modules/_settings-nav.scss index 2c72ac58de..de20420413 100644 --- a/app/react/App/scss/modules/_settings-nav.scss +++ b/app/react/App/scss/modules/_settings-nav.scss @@ -1,3 +1,20 @@ .navLinks { @include draggable; } + +.NavlinksSettings { + .panel-heading { + height: 50px; + padding: 0 15px; + display: -webkit-flex; + display: flex; + -webkit-align-items: center; + align-items: center; + -webkit-justify-content: space-between; + justify-content: space-between; + } + .list-group-item { + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + } +} diff --git a/app/react/App/scss/modules/_settings-translations.scss b/app/react/App/scss/modules/_settings-translations.scss new file mode 100644 index 0000000000..c6ea9f52d4 --- /dev/null +++ b/app/react/App/scss/modules/_settings-translations.scss @@ -0,0 +1,6 @@ +.EditTranslationForm { + .list-group-item { + -webkit-flex-wrap: wrap; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/app/react/App/scss/styles.scss b/app/react/App/scss/styles.scss index 4010748c37..969369f281 100644 --- a/app/react/App/scss/styles.scss +++ b/app/react/App/scss/styles.scss @@ -30,6 +30,7 @@ @import "modules/settings-nav"; @import "modules/settings-metadata"; @import "modules/settings-filters"; +@import "modules/settings-translations"; @import "modules/uploads"; @import "modules/login"; @import "modules/markdown"; @@ -38,4 +39,3 @@ @import "../../Timeline/scss/timeline"; @import "utilities/utilities"; -@import "transitions/transitions"; diff --git a/app/react/App/scss/transitions/_transitions.scss b/app/react/App/scss/transitions/_transitions.scss deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/app/react/I18N/components/EditTranslationForm.js b/app/react/I18N/components/EditTranslationForm.js index 3caebfda05..3129550a00 100644 --- a/app/react/I18N/components/EditTranslationForm.js +++ b/app/react/I18N/components/EditTranslationForm.js @@ -63,7 +63,7 @@ export class EditTranslationForm extends Component { let contextName = defaultTranslationContext.label; return ( -
+
diff --git a/app/react/Pages/components/PagesList.js b/app/react/Pages/components/PagesList.js index 0bc0f02899..141ba89292 100644 --- a/app/react/Pages/components/PagesList.js +++ b/app/react/Pages/components/PagesList.js @@ -29,7 +29,7 @@ export class PagesList extends Component { {pages.map((page, index) =>
  • {page.get('title')} -
    +
      {t('System', 'Edit')} diff --git a/app/react/Settings/components/DocumentTypesList.js b/app/react/Settings/components/DocumentTypesList.js index b5d852635a..04c3879023 100644 --- a/app/react/Settings/components/DocumentTypesList.js +++ b/app/react/Settings/components/DocumentTypesList.js @@ -39,7 +39,7 @@ export class DocumentTypesList extends Component { } return
  • {template.name} -
    +
      {t('System', 'Edit')} diff --git a/app/react/Settings/components/EntityTypesList.js b/app/react/Settings/components/EntityTypesList.js index 1facb74011..8211636cde 100644 --- a/app/react/Settings/components/EntityTypesList.js +++ b/app/react/Settings/components/EntityTypesList.js @@ -40,7 +40,7 @@ export class EntityTypesList extends Component { } return
  • {template.name} -
    +
      {t('System', 'Edit')} diff --git a/app/react/Settings/components/NavlinkForm.js b/app/react/Settings/components/NavlinkForm.js index 411cbb5072..e9a28f5bae 100644 --- a/app/react/Settings/components/NavlinkForm.js +++ b/app/react/Settings/components/NavlinkForm.js @@ -86,17 +86,18 @@ export class NavlinkForm extends Component {     {link.title && link.title.trim().length ? link.title : no title} +
    +
    -   - +
    diff --git a/app/react/Settings/components/NavlinksSettings.js b/app/react/Settings/components/NavlinksSettings.js index f77da47ef5..a8f4451ef1 100644 --- a/app/react/Settings/components/NavlinksSettings.js +++ b/app/react/Settings/components/NavlinksSettings.js @@ -20,12 +20,12 @@ export class NavlinksSettings extends Component { render() { const {collection, links} = this.props; - const nameGroupClass = 'template-name form-group'; + const nameGroupClass = 'template-name'; const payload = {_id: collection.get('_id'), _rev: collection.get('_rev'), links}; return ( -
    +
    { return
  • {relationType.name} -
    +
      {t('System', 'Edit')} diff --git a/app/react/Settings/components/ThesaurisList.js b/app/react/Settings/components/ThesaurisList.js index e5d08fb809..d941952cd8 100644 --- a/app/react/Settings/components/ThesaurisList.js +++ b/app/react/Settings/components/ThesaurisList.js @@ -36,7 +36,7 @@ export class ThesaurisList extends Component { {this.props.dictionaries.toJS().map((dictionary, index) => { return
  • {dictionary.name} -
    +
      {t('System', 'Edit')} diff --git a/app/react/Settings/components/TranslationsList.js b/app/react/Settings/components/TranslationsList.js index 27553dd997..e4c549dc53 100644 --- a/app/react/Settings/components/TranslationsList.js +++ b/app/react/Settings/components/TranslationsList.js @@ -17,7 +17,7 @@ export class TranslationsList extends Component { {defaultTranslation.contexts.map((context, index) => { return
  • {context.label} -
    +
    {t('System', 'Translate')} diff --git a/app/react/Settings/components/specs/NavlinkForm.spec.js b/app/react/Settings/components/specs/NavlinkForm.spec.js index abd252a627..a05d097173 100644 --- a/app/react/Settings/components/specs/NavlinkForm.spec.js +++ b/app/react/Settings/components/specs/NavlinkForm.spec.js @@ -86,12 +86,12 @@ describe('NavlinkForm', () => { }); it('should have an edit button to activate editing link mode', () => { - component.find('button').last().props().onClick(); + component.find('button').first().props().onClick(); expect(props.editLink).toHaveBeenCalledWith('newLink1'); }); it('should have a remove button to remove a link', () => { - component.find('button').first().props().onClick(); + component.find('button').last().props().onClick(); expect(props.removeLink).toHaveBeenCalledWith(1); }); diff --git a/app/react/Templates/components/MetadataProperty.js b/app/react/Templates/components/MetadataProperty.js index 0ab6924775..a6c96e8d0e 100644 --- a/app/react/Templates/components/MetadataProperty.js +++ b/app/react/Templates/components/MetadataProperty.js @@ -46,28 +46,26 @@ export class MetadataProperty extends Component { return connectDragSource(connectDropTarget(
  • -
    -   {label} -
    - - -  Duplicated label  - - - - +   {label} +
    + + +  Duplicated label  + + + + +
    + +
    + {this.renderForm()}
    -
    - -
    - {this.renderForm()} -
    -
    +
  • )); } diff --git a/app/react/Templates/components/PropertyOption.js b/app/react/Templates/components/PropertyOption.js index c9ea457f85..7218467482 100644 --- a/app/react/Templates/components/PropertyOption.js +++ b/app/react/Templates/components/PropertyOption.js @@ -14,9 +14,11 @@ export class PropertyOption extends Component { return ( connectDragSource( -
  • -   -  {label} +
  • + + +  {label} +
  • ) ); diff --git a/app/react/Templates/scss/templates.scss b/app/react/Templates/scss/templates.scss index a341edca8b..64c76b6892 100644 --- a/app/react/Templates/scss/templates.scss +++ b/app/react/Templates/scss/templates.scss @@ -31,6 +31,8 @@ border-radius: 4px !important; border: 1px solid $c-grey-light !important; box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05) !important; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; .fa-clone, .fa-arrows-v { margin: 0 15px 0 0; diff --git a/app/react/Thesauris/scss/thesauris.scss b/app/react/Thesauris/scss/thesauris.scss index 949ec9111a..2a048aa7de 100644 --- a/app/react/Thesauris/scss/thesauris.scss +++ b/app/react/Thesauris/scss/thesauris.scss @@ -37,7 +37,7 @@ } .list-group-item .btn { position: absolute; - top: 10px; + top: 13px; right: 15px; } } diff --git a/app/react/components/Elements/scss/alert.scss b/app/react/components/Elements/scss/alert.scss index c8b169f3b2..e69de29bb2 100644 --- a/app/react/components/Elements/scss/alert.scss +++ b/app/react/components/Elements/scss/alert.scss @@ -1,2 +0,0 @@ -@import "../../../App/scss/Vars.scss"; - diff --git a/app/react/components/Elements/scss/feedback.scss b/app/react/components/Elements/scss/feedback.scss index 35d6c54256..129c940d4e 100644 --- a/app/react/components/Elements/scss/feedback.scss +++ b/app/react/components/Elements/scss/feedback.scss @@ -1,5 +1,3 @@ -@import "../../../App/scss/Vars.scss"; - .feedback { text-align: center; display: inline-block; @@ -9,7 +7,7 @@ font-style: italic; .fa { - color: $hardFontColor; + color: #222; } &-success {