-
Notifications
You must be signed in to change notification settings - Fork 45
/
cards.css
105 lines (99 loc) · 1.73 KB
/
cards.css
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
img.card {
width: 70px;
margin: 0;
padding: 0;
border: 0;
vertical-align: initial;
box-sizing: initial;
}
/*
* A hand is a div containing cards.
*/
.hand {
padding: 0;
margin: 0;
}
.active-hand img.card {
cursor: pointer;
}
/*
* A horizontal hand, class="hand hhand". The enitire card is visible.
*/
.hhand {
display: inline-block;
}
.hhand img.card {
padding-top: 10px;
}
.hhand.active-hand img.card:hover {
padding-top: 0px;
padding-bottom: 10px;
}
/*
* A vertical hand, class="hand vhand". The enitire card is visible.
*/
.vhand {
display: block;
}
.vhand img.card {
padding-right: 10px;
}
.vhand.active-hand img.card:hover {
padding-right: 0px;
padding-left: 10px;
}
/*
* A compact horizontal hand. Only the last card is entirely visible.
*/
.hhand-compact {
display: inline-block;
}
.hhand-compact img.card:first-child {
margin-left: 0px;
padding-top: 10px;
}
.hhand-compact img.card {
margin-left: -52px;
padding-top: 10px;
}
.hhand-compact.active-hand img.card:hover {
padding-top: 0px;
padding-bottom: 10px;
}
/*
* A compact vertical hand. Only the last card is entirely visible.
*/
.vhand-compact {
display: inline-block;
vertical-align: top;
}
.vhand-compact img.card:first-child {
display: block;
margin-top: 0px;
padding-right: 10px;
}
.vhand-compact img.card
{
display: block;
margin-top: -80px;
padding-right: 10px;
}
.vhand-compact.active-hand img.card:hover,
.active-hand .vhand-compact img.card:hover {
display: block;
padding-right: 0px;
padding-left: 10px;
}
/*
* A fanned hand. Only the last card is entirely visible.
*/
.fan {
display: inline-block;
vertical-align: top;
position: relative;
padding-bottom: 1em;
}
.fan img.card {
position: absolute;
width: 90px;
}