diff options
author | Matthew Walsh <mattwcstrfan@gmail.com> | 2017-06-18 15:09:03 -0700 |
---|---|---|
committer | Matthew Walsh <mattwcstrfan@gmail.com> | 2017-10-15 21:14:21 -0700 |
commit | 56094cb4bda18283533658aec61efb667a1ef0dd (patch) | |
tree | 516ff8ba7c54862482125296445f3948aff98b1c /app/javascript/styles | |
parent | cdc22d23b91e8c0140d3048ae8a11e749a434ac8 (diff) |
1.6 changed files for unified avatar styling -- updated to restore unity
Diffstat (limited to 'app/javascript/styles')
-rw-r--r-- | app/javascript/styles/about.scss | 8 | ||||
-rw-r--r-- | app/javascript/styles/accounts.scss | 20 |
2 files changed, 11 insertions, 17 deletions
diff --git a/app/javascript/styles/about.scss b/app/javascript/styles/about.scss index a15afc32c..8c37310e8 100644 --- a/app/javascript/styles/about.scss +++ b/app/javascript/styles/about.scss @@ -424,16 +424,14 @@ text-align: center; .avatar { - width: 80px; - height: 80px; + @include avatar-size(80px); margin: 0 auto; margin-bottom: 15px; img { + @include avatar-radius(); + @include avatar-size(80px); display: block; - width: 80px; - height: 80px; - border-radius: 48px; } } diff --git a/app/javascript/styles/accounts.scss b/app/javascript/styles/accounts.scss index e2db9992d..b00dd8c1e 100644 --- a/app/javascript/styles/accounts.scss +++ b/app/javascript/styles/accounts.scss @@ -83,16 +83,15 @@ } .avatar { - width: 120px; + @include avatar-size(120px); margin: 0 auto; position: relative; z-index: 2; img { - width: 120px; - height: 120px; + @include avatar-radius(); + @include avatar-size(120px); display: block; - border-radius: 120px; box-shadow: 0 0 15px rgba($base-shadow-color, 0.2); } } @@ -408,14 +407,12 @@ } .avatar { - width: 80px; - height: 80px; + @include avatar-size(80px); img { display: block; - width: 80px; - height: 80px; - border-radius: 80px; + @include avatar-radius(); + @include avatar-size(80px); border: 2px solid $simple-background-color; background: $simple-background-color; } @@ -495,15 +492,14 @@ } & > div { + @include avatar-size(48px); float: left; margin-right: 10px; - width: 48px; - height: 48px; } .avatar { + @include avatar-radius(); display: block; - border-radius: 4px; } .display-name { |