Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yPhil
Pétrolette
Commits
23c78cda
Commit
23c78cda
authored
Feb 16, 2021
by
yPhil
Browse files
@font-face first
parent
1a7cc533
Changes
6
Hide whitespace changes
Inline
Side-by-side
app.js
View file @
23c78cda
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
));
...
...
bin/www
View file @
23c78cda
#!/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
()
{
...
...
public/css/petrolette.css
View file @
23c78cda
@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-se
n
);
color
:
var
(
--color-
pri
);
background-color
:
var
(
--color-se
c
);
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
{
...
...
public/css/themes/day.css
View file @
23c78cda
...
...
@@ -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
;
...
...
public/css/themes/night.css
View file @
23c78cda
:root
{
--color-pri
:
#ffffff
;
--color-sec
:
#
FF4136
;
--color-sec
:
#
333333
;
--color-ter
:
#FF4136
;
--color-qua
:
#29323c
;
--color-qui
:
#B0C4DE
;
/* visited links */
...
...
views/index.html
View file @
23c78cda
...
...
@@ -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"
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment