Skip to content

Commit

Permalink
Fix spoiler reveal positioning (#1521)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp authored Mar 28, 2023
1 parent b839774 commit 5857922
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 20 deletions.
11 changes: 0 additions & 11 deletions frontend/src/style/flavor/markup.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@
}

// Spoiler block
.misago-markup .spoiler-block {
background: repeating-linear-gradient(
45deg,
fadeout(@gray-lighter, 50%),
fadeout(@gray-lighter, 50%) 10px,
@post-bg 10px,
@post-bg 20px
);
border: none;
}

.misago-markup .spoiler-body {
background: transparent;
-webkit-filter: blur(5px);
Expand Down
18 changes: 11 additions & 7 deletions frontend/src/style/misago/markup.less
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,23 @@

// Style spoilers
.misago-markup .spoiler-block {
background: @gray-lighter;
border: none;
position: relative;

background: repeating-linear-gradient(
45deg,
fadeout(@gray-lighter, 50%),
fadeout(@gray-lighter, 50%) 10px,
@post-bg 10px,
@post-bg 20px
);
border: 3px solid @gray-lighter;
border-radius: @border-radius-base;
font-size: @font-size-base;
}

.misago-markup > .spoiler-block {
border: 1px solid darken(@gray-lighter, 8%);
position: relative;
}

.misago-markup .spoiler-body {
background: @body-bg;
border-width: 0;
margin: 0px;
padding: @line-height-computed;
}
Expand Down
2 changes: 1 addition & 1 deletion misago/static/misago/css/misago.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion misago/static/misago/css/misago.css.map

Large diffs are not rendered by default.

0 comments on commit 5857922

Please sign in to comment.