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