bug fix: javascript mimetype & responsive

pull/19/head
Steve Nyemba 2 weeks ago
parent 86b57ccfd8
commit e4a3e844b4

@ -100,6 +100,8 @@ def read (**_args):
_extension = _uri.split('.')[-1]
if _extension in ['css','js','csv','html'] :
_mimeType = f'text/{_extension}'
if _extension == 'js' :
_mimeType = 'text/javascript'
elif _extension in ['png','jpg','jpeg'] :
_mimeType = f'image/{_extension}'
return _stream, _mimeType

@ -0,0 +1,36 @@
/* Responsive Design */
@media (max-width: 1024px) {
.main {
grid-template-columns: 60% 40%;
grid-template-rows: 70px auto 32px;
}
}
@media (max-width: 768px) {
.main {
grid-template-columns: 100%;
grid-template-rows: auto;
height: auto;
}
.main .pane {
border-left: none;
border-top: 1px solid #CAD5E0;
padding: 8px;
}
}
@media (max-width: 480px) {
.main {
padding: 5%;
font-size: 14px;
}
.large-text {
font-size: 24px;
}
.small-text {
font-size: 10px;
}
}
Loading…
Cancel
Save