summaryrefslogtreecommitdiff
path: root/addons/website_profile/static
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-05-06 12:27:51 +0200
committerChristophe Simonis <chs@odoo.com>2019-05-06 12:27:51 +0200
commita97037c6d442f186a798322a6eff586a3a118ef3 (patch)
tree930cf70045eb8ec16323ccab3c4f6023aedb83bb /addons/website_profile/static
parente5fc29564532e3c11a48b8c98a69675580d2c572 (diff)
parent78b3b650b0ddcb5fb53fda505e9e61510a1364fc (diff)
[MERGE] forward port branch saas-12.2 up to 78b3b650b0d
Diffstat (limited to 'addons/website_profile/static')
-rw-r--r--addons/website_profile/static/src/scss/website_profile.scss28
1 files changed, 20 insertions, 8 deletions
diff --git a/addons/website_profile/static/src/scss/website_profile.scss b/addons/website_profile/static/src/scss/website_profile.scss
index ad1771c5d62..8c3b572955f 100644
--- a/addons/website_profile/static/src/scss/website_profile.scss
+++ b/addons/website_profile/static/src/scss/website_profile.scss
@@ -1,7 +1,11 @@
-$owprofile-color-bg: desaturate(map-get($grays, "200"), 80%);
-$owprofile-tabs-height: 36px;
+// Retrive the tab's height by summ its properties
+$owprofile-tabs-height: ($nav-link-padding-y*2) + ($font-size-base * $line-height-base);
-.o_wprofile_wrap {
+// Overal page bg-color: Blend it 'over' the color choosen by the user
+// ($body-bg), rather than force it replacing the variable's value.
+$owprofile-color-bg: mix($body-bg, #efeff4);
+
+.o_wprofile_body {
background-color: $owprofile-color-bg;
}
@@ -10,16 +14,15 @@ $owprofile-tabs-height: 36px;
}
.o_wprofile_pict {
- @include size(30%);
- border-radius: 100%;
+ @include size(100%);
padding-top: 30%;
background-size: cover;
background-position: center;
@include media-breakpoint-up(md) {
- @include size(100%);
- border-radius: 0;
- padding-top: 100%;
+ padding-top: 70%;
+ border: 1px solid darken(#875A7B, 10%);
+ border-bottom-width: 0;
}
}
@@ -34,6 +37,14 @@ $owprofile-tabs-height: 36px;
}
}
+.o_wprofile_sidebar {
+ border: 1px solid $border-color;
+
+ @include media-breakpoint-up(md) {
+ border-top-width: 0;
+ }
+}
+
.o_wprofile_nav_tabs {
@include media-breakpoint-up(md) {
margin-top: $owprofile-tabs-height * -1;
@@ -42,6 +53,7 @@ $owprofile-tabs-height: 36px;
.nav-link {
border-radius: 0;
border-width: 0 1px;
+ line-height: $line-height-base;
@include o-hover-text-color(rgba(white, 0.8), white);
&, &:hover {