Fix WhiteNoise crash from missing CSS background GIFs (#23)
Unit Tests / test (push) Successful in 4s
Unit Tests / test (push) Successful in 4s
## Summary
- Remove unused `.top-head` / `.top-body` CSS rules that referenced missing GIF files (`top-head.gif`, `top-body.gif`), which caused `whitenoise.storage.MissingFileError` and crashed the prod container at collectstatic/startup.
- Drop a stray `{% load static %}` tag from `style.css` (not a Django template).
- Branch rebased onto current `master` (dockerize already merged via #21); this PR is the CSS-only fix.
## Test plan
- [ ] Merge and let deploy run (or redeploy scha prod).
- [ ] Confirm web container stays up (no WhiteNoise `MissingFileError`).
- [ ] Spot-check site CSS still looks fine on public pages.
- [ ] Separately: if Compose still warns about unset `$…` vars, escape `$` as `$$` in `~/Documents/secrets/scha/scha_prod.env` password/`DATABASE_URL`.
Reviewed-on: #23
This commit was merged in pull request #23.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
/* CSS Document */
|
||||
{% load static %}
|
||||
body{
|
||||
margin:0px;
|
||||
background-repeat: repeat;
|
||||
@@ -13,10 +12,6 @@ h1{
|
||||
}
|
||||
h1 span{color:#979797;}
|
||||
.clear{margin:0px; padding:0px; clear:both;}
|
||||
.top-head{
|
||||
height:118px; width:1000px; margin:auto;
|
||||
background:url(../images/top-head.gif) repeat-x;
|
||||
}
|
||||
.logo{
|
||||
height:103px; width:325px;
|
||||
float:left; padding:15px 0px 0px 55px;
|
||||
@@ -72,22 +67,6 @@ h1 span{color:#979797;}
|
||||
padding-left:22px; font-weight:bold;
|
||||
background-position: 6px;
|
||||
}
|
||||
.top-body{
|
||||
height:auto; width:940px; margin:auto;
|
||||
background: url(../images/top-body.gif) repeat-x #cfcfcf;
|
||||
padding:0px 0px 25px 60px;
|
||||
}
|
||||
.top-body-con{
|
||||
height:auto; width:265px; float:left;
|
||||
padding:0px 35px 0px 0px;
|
||||
}
|
||||
.top-body-con p{
|
||||
margin:0px; padding:30px 0px 0px 0px;
|
||||
font-family:Verdana, Arial, Helvetica, sans-serif; color:#2e2e2e;
|
||||
font-size:11px; font-weight:bold; line-height:26px;
|
||||
}
|
||||
.top-body-con a{color:#63880a;}
|
||||
.top-body-con span{color:#63880a; font-size:15px;}
|
||||
.img-box{
|
||||
height:auto; width:auto; float:left;
|
||||
padding:30px 25px 0px 0px;
|
||||
|
||||
Reference in New Issue
Block a user