-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
63 lines (54 loc) · 1.42 KB
/
style.css
File metadata and controls
63 lines (54 loc) · 1.42 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
/* para criar um avatar, deve definir
{tamanho, cor, formato, borda, imagem,Icone/texto, badge (detales)}*/
body {
background-color: #1c1c1c;
}
.avatar {
position: relative;
height: 96px;
width: 96px;
margin: 25px 0;
}
.avatar_conteudo {
font-family: 'Helvetica Neue', sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans';
font-size: 58px;
color: #ffffff;
background-color: #02887a;
height: 100%;
width: 100%;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
/* para ajustar as medições de
foto de forma cabe de círculo
onde deve colocar a foto de avatar */
.avatar_imagem {
object-fit: cover;
width: 100%;
height: 100%;
}
.avatar_badge {
/* position para controlar
onde vai ficar o lugar de conteúdo
de spsn class="avatar_badge" */
position: absolute;
/*tem quatro valores(top, bottom, left, right) */
/* se coloca -10 vai mover embaixo de foto */
bottom: -9px;
/* tem relação com geight e width de .avatar */
/* se tem um problema,
poderia usar 50% ao invés de 98px */
left: calc(50% - 9px);
color: #000000;
background-color: #80B800;
height: 18px;
width: 18x;
border-radius: 50%;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
}