-
Notifications
You must be signed in to change notification settings - Fork 36
/
ionic.tdcards2.css
83 lines (72 loc) · 1.2 KB
/
ionic.tdcards2.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
/* CORE */
td-cards {
display: block;
}
td-card {
position: absolute;
top: calc(50% - 150px);
left: calc(50% - 150px);
width: 300px;
height: 300px;
box-shadow: 0px 1px 10px rgba(0,0,0,0.5);
border-radius: 3px;
background-color: transparent;
}
td-card img {
max-width: 100%;
border-radius: 4px;
}
.yes-text {
position: absolute;
top: 10px;
left: 10px;
font-size: 30px;
color: #4CAF50;
opacity: 0;
}
.no-text {
position: absolute;
top: 10px;
right: 10px;
font-size: 30px;
color: #F44336;
opacity: 0;
}
.discard {
position: absolute;
bottom: 20px;
padding: 10px 15px;
color: #FFF;
font-weight: bold;
background-color: rgba(0, 0, 0, 0.7);
border-radius: 0 5px 5px 0;
}
td-card#end-card {
background-color: none;
box-shadow: none;
border-radius: none;
}
#end-card i {
position: absolute;
top: calc(50% - 55px);
left: calc(50% - 40px);
font-size: 100px;
}
.fade {
-webkit-transition: 0.2s opacity linear;
transition: 0.2s opacity linear;
opacity: 0;
}
/* DEMO */
.background-grey {
background-color: #F7F7F7;
}
.td-title {
position: absolute;
top: 70px;
width: 100%;
text-align: center;
}
.td-title span {
font-weight: bold;
}