summaryrefslogtreecommitdiff
path: root/webcards/styles/client/card.css
blob: 62b4054a20e9cd17b2c56e52af8b0eb3509617d0 (plain)
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
card
{
    position: absolute;
    display: block;
    width: 150px;
    height: 225px;
    background-color: white;
    border: 6px double #bbb;
    border-radius: 10px;
    transition-duration: 0.2s;
    cursor: pointer;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
}

card:hover
{
    box-shadow: 0 0 10px #0f0;
}

carea
{
    padding-left: 2px;
    padding-right: 2px;
    position: absolute;
    display: flex;
    vertical-align: middle;
    width: 100%;
}

carea.top, carea.topl, carea.topr
{
    top: 0;
    height: 8%;
    text-align: center;
}

carea.topl
{
    width: 50%;
    text-align: left;
}

carea.topr
{
    right: 0;
    width: 50%;
    text-align: right;
}

carea.mid
{
    top: 8%;
    height: 84%;
}

carea.midt
{
    top: 8%;
    height: 42%;
}

carea.midb
{
    
    top: 50%;
    height: 42%;
}

carea.bot, carea.botl, carea.botr
{
    bottom: 0;
    height: 8%;
    text-align: center;
}

carea.botl
{
    width: 50%;
    text-align: left;
}

carea.botr
{
    right: 0;
    width: 50%;
    text-align: right;
}

carea.all
{
    top: 0;
    height: 100%;
}

ctext
{
    display: inline-block;
    flex: 1;
    font-size: small;
    height: auto;
}

cimage
{
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    flex: 1;
}

card[drag = "true"]
{
    z-index: 3;
}