forked from kakaroto/Beyond20
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beyond20.css
121 lines (104 loc) · 2.44 KB
/
beyond20.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
/* This is needed so the tooltip's absolute position is
* relative to the message's position in the chatlog
*/
.beyond20-roll-result,
.beyond20-roller-error {
position: relative;
}
.beyond20-dice-roller-content {
background-color: #ddeedd;
border-radius: 10px;
padding: 10px;
}
.beyond20-roll-total {
text-decoration: underline;
}
.beyond20-message details summary, .beyond20-title {
font-style: italic;
color: #500;
font-size: 1.2em;
}
.beyond20-message .beyond20-description, .beyond20-message details table {
margin: 2px 0px;
border: 1px solid #333;
width: 100%;
border-spacing: 0;
border-collapse: collapse;
background-color: #DDD;
}
.beyond20-roll-cells,
.beyond20-roll-dice-rolls,
.beyond20-dice-roller-content .beyond20-roll-dice {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
.beyond20-roll-cell,
.beyond20-roll-die-result {
flex: 1 0 auto;
margin: 1px;
text-align: center;
border: thin solid black;
border-radius: 2px;
background-color: lightgray;
}
.beyond20-dice-roller-content .beyond20-roll-dice-formula {
flex-grow: 1;
}
.beyond20-dice-roller-content .beyond20-roll-dice-rolls {
flex-grow: 4;
}
.beyond20-dice-roller-content .beyond20-roll-formula {
background-color: #DDD;
text-align: center;
width: 100%;
}
.beyond20-roll-detail-crit {
color: green;
}
.beyond20-roll-detail-fail {
color: red;
}
.beyond20-roll-detail-crit-fail {
color: blue;
}
.beyond20-roll-detail-normal {
color: black;
}
.beyond20-roll-detail-discarded {
color: grey;
text-decoration: line-through;
opacity: 0.5;
}
.beyond20-tooltip .beyond20-tooltip-content {
display: none;
background-color: #f5f2ec;
text-align: left;
border-radius: 6px;
padding: 5px 10px;
margin: 10px;
width: 90%;
top: -50%;
left: 0;
border: 2px solid black;
/* Position the tooltip */
position: absolute;
z-index: 1;
}
.beyond20-tooltip:hover .beyond20-tooltip-content {
display: block;
/* Move the tooltip above the parent element. */
transform: translate(0, -100%);
}
.beyond20-tooltip-content .dice-tooltip {
display: block;
}
.beyond20-form-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: 3px 0;
}
.beyond20-form-row > * {
flex: 2;
}