-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path16.pseudo-elementos.css
More file actions
86 lines (76 loc) · 1.26 KB
/
16.pseudo-elementos.css
File metadata and controls
86 lines (76 loc) · 1.26 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
/* Pseudo elementos */
body {
padding: 1rem;
}
p::first-letter {
font-size: 2rem;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
padding-right: 2px;
color: red;
}
p::first-line{
font-variant: small-caps;
/* text-decoration: underline; */
}
p {
line-height: 2rem;
}
p:nth-of-type(2) {
line-height: 2rem;
}
p:nth-of-type(2):before {
/* Imagen, caracter, marcador, etc... */
content: '|';
margin-left: 1px solid red;
width: 1px;
color: red;
}
p:nth-of-type(2):after {
content: '.';
font-size: 2rem;
line-height: 1.5rem;
margin-left: 1px solid red;
width: 1px;
color: red;
}
ul{
list-style: none;
padding-left: 0;
}
li::before {
content: '>_';
margin-right: 2px;
color: red;
font-weight: 500;
}
.marker {
padding-left: 1rem;
}
.marker li {
padding-left: 5px;
}
.marker li::before{
content: '';
color: red;
}
.marker li::after{
content: ',';
padding-left: 2px;
font-size: 1.2rem;
color: red;
}
.marker li:last-of-type:after{
content: '.';
padding-left: 2px;
font-size: 1.2rem;
color: red;
}
.marker li::marker {
content: '>_';
color: red;
}
p::selection {
background-color: tomato;
color: white;
}
/* Más sobre pseudo-elementos: https://www.w3schools.com/css/css_pseudo_elements.asp */