mirror of
https://github.com/Luzifer/password.git
synced 2024-11-08 17:30:10 +00:00
Ensure fonts are loaded from local instead of gfonts
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
032281ba56
commit
baa5d41ba0
7 changed files with 953 additions and 34 deletions
1
Makefile
1
Makefile
|
@ -1,6 +1,7 @@
|
|||
default: pack
|
||||
|
||||
compile_js:
|
||||
rm -f ./frontend/assets/*
|
||||
docker run --rm -i \
|
||||
-v "$(CURDIR):$(CURDIR)" \
|
||||
-w "$(CURDIR)/js" \
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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
31
js/src/style.scss
Normal 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;
|
||||
}
|
||||
|
|
@ -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)$/,
|
||||
|
|
931
js/yarn.lock
931
js/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue