Commit 23c78cda authored by yPhil's avatar yPhil
Browse files

@font-face first

parent 1a7cc533
var express = require('express'),
path = require('path'),
index = require('./routes/index'),
fs = require('fs'),
pjson = require('./package.json'),
app = express();
var bodyParser = require('body-parser');
const express = require('express'),
path = require('path'),
index = require('./routes/index'),
fs = require('fs'),
pjson = require('./package.json'),
app = express(),
bodyParser = require('body-parser');
if (!fs.existsSync(path.join(__dirname, pjson.FAVICONS_CACHE_DIR))){
fs.mkdirSync(path.join(__dirname, pjson.FAVICONS_CACHE_DIR));
......
#!/usr/bin/env node
var app = require('../app');
var debug = require('debug')('petrolette:server');
var http = require('http');
const fs = require('fs');
var port = normalizePort('8000');
const app = require('../app'),
debug = require('debug')('petrolette:server'),
http = require('http'),
fs = require('fs'),
port = normalizePort('8000');
app.set('port', port);
function isLocal() {
......
@font-face {
font-family: LobsterRegular;
font-style: normal;
font-weight: normal;
src: url('/static/font/Lobster.otf') format("opentype");
src: url('/static/font/Lobster.ttf') format('truetype');
}
@font-face {
font-family: BebasNeueRegular;
font-style: normal;
font-weight: normal;
src: url('/static/font/BebasNeue.otf') format("opentype");
}
:root {
--color-highlight: 255, 0, 0;
--color-ui-pri: #f4f4f4;
......@@ -70,21 +85,6 @@
}
}
@font-face {
font-family: LobsterRegular;
font-style: normal;
font-weight: normal;
src: url('/static/font/Lobster.otf') format("opentype");
src: url('/static/font/Lobster.ttf') format('truetype');
}
@font-face {
font-family: BebasNeueRegular;
font-style: normal;
font-weight: normal;
src: url('/static/font/BebasNeue.otf') format("opentype");
}
body {
/* color: var(--color-pri); */
background-color: var(--color-qua);
......@@ -131,7 +131,7 @@ a:visited {
a:hover,
a:active {
color: var(--color-sec);
color: var(--color-pri) !important;
}
.introjs-tooltip a:hover,
......@@ -424,7 +424,7 @@ i.dangerous:hover {
.feed-header > .feed-title > a:link,
.feed-header > .feed-title > a:visited {
color: var(--color-sec);
color: var(--color-ter);
}
.feed-header > .feed-title > a.danger:link,
......@@ -1083,8 +1083,8 @@ li.feed {
}
.feed-header {
background-color: var(--color-sen);
color: var(--color-pri);
background-color: var(--color-sec);
color: var(--color-ter);
transition: all 0.3s linear;
display: flex;
flex-direction: row;
......@@ -1193,7 +1193,7 @@ table tr {
table tr:nth-child(even),
li.feed-item:nth-child(even) {
background-color: var(--color-ui-oct);
background-color: var(--color-sep);
}
li.feed-item:nth-child(even) {
......@@ -1211,8 +1211,9 @@ li.feed:hover div.feed-body {
}
li.feed-item:hover {
background-color: var(--color-sen);
color: var(--color-sep);
background-color: var(--color-oct);
/* color: var(--color-sep); */
}
a.feed-link:hover {
......
......@@ -4,8 +4,8 @@
--color-ter: #333333;
--color-qua: #8CA9D3;
--color-qui: #788780; /* visited links */
--color-sen: #647295;
--color-sep: #647295;
--color-sen: #c2c8d6;
--color-sep: #8590ad;
--color-oct: #7C818C;
--color-non: #e3eff3;
--color-den: #94c2d1;
......
:root {
--color-pri: #ffffff;
--color-sec: #FF4136;
--color-sec: #333333;
--color-ter: #FF4136;
--color-qua: #29323c;
--color-qui: #B0C4DE; /* visited links */
......
......@@ -53,16 +53,16 @@
<link rel="stylesheet" href="/static/css/themes/base/jquery-ui.min.css">
<link id="theme" rel="stylesheet" href="/static/css/themes/night.css">
<!-- <link rel="stylesheet" href="/static/css/fontello.css"> -->
<link rel="stylesheet" href="/static/css/fontello.css">
<link rel="stylesheet" href="/bower/fancybox/dist/jquery.fancybox.min.css" />
<link rel="stylesheet" href="/bower/intro.js/minified/introjs.min.css" />
<!-- https://css-tricks.com/how-to-load-fonts-in-a-way-that-fights-fout-and-makes-lighthouse-happy/ -->
<link rel="preload"
as="style"
href="/static/css/fontello.css" />
<!--
<link rel="preload"
as="style"
href="/static/css/fontello.css" />
-->
<link rel="preload"
as="style"
href="/static/css/petrolette.css" />
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment