Skip to content

Commit

Permalink
Use webpack to compile CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkcuys committed Feb 1, 2023
1 parent bf253b9 commit 123b7d7
Show file tree
Hide file tree
Showing 27 changed files with 2,086 additions and 2,890 deletions.
9 changes: 8 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@

<!-- Custom CSS -->

<link rel="stylesheet" href="{{site.baseurl}}/assets/css/p2pu-custom.css">
<link rel="stylesheet" href="{{site.data.bundles['p2pu-theme']['css']}}" />
<link rel="stylesheet" href="{{site.data.bundles['common']['css']}}" />
<link rel="stylesheet" href="{{site.data.bundles['navbar']['css']}}" />

{% if layout.extra_css %}
{% for css in layout.extra_css %}
Expand All @@ -56,6 +58,11 @@
{% endfor %}
{% endif %}

{% for bundle in layout.bundles %}
<link rel="stylesheet" href="{{site.data.bundles[bundle]['css']}}" />
{% endfor %}


<link rel="shortcut icon" type="image/png" href="{{site.baseurl}}/assets/images/favicon.png">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
Expand Down
2 changes: 0 additions & 2 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"></script>

<script src="{{site.baseurl}}/assets/js/modal-backdrop.js"></script>

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion _sass/_common.scss → assets/css/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
font-size: $font-size-lg;
}
.composition{
background: url("/assets/images/bg-composition.png") repeat;
background: url("../images/bg-composition.png") repeat;
}
.img-fluid{
height: auto;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions _sass/_services.scss → assets/css/_services.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
}
}
section.contact{
background: url("/assets/images/bg-composition.png") repeat;
background: url("../images/bg-composition.png") repeat;
.container{
.contact-form{
background-color: #DBF5EE;
}
}
}
}
}
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion _sass/_topics.scss → assets/css/_topics.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#topic {
.header-wrap{
@include media-breakpoint-up(md) {
background: url(/assets/images/topics/topic-detail-bg.png) no-repeat center right $p2pu-light-yellow;
background: url(../images/topics/topic-detail-bg.png) no-repeat center right $p2pu-light-yellow;
background-size: contain !important;
background-position: 50vw center;
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions assets/css/p2pu-custom.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
---
---

@import "p2pu-theme/src/scss/base";
@import "p2pu-theme/src/scss/accordion";
@import "p2pu-theme/src/scss/cards/generic-card";
Expand Down
7 changes: 6 additions & 1 deletion assets/react/p2pu-theme.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
//import "p2pu-theme/src/js/base.js";
import "p2pu-theme/src/js/accordion.js";

//import "p2pu-theme/src/js/accordion.js";

import 'material-icons/iconfont/filled.scss';
import '@fortawesome/fontawesome-free/css/brands';
import '@fortawesome/fontawesome-free/css/solid';
import '@fortawesome/fontawesome-free/css/fontawesome';

import "../css/p2pu-custom.scss";

import { Collapse } from 'bootstrap'
2 changes: 1 addition & 1 deletion p2pu-theme
Submodule p2pu-theme updated 2 files
+7 −991 package-lock.json
+4 −2 package.json
Loading

0 comments on commit 123b7d7

Please sign in to comment.