diff options
| author | David Beguin <dbe@odoo.com> | 2019-02-15 12:18:17 +0000 |
|---|---|---|
| committer | David Beguin <dbe@odoo.com> | 2019-02-18 15:15:06 +0000 |
| commit | 2c01452d4b0a2b3907fc703b7bca9acc54e73fcd (patch) | |
| tree | 0cb71eb86bd9f72851d330bf855a563c09551c24 /addons/website_profile/static | |
| parent | 5125eecce507e6575bed43590af5b4025c0f064c (diff) | |
[IMP] website(_profile,_forum,_survey) : redesign website all_users page
As the eLearning (website_slides) is also using website_profile users,
the All Users page is moved from website_forum to website_profile, to be
useable in both forum and eLearning.
This page displays also the number of karma point, badges and certificates
of each user.
The users are sorted by their karma points and the first 3 users are
promoted on a podium.
Use span instead of b tag in profile page
Task ID : 1922159
PR #31109
Diffstat (limited to 'addons/website_profile/static')
| -rw-r--r-- | addons/website_profile/static/src/scss/website_profile.scss | 84 |
1 files changed, 83 insertions, 1 deletions
diff --git a/addons/website_profile/static/src/scss/website_profile.scss b/addons/website_profile/static/src/scss/website_profile.scss index cd590c9bb19..1a00803b1b9 100644 --- a/addons/website_profile/static/src/scss/website_profile.scss +++ b/addons/website_profile/static/src/scss/website_profile.scss @@ -145,6 +145,88 @@ $bronze: #eea91e; padding-right: 16px; } +// All Users Page +.o_wprofile_all_users_header { + margin: auto; + background-color: #875A7B !important; + > div:first-child { + margin: auto; + width: 100%; + max-width: 1140px; + padding: 32px 32px 0px 32px; + color: white; + top: 48px; + padding-top: 0px; + height: 250px; + } +} + +.o_wprofile_all_user_content { + position: relative; + top: -140px; + .o_wprofile_all_user_card_top3 { + cursor: pointer; + height: 325px; + text-align: center; + border-radius: 0px; + border: 0px; + .card-body { + padding-left: 0px; + padding-right: 0px; + > div:first-child { + margin-bottom: -40px; + div { + position: relative; + margin: auto; + right: -35px; + bottom: 55px; + width: 45px; + padding: 12px 0px 12px 0px; + border-radius: 50%; + } + .o_wprofile_top3_first { + background-color: $gold; + } + .o_wprofile_top3_second { + background-color: $silver; + } + .o_wprofile_top3_third { + background-color: $bronze; + } + } + :nth-child(4) { + position: absolute; + bottom: 0px; + width: 100%; + margin: auto; + border-top: 1px solid lightgrey; + div { + padding: 4% 0% 4% 0%; + border-radius: 0px; + } + } + } + } + .o_wprofile_all_users_card { + cursor: pointer; + border-radius: 0px; + border: 0px; + padding: 8px 15px 8px 15px; + > div > div:first-child > div > div:nth-child(3) { + padding-top: 12px; + padding-bottom: 12px; + } + > div > div:first-child > div > div:nth-child(2) { + padding: 0px; + width: 80px; + } + > div > div:first-child > div > div:first-child { + padding: 5% 0px 5% 16px; + width: 60px; + } + } +} + // Badges .badge-gold { color: $gold; @@ -169,7 +251,7 @@ $bronze: #eea91e; // Other stuffs .o_wprofile_bb_grey { - border-bottom: 2px solid lightgrey; + border-bottom: 2px solid lightgrey !important; } .country_flag { |
