paul@2 | 1 | /* includecomments.css - some additional styles for the IncludeComments macro |
paul@2 | 2 | which can be included in screen.css and print.css |
paul@2 | 3 | using... |
paul@2 | 4 | |
paul@2 | 5 | @import "includecomments.css"; |
paul@2 | 6 | |
paul@2 | 7 | ...before any rules. |
paul@2 | 8 | |
paul@2 | 9 | Copyright (c) 2013 by Paul Boddie |
paul@2 | 10 | Licensed under the GNU GPL (v2 or later), see COPYING.txt for details. |
paul@2 | 11 | */ |
paul@2 | 12 | |
paul@2 | 13 | .included-comment { |
paul@2 | 14 | margin: 1em; |
paul@2 | 15 | border: 2px solid #ddd; |
paul@2 | 16 | padding: 1em; |
paul@2 | 17 | } |
paul@2 | 18 | |
paul@2 | 19 | .included-comment-owner { |
paul@2 | 20 | float: left; |
paul@2 | 21 | clear: left; |
paul@2 | 22 | margin-right: 1em; |
paul@2 | 23 | padding: 0.5em; |
paul@2 | 24 | background-color: #ddd; |
paul@2 | 25 | color: #000; |
paul@2 | 26 | font-weight: bold; |
paul@2 | 27 | font-size: larger; |
paul@2 | 28 | } |
paul@2 | 29 | |
paul@2 | 30 | /* Hide the link to the comment form when showing the form. */ |
paul@2 | 31 | |
paul@2 | 32 | #includecomments-anchor:target > a { |
paul@2 | 33 | display: none; |
paul@2 | 34 | } |
paul@2 | 35 | |
paul@2 | 36 | /* Hide the comment form unless the link has been followed. */ |
paul@2 | 37 | |
paul@2 | 38 | #includecomments-anchor:not(:target) .includecomments-form { |
paul@2 | 39 | display: none; |
paul@2 | 40 | } |
paul@2 | 41 | |
paul@2 | 42 | /* vim: tabstop=4 expandtab shiftwidth=4 |
paul@2 | 43 | */ |