forked from atomantic/JavaScript-Playing-Cards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playingCards.ui.css
142 lines (136 loc) · 2.15 KB
/
playingCards.ui.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/**
* deck of cards.
* This can be used to play standard card games (which could be additional rule modules attached to this set)
*
* @author Copyright (c) 2010 Adam Eivy (antic | atomantic)
* @license Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
.playingCard { /* to show the back of the card, hide the front */
position: relative;
background-color:#036;
border:1px solid #666;
font-size: 20px;
float: left;
width: 3.8em;
height: 5em;
}
.playingCard .front {
background-color: #fff;
color: #000;
position: absolute;
width: 100%;
height: 100%;
}
.playingCard .corner {
position: absolute;
font-size: .5em;
left: 0.25em;
top: 0.25em;
}
.playingCard .cornerBR {
left: auto;
top: auto;
right: 0.25em;
bottom: 0.25em;
}
.playingCard .flip {
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
/*filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*/
writing-mode: tb-rl;
}
.playingCard .red {
color: #f00;
}
.playingCard .suit {
position: absolute;
z-index:2;
}
/* large center Ace style suit */
.playingCard .suit0 {
font-size: 3em;
left: 0.3em;
top: 0.3em;
}
.playingCard .face {
position: absolute;
z-index:1;
border: 1px solid #000;
left: 0.6em;
top: 0.45em;
width: 2.5em;
height: 4.em;
}
/*
.playingCard .J {
background-image: url("img/J.gif");
}
.playingCard .Q {
background-image: url("img/Q.gif");
}
.playingCard .K {
background-image: url("img/K.gif");
}
*/
.playingCard .A1 {
left: 0.7em;
top: 0.5em;
}
.playingCard .A2 {
left: 0.7em;
top: 1.5em;
}
.playingCard .A3 {
left: 0.7em;
top: 2.0em;
}
.playingCard .A4 {
left: 0.7em;
top: 2.5em;
}
.playingCard .A5 {
left: 0.7em;
top: 3.5em;
}
.playingCard .B1 {
left: 1.6em;
top: 0.5em;
}
.playingCard .B2 {
left: 1.6em;
top: 1.0em;
}
.playingCard .B3 {
left: 1.6em;
top: 2.0em;
}
.playingCard .B4 {
left: 1.6em;
top: 3.0em;
}
.playingCard .B5 {
left: 1.6em;
top: 3.5em;
}
.playingCard .C1 {
left: 2.45em;
top: 0.5em;
}
.playingCard .C2 {
left: 2.45em;
top: 1.5em;
}
.playingCard .C3 {
left: 2.45em;
top: 2.0em;
}
.playingCard .C4 {
left: 2.45em;
top: 2.5em;
}
.playingCard .C5 {
left: 2.45em;
top: 3.5em;
}