From 277e2c190e0ddd9a5f92e6597d50b72fb38de8a7 Mon Sep 17 00:00:00 2001 From: fatchan Date: Thu, 23 Apr 2020 23:23:53 +1000 Subject: [PATCH] style change for new catalog tile checkmarks --- gulp/res/css/style.css | 12 ++++++++++-- views/mixins/catalogtile.pug | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gulp/res/css/style.css b/gulp/res/css/style.css index c9b6ad38..f314927b 100644 --- a/gulp/res/css/style.css +++ b/gulp/res/css/style.css @@ -241,6 +241,7 @@ object { box-sizing: border-box; flex-grow: 1; max-width: 300px; + position: relative; } .catalog-tile:hover { @@ -629,7 +630,14 @@ details.actions div { .post-check { position: relative; top: 2px; - margin: -3px 1px !important; + margin: -3px 1px; +} + +.catalog-tile .post-check { + position: absolute; + top: 5px; + left: 5px; + margin: 0; } .post-files { @@ -1263,7 +1271,7 @@ row.wrap.sb .col { .post-check { top: 1px; - margin-left: 2px!important; + margin-left: 2px; } .pages { diff --git a/views/mixins/catalogtile.pug b/views/mixins/catalogtile.pug index 17c0383e..9ec4fdec 100644 --- a/views/mixins/catalogtile.pug +++ b/views/mixins/catalogtile.pug @@ -2,7 +2,7 @@ mixin catalogtile(board, post, index) .catalog-tile(data-board=post.board data-post-id=post.postId data-user-id=post.userId) - const postURL = `/${board._id}/thread/${post.postId}.html#${post.postId}` .post-info - input.left.post-check(type='checkbox', name='checkedposts' value=post.postId) + input.post-check(type='checkbox', name='checkedposts' value=post.postId) if modview a.left.ml-5.bold(href=`recent.html?postid=${post.postId}`) [+] include ../includes/posticons.pug