Skip to content
Permalink
Browse files

Update font loading strategy and cap lock wait time at 2s

  • Loading branch information...
SeinopSys committed May 17, 2019
1 parent eb59799 commit 0ae1027cb2764ef49f407581084e8aee0cf3c901
@@ -173,7 +173,7 @@ $TCharacter: adjust_hue($_TBase, 240);
font-weight: bold;
display: block;
margin: 0 0 5px;
font-family: 'Celestia', sans-serif;
font-family: $cursive;

.admin {
margin-top: 5px;
@@ -26,6 +26,7 @@ $DeviationBorder: #71a972;
$DeviantArtGreen: #05cc47;

$monospace: 'Consolas', monospace;
$cursive: 'Celestia', 'Lucida Calligraphy', 'Monotype Corsiva', cursive;
$RegularFont: 'Arimo', sans-serif;
$AvatarSize: 50px;

@@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700&subset=latin,latin-ext');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700&subset=latin,latin-ext&display=swap');
$ZIndexBase: 21000;

// Mobile-only Styles
@@ -1,6 +1,7 @@
@import url('https://fonts.googleapis.com/css?family=Arimo:400,700,400italic');
@import url('https://fonts.googleapis.com/css?family=Arimo:400,700,400italic&display=swap');
@font-face {
font-family: "Celestia";
font-display: swap;
src: url('/font/Celestia Medium Redux.ttf');
src: local('Celestia Redux Alternate'), local('Celestia Medium Redux'), url('/font/Celestia Medium Redux.ttf') format('truetype');
}
@@ -4,7 +4,7 @@
> h2 {
font-size: 1.3em;
margin: 0 0 8px;
font-family: "Celestia", sans-serif;
font-family: $cursive;

.typcn { margin-right: 7px }

@@ -23,7 +23,7 @@

.right-header {
margin: 0 0 10px;
font-family: 'Celestia';
font-family: $cursive;
}
}
}
@@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css?family=PT+Sans');
@import url('https://fonts.googleapis.com/css?family=PT+Sans&display=swap');
@import "../../vars";
@import "../../shared-utils";
@import "../../components/vital/buttons";
@@ -81,10 +81,10 @@
font-size: 28px;
padding: 5px 0 10px;
text-align:center;
font-family: "Celestia", sans-serif;
font-family: $cursive;
font-weight: normal;
color: #fff;
background: $HeaderBlue url('/img/grid-w-.1.svg') repeat;
background: $HeaderBlue url('/img/grid-4x4.svg') repeat;
background-size: 4px;
border: 1px solid black;
border-bottom: 0;
@@ -1,7 +1,7 @@
@import "../../vars";
@import "../../components/optional/fluidbox";
@import "../../components/optional/post-list";
@import url('https://fonts.googleapis.com/css?family=Signika');
@import url('https://fonts.googleapis.com/css?family=Signika&display=swap');

/* Mobile-only Styles */
@media all and (max-width: $Breakpoint){
@@ -64,7 +64,7 @@
line-height: 45px;
color: #000;
@include outline(2);
font-family: 'Celestia', sans-serif;
font-family: $cursive;
}
ul {
position: relative;
@@ -498,7 +498,7 @@ header, #sidebar .mobile-nav {
h1 {
text-align: center;
margin: 0 0 5px;
font-family: "Celestia", sans-serif;
font-family: $cursive;

+ p {
text-align: center;
@@ -676,7 +676,7 @@ header, #sidebar .mobile-nav {
h2 {
font-size: 24px;
margin: 0 0 5px;
font-family: "Celestia", sans-serif;
font-family: $cursive;
font-weight: normal;
}
p {
@@ -6,6 +6,13 @@
require __DIR__.'/init/monolog.php';
require __DIR__.'/init/twig.php';
// Wait a bit if assets are still compiling
$lock_sleep = 1000e3;
while (file_exists(PROJPATH.$_ENV['NPM_BUILD_LOCK_FILE_PATH'])){
usleep($lock_sleep);
$lock_sleep = min(2000e3, $lock_sleep * 1.15);
}
use App\About;
use App\CoreUtils;
@@ -29,13 +36,6 @@
unset($csp_header);
}
// Wait a bit if assets are still compiling
$lock_sleep = 1000e3;
while (file_exists(PROJPATH.$_ENV['NPM_BUILD_LOCK_FILE_PATH'])){
usleep($lock_sleep);
$lock_sleep *= 1.5;
}
function fatal_error(string $cause, ?Throwable $e = null){
\App\HTTP::statusCode(503);
if ($e !== null)

0 comments on commit 0ae1027

Please sign in to comment.
You can’t perform that action at this time.