Remove remaining Google Fonts (#840)

* Remove remaining Google Fonts

Replaces remaining Google fonts with web safe fonts (resolves #249).

* Restore error page background image

Embed the background inline for the error page.
This commit is contained in:
Adam authored and GitHub committed 2023-02-18 15:52:34 -08:00
1 parent a977880de4
commit 91a892c5be
5 files changed
+16 -26

No files matched your search

+12 -12
View File
@@ -147,19 +147,19 @@ body { margin: 0; padding: 0; background: url(../images/bodyBg.jpg) repeat; font
/* ========== General styles ========== */
.wrapper { width: 980px; margin: auto; }
.wrapper { width: 1000px; margin: auto; }
.img { border: 1px solid #d5d5d5; }
/* ========== Typo ========== */
h1, h2, h3, h4, h5, h6, ul.tabs li a, .leftNav ul li a, .stats ul li span, .userLink, .errorPage p, .ui-dialog .ui-dialog-title { font-family: 'Cuprum', sans-serif; font-weight: normal; }
h1 { font-size: 24px; }
h2 { font-size: 22px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
h1, h2, h3, h4, h5, h6, ul.tabs li a, .leftNav ul li a, .stats ul li span, .userLink, .errorPage p, .ui-dialog .ui-dialog-title { font-family: Arial, Helvetica, sans-serif; font-weight: normal; }
h1 { font-size: 22px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }
blockquote { border : 1px solid #d5d5d5; width: 702px; margin-top: 40px; padding: 15px 10px; quotes: "\201C" "\201D"; background: #fafafa; text-align: center; font-style: italic; font-size: 12px; border-left: 4px solid #d5d5d5; }
blockquote:before { content: open-quote; font-weight: bold; }
@@ -331,7 +331,7 @@ input[type=submit], input[type=reset], input[type=button], button, .button { fon
/* ===== Left navigation ===== */
.leftNav { width: 212px; margin-top: -1px; float: left; margin-right: 41px; margin-bottom: 80px; }
.leftNav { width: 210px; margin-top: -1px; float: left; margin-right: 30px; margin-bottom: 80px; }
.leftNav .last { border-bottom: none; }
.leftNav ul li { position: relative; }
@@ -481,7 +481,7 @@ html ul.tabs li.activeTab a { color: #797979; }
.widgets .right { float: right; width: 344px; }
.content { float: left; width: 726px; margin-bottom: 80px; }
.content .title { background: url(../images/darkBg.jpg) repeat-x; height: 36px; width: 726px; -moz-box-shadow: 0 1px 0 #fff; -webkit-box-shadow: 0 1px 0 #fff; box-shadow: 0 1px 0 #fff; }
.content .title { background: url(../images/darkBg.jpg) repeat-x; height: 36px; width: 760px; -moz-box-shadow: 0 1px 0 #fff; -webkit-box-shadow: 0 1px 0 #fff; box-shadow: 0 1px 0 #fff; }
.content .title h5 { float: left; color: #fafafa; font-weight: normal; display: block; padding: 7px 15px; }
@@ -1042,10 +1042,10 @@ li.plupload_droptext { background: transparent; text-align: center; vertical-ali
.swMain .stepContainer .StepTitle { display: block; position: relative; margin: 0; border: 1px solid #E0E0E0; padding: 5px; color: #5A5655; clear: both; text-align: left; z-index: 88; }
.swMain ul.anchor { position: relative; display: block; float: left; list-style: none; padding: 0px; clear: both; border-top: 1px solid #d5d5d5; border-bottom: 1px solid #d5d5d5; width: 724px; }
.swMain ul.anchor { position: relative; display: block; float: left; list-style: none; padding: 0px; clear: both; border-top: 1px solid #d5d5d5; border-bottom: 1px solid #d5d5d5; width: 760px; }
.swMain ul.anchor li { position: relative; display:block; margin: 0; padding: 0; border-left: 1px solid #d5d5d5; float: left; }
.swMain ul.anchor li:first-child { border-left: none; }
.swMain ul.anchor li a { display: block; position: relative; float: left; margin: 0; height: 38px; width: 180px; text-decoration: none; outline-style: none; z-index: 99; cursor: pointer; background: url(../images/leftNavBg.png) repeat-x 0 0; }
.swMain ul.anchor li a { display: block; position: relative; float: left; margin: 0; height: 38px; width: 192px; text-decoration: none; outline-style: none; z-index: 99; cursor: pointer; background: url(../images/leftNavBg.png) repeat-x 0 0; }
.swMain ul.anchor li a.wFirst { width: 181px; }
.swMain ul.anchor li a .stepNumber { position:relative; float:left; width:30px; text-align: center; padding:5px; padding-top:0; }
-1
View File
@@ -5,7 +5,6 @@
<title>FOSSBilling setup</title>
<base href="{{ constant('BB_URL_INSTALL') }}"/>
<link href="./assets/css/main.css" rel="stylesheet" type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Cuprum" rel="stylesheet" type="text/css" />
</head>
<body>
+3 -9
View File
@@ -103,9 +103,6 @@ function handler_exception($e)
<title>An error ocurred</title>
<!-- Google font -->
<link href=\"https://fonts.googleapis.com/css?family=Nunito:400,700\" rel=\"stylesheet\">
<style>
* {
-webkit-box-sizing: border-box;
@@ -132,6 +129,7 @@ function handler_exception($e)
}
.error {
font-family: Arial, Helvetica, sans-serif;
max-width: 560px;
width: 100%;
padding-left: 160px;
@@ -145,7 +143,7 @@ function handler_exception($e)
display: inline-block;
width: 150px;
height: 150px;
background-image: url('/themes/huraga/assets/img/fb_wallet.svg');
background-image: url('data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTkuNDMgNjguNyI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiMwMDgxYzU7fS5jbHMtMntmaWxsOiNmZmY7fS5jbHMtM3tmaWxsOiNmYWM5NjU7fS5jbHMtNHtmaWxsOiMwNTA0MDc7fS5jbHMtNCwuY2xzLTV7c3Ryb2tlOiNmZmY7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fS5jbHMtNXtmaWxsOiMxYTExMGY7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJMYXllcl8xLTIiPjxnPjxnPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuODQsMzcuODZjLTEuMzcsMC0yLjUxLTEuMzUtMi41OC0zLjA4TDUuOTksNi41NmMtLjA4LTEuNzksMS4wMS0zLjMyLDIuNDQtMy40MUw1MS4yMywuNWguMTNjMS4zNywwLDIuNTEsMS4zNSwyLjU4LDMuMDdsMS4yNiwyOC4yM2MuMDgsMS43OS0xLjAxLDMuMzItMi40NCwzLjQxbC00Mi44LDIuNjVoLS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jEsLjktMiwyLTJaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0LjQ3IC00LjMxKSByb3RhdGUoNSkiLz48L2c+PC9nPjwvc3ZnPg==');
background-repeat: no-repeat;
background-size: 124px 144px;
}
@@ -164,7 +162,6 @@ function handler_exception($e)
}
.error h1 {
font-family: 'Nunito', sans-serif;
font-size: 65px;
font-weight: 700;
margin-top: 0px;
@@ -174,7 +171,6 @@ function handler_exception($e)
}
.error h2 {
font-family: 'Nunito', sans-serif;
font-size: 21px;
font-weight: 400;
margin: 0;
@@ -183,13 +179,11 @@ function handler_exception($e)
}
.error p {
font-family: 'Nunito', sans-serif;
color: #999fa5;
font-weight: 400;
}
.error a {
font-family: 'Nunito', sans-serif;
display: inline-block;
font-weight: 700;
border-radius: 40px;
@@ -210,7 +204,7 @@ function handler_exception($e)
}
code {
font-family: Consolas,'courier new';
font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;
color: crimson;
background-color: #f1f1f1;
padding: 2px;
@@ -3,14 +3,12 @@
<head>
<title>{{ 'System undergoing maintenance'|trans }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
background-color: #eee;
}
h1, h2, h3, h4, p, li {
font-family: 'Roboto', sans-serif;
font-family: Arial, Helvetica, sans-serif;
}
</style>
</head>
@@ -181,7 +181,6 @@ h6,
.userLink,
.errorPage p,
.ui-dialog .ui-dialog-title {
font-family: 'Cuprum', sans-serif;
font-weight: normal;
}