diff --git a/src/components/Avatar/Avatar.css b/src/components/Avatar/Avatar.css index 774532c7..f247cb4c 100644 --- a/src/components/Avatar/Avatar.css +++ b/src/components/Avatar/Avatar.css @@ -1,12 +1,13 @@ @import '../../marketplace.css'; :root { - --avatarSize: 100%; - --avatarSizeMedium: 61px; - --avatarSizeLarge: 120px; + --avatarSize: 40px; + --avatarSizeMedium: 60px; + --avatarSizeLarge: 96px; /* Base for all avatars */ --avatarBase: { + font-family: "sofiapro", Helvetica, Arial, sans-serif; border-radius: 50%; /* Position possible initials to the center of the component */ @@ -27,7 +28,6 @@ /* Font is specific to this component, but defining it in marketplace.css makes it easier * to change font if brand look-and-feel needs such changes. */ - @apply --marketplaceSmallAvatarFontStyles; @apply --avatarBase; /* Layout */ @@ -36,6 +36,8 @@ } .initials { + font-size: 14px; + font-weight: var(--fontWeightBold); padding-bottom: 4px; } @@ -43,7 +45,6 @@ /* Medium Avatar */ .mediumAvatar { - @apply --marketplaceMediumAvatarFontStyles; @apply --avatarBase; /* Fixed dimensions */ @@ -52,6 +53,8 @@ } .mediumAvatar .initials { + font-size: 20px; + font-weight: var(--fontWeightSemiBold); padding-bottom: 5px; } @@ -59,7 +62,6 @@ /* Large Avatar */ .largeAvatar { - @apply --marketplaceH1FontStyles; @apply --avatarBase; /* Fixed dimensions */ @@ -68,5 +70,7 @@ } .largeAvatar .initials { + font-size: 30px; + font-weight: var(--fontWeightSemiBold); padding-bottom: 6px; } diff --git a/src/components/OrderDetailsPanel/OrderDetailsPanel.css b/src/components/OrderDetailsPanel/OrderDetailsPanel.css index 0813fc07..d4177d98 100644 --- a/src/components/OrderDetailsPanel/OrderDetailsPanel.css +++ b/src/components/OrderDetailsPanel/OrderDetailsPanel.css @@ -57,8 +57,6 @@ /* Layout */ display: block; - width: 61px; - height: 61px; @media (--viewportLarge) { margin-left: 48px; diff --git a/src/components/SaleDetailsPanel/SaleDetailsPanel.js b/src/components/SaleDetailsPanel/SaleDetailsPanel.js index f8c2825c..f24eec47 100644 --- a/src/components/SaleDetailsPanel/SaleDetailsPanel.js +++ b/src/components/SaleDetailsPanel/SaleDetailsPanel.js @@ -5,7 +5,7 @@ import * as propTypes from '../../util/propTypes'; import { createSlug } from '../../util/urlHelpers'; import { ensureListing, ensureTransaction, ensureBooking, ensureUser } from '../../util/data'; import { - AvatarMedium, + AvatarLarge, BookingBreakdown, NamedLink, ResponsiveImage, @@ -195,11 +195,11 @@ const SaleDetailsPanel = props => { />
{message}
diff --git a/src/components/TextInputField/TextInputField.css b/src/components/TextInputField/TextInputField.css index 4c298e89..57177cec 100644 --- a/src/components/TextInputField/TextInputField.css +++ b/src/components/TextInputField/TextInputField.css @@ -1,7 +1,6 @@ @import '../../marketplace.css'; .root { - } .input { diff --git a/src/components/TopbarDesktop/TopbarDesktop.css b/src/components/TopbarDesktop/TopbarDesktop.css index 1fcdb986..a978af93 100644 --- a/src/components/TopbarDesktop/TopbarDesktop.css +++ b/src/components/TopbarDesktop/TopbarDesktop.css @@ -185,8 +185,6 @@ .avatar { margin: 16px 0; - width: 41px; - height: 41px; } .profileMenuContent { diff --git a/src/containers/CheckoutPage/CheckoutPage.css b/src/containers/CheckoutPage/CheckoutPage.css index 9aca1057..381416f8 100644 --- a/src/containers/CheckoutPage/CheckoutPage.css +++ b/src/containers/CheckoutPage/CheckoutPage.css @@ -129,8 +129,6 @@ /* Layout */ display: block; - width: 61px; - height: 61px; @media (--viewportLarge) { margin-left: 48px; diff --git a/src/containers/InboxPage/InboxPage.css b/src/containers/InboxPage/InboxPage.css index 1cce33fd..bc8dc403 100644 --- a/src/containers/InboxPage/InboxPage.css +++ b/src/containers/InboxPage/InboxPage.css @@ -209,10 +209,6 @@ } } -.itemAvatarImage { - border-radius: 50%; -} - .rowNotificationDot { width: 6px; height: 6px; diff --git a/src/containers/ListingPage/ListingPage.css b/src/containers/ListingPage/ListingPage.css index 91e922a6..95faede2 100644 --- a/src/containers/ListingPage/ListingPage.css +++ b/src/containers/ListingPage/ListingPage.css @@ -161,14 +161,7 @@ /* Rendering context to the same lavel as listing image */ position: relative; - /* Layout */ - display: block; - width: 61px; - height: 61px; - @media (--viewportMedium) { - width: 96px; - height: 96px; position: absolute; left: 60px; top: -48px; @@ -177,32 +170,17 @@ } } -.avatar { - /* Font */ - @apply --marketplaceAvatarFontStyles; - - /* Layout */ - width: 100%; - height: 100%; - border-radius: 50%; - margin-top: 0; - margin-bottom: 0; - - /* Position possible initials to the center of the component */ - display: flex; - align-items: center; - justify-content: center; - - /* Colors */ - background-color: var(--matterColorAnti); - color: var(--matterColorLight); +.responsiveAvatarMedium { + display: none; /* Hide the medium avatar from the bigger screens */ + @media screen and (max-width: 767px) { + display: flex; + } } -/* Align the avatar initials properly within the circle */ -.avatar span { - margin-bottom: 5px; +.responsiveAvatarLarge { + display: none; /* Hide the large avatar from the smaller screens */ @media (--viewportMedium) { - margin-bottom: 0; + display: flex; } } diff --git a/src/containers/ListingPage/ListingPage.js b/src/containers/ListingPage/ListingPage.js index ab3bc4f3..aaa19803 100644 --- a/src/containers/ListingPage/ListingPage.js +++ b/src/containers/ListingPage/ListingPage.js @@ -12,7 +12,8 @@ import { formatMoney } from '../../util/currency'; import { createResourceLocatorString, findRouteByRouteName } from '../../util/routes'; import { ensureListing, ensureUser } from '../../util/data'; import { - Avatar, + AvatarLarge, + AvatarMedium, Button, Map, ModalInMobile, @@ -268,9 +269,11 @@ export class ListingPageComponent extends Component { >