Commit 16affd7e authored by Houtan Bastani's avatar Houtan Bastani
Browse files

use icomoon subset of fonts for icons instead of entire font-awesome set

parent fe510fb1
......@@ -115,19 +115,19 @@ author:
footer:
links:
- label: "Forum"
icon: "fab fa-discourse"
icon: "icon-discourse"
url: https://forum.dynare.org/
- label: "Git"
icon: "fab fa-fw fa-gitlab"
icon: "icon-gitlab"
url: https://git.dynare.org/Dynare/dynare
- label: "Wiki"
icon: "fab fa-wikipedia-w"
icon: "icon-wikipedia-w"
url: https://git.dynare.org/Dynare/dynare/wikis/home
- label: "Known Bugs"
icon: "fas fa-bug"
icon: "icon-bug"
url: https://git.dynare.org/Dynare/dynare/wikis/KnownBugs
- label: "Roadmap"
icon: "fas fa-road"
icon: "icon-road"
url: https://git.dynare.org/Dynare/dynare/wikis/RoadMap
......
......@@ -23,7 +23,7 @@
{% for snapshot in snapshot_files %}
{% if snapshot.extname == ".exe" %}
<div class="download_row" onclick="document.location = '{{ snapshot.path }}'">
<div class="download_cell_left"><i class="fas fa-file-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_left"><i class="icon-document-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
</div>
{% endif %}
......@@ -36,7 +36,7 @@
{% for snapshot in snapshot_files %}
{% if snapshot.extname == ".zip" %}
<div class="download_row" onclick="document.location = '{{ snapshot.path }}'">
<div class="download_cell_left"><i class="fas fa-file-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_left"><i class="icon-document-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
</div>
{% endif %}
......@@ -58,7 +58,7 @@
{% for snapshot in snapshot_files %}
{% if snapshot.extname == ".zip" %}
<div class="download_row" onclick="document.location = '{{ snapshot.path }}'">
<div class="download_cell_left"><i class="fas fa-file-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_left"><i class="icon-document-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
</div>
{% endif %}
......@@ -84,7 +84,7 @@
{% for snapshot in snapshot_files %}
{% if snapshot.extname == ".xz" %}
<div class="download_row" onclick="document.location = '{{ snapshot.path }}'">
<div class="download_cell_left"><i class="fas fa-file-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_left"><i class="icon-document-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
</div>
{% endif %}
......
......@@ -17,12 +17,12 @@
Compatible with Windows (XP/Vista/7/8/10), MATLAB (R2007b and later) and Octave (4.4.0)
</p>
<p class="stable">
<i class="fas fa-file-download"></i>
<i class="icon-document-download"></i>
<a href="https://www.dynare.org/release/windows/dynare-4.5.6-win.exe">Dynare 4.5.6 (exe)</a>
<a href="https://www.dynare.org/release/windows/dynare-4.5.6-win.exe.sig">[signature]</a>
</p>
<p class="stable">
<i class="fas fa-file-download"></i>
<i class="icon-document-download"></i>
<a href="https://www.dynare.org/release/windows-zip/dynare-4.5.6-win.zip">Dynare 4.5.6 (zip)</a>
<a href="https://www.dynare.org/release/windows-zip/dynare-4.5.6-win.zip.sig">[signature]</a>
</p>
......@@ -39,7 +39,7 @@
"Open" from the menu that pops up.
</p>
<p class="stable">
<i class="fas fa-file-download"></i>
<i class="icon-document-download"></i>
<a href="https://www.dynare.org/release/macosx/dynare-4.5.6.pkg">Dynare 4.5.6 (pkg)</a>
<a href="https://www.dynare.org/release/macosx/dynare-4.5.6.pkg.sig">[signature]</a>
</p>
......@@ -59,7 +59,7 @@
Source code, not needed by most users.
</p>
<p class="stable">
<i class="fas fa-file-download"></i>
<i class="icon-document-download"></i>
<a href="https://www.dynare.org/release/source/dynare-4.5.6.tar.xz">Dynare 4.5.6 (tar.gz)</a>
<a href="https://www.dynare.org/release/source/dynare-4.5.6.tar.xz.sig">[signature]</a>
</p>
......
......@@ -12,12 +12,12 @@
{% endfor %}
{% endif %}
<li><a href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | relative_url }}{% endif %}"><i class="fas fa-fw fa-rss-square" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}</a></li>
<li><a href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | relative_url }}{% endif %}"><i class="icon-rss-square" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}</a></li>
</ul>
</div>
<div class="page__footer-copyright">&copy; {{site.copyright_begin}} - {{ site.time | date: '%Y' }} {{ site.name | default: site.title }}. Content licensed under a <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License</a></div>
<div class="page__footer-copyright">
<i class="fas fa-map-marker-alt" aria-hidden="true"></i> <a href="http://www.cepremap.fr">Cepremap</a>, 48 boulevard Jourdan, 75014 Paris, France
<i class="icon-map-marker" aria-hidden="true"></i> <a href="http://www.cepremap.fr">Cepremap</a>, 48 boulevard Jourdan, 75014 Paris, France
</div>
{% if site.footer_scripts %}
{% for script in site.footer_scripts %}
{% if script contains "://" %}
{% capture script_path %}{{ script }}{% endcapture %}
{% else %}
{% capture script_path %}{{ script | relative_url }}{% endcapture %}
{% endif %}
<script src="{{ script_path }}"></script>
{% endfor %}
{% else %}
<script src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
{% endif %}
{% if site.search == true or page.layout == "search" %}
{%- assign search_provider = site.search_provider | default: "lunr" -%}
{%- case search_provider -%}
{%- when "lunr" -%}
{% include search/lunr-search-scripts.html %}
{%- when "google" -%}
{% include search/google-search-scripts.html %}
{%- when "algolia" -%}
{% include search/algolia-search-scripts.html %}
{%- endcase -%}
{% endif %}
{% include analytics.html %}
{% include /comments-providers/scripts.html %}
/* Generated from https://icomoon.io/app */
@font-face {
font-family: 'icomoon';
src: url('/assets/fonts/icomoon/icomoon.eot?z1c3c5');
src: url('/assets/fonts/icomoon/icomoon.eot?z1c3c5#iefix') format('embedded-opentype'),
url('/assets/fonts/icomoon/icomoon.ttf?z1c3c5') format('truetype'),
url('/assets/fonts/icomoon/icomoon.woff?z1c3c5') format('woff'),
url('/assets/fonts/icomoon/icomoon.svg?z1c3c5#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
[class^="icon-"], [class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'icomoon' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-map-marker:before {
font-family: 'icomoon' !important;
content: "\e912";
}
.icon-tool:before {
font-family: 'icomoon' !important;
content: "\e907";
}
.icon-preferences:before {
font-family: 'icomoon' !important;
content: "\e907";
}
.icon-book:before {
font-family: 'icomoon' !important;
content: "\e900";
}
.icon-document:before {
font-family: 'icomoon' !important;
content: "\e905";
}
.icon-document-download:before {
font-family: 'icomoon' !important;
content: "\e908";
}
.icon-zip:before {
font-family: 'icomoon' !important;
content: "\e909";
}
.icon-discourse:before {
font-family: 'icomoon' !important;
content: "\e906";
}
.icon-map-marker1:before {
font-family: 'icomoon' !important;
content: "\e913";
}
.icon-wikipedia-w:before {
font-family: 'icomoon' !important;
content: "\e914";
}
.icon-graduation-cap:before {
font-family: 'icomoon' !important;
content: "\e90b";
}
.icon-mortar-board:before {
font-family: 'icomoon' !important;
content: "\e90b";
}
.icon-dashboard:before {
font-family: 'icomoon' !important;
content: "\e901";
}
.icon-tachometer:before {
font-family: 'icomoon' !important;
content: "\e901";
}
.icon-external-link:before {
font-family: 'icomoon' !important;
content: "\e902";
}
.icon-rss-square:before {
font-family: 'icomoon' !important;
content: "\e903";
}
.icon-road:before {
font-family: 'icomoon' !important;
content: "\e904";
}
.icon-bug:before {
font-family: 'icomoon' !important;
content: "\e90c";
}
.icon-gitlab:before {
font-family: 'icomoon' !important;
content: "\e90d";
}
.icon-linux:before {
font-family: 'icomoon' !important;
content: "\e90e";
}
.icon-file-code-o:before {
font-family: 'icomoon' !important;
content: "\e90f";
}
.icon-apple:before {
font-family: 'icomoon' !important;
content: "\e910";
}
.icon-windows:before {
font-family: 'icomoon' !important;
content: "\e911";
}
$color1: red !default;
$color2: red !default;
......@@ -367,15 +486,15 @@ label.dynare_label {
}
label.dynare_label:before {
font-family: fontawesome;
font-weight: normal;
margin-right: 10px;
font-family: 'icomoon' !important;
font-weight: normal;
margin-right: 10px;
}
label.dynare_label[for*='1']:before { content: '\f17a'; }
label.dynare_label[for*='2']:before { content: '\f179'; }
label.dynare_label[for*='3']:before { content: '\f17c'; }
label.dynare_label[for*='4']:before { content: '\f1c9'; }
label.dynare_label[for*='1']:before { content: '\e911'; }
label.dynare_label[for*='2']:before { content: '\e910'; }
label.dynare_label[for*='3']:before { content: '\e90e'; }
label.dynare_label[for*='4']:before { content: '\e90f'; }
label.dynare_label:hover {
color: $download-tab-label-hover-color;
......
This diff is collapsed.
/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: url('#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}');
src: url('#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}') format('embedded-opentype'),
url('#{$fa-font-path}/fontawesome-webfont.woff2?v=#{$fa-version}') format('woff2'),
url('#{$fa-font-path}/fontawesome-webfont.woff?v=#{$fa-version}') format('woff'),
url('#{$fa-font-path}/fontawesome-webfont.ttf?v=#{$fa-version}') format('truetype'),
url('#{$fa-font-path}/fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular') format('svg');
// src: url('#{$fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
font-weight: normal;
font-style: normal;
}
This diff is collapsed.
/*!
* Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
*/
@import "variables";
@import "path";
@import "icons";
......@@ -49,8 +49,5 @@ $download-tr-color-hover: $news-color-hover !default;
@import "minimal-mistakes"; // main partials
$fa-font-path: "../fonts/font-awesome";
@import "font-awesome/font-awesome";
@import "dynare";
This diff is collapsed.
This diff is collapsed.
Markdown is supported
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