mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
local webfonts
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,7 +6,6 @@ npm-debug.log
|
|||||||
vwd.webinfo
|
vwd.webinfo
|
||||||
css/
|
css/
|
||||||
dist/
|
dist/
|
||||||
webfonts/
|
|
||||||
*.pem
|
*.pem
|
||||||
*.crx
|
*.crx
|
||||||
*.zip
|
*.zip
|
||||||
|
|||||||
@@ -13,9 +13,6 @@
|
|||||||
<link rel="icon" type="image/png" sizes="16x16" href="images/icons/favicon-16x16.png">
|
<link rel="icon" type="image/png" sizes="16x16" href="images/icons/favicon-16x16.png">
|
||||||
<link rel="mask-icon" href="images/icons/safari-pinned-tab.svg" color="#3c8dbc">
|
<link rel="mask-icon" href="images/icons/safari-pinned-tab.svg" color="#3c8dbc">
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
|
|
||||||
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
|
|
||||||
crossorigin="anonymous">
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="layout_frontend">
|
<body class="layout_frontend">
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
$fa-font-path: "~font-awesome/fonts";
|
||||||
|
@import "~font-awesome/scss/font-awesome.scss";
|
||||||
@import "~angular2-toaster/toaster";
|
@import "~angular2-toaster/toaster";
|
||||||
|
|
||||||
#toast-container {
|
#toast-container {
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@import "../webfonts/webfonts.css";
|
||||||
|
|
||||||
$primary: #3c8dbc;
|
$primary: #3c8dbc;
|
||||||
$primary-accent: #286090;
|
$primary-accent: #286090;
|
||||||
$secondary: #ced4da;
|
$secondary: #ced4da;
|
||||||
|
|||||||
BIN
src/webfonts/Open_Sans-italic-300.woff
Normal file
BIN
src/webfonts/Open_Sans-italic-300.woff
Normal file
Binary file not shown.
BIN
src/webfonts/Open_Sans-italic-400.woff
Normal file
BIN
src/webfonts/Open_Sans-italic-400.woff
Normal file
Binary file not shown.
BIN
src/webfonts/Open_Sans-italic-600.woff
Normal file
BIN
src/webfonts/Open_Sans-italic-600.woff
Normal file
Binary file not shown.
BIN
src/webfonts/Open_Sans-italic-700.woff
Normal file
BIN
src/webfonts/Open_Sans-italic-700.woff
Normal file
Binary file not shown.
BIN
src/webfonts/Open_Sans-italic-800.woff
Normal file
BIN
src/webfonts/Open_Sans-italic-800.woff
Normal file
Binary file not shown.
BIN
src/webfonts/Open_Sans-normal-300.woff
Normal file
BIN
src/webfonts/Open_Sans-normal-300.woff
Normal file
Binary file not shown.
BIN
src/webfonts/Open_Sans-normal-400.woff
Normal file
BIN
src/webfonts/Open_Sans-normal-400.woff
Normal file
Binary file not shown.
BIN
src/webfonts/Open_Sans-normal-600.woff
Normal file
BIN
src/webfonts/Open_Sans-normal-600.woff
Normal file
Binary file not shown.
BIN
src/webfonts/Open_Sans-normal-700.woff
Normal file
BIN
src/webfonts/Open_Sans-normal-700.woff
Normal file
Binary file not shown.
BIN
src/webfonts/Open_Sans-normal-800.woff
Normal file
BIN
src/webfonts/Open_Sans-normal-800.woff
Normal file
Binary file not shown.
79
src/webfonts/webfonts.css
Normal file
79
src/webfonts/webfonts.css
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 300;
|
||||||
|
src: url(Open_Sans-italic-300.woff) format('woff');
|
||||||
|
unicode-range: U+0-10FFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(Open_Sans-italic-400.woff) format('woff');
|
||||||
|
unicode-range: U+0-10FFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 600;
|
||||||
|
src: url(Open_Sans-italic-600.woff) format('woff');
|
||||||
|
unicode-range: U+0-10FFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 700;
|
||||||
|
src: url(Open_Sans-italic-700.woff) format('woff');
|
||||||
|
unicode-range: U+0-10FFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 800;
|
||||||
|
src: url(Open_Sans-italic-800.woff) format('woff');
|
||||||
|
unicode-range: U+0-10FFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 300;
|
||||||
|
src: url(Open_Sans-normal-300.woff) format('woff');
|
||||||
|
unicode-range: U+0-10FFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(Open_Sans-normal-400.woff) format('woff');
|
||||||
|
unicode-range: U+0-10FFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 600;
|
||||||
|
src: url(Open_Sans-normal-600.woff) format('woff');
|
||||||
|
unicode-range: U+0-10FFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
src: url(Open_Sans-normal-700.woff) format('woff');
|
||||||
|
unicode-range: U+0-10FFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 800;
|
||||||
|
src: url(Open_Sans-normal-800.woff) format('woff');
|
||||||
|
unicode-range: U+0-10FFFF;
|
||||||
|
}
|
||||||
@@ -40,6 +40,17 @@ const moduleRules = [
|
|||||||
test: /\.(html)$/,
|
test: /\.(html)$/,
|
||||||
loader: 'html-loader',
|
loader: 'html-loader',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
test: /.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
|
||||||
|
exclude: /loading.svg/,
|
||||||
|
use: [{
|
||||||
|
loader: 'file-loader',
|
||||||
|
options: {
|
||||||
|
name: '[name].[ext]',
|
||||||
|
outputPath: 'fonts/',
|
||||||
|
},
|
||||||
|
}],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
test: /\.(jpe?g|png|gif|svg)$/i,
|
test: /\.(jpe?g|png|gif|svg)$/i,
|
||||||
exclude: /.*(fontawesome-webfont)\.svg/,
|
exclude: /.*(fontawesome-webfont)\.svg/,
|
||||||
|
|||||||
Reference in New Issue
Block a user