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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
/* Clause parsing styles */
.clauses-container {
display: inline-block;
margin: 1rem 0;
padding: 0.5rem;
background-color: rgba(255, 255, 255, 0.8);
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.clause {
/* width: 90%; */
/* flex-wrap: wrap; */
display: flex;
cursor: pointer;
transition: all 0.2s ease;
/* */
/* border-bottom: 0.5px solid var(--clause-underline-color); */
/* border-radius: 0.3rem; */
}
.clause-inner {
position: relative;
}
.clause-pos {
font-size: 0.7rem;
text-align: center;
border-bottom: 0.5px solid var(--clause-underline-color);
border-radius: 0.3rem;
}
.word-pos {
font-size: 0.7rem;
position: absolute;
top: -1rem;
left: 50%;
transform: translateX(-50%);
}
.clause.bottom {
border-bottom: 8px solid var(--clause-underline-color);
border-radius: 0.3rem;
}
.clause.underline {
/* Add text-decoration properties */
text-decoration-line: underline;
text-decoration-color: var(--clause-underline-color);
/* Use CSS variable */
text-decoration-thickness: 4px;
text-decoration-skip-ink: none;
/* Adjust thickness as needed */
text-underline-offset: 2px;
}
.clause.gradient {
text-decoration: none;
background-image: linear-gradient(to right, var(--clause-underline-color) 0%, black 100%);
background-position: 0 1.1em;
background-repeat: repeat-x;
background-size: 100% 4px;
display: inline;
/* Keep it as inline */
}
.clause.selected {
background-color: rgba(220, 200, 255, 0.3);
border-radius: 4px;
}
.clause:hover {
background-color: rgba(220, 200, 255, 0.2);
transform: translateY(-1px);
}
/* New rule to disable text-decoration based on class from component */
.clause.no-underline {
text-decoration: none !important;
border-bottom: none;
}
.clause.punctuation {
margin: 0 0.05rem;
padding: 0;
}
.clause.leaf-node {
padding: 0.1rem 0.2rem;
}
.punctuation-leaf {
color: #666;
font-weight: normal;
margin: 0 0.05rem;
}
/* Improve spacing and styling for leaf nodes */
.tree-leaf {
font-weight: 500;
color: #333;
}
.tree-leaf {
display: inline;
padding: 0.1rem 0.3rem 0 0.3rem;
margin: 0 0.1rem;
font-weight: 500;
color: #333;
}
/* Words container */
.words-container {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
padding: 0.5rem;
background-color: rgba(255, 255, 255, 0.8);
border-radius: 8px;
transition: all 0.3s ease;
}
/* Mini spinner for clauses */
.clause .mini-spinner {
display: inline-block;
width: 8px;
height: 8px;
margin: 0 2px;
}
/* Tooltip for syntactic information */
.syntax-tooltip {
position: absolute;
top: -30px;
left: 50%;
transform: translateX(-50%);
background-color: rgba(0, 0, 0, 0.8);
color: white;
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
z-index: 100;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
}
.clause:hover .syntax-tooltip {
opacity: 1;
}
|