Skip to content

Commit

Permalink
Merge pull request #130 from ripcurlx/compress-css
Browse files Browse the repository at this point in the history
Use SASS pipeline to compress and merge css files
  • Loading branch information
ripcurlx authored Feb 26, 2019
2 parents 31ce788 + a2bd055 commit eebe578
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 32 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ gem 'jekyll-livereload'
gem 'jekyll-redirect-from'
gem 'jekyll-feed'
gem 'jekyll-sitemap'
gem 'jekyll-paginate'
gem 'jekyll-paginate'
gem 'jekyll-sass-converter'
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ DEPENDENCIES
jekyll-livereload
jekyll-paginate
jekyll-redirect-from
jekyll-sass-converter
jekyll-sitemap

BUNDLED WITH
1.16.1
1.17.2
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ paginate: 10
paginate_path: "/blog/page/:num/"
client_version: "0.9.4"
description: "Bisq is an open-source desktop application that allows you to buy and sell bitcoins in exchange for national currencies, or alternative crypto currencies."
sass:
style: compressed
3 changes: 1 addition & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@

<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<link href="{{ site.url }}/css/bootstrap.css" rel="stylesheet">
<link href="{{ site.url }}/css/styles.css" rel="stylesheet">
<link href="{{ '/css/styles.css' | relative_url }}" rel="stylesheet">

<link rel="apple-touch-icon" sizes="180x180" href="{{ site.url }}/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ site.url }}/images/bisq-fav.png">
Expand Down
3 changes: 1 addition & 2 deletions _layouts/post-report.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ <h1 class="float-left display-1">{{ page.title }}</h1>
<div id="report-content">
{{ content }}


<link href="{{ site.url }}/css/chosen.css" rel="stylesheet">
<link href="{{ '/css/chosen.css' | relative_url }}" rel="stylesheet">

<script defer src="{{ site.url }}/js/highstock.js"></script>
<script defer src="{{ site.url }}/js/drag-panes.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion css/bootstrap-grid.css → _sass/bootstrap-grid.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*!
* Bootstrap Grid v4.1.0 (https://getbootstrap.com/)
* Copyright 2011-2018 The Bootstrap Authors
Expand Down Expand Up @@ -1909,4 +1910,4 @@ html {
align-self: stretch !important;
}
}
/*# sourceMappingURL=bootstrap-grid.css.map */
/*# sourceMappingURL=bootstrap-grid.css.map */
2 changes: 1 addition & 1 deletion css/bootstrap-reboot.css → _sass/bootstrap-reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -327,4 +327,4 @@ template {
[hidden] {
display: none !important;
}
/*# sourceMappingURL=bootstrap-reboot.css.map */
/*# sourceMappingURL=bootstrap-reboot.css.map */
2 changes: 1 addition & 1 deletion css/bootstrap.css → _sass/bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9026,4 +9026,4 @@ a.text-dark:hover, a.text-dark:focus {
color: inherit;
border-color: #dee2e6;
}
}
}
7 changes: 0 additions & 7 deletions css/bootstrap-grid.min.css

This file was deleted.

8 changes: 0 additions & 8 deletions css/bootstrap-reboot.min.css

This file was deleted.

7 changes: 0 additions & 7 deletions css/bootstrap.min.css

This file was deleted.

5 changes: 5 additions & 0 deletions css/chosen.css → css/chosen.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
# this ensures Jekyll reads the file to be transformed into CSS later
# only Main files contain this front matter, not partials.
---

/*!
Chosen, a Select Box Enhancer for jQuery and Prototype
by Patrick Filler for Harvest, http://getharvest.com
Expand Down
7 changes: 7 additions & 0 deletions css/styles.css → css/styles.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
# this ensures Jekyll reads the file to be transformed into CSS later
# only Main files contain this front matter, not partials.
---

@import "bootstrap";

body {
font-family: 'IBM Plex Sans', sans-serif;
overflow-x: hidden;
Expand Down
2 changes: 1 addition & 1 deletion markets.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
---
<!-- <h1>Bisq Markets</h1> -->

<link href="{{ site.url }}/css/chosen.css" rel="stylesheet">
<link href="{{ '/css/chosen.css' | relative_url }}" rel="stylesheet">

<script defer src="{{ site.url }}/js/highstock.js"></script>
<script defer src="{{ site.url }}/js/drag-panes.js"></script>
Expand Down

0 comments on commit eebe578

Please sign in to comment.