Skip to content

Commit

Permalink
New theme: amusebaskerville
Browse files Browse the repository at this point in the history
  • Loading branch information
melmothx committed Oct 22, 2021
1 parent 6b41ada commit 76da59f
Show file tree
Hide file tree
Showing 25 changed files with 1,768 additions and 1 deletion.
17 changes: 17 additions & 0 deletions bootstrap-amw/amusebaskerville.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Modified Cosmo bootswatch theme with the amusewiki red */
@import "bootstrap.less";
@import "bootswatch/cosmo/variables.less";
@brand-primary: #8b0000;
@import "bootswatch/cosmo/bootswatch.less";
@web-font-path: '/static/css/libre-baskerville.css';
@import "amw-ui.less";

@font-family-sans-serif: Questrial, Calibri, Candara, Arial, sans-serif;
@font-family-serif: "Libre Baskerville", Georgia, "Times New Roman", Times, serif;
//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
@font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
@font-family-base: @font-family-serif;

.navbar, .footer {
font-family: @font-family-sans-serif;
}
3 changes: 2 additions & 1 deletion bootstrap-amw/generate.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/bash
set -e

# cp bootstrap/dist/fonts/* ../root/static/fonts
cp bootstrap/dist/js/bootstrap* ../root/static/js
lessc -x amusewiki.less ../root/static/css/bootstrap.css
for theme in amusecosmo amusewiki amusejournal robotojournal purplejournal; do
for theme in amusecosmo amusewiki amusejournal robotojournal purplejournal amusebaskerville; do
lessc -x $theme.less ../root/static/css/bootstrap.$theme.css
done

Expand Down
1 change: 1 addition & 0 deletions lib/AmuseWikiFarm/Schema/Result/Site.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4198,6 +4198,7 @@ sub bootstrap_themes {
my @themes = (qw/amusewiki
amusecosmo
amusejournal
amusebaskerville
robotojournal
purplejournal
Expand Down
1 change: 1 addition & 0 deletions root/static/css/bootstrap.amusebaskerville.css

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions root/static/css/libre-baskerville.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/* https://google-webfonts-helper.herokuapp.com/fonts/libre-baskerville?subsets=latin,latin-ext */
/* libre-baskerville-regular - latin-ext_latin */
@font-face {
font-family: 'Libre Baskerville';
font-style: normal;
font-weight: 400;
src: url('../fonts/libre-baskerville-v9-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/libre-baskerville-v9-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/libre-baskerville-v9-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/libre-baskerville-v9-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/libre-baskerville-v9-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/libre-baskerville-v9-latin-ext_latin-regular.svg#LibreBaskerville') format('svg'); /* Legacy iOS */
}

/* libre-baskerville-italic - latin-ext_latin */
@font-face {
font-family: 'Libre Baskerville';
font-style: italic;
font-weight: 400;
src: url('../fonts/libre-baskerville-v9-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/libre-baskerville-v9-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/libre-baskerville-v9-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/libre-baskerville-v9-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/libre-baskerville-v9-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/libre-baskerville-v9-latin-ext_latin-italic.svg#LibreBaskerville') format('svg'); /* Legacy iOS */
}

/* libre-baskerville-700 - latin-ext_latin */
@font-face {
font-family: 'Libre Baskerville';
font-style: normal;
font-weight: 700;
src: url('../fonts/libre-baskerville-v9-latin-ext_latin-700.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/libre-baskerville-v9-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/libre-baskerville-v9-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/libre-baskerville-v9-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */
url('../fonts/libre-baskerville-v9-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/libre-baskerville-v9-latin-ext_latin-700.svg#LibreBaskerville') format('svg'); /* Legacy iOS */
}

/* questrial-regular - latin-ext_latin */
@font-face {
font-family: 'Questrial';
font-style: normal;
font-weight: 400;
src: url('../fonts/questrial-v13-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/questrial-v13-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/questrial-v13-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/questrial-v13-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/questrial-v13-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/questrial-v13-latin-ext_latin-regular.svg#Questrial') format('svg'); /* Legacy iOS */
}
Binary file not shown.
Loading

0 comments on commit 76da59f

Please sign in to comment.