mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-09-07 12:46:23 -07:00
Add dice roll styling
This commit is contained in:
parent
e65d363a84
commit
dfb9fc045c
8 changed files with 31 additions and 1 deletions
|
@ -65,7 +65,7 @@ func editPost(checkedPosts []int, editBtn string, doEdit string, writer http.Res
|
|||
return
|
||||
}
|
||||
if strings.Contains(string(post.Message), `<span class="dice-roll">`) && !config.GetBoardConfig(board.Dir).AllowDiceRerolls {
|
||||
server.ServeError(writer, server.NewServerError("Dice rerolls are not allowed on this board", http.StatusBadRequest), wantsJSON, nil)
|
||||
server.ServeError(writer, server.NewServerError("Unable to edit post, dice rerolls are not allowed on this board", http.StatusForbidden), wantsJSON, nil)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -102,5 +102,9 @@
|
|||
font-weight: 700;
|
||||
}
|
||||
|
||||
.dice-roll {
|
||||
border: 1px dashed #222;
|
||||
}
|
||||
|
||||
@include upload-box(#aaa, #444, #666);
|
||||
}
|
|
@ -37,4 +37,8 @@ div.inlinepostprev {
|
|||
border: 1px solid $bordercol;
|
||||
}
|
||||
|
||||
.dice-roll {
|
||||
border: 1px dashed #222;
|
||||
}
|
||||
|
||||
@include upload-box(#aaa, #444, #666);
|
|
@ -241,4 +241,9 @@ div.inlinepostprev {
|
|||
|
||||
.hideblock-button {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dice-roll {
|
||||
border: 1px dashed #aaa;
|
||||
font-weight: bold;
|
||||
}
|
|
@ -34,6 +34,10 @@ div.inlinepostprev {
|
|||
border: 1px solid #9295a4;
|
||||
}
|
||||
|
||||
.dice-roll {
|
||||
border: 1px dashed #222;
|
||||
}
|
||||
|
||||
div#upload-box {
|
||||
background: #aaa;
|
||||
}
|
||||
|
|
|
@ -261,6 +261,11 @@ div.inlinepostprev {
|
|||
display: block;
|
||||
}
|
||||
|
||||
.dice-roll {
|
||||
border: 1px dashed #aaa;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
div.section-block {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
|
|
@ -94,6 +94,10 @@ span.subject {
|
|||
font-weight: 700;
|
||||
}
|
||||
|
||||
.dice-roll {
|
||||
border: 1px dashed #222;
|
||||
}
|
||||
|
||||
div#upload-box {
|
||||
background: #aaa;
|
||||
}
|
||||
|
|
|
@ -94,6 +94,10 @@ span.subject {
|
|||
font-weight: 700;
|
||||
}
|
||||
|
||||
.dice-roll {
|
||||
border: 1px dashed #222;
|
||||
}
|
||||
|
||||
div#upload-box {
|
||||
background: #aaa;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue