From 0940e6d6ed0d48860a24d5c6cb8669191e5e6b6a Mon Sep 17 00:00:00 2001 From: Stefanie Fluin Date: Thu, 8 Jun 2017 12:00:43 -0700 Subject: [PATCH] fix(aio): contributor img offset and hover fix (#17338) --- .../contributor/contributor.component.ts | 24 +++++++++---------- aio/src/styles/2-modules/_contributor.scss | 14 +++++++---- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/aio/src/app/embedded/contributor/contributor.component.ts b/aio/src/app/embedded/contributor/contributor.component.ts index f9fe187db6..b2aba27c03 100644 --- a/aio/src/app/embedded/contributor/contributor.component.ts +++ b/aio/src/app/embedded/contributor/contributor.component.ts @@ -13,16 +13,16 @@ import { CONTENT_URL_PREFIX } from 'app/documents/document.service';
- - - @@ -31,16 +31,16 @@ import { CONTENT_URL_PREFIX } from 'app/documents/document.service';
- - - diff --git a/aio/src/styles/2-modules/_contributor.scss b/aio/src/styles/2-modules/_contributor.scss index 6d0e456213..a046bcd03e 100644 --- a/aio/src/styles/2-modules/_contributor.scss +++ b/aio/src/styles/2-modules/_contributor.scss @@ -59,8 +59,8 @@ aio-contributor { .contributor-info { background: rgba($darkgray, 0.5); - height: 200px; - width: 200px; + height: 168px; + width: 168px; display: flex; flex-direction: row; justify-content: center; @@ -94,7 +94,7 @@ aio-contributor { } &:hover { - color: $blue; + color: $lightgray; } } } @@ -112,6 +112,10 @@ aio-contributor { transform-style:preserve-3d; transition:transform ease 500ms; + h3 { + margin: 8px 0; + } + .card-front, .card-back { width: 100%; height: 100%; @@ -159,8 +163,8 @@ aio-contributor { justify-content: center; border-radius: 50%; align-items: center; - height: 200px; - width: 200px; + height: 168px; + width: 168px; background-size: cover; background-position: center; margin: 8px auto;