1
0
mirror of https://github.com/Luzifer/password.git synced 2024-09-18 18:02:56 +00:00

Ensure fonts are loaded from local instead of gfonts

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-12-30 13:43:38 +01:00
parent 032281ba56
commit baa5d41ba0
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E
7 changed files with 953 additions and 34 deletions

View File

@ -1,6 +1,7 @@
default: pack
compile_js:
rm -f ./frontend/assets/*
docker run --rm -i \
-v "$(CURDIR):$(CURDIR)" \
-w "$(CURDIR)/js" \

View File

@ -13,7 +13,11 @@
},
"dependencies": {
"bootstrap": "^3.3.7",
"bootstrap-sass": "^3.3.7",
"bootswatch": "^3.3.7",
"jquery": "^3.3.1"
"jquery": "^3.3.1",
"node-sass": "^4.11.0",
"sass-loader": "^7.1.0",
"typeface-roboto": "^0.0.54"
}
}

View File

@ -1,8 +1,7 @@
import 'jquery'
import 'bootstrap'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootswatch/paper/bootstrap.min.css'
import './style.scss'
import storage from './storage.js'

View File

@ -1,7 +0,0 @@
body { background-color: #e2e2e2; }
.white { background-color: #fff; }
.center { text-align: center; }
.faq { margin-top: 3em; }
.progress { margin-bottom: 0px; }
.jumbotron p { margin-bottom: 0; }

31
js/src/style.scss Normal file
View File

@ -0,0 +1,31 @@
$icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/";
$web-font-path: '~typeface-roboto/index.css';
@import '~bootswatch/paper/_variables.scss';
@import "~bootstrap-sass/assets/stylesheets/bootstrap";
@import '~bootswatch/paper/_bootswatch.scss';
body {
background-color: #e2e2e2;
}
.white {
background-color: #fff;
}
.center {
text-align: center;
}
.faq {
margin-top: 3em;
}
.progress {
margin-bottom: 0px;
}
.jumbotron p {
margin-bottom: 0;
}

View File

@ -22,8 +22,12 @@ module.exports = {
}
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
test: /\.s?css$/,
use: [
"style-loader", // creates style nodes from JS strings
"css-loader", // translates CSS into CommonJS
"sass-loader" // compiles Sass to CSS, using Node Sass by default
]
},
{
test: /\.(woff|woff2|eot|ttf|otf|svg)$/,

File diff suppressed because it is too large Load Diff