Migrate LESS styles to SCSS#4880
Conversation
|
@MisRob @akolson @nucleogenesis I have updated the PR description, I only migrated the .less files to scss , there is still less being used within the style block of vue components. Should i send follow up PR's to remove them as well. And after that as a next step I would have to remove less from the build tooling right? |
|
Thanks for info @adibmbrk. Yes, I think it'd be great to have all this work split to more pull requests. |
|
Hey @nucleogenesis @akolson, with commit d2574e0 I have removed the usage of |
|
Hi @adibmbrk! Is this pr ready for review? |
Nope, will let you know when it's done |
|
This PR is ready for review @akolson |
contentcuration/contentcuration/frontend/shared/styles/main.scss
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/shared/views/LazyListGroup.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/shared/views/LazyListGroup.vue
Outdated
Show resolved
Hide resolved
...uration/contentcuration/frontend/shared/views/MarkdownEditor/plugins/image-upload/style.scss
Outdated
Show resolved
Hide resolved
...uration/contentcuration/frontend/shared/views/MarkdownEditor/plugins/image-upload/style.scss
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/shared/views/files/ImageOnlyThumbnail.vue
Outdated
Show resolved
Hide resolved
|
|
||
| @svg-top: (100% * 9 / 16 / 2) - (@svg-width / 2); | ||
| $svg-scale: 1.25; | ||
| $svg-width: calc(100% * 9 / 16 / #{$svg-scale}); |
There was a problem hiding this comment.
$svg-width: calc(100% * 9 / 16 / $svg-scale);
contentcuration/contentcuration/frontend/shared/views/files/ImageOnlyThumbnail.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/shared/views/files/ImageOnlyThumbnail.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/shared/views/files/ImageOnlyThumbnail.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/shared/views/files/Thumbnail.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/shared/views/files/Thumbnail.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/shared/views/files/Thumbnail.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/shared/views/files/Thumbnail.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/administration/components/ClipboardChip.vue
Outdated
Show resolved
Hide resolved
akolson
left a comment
There was a problem hiding this comment.
Hi @adibmbrk Great work on the migration. I have left a few comments. Please let us know if you have any questions. Also, it might be worth streamlining how v-deep is used ie. ::v-deep(.some-class) vs ::v-deep .some-class. I think it would makes sense to continue use the syntax used previous with the /deep/ ie /deep/ .some-class; I think I saw one or two occurrences of ::v-deep(.some-class) that we'll need to change to ::v-deep .some-class
|
Hey @akolson, I have fixed the suggestions from the code review, let me know if there are any more suggestions or changes. |
|
I think the only thing missing is removing the |
|
@adibmbrk, The final piece and we should be good to merge.
|
|
Made the final change @akolson, Let's get this merged! 🚀 |
Summary
This PR migrates the LESS styles to SCSS. I have conducted manual testing and I have verified that it's working as expected.
Below is a video of the testing I conducted with the changes I have made.
Screen.Recording.2025-01-26.at.14.37.42.mov
Details of Changes
How styles were identified for migration: I searched for .less files Using a search tool such as VS Code's global search, I traced references to these files in Vue components. And then migrated the styles to work with scss rather than using less.
This PR I believe is partial and wouldn't result in closing the issue below as LESS needs to be removed from the build tooling as well.
References
Closes #4827