akf-forum/public/css/thread.css

181 lines
2.5 KiB
CSS
Raw Normal View History

2022-08-28 21:08:33 +03:00
.title {
2022-08-31 18:11:54 +03:00
color: var(--input-clr);
font-weight: 700;
font-size: 36px;
2022-03-13 16:16:46 +03:00
}
.date {
2022-08-31 18:11:54 +03:00
color: var(--second);
2022-03-13 16:16:46 +03:00
}
.message {
2022-08-28 21:08:33 +03:00
max-width: 800px;
2022-08-31 18:11:54 +03:00
box-shadow: 0 0 5px 0 var(--box-shadow);
2022-08-28 21:08:33 +03:00
margin: 10px auto;
padding: 20px;
display: flex;
gap: 10px;
position: relative;
2022-03-13 16:16:46 +03:00
}
.message .left {
2022-08-28 21:08:33 +03:00
text-align: center;
2022-08-31 18:11:54 +03:00
border-right: 2px solid var(--borders);
2022-03-13 16:16:46 +03:00
}
.message .left img {
2022-08-28 21:08:33 +03:00
width: 100px;
height: 100px;
border-radius: 50%;
margin-right: 5px;
2022-03-13 16:16:46 +03:00
}
2022-08-31 19:16:43 +03:00
.message .left .username a {
2022-08-31 18:11:54 +03:00
color: var(--t-username);
2022-03-13 16:16:46 +03:00
}
.content {
2022-08-28 21:08:33 +03:00
width: 70%;
2022-08-31 19:16:43 +03:00
color: var(--reaction-hover);
2022-03-13 16:16:46 +03:00
}
.reactions {
position: absolute;
right: 20px;
bottom: 20px;
display: flex;
align-items: center;
gap: 10px;
2022-08-28 21:08:33 +03:00
}
.reactions div {
display: flex;
align-items: center;
gap: 5px;
padding: 4px;
2022-08-31 18:11:54 +03:00
color: var(--second);
cursor: pointer;
transition: color 0.3s ease;
2022-08-28 21:08:33 +03:00
}
.reactions div:hover {
2022-08-31 18:11:54 +03:00
color: var(--reaction-hover);
2022-03-22 21:25:09 +03:00
}
.reactions div i {
font-size: 22px;
2022-03-22 21:25:09 +03:00
}
.dots {
position: absolute;
right: 20px;
font-size: 22px;
top: 10px;
2022-08-31 18:11:54 +03:00
color: var(--second);
cursor: pointer;
2022-03-22 21:25:09 +03:00
}
.dots-menu {
position: absolute;
top: 50px;
right: 0;
2022-08-31 18:11:54 +03:00
background-color: var(--btn-clr-1);
width: 100px;
text-align: center;
display: none;
2022-03-26 23:28:10 +03:00
}
.dots-menu.active {
display: block;
2022-08-28 21:08:33 +03:00
}
2022-03-26 23:28:10 +03:00
.dots-menu a {
display: block;
margin: 8px;
cursor: pointer;
2022-08-31 15:27:49 +03:00
}
2022-08-31 18:11:54 +03:00
.dots-menu a:hover:nth-child(1) {
2022-08-31 18:14:21 +03:00
color: var(--important);
2022-08-31 18:11:54 +03:00
}
.dots-menu a:hover:nth-child(2) {
color: var(--main);
}
2022-08-31 15:27:49 +03:00
.send>textarea{
font-family:inherit;
width: 100%;
margin: 10px;
border: 2px solid #e3e3e3;
}
2022-08-31 15:27:49 +03:00
/* Media Query */
2022-08-31 18:11:54 +03:00
@media(max-width:980px) {
.message {
margin: 10px 20px;
max-width: 100%;
flex-direction: column;
position: relative;
2022-08-31 15:27:49 +03:00
}
2022-08-31 18:11:54 +03:00
.message .left {
padding: 40px;
border: none;
border-bottom: 2px solid var(--borders);
2022-08-31 15:27:49 +03:00
}
2022-08-31 18:11:54 +03:00
.message .left img {
width: 50px;
height: 50px;
border-radius: 50%;
margin-right: 5px;
position: absolute;
left: 20px;
top: 20px;
2022-08-31 15:27:49 +03:00
}
2022-08-31 18:11:54 +03:00
.message .left .username {
2022-08-31 15:27:49 +03:00
position: absolute;
top: 20px;
left: 80px;
}
2022-08-31 18:11:54 +03:00
.message .date:nth-of-type(3) {
position: absolute;
right: 20px;
top: 20px;
}
.message .date:nth-of-type(2) {
2022-08-31 15:27:49 +03:00
position: absolute;
2022-08-31 18:11:54 +03:00
right: 20px;
top: 40px;
2022-08-31 15:27:49 +03:00
}
2022-08-31 18:11:54 +03:00
.dots {
2022-08-31 15:27:49 +03:00
position: absolute;
2022-08-31 18:11:54 +03:00
right: auto;
top: 70px;
left: 40px;
2022-08-31 15:27:49 +03:00
}
2022-08-31 18:11:54 +03:00
.dots-menu {
position: absolute;
left: 70px;
top: 60px;
width: 120px;
2022-08-31 15:27:49 +03:00
}
2022-08-31 18:11:54 +03:00
.dots-menu.active {
display: flex;
2022-08-31 15:27:49 +03:00
}
2022-08-31 18:11:54 +03:00
.content {
width: 50%;
2022-08-31 15:27:49 +03:00
}
2022-08-31 18:11:54 +03:00
}