forked from ANSHIKA-26/WordWise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
comment.css
145 lines (138 loc) · 3.03 KB
/
comment.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
*{
box-sizing:border-box ;
}
/* body{
display: block;
margin: 0;
padding: 0;
font-family: "Montserrat", sans-serif;
font-size: 16px;
background-color:rgb(230 224 216);
margin-top: 20px;
} */
.flex{
display:flex ;
justify-content: space-between;
width: 100%;
}
img{
width: 100%;
height: 100%;
}
.comment-box, .comment-list{
background: #fff;
border-radius: 4px;
box-shadow: 0 8px 8px #0002;
position: relative;
animation: float 4s ease-in-out infinite;
}
.comment-box, .comment-list:hover{
box-sizing: inherit;
}
.comment-session{
width: 650px;
height: auto;
margin: 0 auto;
}
.comment-list{
width: 100%;
margin-bottom: 12px;
}
.comment-list .user{
display:flex ;
padding: 8px;
overflow: hidden;
}
.comment-list .user img{
height: 38px;
width: 38px;
border-radius: 50%;
margin-right: 10px;
}
.comment-list .name{
text-transform: uppercase;
font-weight: 600;
}
.comment-list .day{
font-size: 12px;
}
.reply{
display: flex;
align-items: center;
gap: 10px;
justify-content: center;
padding:10px ;
gap:10px;
}
.icons {
display: flex;
align-items: center;
justify-content: center;
height: 24px;
color:#777;
gap: 5px;
}
/* .icon:hover{
color: #009cff;
cursor: pointer;
} */
body.dark-mode { --background-color: #121212; --text-color: #ffffff; --comment-bg-color: #1e1e1e; --border-color: #333; --box-shadow-color: rgba(255, 255, 255, 0.1); --icon-color: #bbbbbb; --icon-hover-color: #ffffff; --link-color: #82b1ff; --button-bg-color: #1e88e5; --button-hover-bg-color: #1565c0; --text-area-bg-color: #2e2e2e; --text-area-border-color: #555; }
.icons.like:hover, .icons.like.active {
color: #1e90ff;
cursor: pointer;
}
.icons.dislike:hover, .icons.dislike.active {
color: #ff6347;
cursor: pointer;
}
.post-comment .comment{
padding: 0 0 15px 58px;
}
.comment-box{
padding: 10px;
overflow: hidden;
}
.comment-box .user{
display: flex;
width: min-content;
}
.comment-box .image img{
width: 24px;
height: 24px;
margin-right: 10px;
border-radius: 50%;
}
.comment-box textarea{
background: #eee;
width:-webkit-fill-available;
height: 152px;
margin: 10px 0;
padding: 10px;
border: none;
border-radius: 4px;
box-shadow: 0 0 0 0.5px #0003;
}
.comment-box textarea:focus{
outline-color: #009cff;
}
.comment-box .comment-submit{
float:right ;
padding: 6px 14px;
border: none;
background: #009cff;
color:#fff;
cursor: pointer;
border-radius: 2px;
}
.comment-box .comment-submit:hover{
background-color: #027ecc;
}
.re-comment:hover {
text-decoration: underline;
}
@keyframes float {
0%, 100% {
transform: translateY(0);
} 50% {
transform: translateY(-10px);
} }