-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoutline.css
More file actions
37 lines (33 loc) · 759 Bytes
/
outline.css
File metadata and controls
37 lines (33 loc) · 759 Bytes
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
body {
margin: 0;
font-family: sans-serif;
}
/*
El outline no ocupa espacio, tiene una utilidad visual (Transiciones, Cambios de estado, Seleccionar elementos)
outline-offset -> Cuanto se va a separar del elemento
outline-color -> Color del outline
outline-style -> Estilo del outline
outline-width -> Ancho del outline
*/
body {
margin: 0;
font-family: sans-serif;
background-color: #ccc;
}
input {
margin: 50px;
border: none;
border-top: 3px solid #000;
outline: 3px solid #00f;
outline-offset: 5px;
padding: 6px;
transition: outline 0.2s, outline-offset 0.2s;
}
input:focus {
border-color: #00f;
color: #00f;
}
/* Quitar outline en los input */
input:focus-visible {
outline: none;
}