Style & download permissions

Fixed gradients on Firefox and also fixed the file download permissions
when the user or teacher tries to download a course resource.