forked from ev3dev/ev3dev.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser-cards.scss
More file actions
84 lines (71 loc) · 1.67 KB
/
user-cards.scss
File metadata and controls
84 lines (71 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
---
@import "custom-variables";
@keyframes card-hover {
from { border-left-width: 4px; }
to { border-left-width: 8px; }
}
@keyframes card-hover-out {
from { border-left-width: 8px; }
to { border-left-width: 4px; }
}
.user-card {
position: relative;
min-height: 40px;
min-width: 218px;
background-color: #252525;
font-family: "Helvetica", Arial, sans-serif;
color: #fff;
border-radius: 3px;
text-align: center;
font-weight: 100;
padding: 5px 5px 5px 0;
border-left: 4px solid $brand-primary;
animation: card-hover-out;
animation-duration: 0.1s;
&:hover {
border-left-color: darken($brand-primary, 10%);
animation: card-hover;
animation-duration: 0.1s;
animation-fill-mode: forwards;
}
a {
color: #eeeeee;
}
.user-card-avatar {
position: absolute;
float: left;
height: 100%;
width: 0;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
-moz-transform: translateY(-50%);
transform: translateY(-50%);
img {
vertical-align: middle;
height: 100%;
}
}
.user-card-text {
clear: both;
margin-left: auto;
margin-right: 0;
width: 75%;
vertical-align: middle;
}
.user-card-name {
font-size: 1.1em;
font-weight: normal;
vertical-align: middle;
}
.user-card-login {
font-size: 0.9em;
font-weight: 100;
vertical-align: middle;
}
}
.user-card-light {
background-color: #303030;
}