-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
131 lines (115 loc) · 3.08 KB
/
styles.css
File metadata and controls
131 lines (115 loc) · 3.08 KB
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
body {
background: linear-gradient(to bottom right, #0a0a0a, #1a1a1a);
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
color: white;
}
.container {
height: 80%;
width: 80%;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
margin: auto;
}
.cube {
height: 200px;
width: 200px;
transition: border-radius 0.3s ease-in-out, transform 0.3s ease-in-out;
background-color: lightcyan;
box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}
.controller {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px; /* Espacio entre círculos */
margin: 20px auto;
max-width: 600px; /* Máximo ancho */
}
.circle {
position: relative;
width: 80px; /* Tamaño del círculo */
height: 80px; /* Tamaño del círculo */
border-radius: 50%;
border: 5px solid lightblue; /* Color del borde */
background-color: rgba(173, 216, 230, 0.5); /* Fondo semi-transparente */
display: flex;
justify-content: center;
align-items: center;
transition: border-color 0.3s ease-in-out, background-color 0.3s ease-in-out; /* Transiciones */
}
input {
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: transparent; /* Hacer el input transparente */
text-align: center;
font-size: 24px; /* Aumentar el tamaño de la fuente */
outline: none;
opacity: 0; /* Ocultar el input visualmente */
}
h1 {
text-align: center;
color: white;
}
.number {
font-size: 24px;
position: relative;
z-index: 1; /* Asegurarse de que el número esté encima */
color: black; /* Color del texto */
transition: color 0.3s ease-in-out; /* Transición de color */
}
.circle[data-value="positive"] {
border-color: green; /* Color cuando el valor aumenta */
background-color: rgba(144, 238, 144, 0.5); /* Fondo verde claro */
}
.circle[data-value="negative"] {
border-color: red; /* Color cuando el valor disminuye */
background-color: rgba(255, 160, 160, 0.5); /* Fondo rojo claro */
}
.copy-button {
display: block;
margin: 20px auto;
padding: 10px 20px;
font-size: 18px;
background-color: lightblue;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.copy-button:hover {
background-color: deepskyblue;
transform: scale(1.05); /* Efecto de aumento */
}
.preview {
text-align: center;
margin-top: 20px;
}
code {
display: block;
background-color: rgba(255, 255, 255, 0.1);
color: lightcyan;
padding: 10px;
border-radius: 5px;
font-size: 18px;
white-space: nowrap; /* Mantener el código en una línea */
}
footer{
font-size: 10px;
text-align: center;
color: lightgrey;
margin: 20px;
}
a{
color: lightgrey;
text-decoration: none;
transition: all 0.3s ease-in-out;
}
a:hover{
color: red;
}