1
0
Fork 0
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:
Eggbertx 2025-02-09 17:45:43 -08:00
parent e65d363a84
commit dfb9fc045c
8 changed files with 31 additions and 1 deletions

View file

@ -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
}

View file

@ -102,5 +102,9 @@
font-weight: 700;
}
.dice-roll {
border: 1px dashed #222;
}
@include upload-box(#aaa, #444, #666);
}

View file

@ -37,4 +37,8 @@ div.inlinepostprev {
border: 1px solid $bordercol;
}
.dice-roll {
border: 1px dashed #222;
}
@include upload-box(#aaa, #444, #666);

View file

@ -241,4 +241,9 @@ div.inlinepostprev {
.hideblock-button {
display: block;
}
.dice-roll {
border: 1px dashed #aaa;
font-weight: bold;
}

View file

@ -34,6 +34,10 @@ div.inlinepostprev {
border: 1px solid #9295a4;
}
.dice-roll {
border: 1px dashed #222;
}
div#upload-box {
background: #aaa;
}

View file

@ -261,6 +261,11 @@ div.inlinepostprev {
display: block;
}
.dice-roll {
border: 1px dashed #aaa;
font-weight: bold;
}
div.section-block {
margin-bottom: 8px;
}

View file

@ -94,6 +94,10 @@ span.subject {
font-weight: 700;
}
.dice-roll {
border: 1px dashed #222;
}
div#upload-box {
background: #aaa;
}

View file

@ -94,6 +94,10 @@ span.subject {
font-weight: 700;
}
.dice-roll {
border: 1px dashed #222;
}
div#upload-box {
background: #aaa;
}