-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
97 lines (68 loc) · 1.35 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
/***** Externe Elemente *****/
h1 {
margin-top: 100px;
text-align: center;
}
h5 {
margin-left: 5%;
text-align: justify;
}
p {
font-size: 20pt;
margin-top: 2%;
text-align: center;
}
/*******************************************/
/******* Abakus - Interne Elemente ********/
/* Haupt-Fenster */
.abacus-frame {
position: relative;
border-left: 50px solid burlywood;
border-right: 50px solid burlywood;
background-color: snow;
border-radius: 20px;
}
/* Linien */
.lines {
height: 2px;
background-color: black;
margin-bottom: 12%;
}
/* Kugeln */
.balls {
width: 40px;
height: 40px;
border-radius: 100%;
margin-top: -20px;
float: left;
cursor: pointer;
}
/* Kugeln - die Kinder von Lines */
.lines:nth-child(5) .balls {
background-color: blue;
}
.lines:nth-child(4) .balls {
background-color: green;
}
.lines:nth-child(3) .balls {
background-color: darkgoldenrod;
}
.lines:nth-child(2) .balls {
background-color: indianred;
}
.lines:nth-child(1) .balls {
background-color: purple;
}
/* Zähler */
.counter {
font-weight: bold;
}
/* Verschieben nach Position "rechts/links" mit Animation */
.right {
transform: translateX(618px);
transition: all 1.5s ease-in-out;
}
.left {
transform: translateX(0%);
transition: all 1.5s ease-in-out;
}