Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Website
poul.org
Commits
3d0d41d8
Verified
Commit
3d0d41d8
authored
Sep 26, 2019
by
Davide Depau
Browse files
Fix PurgeCSS
parent
38f91cae
Pipeline
#96
failed with stage
in 1 minute and 42 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
3d0d41d8
...
...
@@ -14,7 +14,7 @@ before_script:
-
bundle install
-
./scripts/ci_fix_baseurl.sh
-
jekyll build -d public
-
./
node_modules/.bin/purgecss --css 'public/assets/css/*.css' --content 'public/**/*.html' --out 'public/assets/css/'
-
./
scripts/purgecss.sh
deploy-prod
:
stage
:
deploy
...
...
Gemfile.lock
View file @
3d0d41d8
...
...
@@ -28,6 +28,7 @@ GEM
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-paginate (1.1.0)
jekyll-purgecss (0.2.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-sitemap (1.3.1)
...
...
@@ -64,6 +65,7 @@ PLATFORMS
DEPENDENCIES
jekyll
jekyll-paginate
jekyll-purgecss
jekyll-sitemap
support-for
...
...
assets/css/style.css
View file @
3d0d41d8
...
...
@@ -12773,6 +12773,7 @@ CONTACT PAGE STYLING
width: 48%;
float: right;
margin-right: 0; }
/* purgecss start ignore */
#home-hq-map {
-webkit-clip-path: polygon(0% calc(100vw * 0.052), 100% 0%, 100% calc(100% - calc(100vw * 0.052)), 0% 100%);
clip-path: polygon(0% calc(100vw * 0.052), 100% 0%, 100% calc(100% - calc(100vw * 0.052)), 0% 100%); }
...
...
@@ -12780,6 +12781,7 @@ CONTACT PAGE STYLING
transform: translateY(calc(calc(100vw * -0.052335956242943835) - 38px)) rotate(-3deg); }
#home-hq-map .leaflet-top.leaflet-left {
transform: translateY(calc(calc(100vw * 0.052335956242943835))); }
/* purgecss end ignore */
.before-map {
padding-bottom: 35px; }
.before-map p:last-of-type {
...
...
assets/scss/breakpoints/_800up.scss
View file @
3d0d41d8
...
...
@@ -313,10 +313,12 @@ CONTACT PAGE STYLING
}
}
/* purgecss start ignore */
#home-hq-map
{
-webkit-clip-path
:
polygon
(
0%
calc
(
100vw
*
0
.052
)
,
100%
0%
,
100%
calc
(
100%
-
calc
(
100vw
*
0
.052
))
,
0%
100%
);
clip-path
:
polygon
(
0%
calc
(
100vw
*
0
.052
)
,
100%
0%
,
100%
calc
(
100%
-
calc
(
100vw
*
0
.052
))
,
0%
100%
);
// -0.052335956242943835 == sin(-3deg)
// Contributors badge
.leaflet-bottom.leaflet-right
{
...
...
@@ -328,6 +330,7 @@ CONTACT PAGE STYLING
transform
:
translateY
(
calc
(
calc
(
100vw
*
0
.052335956242943835
)));
}
}
/* purgecss end ignore */
.before-map
{
padding-bottom
:
35px
;
...
...
scripts/purgecss.sh
0 → 100755
View file @
3d0d41d8
#!/bin/bash
sitedir
=
"
$1
"
echo
"Purging unused CSS..."
./node_modules/.bin/purgecss
\
--css
"
$sitedir
"
/assets/css/
'*'
.css
\
--content
"
$sitedir
"
/index.html
"
$sitedir
"
/
'**/*.html'
"
$sitedir
"
/assets/js/
'*.js'
\
--out
"
$sitedir
"
/assets/css/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment