feat/flask: change scss compiler to Python lib
This commit is contained in:
8
app.py
8
app.py
@@ -1,7 +1,9 @@
|
||||
from os import path, listdir, system
|
||||
from os import path, listdir
|
||||
from datetime import date
|
||||
from configparser import ConfigParser
|
||||
|
||||
import sass
|
||||
|
||||
from flask import (
|
||||
Flask,
|
||||
redirect,
|
||||
@@ -19,7 +21,9 @@ from flask import (
|
||||
app = Flask(__name__)
|
||||
|
||||
if app.debug:
|
||||
system("sass static/style.scss static/style.css")
|
||||
css = sass.compile(filename="static/style.scss")
|
||||
with open("static/style.css", "w", encoding="utf-8") as f:
|
||||
f.write(css)
|
||||
|
||||
|
||||
# ---------- LOCALES FUNCTIONS -----------------------------------------------
|
||||
|
||||
@@ -127,7 +127,7 @@ body {
|
||||
background: rgba(254, 255, 255, 1);
|
||||
border: 1px solid #c0b9c491;
|
||||
border-radius: 4px;
|
||||
box-shadow: rgb(28 26 40 / 12%) 0px 4px 4px -2px;
|
||||
box-shadow: rgba(28, 26, 40, 0.12) 0 4px 4px -2px;
|
||||
margin: 2em auto;
|
||||
max-width: 910px;
|
||||
padding: 2em;
|
||||
@@ -416,7 +416,7 @@ iframe {
|
||||
#banner {
|
||||
max-width: calc(100% - 2px);
|
||||
margin: 1px 0 1em;
|
||||
outline: 1px solid rgb(227 227 227);;
|
||||
outline: 1px solid rgb(227, 227, 227);
|
||||
|
||||
table td {
|
||||
&:first-child,
|
||||
|
||||
Reference in New Issue
Block a user