1 /* moinshare.css - some additional styles for the SharedContent macro 2 which can be included in screen.css and print.css 3 using... 4 5 @import "moinshare.css"; 6 7 ...before any rules. 8 9 Copyright (c) 2013 by Paul Boddie 10 Licensed under the GNU GPL (v2 or later), see COPYING.txt for details. 11 */ 12 13 div.moinshare-update { 14 margin: 1em; 15 border: 1px solid black; 16 padding: 0.5em; 17 position: relative; 18 } 19 20 div.moinshare-date { 21 margin: 0.5em; 22 text-align: right; 23 } 24 25 /* Put the alternative part navigation inside the update container, overlaying 26 empty space belong to each of the parts. */ 27 28 div.moinshare-alternatives { 29 position: absolute; 30 bottom: 0; 31 left: 0; 32 padding: 0.5em; 33 } 34 35 div.moinshare-alternatives a { 36 background: #eee; 37 margin-right: 1em; 38 padding: 0.5em; 39 } 40 41 div.moinshare-alternative { 42 padding-bottom: 3em; /* empty space for the navigation */ 43 } 44 45 /* Always show primary parts. */ 46 47 div.moinshare-alternative.moinshare-default { 48 display: block; 49 } 50 51 /* Hide secondary parts unless selected. */ 52 53 div.moinshare-alternative.moinshare-other:not(:target) { 54 display: none; 55 } 56 57 div.moinshare-alternative.moinshare-other:target { 58 display: block; 59 }