11---
22---
33
4+ @import " custom-variables" ;
5+
6+ @keyframes card-hover {
7+ from { border-left-width : 4px ; }
8+ to { border-left-width : 8px ; }
9+ }
10+
11+ @keyframes card-hover-out {
12+ from { border-left-width : 8px ; }
13+ to { border-left-width : 4px ; }
14+ }
15+
416.user-card {
517 position : relative ;
618 min-height : 40px ;
719 min-width : 218px ;
820 background-color : #252525 ;
921 font-family : " Helvetica" , Arial , sans-serif ;
1022 color : #fff ;
11- border-radius : 2 px ;
23+ border-radius : 3 px ;
1224 text-align : center ;
1325 font-weight : 100 ;
14- padding : 5px ;
15- -moz-box-shadow : 0px 1px 5px rgba (0 , 0 , 0 , 0.7 );
16- -webkit-box-shadow : 0px 1px 5px rgba (0 , 0 , 0 , 0.7 );
17- -o-box-shadow : 0px 1px 5px rgba (0 , 0 , 0 , 0.7 );
18- box-shadow : 0px 1px 5px rgba (0 , 0 , 0 , 0.7 );
26+ padding : 5px 5px 5px 0 ;
27+ border-left : 4px solid $brand-primary ;
28+
29+ animation : card- hover- out;
30+ animation-duration : 0.1s ;
31+
32+ & :hover {
33+ border-left-color : darken ($brand-primary , 10% );
34+ animation : card- hover;
35+ animation-duration : 0.1s ;
36+ animation-fill-mode : forwards ;
37+ }
38+
39+ a {
40+ color : #eeeeee ;
41+ }
1942
2043 .user-card-avatar {
2144 position : absolute ;
2245 float : left ;
23- max- height : 100% ;
46+ height : 100% ;
2447 width : auto ;
25- max-width : 20% ;
2648 top : 50% ;
2749 -webkit-transform : translateY (-50% );
2850 -ms-transform : translateY (-50% );
3254
3355 img {
3456 vertical-align : middle ;
35- border : 1px solid #aaa ;
36- border-radius : 2px ;
37- height : 40px ;
57+ height : 100% ;
3858 }
3959 }
4060
5878 vertical-align : middle ;
5979 }
6080}
81+
82+ .user-card-light {
83+ background-color : #303030 ;
84+ }
0 commit comments