CSS - Ayuda con CSS

 
Vista:
sin imagen de perfil

Ayuda con CSS

Publicado por Edgar (2 intervenciones) el 18/09/2022 19:51:21
Hola buen día.

el día de hoy me encontré un detalle que no pedo con el ya que el CSS no es mi mejor practica pero me adapto a todo.

estoy incorporando un botón de WhatsApp desde el repositorio de GitHub, https://github.com/jerfeson/floating-whatsapp/tree/avatar
este me agrado por su simplicidad pero a la hora de personalizar y validar el código CSS en W3C me sale con que tiene un par de errores que no puedo solucionar

URI : TextArea
26 Error de análisis sintáctico [ : hover]
29 Error de análisis sintáctico [ : hover .floating-wpp-button]

Este es el código CSS el cual no eh modificado es el mismo del GitHub.

.floating-wpp {
position : fixed;
bottom : 15px;
left : 15px;
font-size : 14px;
transition : bottom .2s
}
.floating-wpp .floating-wpp-button {
position : relative;
border-radius : 50%;
box-shadow : 1px 1px 4px rgba(60, 60, 60, 0.4);
transition : box-shadow .2s;
cursor : pointer;
overflow : hidden
}
.floating-wpp .floating-wpp-button img, .floating-wpp .floating-wpp-button svg {
position : absolute;
width : 100%;
height : auto;
object-fit : cover;
top : 50%;
left : 50%;
transform : translate3d(-50%, -50%, 0);
border-radius : 50%
}
.floating-wpp : hover {
bottom : 17px
}
.floating-wpp : hover .floating-wpp-button {
box-shadow : 1px 2px 8px rgba(60, 60, 60, 0.4)
}
.floating-wpp .floating-wpp-popup {
border-radius : 6px;
background-color : #e5ddd5;
position : absolute;
overflow : hidden;
padding : 0;
box-shadow : 1px 2px 8px rgba(60, 60, 60, 0.25);
width : 0;
height : 0;
bottom : 0;
opacity : 0;
transition : bottom .1s ease-out, opacity .2s ease-out;
transform-origin : bottom
}
.floating-wpp .floating-wpp-popup.active {
padding : 0 12px 12px 12px;
width : 260px;
height : auto;
bottom : 82px;
opacity : 1
}
.floating-wpp .floating-wpp-popup .floating-wpp-message {
background-color : white;
padding : 8px;
border-radius : 0 5px 5px 5px;
box-shadow : 1px 1px 1px rgba(0, 0,0, 0.15);
opacity : 0;
transition : opacity .2s
}
.floating-wpp .floating-wpp-popup.active .floating-wpp-message {
opacity : 1;
transition-delay : .2s
}
.floating-wpp .floating-wpp-popup .floating-wpp-head {
text-align : right;
color : white;
margin : 0 -15px 10px -15px;
padding : 6px 12px;
display : flex;
justify-content : space-between;
cursor : pointer
}
.floating-wpp .floating-wpp-input-message {
background-color : white;
margin : 10px -15px -15px -15px;
padding : 0 15px;
display : flex;
align-items : center
}
.floating-wpp .floating-wpp-input-message textarea {
border : 1px solid #ccc;
border-radius : 4px;
box-shadow : none;
padding : 8px;
margin : 10px 0;
width : 100%;
max-width : 100%;
font-family : inherit;
font-size : inherit;
resize : none
}
.floating-wpp .floating-wpp-btn-send {
margin-left : 12px;
font-size : 0;
cursor : pointer
}
.floating-wpp-avatar {
vertical-align : middle;
width : 50px;
height : 50px;
border-radius : 50%;
margin : 10px 0 10px 10px
}
.floating-wpp-avatar-info {
color : white;
margin : 10px 80px 0 10px;
text-align : left
}
.floating-wpp-avatar-name {
font-weight : bold;
font-size : 16px
}

agradecería su apoyo para corregir este error de las líneas 26 y 29 se que muchos me indicaran que lo deje así pero les agradecería su apoyo para aprender mas sobre este error.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

Ayuda con CSS

Publicado por antonio (8 intervenciones) el 20/09/2022 11:11:25
Hola buenas parece que para el atributo hover en w3c se debe poner todo junto sin separaciones


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
.floating-wpp {
position : fixed;
bottom : 15px;
left : 15px;
font-size : 14px;
transition : bottom .2s
}
.floating-wpp .floating-wpp-button {
position : relative;
border-radius : 50%;
box-shadow : 1px 1px 4px rgba(60, 60, 60, 0.4);
transition : box-shadow .2s;
cursor : pointer;
overflow : hidden
}
.floating-wpp .floating-wpp-button img, .floating-wpp .floating-wpp-button svg {
position : absolute;
width : 100%;
height : auto;
object-fit : cover;
top : 50%;
left : 50%;
transform : translate3d(-50%, -50%, 0);
border-radius : 50%
}
.floating-wpp:hover {
bottom : 17px
}
.floating-wpp:hover, .floating-wpp-button {
box-shadow : 1px 2px 8px rgba(60, 60, 60, 0.4)
}
.floating-wpp .floating-wpp-popup {
border-radius : 6px;
background-color : #e5ddd5;
position : absolute;
overflow : hidden;
padding : 0;
box-shadow : 1px 2px 8px rgba(60, 60, 60, 0.25);
width : 0;
height : 0;
bottom : 0;
opacity : 0;
transition : bottom .1s ease-out, opacity .2s ease-out;
transform-origin : bottom
}
.floating-wpp .floating-wpp-popup.active {
padding : 0 12px 12px 12px;
width : 260px;
height : auto;
bottom : 82px;
opacity : 1
}
.floating-wpp .floating-wpp-popup .floating-wpp-message {
background-color : white;
padding : 8px;
border-radius : 0 5px 5px 5px;
box-shadow : 1px 1px 1px rgba(0, 0,0, 0.15);
opacity : 0;
transition : opacity .2s
}
.floating-wpp .floating-wpp-popup.active .floating-wpp-message {
opacity : 1;
transition-delay : .2s
}
.floating-wpp .floating-wpp-popup .floating-wpp-head {
text-align : right;
color : white;
margin : 0 -15px 10px -15px;
padding : 6px 12px;
display : flex;
justify-content : space-between;
cursor : pointer
}
.floating-wpp .floating-wpp-input-message {
background-color : white;
margin : 10px -15px -15px -15px;
padding : 0 15px;
display : flex;
align-items : center
}
.floating-wpp .floating-wpp-input-message textarea {
border : 1px solid #ccc;
border-radius : 4px;
box-shadow : none;
padding : 8px;
margin : 10px 0;
width : 100%;
max-width : 100%;
font-family : inherit;
font-size : inherit;
resize : none
}
.floating-wpp .floating-wpp-btn-send {
margin-left : 12px;
font-size : 0;
cursor : pointer
}
.floating-wpp-avatar {
vertical-align : middle;
width : 50px;
height : 50px;
border-radius : 50%;
margin : 10px 0 10px 10px
}
.floating-wpp-avatar-info {
color : white;
margin : 10px 80px 0 10px;
text-align : left
}
.floating-wpp-avatar-name {
font-weight : bold;
font-size : 16px
}


Captura2
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
2
Comentar
sin imagen de perfil

Ayuda con CSS

Publicado por Edgar (2 intervenciones) el 20/09/2022 17:46:54
Hola, buen día te agradezco tu apoyo y si la verdad no había notado este detalle.
nuevamente muchas gracias por tu respuesta la cual es muy acertada y concreta.

hasta pronto.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar