Files
@ a00195c8f6d0
Branch filter:
Location: website/www/conservancy/static/css/conservancy-bigscreen.css
a00195c8f6d0
1.7 KiB
text/css
static.views: Deduplicate code.
The primary goal here is to get templates rendered more like our "regular"
templates, by using more of the standard tools to do so rather than roll our
own.
* Use TemplateResponse. This requires less boilerplate and ensures the
rendering runs through our local context processors.
* Use the existing definition of fundgoal_lookup.
The primary goal here is to get templates rendered more like our "regular"
templates, by using more of the standard tools to do so rather than roll our
own.
* Use TemplateResponse. This requires less boilerplate and ensures the
rendering runs through our local context processors.
* Use the existing definition of fundgoal_lookup.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | /* "Big screen" means, approximately, bigger than a phone */
.column:nth-child(odd) {
clear: both;
float: left;
width: 49%;
}
.column:nth-child(even) {
float: right;
width: 49%;
}
li.column {
margin-bottom: 1em;
}
.left {
float: left;
margin-right: 1.5em;
}
.right {
float: right;
margin-left: 1.5em;
}
.picture {
width: 30em;
max-width: 35%;
padding: .75em;
}
dl {
border: 3px double #ccc;
padding: 0.5em;
}
dt {
clear: left;
float: left;
text-align: center;
width: 10em;
margin: 0em 1em 0.5em 0.5em;
font-weight: bold;
color: green;
}
dt:after {
content: ":";
}
dd {
margin: 0 0 2.5em 11.5em;
}
.small-right {
float: right;
height: auto;
width: 25%;
margin-left: .7em;
margin-bottom: .4em;
}
.medium-right {
float: right;
height: auto;
width: 50%;
margin-left: .7em;
margin-bottom: .7em;
}
img.blog-right {
float: right;
padding-left: 1em;
margin: .25em;
min-width: 8%;
max-width: 30%;
width: auto;
}
#contractpatch-follow {
float: left;
width: 30em;
margin-right: 1.5em;
/* Below from .shaded, but we don't want the class on non-big screens. */
padding: .75em;
background: #F0FFB8;
}
#contractpatch-follow h2 {
font-size: large;
}
#contractpatch-blog h3:first-child {
/* Don't let the first blog headline clear below #contractpatch-follow. */
clear: right;
}
.supporter-form-input {
margin-bottom: .5em;
}
.supporter-form-input label,
.supporter-form-input .input-group {
display: inline-block;
width: 49%;
}
.supporter-form-input label {
text-align: right;
padding-right: .3em;
}
.form-error, .supporter-form-input p {
margin-left: 51%;
}
|