Skip to content

Commit 72bfa1c

Browse files
authored
LandingPage Search (#136)
1 parent 3b580fa commit 72bfa1c

File tree

2 files changed

+161
-167
lines changed

2 files changed

+161
-167
lines changed

ComponentViewer.Docs/Components/ExampleCard.razor

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@if (HasExpansionPanel)
44
{
55
<MudExpansionPanel Text="@Title">
6-
<MudCard Class="component-card mx-sm-2 my-8 pa-sm-2 example-card" Style="cursor: default" Elevation="4">
6+
<MudCard Class="component-card mx-sm-2 my-8 pa-sm-2" Style="cursor: default" Elevation="4">
77
<MudCardHeader>
88
<div>
99
<MudText Class="example-card-text" Typo="Typo.h6" Color="Color.Inherit">@Title</MudText>
@@ -20,11 +20,12 @@
2020
}
2121
else
2222
{
23-
<MudCard Class="component-card mx-sm-2 my-8 pa-sm-2 example-card" Style="cursor: default" Elevation="4">
23+
<MudCard Class="component-card mx-sm-2 my-8 pa-sm-2" Style="cursor: default" Elevation="4">
2424
<MudCardHeader>
2525
<div>
2626
<MudText Class="example-card-text" Typo="Typo.h6" Color="Color.Inherit">@Title</MudText>
2727
<MudText Class="example-card-text" Typo="Typo.body2" Color="Color.Inherit">@Description</MudText>
28+
<MudDivider />
2829
</div>
2930
</MudCardHeader>
3031
<MudCardContent>
@@ -98,25 +99,8 @@ else
9899
}
99100

100101
<style>
101-
.example-card {
102-
background-color: transparent;
103-
/*color: var(--mud-palette-secondary);*/
104-
transition: background-color .6s;
102+
.example-card-text {
103+
color: var(--mud-palette-secondary);
105104
transition: color 1s;
106-
cursor: pointer;
107105
}
108-
109-
.example-card:hover {
110-
/*color: white;*/
111-
background: linear-gradient(to right, var(--mud-palette-primary), var(--mud-palette-secondary));
112-
}
113-
114-
.example-card .example-card-text {
115-
color: var(--mud-palette-secondary);
116-
transition: color 1s;
117-
}
118-
119-
.example-card:hover .example-card-text {
120-
color: white;
121-
}
122106
</style>

0 commit comments

Comments
 (0)