diff options
author | Yorhel <git@yorhel.nl> | 2020-03-16 15:56:20 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-03-16 15:56:23 +0100 |
commit | 0e788f5667cb565326ff11dcd863a9a2fe434f6c (patch) | |
tree | fa3d3f6231a0532db5bf4788657bbf2f55054b99 /data | |
parent | 1060de04e9e54d7e40c5ad96c0012acc0e67dc5d (diff) |
imgflag: Add short mouse-over descriptions to the vote options
These need to be refined, not sure they're all that great at the moment.
Diffstat (limited to 'data')
-rw-r--r-- | data/style.css | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/data/style.css b/data/style.css index 5168515c..7bfd84f5 100644 --- a/data/style.css +++ b/data/style.css @@ -1077,17 +1077,26 @@ p.filselect i { font-style: normal } /****** Image flagging *******/ +/* divs: + * 1: header + * 2: image + * 3: metadata + * 4: vote box */ .imageflag { width: 810px; margin: auto } -.imageflag div:nth-child(1) { display: flex; justify-content: space-between; height: 20px } -.imageflag div:nth-child(1) span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0px 20px } -.imageflag div:nth-child(2) { border: 1px solid $border$; padding: 5px; display: flex; justify-content: center; align-items: center; background: #000 } -.imageflag div:nth-child(2) a { border: none; display: inline-block; width: 100%; height: 100%; background-repeat: no-repeat; background-position: center } -.imageflag div:nth-child(3) { display: flex; justify-content: space-between; } -.imageflag ul.imgvoteopt { display: flex; align-items: center; list-style-type: none; margin: 5px 0 } -.imageflag ul.imgvoteopt span { font-weight: bold; padding-right: 5px } -.imageflag ul.imgvoteopt li:nth-child(4) { flex-grow: 1 } -.imageflag ul.imgvoteopt li label { display: inline-block; border: 1px solid $secborder$; padding: 4px 5px; min-width: 90px; white-space: nowrap; margin: 2px } -.imageflag ul.imgvoteopt li.sel label { background-color: $secbg$ } +.imageflag > div:nth-child(1) { display: flex; justify-content: space-between; height: 20px } +.imageflag > div:nth-child(1) span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0px 20px } +.imageflag > div:nth-child(2) { border: 1px solid $border$; padding: 5px; display: flex; justify-content: center; align-items: center; background: #000 } +.imageflag > div:nth-child(2) a { border: none; display: inline-block; width: 100%; height: 100%; background-repeat: no-repeat; background-position: center } +.imageflag > div:nth-child(3) { display: flex; justify-content: space-between; } +.imageflag > div:nth-child(4) { display: flex } +.imageflag > div:nth-child(4) > div { flex-grow: 1 } +.imageflag > div:nth-child(4) ul { display: flex; align-items: center; list-style-type: none; margin: 5px 0 } +.imageflag > div:nth-child(4) > div:nth-child(2) ul { justify-content: right } +.imageflag > div:nth-child(4) ul span { font-weight: bold; padding-right: 5px } +.imageflag > div:nth-child(4) ul li label { display: inline-block; border: 1px solid $secborder$; padding: 4px 5px; min-width: 90px; white-space: nowrap; margin: 2px } +.imageflag > div:nth-child(4) ul li.sel label, +.imageflag > div:nth-child(4) ul li label:hover { background-color: $secbg$ } +.imageflag > div:nth-child(4) p { height: 80px; padding-left: 20px } /****** Icons *******/ |