diff --git a/css/_app-content-list.scss b/css/_app-content-list.scss deleted file mode 100644 index 3ab1c03b9..000000000 --- a/css/_app-content-list.scss +++ /dev/null @@ -1,132 +0,0 @@ -/* app content list & detail view */ -/* TO BE MOVED TO CORE apps.css ONCE STANDARDIZED ACROSS APPS */ -/* DO NOT MAKE ANY CHANGES SPECIFIC TO CONTACTS HERE! */ - -.app-content-list { - width: 30%; - height: 100%; - overflow-x: hidden; - overflow-y: auto; - border-right: 1px solid nc-darken($color-main-background, 8%); -} - -.app-content-detail { - position: absolute; - top: 0; - right: 0; - width: 70%; - height: 100%; - overflow-y: auto; - overflow-x: hidden; -} - -.app-content-list-button { - display: block; - margin: 10px auto; - padding: 10px; -} - -.app-content-list-item { - position: relative; - height: 68px; - border-top: 1px solid nc-darken($color-main-background, 8%); - cursor: pointer; - padding-left: 7px; -} - -.app-content-list-item:hover, -.app-content-list-item:focus, -.app-content-list-item.active { - background-color: nc-darken($color-main-background, 6%); -} - -.app-content-list-item-link { - display: block; - height: 100%; -} - -.app-content-list-item-icon { - position: absolute; - display: inline-block; - left: 6px; - top: 14px; -} - -.app-content-list-item-star { - position: absolute; - display: none; /* change to inline-block when we implement it */ - left: 16px; - top: 28px; - padding: 20px; - background-size: 16px; - z-index: 100; -} - -.app-content-list-item-line-one, -.app-content-list-item-line-two { - position: absolute; - display: inline-block; - width: 100%; - padding: 12px; - padding-left: 50px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.app-content-list-item-line-one.no-line-two { - padding-top: 24px; - padding-bottom: 24px; -} - -.app-content-list-item-line-two { - top: 25px; - opacity: .5; -} - -#app-navigation-toggle-back { - display: none; -} - -/* Mobile width < 768px */ -@media only screen and (max-width: 768px) { - - /* full width for message list on mobile */ - .app-content-list { - width: 100%; - background: $color-main-background; - position: relative; - z-index: 100; - } - - /* overlay message detail on top of message list */ - .app-content-detail { - background: $color-main-background; - width: 100%; - left: 0; - height: 100%; - top: 0; - box-shadow: 0 0 100px rgba(100, 100, 100, .9); - position: absolute; - } - - #app-navigation-toggle.showdetails { - transform: translate(-50px, 0); - } - - #app-navigation-toggle-back { - position: fixed; - display: inline-block !important; - top: 45px; - left: 0; - width: 44px; - height: 44px; - z-index: 149; - background-color: rgba(255, 255, 255, .7); - cursor: pointer; - opacity: .6; - transform: rotate(90deg); - } - - /* end of media query */ -} diff --git a/css/style.scss b/css/style.scss index 1fb6e5e96..3a8e23133 100644 --- a/css/style.scss +++ b/css/style.scss @@ -1,4 +1,3 @@ -@import "app-content-list"; @import "details"; @import "contactlist"; @import "navigation"; diff --git a/js/components/contact/contact_controller.js b/js/components/contact/contact_controller.js index ab8d3ca7f..eb14f842b 100644 --- a/js/components/contact/contact_controller.js +++ b/js/components/contact/contact_controller.js @@ -6,12 +6,6 @@ angular.module('contactsApp') errorMessage : t('contacts', 'This card is corrupted and has been fixed. Please check the data and trigger a save to make the changes permanent.'), }; - ctrl.openContact = function() { - $route.updateParams({ - gid: $routeParams.gid, - uid: ctrl.contact.uid()}); - }; - ctrl.getName = function() { // If lastName equals to firstName then none of them is set if (ctrl.contact.lastName() === ctrl.contact.firstName()) { diff --git a/templates/contact.html b/templates/contact.html index ac528cdba..3c29daaf3 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -1,8 +1,6 @@ - - -
{{ ctrl.contact.displayName() | firstCharacter }}
-
-
-
{{ ctrl.getName() | newContact }}
-
{{ctrl.contact.email()}}
-
+ +
{{ ctrl.contact.displayName() | firstCharacter }}
+
+
+
{{ ctrl.getName() | newContact }}
+
{{ctrl.contact.email()}}
diff --git a/templates/contactList.html b/templates/contactList.html index f5f7da06a..9cc7c55f5 100644 --- a/templates/contactList.html +++ b/templates/contactList.html @@ -1,14 +1,12 @@ -
-
-
-
- + + +
+
diff --git a/templates/importScreen.html b/templates/importScreen.html index bcfb79f92..a4e5f8fd1 100644 --- a/templates/importScreen.html +++ b/templates/importScreen.html @@ -1,9 +1,7 @@ -
-
- -

{{ctrl.t.importingTo}} {{ctrl.selectedAddressBook}}

- - {{ctrl.importedUser}} - {{ctrl.importPercent}} % -
+
+ +

{{ctrl.t.importingTo}} {{ctrl.selectedAddressBook}}

+ + {{ctrl.importedUser}} + {{ctrl.importPercent}} %
diff --git a/templates/main.php b/templates/main.php index c16c73671..c00cdcf94 100644 --- a/templates/main.php +++ b/templates/main.php @@ -47,10 +47,11 @@
-
- +
+
+
+
+
-
-