From 50fb1ccddd518bd796d794c95b44f1b0feaa090a Mon Sep 17 00:00:00 2001 From: Tallys Martins Date: Mon, 11 Jul 2016 15:16:24 -0300 Subject: [PATCH] Changes /profile page css style --- src/app/index.scss | 6 ++++++ src/app/layout/blocks/communities/communities-block.html | 12 ++++++------ src/app/layout/scss/skins/_whbl.scss | 2 +- src/app/profile/image/image.html | 2 +- src/app/profile/info/profile-info.component.ts | 3 --- src/app/profile/info/profile-info.html | 6 +++--- src/app/profile/info/profile-info.scss | 0 src/app/profile/profile.component.ts | 5 ----- src/app/profile/profile.html | 1 + src/app/profile/profile.scss | 35 +++++++++++++++++++++++++++++------ 10 files changed, 47 insertions(+), 25 deletions(-) create mode 100644 src/app/profile/info/profile-info.scss diff --git a/src/app/index.scss b/src/app/index.scss index 4e0eefc..153127b 100644 --- a/src/app/index.scss +++ b/src/app/index.scss @@ -39,6 +39,12 @@ $break-sm-min: 992px; $break-xxs-max: ($break-xxs-min - 1); $break-sm-max: ($break-sm-min - 1); $break-xs-max: ($break-xs-min - 1); +// TODO: improve this method to collect all the paddings with a single var +$wrapper-padding: 15px 15px 35px 15px; +$wrapper-padding-top: 15px; +$wrapper-padding-right: 15px; +$wrapper-padding-bottom: 35px; +$wrapper-padding-left: 15px; @import "../../bower_components/bootswatch/flatly/_variables.scss"; diff --git a/src/app/layout/blocks/communities/communities-block.html b/src/app/layout/blocks/communities/communities-block.html index 4ddb907..0ffd238 100644 --- a/src/app/layout/blocks/communities/communities-block.html +++ b/src/app/layout/blocks/communities/communities-block.html @@ -1,6 +1,6 @@ -
- - - -

{{profile.name}}

-
+
+ + + +

{{profile.name}}

+
diff --git a/src/app/layout/scss/skins/_whbl.scss b/src/app/layout/scss/skins/_whbl.scss index 2d42de2..a81d6ef 100644 --- a/src/app/layout/scss/skins/_whbl.scss +++ b/src/app/layout/scss/skins/_whbl.scss @@ -122,7 +122,7 @@ $whbl-font-color: #16191c; margin-bottom: 0; position: relative; min-height: 1200px; - padding: 15px 15px 35px 15px; + padding: $wrapper-padding; margin-left: 220px; // border-left: 2px solid #e7ebee; } diff --git a/src/app/profile/image/image.html b/src/app/profile/image/image.html index 9bf6c30..c8bba27 100644 --- a/src/app/profile/image/image.html +++ b/src/app/profile/image/image.html @@ -1,4 +1,4 @@ - + diff --git a/src/app/profile/info/profile-info.component.ts b/src/app/profile/info/profile-info.component.ts index 64acaa7..2d35077 100644 --- a/src/app/profile/info/profile-info.component.ts +++ b/src/app/profile/info/profile-info.component.ts @@ -24,9 +24,6 @@ export class ProfileInfoComponent { init() { this.profileService.getCurrentProfile().then((profile: noosfero.Profile) => { this.profile = profile; - return this.profileService.getActivities(this.profile.id); - }).then((response: restangular.IResponse) => { - this.activities = response.data.activities; }); } } diff --git a/src/app/profile/info/profile-info.html b/src/app/profile/info/profile-info.html index f07c9e0..eb1068a 100644 --- a/src/app/profile/info/profile-info.html +++ b/src/app/profile/info/profile-info.html @@ -28,13 +28,13 @@ --> -
+
-
+
- +