JarleyPro commited on
Commit
3a2d43b
·
verified ·
1 Parent(s): b274a7f

se sigue sin ver los numeros y que sea simetrico los espacios

Browse files
Files changed (1) hide show
  1. index.html +7 -5
index.html CHANGED
@@ -34,16 +34,17 @@
34
  transform-origin: center;
35
  color: white;
36
  font-weight: bold;
37
- font-size: 1.8rem;
38
- padding: 0 10px;
39
  box-sizing: border-box;
40
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
41
  left: 0;
42
  top: 50%;
43
- transform: translateY(-50%) rotate(calc(var(--segment-angle) / 2)) !important;
44
  z-index: 10;
 
45
  }
46
- .lg\:w-120 {
47
  width: 32rem;
48
  }
49
  .lg\:h-120 {
@@ -199,6 +200,7 @@ let remainingQuestions = [...questions];
199
  questionText.className = 'wheel-text';
200
  questionText.style.setProperty('--segment-angle', `${360 / questions.length}deg`);
201
  questionText.textContent = q.number;
 
202
  segment.appendChild(questionText);
203
  wheel.appendChild(segment);
204
  });
 
34
  transform-origin: center;
35
  color: white;
36
  font-weight: bold;
37
+ font-size: 2rem;
38
+ padding: 0;
39
  box-sizing: border-box;
40
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
41
  left: 0;
42
  top: 50%;
43
+ transform: translateY(-50%) rotate(calc(var(--segment-angle) / 2)) translateX(40%) !important;
44
  z-index: 10;
45
+ pointer-events: none;
46
  }
47
+ .lg\:w-120 {
48
  width: 32rem;
49
  }
50
  .lg\:h-120 {
 
200
  questionText.className = 'wheel-text';
201
  questionText.style.setProperty('--segment-angle', `${360 / questions.length}deg`);
202
  questionText.textContent = q.number;
203
+ questionText.style.transform = `translateY(-50%) rotate(calc(${360 / questions.length}deg / 2)) translateX(40%)`;
204
  segment.appendChild(questionText);
205
  wheel.appendChild(segment);
206
  });