-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
110 lines (91 loc) · 1.86 KB
/
style.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
@charset "UTF-8";
@media all {
/* Allgemeine Darstellung */
html, body {
font-family: Verdana, Arial, Helvetica;
}
/* Spielfeld zentrieren */
.container {
width: 50%;
margin: auto;
text-align: center;
}
/* Darstellung eines Würfels */
.dice {
width: 50px;
height: 50px;
margin: 10px;
cursor: pointer;
display: inline-block;
border: 2px solid black;
border-radius: 10px;
background: white left top no-repeat;
background-size: contain;
}
/* Würfel mit dem Wert 1 */
.dice[value="1"] {
background-image: url("img/1.png");
}
/* Würfel mit dem Wert 2 */
.dice[value="2"] {
background-image: url("img/2.png");
}
/* Würfel mit dem Wert 3 */
.dice[value="3"] {
background-image: url("img/3.png");
}
/* Würfel mit dem Wert 4 */
.dice[value="4"] {
background-image: url("img/4.png");
}
/* Würfel mit dem Wert 5 */
.dice[value="5"] {
background-image: url("img/5.png");
}
/* Würfel mit dem Wert 6 */
.dice[value="6"] {
background-image: url("img/6.png");
}
/* Würfel Darstellung wenn dieser gehalten wird */
.dice[data-hold] {
border-color: red;
opacity: 0.5;
}
/* Mouseover über einen Würfel */
.dice:hover {
box-shadow: 0 0 8px black;
transform: scale(1.2);
}
.disabled {
pointer-events: none;
}
/* Darstellung des Buttons */
#roll {
cursor: pointer;
display: block;
padding: 10px;
margin: 0 auto;
}
/* Tabelle darstellen */
table {
width: 100%;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
width: 40%;
padding: 10px;
}
.savedDices {
width: 20%;
}
/* Felder bei einem Mouseover hervorheben */
td:not(#score, .savedDices){
cursor: pointer;
}
td:not(#score, .savedDices):hover {
background-color: lightgrey;
}
}