Skip to content

Commit

Permalink
[TASK] Updated and removed old grunt configuration, fixed sass build …
Browse files Browse the repository at this point in the history
…and removed old sitemap styling
  • Loading branch information
RinyVT committed Dec 27, 2022
1 parent 5e8e0c2 commit 8f8ede5
Show file tree
Hide file tree
Showing 11 changed files with 900 additions and 192 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Besides the free version of our plugin, we also have a premium version. The free
- Removed old `linkingSuggestions.js` from `dist`
- Removed upgrade wizards for old canonical and seo title fields
- Simplified `.gitattributes`
- Updated and removed old grunt configuration, fixed sass build

## 9.0.0-alpha-1 August 16, 2022
### Breaking
Expand Down
15 changes: 13 additions & 2 deletions Resources/Private/SCSS/BackendModule.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import "./Variables";
@import "../../../node_modules/yoastseo/css/colors";
@import "../../../node_modules/yoastseo/css/analysis";
@import "../../../grunt/node_modules/yoastseo/css/colors";
@import "../../../grunt/node_modules/yoastseo/css/analysis";
@import "./BackendModule/headings";
@import "./BackendModule/lists";
@import "./BackendModule/buttons";
Expand Down Expand Up @@ -305,3 +305,14 @@ $gutter: 32px;
}
}
}

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
border: 0;
}
9 changes: 2 additions & 7 deletions Resources/Private/SCSS/BackendModule/_lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@
li {
list-style: none !important;
position: relative;
padding-left: $spacing / 1.2;
padding-left: 0;

&::before {
content: '\f00c\0020';
position: absolute;
left: 0;
top: 0;
font-family: $font-stack-icon;
span {
color: $color-green;
}
}
Expand Down
137 changes: 0 additions & 137 deletions Resources/Public/CSS/main-sitemap.xsl

This file was deleted.

19 changes: 12 additions & 7 deletions Resources/Public/CSS/yoast-seo-backend.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,8 @@ li.score:after {
.yoast-list--usp li {
list-style: none !important;
position: relative;
padding-left: 1.5833333333rem; }
.yoast-list--usp li::before {
content: '\f00c\0020';
position: absolute;
left: 0;
top: 0;
font-family: "FontAwesome", "Open Sans", Arial, sans-serif;
padding-left: 0; }
.yoast-list--usp li span {
color: #77B227; }

.yoast-button {
Expand Down Expand Up @@ -427,3 +422,13 @@ li.score:after {
font-size: 24px;
-webkit-flex: 0 0 0;
-ms-flex: 0 0 0; }

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0; }
2 changes: 1 addition & 1 deletion grunt/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = function(grunt) {

// Load Grunt configurations and tasks
require( 'load-grunt-config' )(grunt, {
configPath: require( 'path' ).join( process.cwd(), 'grunt/config/' ),
configPath: require( 'path' ).join( process.cwd(), 'config' ),
data: project
});
};
1 change: 0 additions & 1 deletion grunt/config/aliases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Build everything
build:
- 'sass'
- 'browserify'
build:language-files:
- 'glotpress_download'
- 'po2json'
Expand Down
7 changes: 0 additions & 7 deletions grunt/config/browserify.js

This file was deleted.

7 changes: 2 additions & 5 deletions grunt/config/sass.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
module.exports = {
build: {
files: {
'Resources/Public/CSS/yoast-seo.min.css': 'Resources/Private/SCSS/YoastTYPO3.scss',
'Resources/Public/CSS/yoast-seo-tca.min.css': 'Resources/Private/SCSS/YoastTCA.scss',
'Resources/Public/CSS/yoast-seo-snippet-preview.min.css': 'Resources/Private/SCSS/YoastSnippetPreview.scss',
'Resources/Public/CSS/yoast-seo-backend.min.css': 'Resources/Private/SCSS/BackendModule.scss',
'Resources/Public/CSS/yoast.min.css': 'Resources/Private/SCSS/Yoast.scss',
'./../Resources/Public/CSS/yoast-seo-backend.min.css': './../Resources/Private/SCSS/BackendModule.scss',
'./../Resources/Public/CSS/yoast.min.css': './../Resources/Private/SCSS/Yoast.scss',
}
}
};
12 changes: 2 additions & 10 deletions grunt/config/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,10 @@ module.exports = {
options: {
livereload: true
},
js: {
files: [
'Resources/Public/JavaScript/plugin.js'
],
tasks: [
'browserify'
]
},
sass: {
files: 'Resources/Private/SCSS/YoastTYPO3.scss',
files: './../Resources/Private/SCSS/YoastTYPO3.scss',
tasks: [
'build:sass'
]
}
};
};
Loading

0 comments on commit 8f8ede5

Please sign in to comment.