margin: 30px 0;
> li {
- padding: 30px 0;
+ @include large-screen-only {
+ padding: 30px 0;
+ }
+
+ @include small-screen-only {
+ padding: 20px 0;
+ }
&:not(:first-child) {
border-top: 1px solid $wcfContentBorder;
.message {
display: flex;
+ @include small-screen-only {
+ flex-direction: column;
+ }
+
.messageClipboardCheckbox {
height: 24px;
width: 24px;
/* sidebar */
.messageSidebar {
- align-self: flex-start;
background-color: $wcfSidebarBackground;
- border-radius: 3px;
color: $wcfSidebarText;
- flex: 0 0 240px;
- padding: 20px;
position: relative;
- text-align: center;
+
+ @include large-screen-only {
+ align-self: flex-start;
+ border-radius: 3px;
+ flex: 0 0 240px;
+ padding: 20px;
+ text-align: center;
+
+ & + .messageContent {
+ margin-left: 30px;
+ }
+ }
+
+ @include small-screen-only {
+ flex: 0 0 auto;
+ padding: 10px;
+
+ .messageAuthor {
+ flex: 0 0 auto;
+ position: relative;
+
+ .userAvatar {
+ display: block;
+ margin: 0;
+ position: static;
+
+ > a {
+ left: 0;
+ position: absolute;
+ top: 50%;
+ transform: translateY(-50%);
+ }
+
+ .userAvatarImage {
+ max-height: 48px;
+ max-width: 48px;
+ }
+ }
+
+ .messageAuthorContainer,
+ .userTitle {
+ margin-left: 58px;
+ }
+ }
+
+ .userCredits {
+ display: none;
+ }
+ }
a {
color: $wcfSidebarLink;
margin-bottom: 5px;
}
-.messageSidebar + .messageContent {
- margin-left: 30px;
-}
-
// sidebar right
.messageSidebarOrientationRight {
.messageContent {
display: flex;
flex: auto;
flex-direction: column;
- margin: 0 20px;
+
+ @include large-screen-only {
+ margin: 0 20px;
+ }
+
+ @include small-screen-only {
+ margin-top: 20px;
+ }
&.loading {
position: relative;