mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 19:56:39 +00:00
[frontend] Status styling tweaks (#751)
* style hr * start work on code styling in statuses * pad top + bottom of content * squircle code * pad less actually * get code blocks formatted nicely phew * fix some silliness (thanks f0x) * update code block styling Co-authored-by: f0x <f0x@cthu.lu>
This commit is contained in:
parent
9a9702c964
commit
3f626c8ee8
|
@ -119,6 +119,7 @@ main {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
grid-column: span 2;
|
grid-column: span 2;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
@ -129,6 +130,9 @@ main {
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
padding-top: 0.5rem;
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
|
@ -137,6 +141,34 @@ main {
|
||||||
margin-left: 1rem;
|
margin-left: 1rem;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border: 1px dashed $sloth_orange1;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre, code {
|
||||||
|
background-color: $sloth_gray2_darker7;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
padding: 0.25rem;
|
||||||
|
border-radius: $br_inner;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
display: flex;
|
||||||
|
border-radius: $br;
|
||||||
|
padding: 0.5rem;
|
||||||
|
|
||||||
|
code {
|
||||||
|
padding: 0.5rem;
|
||||||
|
white-space: pre;
|
||||||
|
border-radius: 0;
|
||||||
|
overflow-x: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
scrollbar-color: $sloth_orange1 $sloth_gray2_darker3;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue