-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
92 lines (75 loc) · 1.42 KB
/
styles.css
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
* {
margin: 0; padding: 0;
}
body {
/* background: linear-gradient(#FFCE93 20%, #9795FE 20%, #FF9D86 20%, #FFD0EF 20%); */
background: #FFCE93;
box-sizing: border-box;
display: grid;
place-items: center;
}
.comments-container {
width: 60%;
margin: 1rem;
padding: 2.2rem;
border-radius: 10px;
background: #fff;
}
.comment__list {
display: block;
list-style: none;
margin-left: 2rem;
width: 100%;
}
.comment__list--hide {
display: none;
}
.comment__list:not(:first-child) {
margin-left: 2.5rem;
}
.comment__list-item {
border-left: 1px rgba(0, 0, 0, 0.411) solid;
width: 100%;
}
.comment {
box-sizing: border-box;
width: 100%;
margin-bottom: 3rem;
display: grid;
justify-content: flex-start;
}
.comment__avatar {
transform: translate(-1.5rem, -10px);
display: block;
width: 45px;
height: 45px;
flex-shrink: 0;
}
.comment__content {
min-width: 100%;
margin: 0;
}
.comment__user {
display: inline-block;
margin: 0 10px 1rem 0;
}
.comment__time {
opacity: .5;
}
.comment__text {
margin: 0 0 1rem;
}
.actions {
grid-column: 2/4;
}
.actions__number {
font-weight: 700;
}
.actions__btn {
border: none;
padding: 5px;
background: transparent;
}
.actions__btn:hover {
background: #ccc;
}