2016-10-31 15:14:05 -04:00
|
|
|
@mixin avatar-size($size, $margin-right) {
|
|
|
|
width: $size;
|
|
|
|
height: $size;
|
|
|
|
margin-right: $margin-right;
|
|
|
|
}
|
|
|
|
|
2016-11-03 10:26:22 -04:00
|
|
|
.avatar-circle {
|
2013-04-06 07:35:17 -04:00
|
|
|
float: left;
|
2016-10-31 15:14:05 -04:00
|
|
|
margin-right: 15px;
|
|
|
|
border-radius: $avatar_radius;
|
2016-11-30 08:25:25 -05:00
|
|
|
border: 1px solid $avatar-border;
|
2016-10-31 15:14:05 -04:00
|
|
|
&.s16 { @include avatar-size(16px, 6px); }
|
2017-05-18 20:06:04 -04:00
|
|
|
&.s18 { @include avatar-size(18px, 6px); }
|
|
|
|
&.s19 { @include avatar-size(19px, 6px); }
|
2016-10-31 15:14:05 -04:00
|
|
|
&.s20 { @include avatar-size(20px, 7px); }
|
|
|
|
&.s24 { @include avatar-size(24px, 8px); }
|
|
|
|
&.s26 { @include avatar-size(26px, 8px); }
|
|
|
|
&.s32 { @include avatar-size(32px, 10px); }
|
|
|
|
&.s36 { @include avatar-size(36px, 10px); }
|
|
|
|
&.s40 { @include avatar-size(40px, 10px); }
|
|
|
|
&.s46 { @include avatar-size(46px, 15px); }
|
|
|
|
&.s48 { @include avatar-size(48px, 10px); }
|
|
|
|
&.s60 { @include avatar-size(60px, 12px); }
|
|
|
|
&.s70 { @include avatar-size(70px, 14px); }
|
|
|
|
&.s90 { @include avatar-size(90px, 15px); }
|
2017-10-02 04:49:49 -04:00
|
|
|
&.s100 { @include avatar-size(100px, 15px); }
|
2016-10-31 15:14:05 -04:00
|
|
|
&.s110 { @include avatar-size(110px, 15px); }
|
|
|
|
&.s140 { @include avatar-size(140px, 15px); }
|
|
|
|
&.s160 { @include avatar-size(160px, 20px); }
|
|
|
|
}
|
|
|
|
|
|
|
|
.avatar {
|
2016-11-03 10:26:22 -04:00
|
|
|
@extend .avatar-circle;
|
2018-04-06 13:50:48 -04:00
|
|
|
transition-property: none;
|
2017-02-10 20:21:18 -05:00
|
|
|
|
2013-04-06 07:35:17 -04:00
|
|
|
width: 40px;
|
2015-01-23 13:39:23 -05:00
|
|
|
height: 40px;
|
|
|
|
padding: 0;
|
2017-07-24 13:36:52 -04:00
|
|
|
background: $avatar-background;
|
|
|
|
overflow: hidden;
|
2013-04-06 07:35:17 -04:00
|
|
|
|
|
|
|
&.avatar-inline {
|
|
|
|
float: none;
|
2016-10-13 13:40:06 -04:00
|
|
|
display: inline-block;
|
2017-11-03 18:55:17 -04:00
|
|
|
margin-left: 2px;
|
2017-01-24 08:41:56 -05:00
|
|
|
flex-shrink: 0;
|
|
|
|
-webkit-flex-shrink: 0;
|
2013-04-06 07:35:17 -04:00
|
|
|
|
2015-01-23 21:18:04 -05:00
|
|
|
&.s16 { margin-right: 4px; }
|
|
|
|
&.s24 { margin-right: 4px; }
|
2013-04-06 07:35:17 -04:00
|
|
|
}
|
|
|
|
|
2016-10-13 13:40:06 -04:00
|
|
|
&.center {
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 1.8em;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2016-07-22 09:47:44 -04:00
|
|
|
&.avatar-tile {
|
2016-09-09 12:59:36 -04:00
|
|
|
border-radius: 0;
|
2017-11-02 19:59:51 -04:00
|
|
|
border: 0;
|
2015-01-29 20:30:51 -05:00
|
|
|
}
|
2017-01-04 18:38:54 -05:00
|
|
|
|
|
|
|
&:not([href]):hover {
|
2017-07-18 10:58:12 -04:00
|
|
|
border-color: darken($avatar-border, 10%);
|
2017-01-04 18:38:54 -05:00
|
|
|
}
|
2013-04-06 07:35:17 -04:00
|
|
|
}
|
2014-01-25 12:15:44 -05:00
|
|
|
|
|
|
|
.identicon {
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
|
|
&.s16 { font-size: 12px; line-height: 1.33; }
|
2017-12-22 01:58:44 -05:00
|
|
|
&.s24 { font-size: 13px; line-height: 1.8; }
|
2014-01-25 12:15:44 -05:00
|
|
|
&.s26 { font-size: 20px; line-height: 1.33; }
|
2016-07-22 09:47:44 -04:00
|
|
|
&.s32 { font-size: 20px; line-height: 30px; }
|
|
|
|
&.s40 { font-size: 16px; line-height: 38px; }
|
|
|
|
&.s60 { font-size: 32px; line-height: 58px; }
|
2016-12-20 09:25:39 -05:00
|
|
|
&.s70 { font-size: 34px; line-height: 70px; }
|
2016-07-22 09:47:44 -04:00
|
|
|
&.s90 { font-size: 36px; line-height: 88px; }
|
2017-10-02 04:49:49 -04:00
|
|
|
&.s100 { font-size: 36px; line-height: 98px; }
|
2017-08-24 10:13:24 -04:00
|
|
|
&.s110 { font-size: 40px; line-height: 108px; font-weight: $gl-font-weight-normal; }
|
2016-07-22 09:47:44 -04:00
|
|
|
&.s140 { font-size: 72px; line-height: 138px; }
|
|
|
|
&.s160 { font-size: 96px; line-height: 158px; }
|
2015-01-25 01:03:30 -05:00
|
|
|
}
|
2016-10-31 15:14:05 -04:00
|
|
|
|
2016-11-03 10:26:22 -04:00
|
|
|
.avatar-container {
|
|
|
|
@extend .avatar-circle;
|
2016-10-31 15:14:05 -04:00
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
|
2017-07-28 17:41:40 -04:00
|
|
|
a {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2016-10-31 15:14:05 -04:00
|
|
|
.avatar {
|
|
|
|
border-radius: 0;
|
2017-11-02 19:59:51 -04:00
|
|
|
border: 0;
|
2016-10-31 15:14:05 -04:00
|
|
|
height: auto;
|
2016-11-26 16:14:02 -05:00
|
|
|
width: 100%;
|
2016-10-31 15:14:05 -04:00
|
|
|
margin: 0;
|
|
|
|
align-self: center;
|
|
|
|
}
|
2017-08-07 17:44:42 -04:00
|
|
|
|
|
|
|
&.s40 { min-width: 40px; min-height: 40px; }
|
2016-11-03 10:26:22 -04:00
|
|
|
}
|
2017-05-04 08:11:15 -04:00
|
|
|
|
|
|
|
.avatar-counter {
|
|
|
|
background-color: $gray-darkest;
|
|
|
|
color: $white-light;
|
2017-07-18 10:58:12 -04:00
|
|
|
border: 1px solid $avatar-border;
|
2017-05-04 08:11:15 -04:00
|
|
|
border-radius: 1em;
|
|
|
|
font-family: $regular_font;
|
|
|
|
font-size: 9px;
|
|
|
|
line-height: 16px;
|
|
|
|
text-align: center;
|
|
|
|
}
|