Skip to content

Commit

Permalink
Apply styling to child elements properly
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchalmers committed Nov 26, 2023
1 parent bc667ab commit 6d91b5d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 15 deletions.
9 changes: 4 additions & 5 deletions JournalApp/Components/Pages/ManageCategoriesDialog.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
overflow-x: clip;
}

/* Moved to app.css because it doesn't apply in here for some reason.
.category-view-edit-button > .mud-button {
justify-content: start !important;
flex-grow: 1 !important;
}*/
::deep .category-view-edit-button > .mud-button {
justify-content: start !important;
flex-grow: 1 !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
flex-direction: column;
gap: 1em;
}

::deep safety-plan-item {
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@namespace JournalApp

<div>
<div class="safety-plan-item">
<MudText Typo="Typo.h5">@Title</MudText>
<MudText Typo="Typo.caption">@Subtitle</MudText>
<MudTextField T="string" @bind-Text="Text" Placeholder="@Placeholder" Variant="Variant.Outlined" DisableUnderLine AutoGrow Lines="3" MaxLines="10" />
Expand Down
4 changes: 2 additions & 2 deletions JournalApp/Components/Pages/Trends/TrendsDialog.razor.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.trends-container {
::deep .trends-container {
display: flex;
flex-direction: column;
gap: 1em;
}

.trend-view {
::deep .trend-view {
display: flex;
flex-direction: row;
justify-content: space-between;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
align-items: start;
}

.worksheet-view {
::deep .worksheet-view {
display: flex;
flex-direction: column;
align-items: start;
Expand Down
6 changes: 0 additions & 6 deletions JournalApp/wwwroot/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ button {
width: 0;
}

/* Should be in ManageCategoriesDialog.razor.css */
.category-view-edit-button > .mud-button {
justify-content: start !important;
flex-grow: 1 !important;
}

.page-header {
display: flex;
flex-direction: row;
Expand Down

0 comments on commit 6d91b5d

Please sign in to comment.