-
-
Notifications
You must be signed in to change notification settings - Fork 81
Refactor of Scoped CSS #413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
EliasMasche
wants to merge
18
commits into
linkdotnet:master
Choose a base branch
from
EliasMasche:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
4214d43
refact: removal of custom razor.css, update to bootstrap 5
EliasMasche 8c0696d
refact: removal of razor.css and update of HTML bootstrap 5
EliasMasche 31aff69
refact: removed razor.css and updated to bootstrap 5 utility classes
EliasMasche 29aa5df
refact: removed razor.css files
EliasMasche 4ee70f7
Merge branch 'master' of https://github.com/linkdotnet/Blog
EliasMasche e47a6d8
Merge branch 'linkdotnet:master' into master
EliasMasche 61527ac
fix: added missing `id` and `class` that caused tests to fail
EliasMasche 6597ccd
Merge branch 'master' of https://github.com/EliasMasche/Blog
EliasMasche a56ffe3
fixed: visual regressions in the UI and behavior of the app with HTML…
EliasMasche ad549d3
Merge branch 'master' of https://github.com/linkdotnet/Blog
EliasMasche 42ce3de
Fix: Recreated old spacing using style, override default Bootstrap value
EliasMasche ee7fa4c
fix: added css code for one line on the keypoints
EliasMasche b362fba
fix: add css class for handling of padding at nav-link
EliasMasche 389d4c2
fix: added px-3 in html class instead of custom
EliasMasche eabcaf8
fix: reverted to razor.css file
EliasMasche 4b71e59
Merge branch 'master' of https://github.com/linkdotnet/Blog
EliasMasche e2f9c8d
refact: removal of inline style to match bootstrap class
EliasMasche 6085c48
Merge branch 'linkdotnet:master' into master
EliasMasche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 0 additions & 51 deletions
51
src/LinkDotNet.Blog.Web/Features/AboutMe/Components/Profile.razor.css
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
src/LinkDotNet.Blog.Web/Features/AboutMe/Components/Skill/SkillTable.razor.css
This file was deleted.
Oops, something went wrong.
34 changes: 17 additions & 17 deletions
34
src/LinkDotNet.Blog.Web/Features/AboutMe/Components/Skill/SkillTag.razor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
@using LinkDotNet.Blog.Domain | ||
<span class="skill-tag"> | ||
@if (!string.IsNullOrEmpty(Skill.IconUrl)) | ||
{ | ||
<img src="@Skill.IconUrl" alt="icon" max-width="48px"/> | ||
} | ||
@Skill.Name | ||
@if (!string.IsNullOrEmpty(Skill.IconUrl)) | ||
{ | ||
<img src="@Skill.IconUrl" alt="icon" max-width="48px"/> | ||
} | ||
@Skill.Name | ||
|
||
@if (ShowAdminActions) | ||
{ | ||
<button type="button" class="btn btn-default" aria-label="Delete Skill" @onclick="() => DeleteSkill.InvokeAsync()"> | ||
<i class="bin2" aria-hidden="true"></i> | ||
</button> | ||
} | ||
@if (ShowAdminActions) | ||
{ | ||
<button type="button" class="btn btn-default" aria-label="Delete Skill" @onclick="() => DeleteSkill.InvokeAsync()"> | ||
<i class="bin2" aria-hidden="true"></i> | ||
</button> | ||
} | ||
</span> | ||
|
||
@code { | ||
[Parameter, EditorRequired] | ||
public required Skill Skill { get; set; } | ||
[Parameter, EditorRequired] | ||
public required Skill Skill { get; set; } | ||
|
||
[Parameter] | ||
public bool ShowAdminActions { get; set; } | ||
[Parameter] | ||
public bool ShowAdminActions { get; set; } | ||
|
||
[Parameter] | ||
public EventCallback DeleteSkill { get; set; } | ||
[Parameter] | ||
public EventCallback DeleteSkill { get; set; } | ||
} |
22 changes: 11 additions & 11 deletions
22
src/LinkDotNet.Blog.Web/Features/AboutMe/Components/Skill/SkillTag.razor.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
.skill-tag { | ||
padding: 8px; | ||
border-radius: 5px; | ||
background-color: var(--tag-background); | ||
display: inline-block; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
.skill-tag { | ||
padding: 8px; | ||
border-radius: 5px; | ||
background-color: var(--tag-background); | ||
display: inline-block; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.skill-tag img { | ||
padding-right: 12px; | ||
width: 36px; | ||
} | ||
padding-right: 12px; | ||
width: 36px; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example this is why some of the tests are failing.
There is a test looking for
.skill-tag
inside tests.So we have two options:
.skill-tag
here without the backing razor.css (kind of just as a marker)skill-tag
with d-inline-block me-2 my-2 px-2 py-1 rounded bg-light`I would go for the first approach - as it makes the tests more readable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer first approach too, gonna check the unit tests for others more.