-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
126 lines (108 loc) · 2.02 KB
/
styles.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
122
123
124
125
126
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f4f4f4;
}
#app {
text-align: center;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
h1 {
color: #333;
margin-bottom: 20px;
}
.input-container {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
}
input {
padding: 10px;
width: 250px;
border: 1px solid #ccc;
border-radius: 4px;
margin-right: 10px;
}
button {
padding: 10px 15px;
background-color: #69b3a2;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #5a9c8c;
}
#treeContainer {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 20px;
}
.node {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background-color: #69b3a2;
color: #fff;
border-radius: 50%;
margin: 5px;
position: relative;
transition: transform 0.3s ease;
}
.node:hover {
transform: scale(1.1);
}
.children {
display: flex;
justify-content: center;
margin-top: 20px;
}
.left, .right {
margin: 0 10px;
}
.left::before, .right::before {
content: '';
position: absolute;
width: 2px;
height: 20px;
background-color: #69b3a2;
}
.left::before {
left: 50%;
top: -20px;
}
.right::before {
right: 50%;
top: -20px;
}
.left::after, .right::after {
content: '';
position: absolute;
width: 20px;
height: 2px;
background-color: #69b3a2;
top: -2px;
}
.left::after {
left: 50%;
}
.right::after {
right: 50%;
}