From e3bd63777cd553dab2c55bdee72b6b1f70fbcdbe Mon Sep 17 00:00:00 2001 From: Jamal Jackson Date: Thu, 22 Sep 2016 11:46:52 -0400 Subject: [PATCH] updated add contact view for when user has empty address book --- public/img/item-ico-contact.svg | 14 +++++++ public/views/addressbook.html | 18 +++++++-- src/sass/main.scss | 1 + src/sass/mixins/layout.scss | 15 +++++++- src/sass/views/address-book.scss | 66 ++++++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+), 6 deletions(-) create mode 100644 public/img/item-ico-contact.svg create mode 100644 src/sass/views/address-book.scss diff --git a/public/img/item-ico-contact.svg b/public/img/item-ico-contact.svg new file mode 100644 index 000000000..4ae7623c0 --- /dev/null +++ b/public/img/item-ico-contact.svg @@ -0,0 +1,14 @@ + + + + Contact Avatar + Created with Sketch. + + + + + + + + + \ No newline at end of file diff --git a/public/views/addressbook.html b/public/views/addressbook.html index fea7fcf67..9262127bc 100644 --- a/public/views/addressbook.html +++ b/public/views/addressbook.html @@ -1,4 +1,4 @@ - + @@ -39,12 +39,22 @@ -
+ + diff --git a/src/sass/main.scss b/src/sass/main.scss index f8c178211..4974b6297 100644 --- a/src/sass/main.scss +++ b/src/sass/main.scss @@ -993,6 +993,7 @@ input[type=number] { @import "views/tab-settings"; @import "views/walletDetails"; @import "views/bitpayCard"; +@import "views/address-book"; @import "views/wallet-backup-phrase"; @import 'views/onboarding/onboarding'; @import "views/includes/walletActivity"; diff --git a/src/sass/mixins/layout.scss b/src/sass/mixins/layout.scss index c55eb4932..4d1934eae 100644 --- a/src/sass/mixins/layout.scss +++ b/src/sass/mixins/layout.scss @@ -1,8 +1,19 @@ @mixin center-block($topBottom: 0) { - float:none; + float: none; margin: $topBottom auto; } -.center-block{ +@mixin absolute-center() { + position: absolute; + transform: translate(-50%, -50%); + top: 50%; + left: 50%; +} + +.center-block { @include center-block(); +} + +.absolute-center{ + @include absolute-center(); } \ No newline at end of file diff --git a/src/sass/views/address-book.scss b/src/sass/views/address-book.scss new file mode 100644 index 000000000..730a5571a --- /dev/null +++ b/src/sass/views/address-book.scss @@ -0,0 +1,66 @@ +#view-address-book { + .scroll{ + height:100%; + } + #add-contact{ + img{ + width: 6rem; + display: inline-block; + } + a{ + text-decoration: none; + } + } + .list { + .item { + color: #444; + border-top: none; + padding-top: 1.5rem; + padding-bottom: 1.5rem; + &:before { + display: block; + position: absolute; + width: 100%; + height: 1px; + background: rgba(221, 221, 221, 0.3); + top: 0; + right: 0; + content: ''; + } + &.item-divider { + color: rgba(74, 74, 74, .8); + } + &.item-heading { + &:before { + top: 99% + } + } + &.item-icon-left{ + padding-left:80px; + } + &:nth-child(2) { + &:before { + width: 0; + } + } + .item-note { + color: rgb(58, 58, 58); + } + .big-icon-svg { + padding: 0 7px; + > .bg { + border-radius: 50%; + width: 40px; + height: 40px; + box-shadow: none; + background-repeat: no-repeat; + background-clip: padding-box; + background-size: 103%; + &.green { + background: rgb(1, 209, 162); + } + } + } + } + } +}