mirror of https://github.com/Chocobozzz/PeerTube
Better responsive design on many comment children
parent
80109b2ddb
commit
c9ffd53217
|
@ -14,6 +14,8 @@
|
||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
// Fix word-wrap with flex
|
||||||
|
min-width: 1px;
|
||||||
|
|
||||||
.highlighted-comment {
|
.highlighted-comment {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -44,8 +46,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-html {
|
.comment-html {
|
||||||
word-wrap: initial;
|
|
||||||
word-break: normal;
|
word-break: normal;
|
||||||
|
word-wrap: break-word;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
|
|
||||||
/deep/ a {
|
/deep/ a {
|
||||||
|
@ -76,3 +78,26 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Decrease the space of child comments on small screens
|
||||||
|
@media screen and (max-width: 1600px) {
|
||||||
|
.children {
|
||||||
|
margin-left: -20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 1200px) {
|
||||||
|
.children {
|
||||||
|
margin-left: -30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
.children {
|
||||||
|
margin-left: -40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.root-comment {
|
||||||
|
img { margin-right: 10px; }
|
||||||
|
}
|
||||||
|
}
|
|
@ -19,8 +19,8 @@
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-html {
|
@media screen and (max-width: 600px) {
|
||||||
word-wrap: normal;
|
.view-replies {
|
||||||
word-break: normal;
|
margin-left: 46px;
|
||||||
text-align: justify;
|
}
|
||||||
}
|
}
|
|
@ -215,7 +215,8 @@
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
|
||||||
.video-info-description-html {
|
.video-info-description-html {
|
||||||
word-wrap: break-word;
|
word-break: normal;
|
||||||
|
word-wrap: normal;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue