forked from EleutherAI/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Refactor and condense CSS - Rebuild primary navigation bar to something more logical and accessible on touch devices - Optimize logotext font loading by preloading new WOFF2 font file - Replace logos for Discord and GitHub with officially provided ones - Replace `apple-touch-icon` with better composed version - Add maskable icons - Move manifest file to site root and specify maskable icons - Fix formatting issue on FAQ page for BibTeX entries - Make first list entry not huge - Remove redundant files - Update production Hugo version to `0.86.0`
- Loading branch information
1 parent
22d8f4d
commit 28da230
Showing
26 changed files
with
170 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[context.production.environment] | ||
HUGO_VERSION = "0.83.1" | ||
HUGO_VERSION = "0.86.0" | ||
HUGO_ENV = "production" | ||
HUGO_ENABLEGITINFO = "true" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"icons": [ | ||
{ | ||
"src": "/favicon/android-chrome-192x192.png", | ||
"sizes":"192x192", | ||
"type":"image/png", | ||
"purpose": "any" | ||
}, | ||
{ | ||
"src":"/favicon/android-chrome-512x512.png", | ||
"sizes":"512x512", | ||
"type":"image/png", | ||
"purpose": "any" | ||
}, | ||
{ | ||
"src": "/favicon/maskable_icon_x192.png", | ||
"sizes":"192x192", | ||
"type":"image/png", | ||
"purpose": "maskable" | ||
}, | ||
{ | ||
"src":"/favicon/maskable_icon_x512.png", | ||
"sizes":"512x512", | ||
"type":"image/png", | ||
"purpose": "maskable" | ||
} | ||
], | ||
"start_url": "/", | ||
"theme_color":"#000000", | ||
"background_color":"#000000", | ||
"display":"standalone" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,102 @@ | ||
.nav { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-between; | ||
max-width: calc(var(--nav-width) + var(--gap) * 2); | ||
margin-inline-start: auto; | ||
margin-inline-end: auto; | ||
line-height: var(--header-height); | ||
@font-face { | ||
font-family: 'Eleuther'; | ||
src: url('/fonts/eleuther.woff2') format('woff2'), | ||
url('/fonts/eleuther.ttf') format('truetype'); | ||
font-display: swap; | ||
} | ||
|
||
.nav a { | ||
display: block; | ||
header.header { | ||
background-color: black; | ||
color-scheme: dark; | ||
} | ||
|
||
.logo, | ||
#menu { | ||
header.header * { | ||
color: white; | ||
} | ||
|
||
.nav-container { | ||
display: flex; | ||
margin: auto var(--gap); | ||
flex-wrap: wrap; | ||
justify-content: space-between; | ||
max-width: var(--nav-width); | ||
overflow-x: auto; | ||
margin-inline-start: auto; | ||
margin-inline-end: auto; | ||
position: relative; | ||
} | ||
|
||
.logo { | ||
flex-wrap: inherit; | ||
margin: var(--min-keepout) calc(4*var(--min-keepout)) var(--min-keepout) calc(2*var(--min-keepout)); | ||
} | ||
|
||
.logo a { | ||
font-size: 24px; | ||
font-weight: 700; | ||
.logo { | ||
font-size: 26px; | ||
font-family: 'Eleuther', sans-serif; | ||
font-weight: normal; | ||
} | ||
|
||
.logo a img { | ||
.logo img { | ||
display: inline; | ||
vertical-align: middle; | ||
pointer-events: none; | ||
transform: translate(0, -10%); | ||
border-radius: 6px; | ||
margin-inline-end: 8px; | ||
} | ||
|
||
#theme-toggle svg { | ||
height: 18px; | ||
} | ||
|
||
button#theme-toggle { | ||
font-size: 26px; | ||
margin: auto 4px; | ||
.nav { | ||
display: inline-block; | ||
display: flex; | ||
margin: auto 0; | ||
overflow-x: clip; | ||
flex-wrap: wrap; | ||
} | ||
|
||
body.dark #moon { | ||
vertical-align: middle; | ||
display: none; | ||
.nav::after { | ||
display: inline-block; | ||
content: ''; | ||
width: var(--min-touch); | ||
height: 0; | ||
} | ||
|
||
body:not(.dark) #sun { | ||
display: none; | ||
.nav a { | ||
line-height: var(--min-touch); | ||
display: block; | ||
} | ||
|
||
#menu { | ||
display: flex; | ||
list-style: none; | ||
word-break: keep-all; | ||
overflow-x: auto; | ||
white-space: nowrap; | ||
} | ||
|
||
#menu li + li { | ||
margin-inline-start: var(--gap); | ||
#menu li { | ||
margin-inline-start: 1em; | ||
} | ||
|
||
#menu li:last-child { | ||
margin-inline-end: 1em; | ||
} | ||
|
||
#menu a { | ||
font-size: 16px; | ||
font-size: 1em; | ||
} | ||
|
||
#menu .active { | ||
font-weight: 500; | ||
border-bottom: 2px solid currentColor; | ||
} | ||
|
||
.lang-switch li, | ||
.lang-switch ul, | ||
.logo-switches { | ||
display: inline-flex; | ||
margin: auto 4px; | ||
} | ||
|
||
.lang-switch { | ||
display: flex; | ||
flex-wrap: inherit; | ||
} | ||
|
||
.lang-switch a { | ||
margin: auto 3px; | ||
font-size: 16px; | ||
font-weight: 500; | ||
} | ||
|
||
.logo-switches { | ||
flex-wrap: inherit; | ||
button#theme-toggle { | ||
font-size: 24px; | ||
position: absolute; | ||
height: var(--min-touch); | ||
width: var(--min-touch); | ||
top: var(--min-keepout); | ||
right: var(--min-keepout); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.