Skip to content

Commit d514961

Browse files
committed
Simplified some css
1 parent 4f1e07e commit d514961

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/LinkDotNet.Blog.Web/Features/Components/ShortBlogPost.razor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
margin: auto;
4040
transition: left 0.5s;
4141
background: rgba(0, 0, 0, 0.6);
42-
color: #fff;
42+
color: var(--bs-white);
4343
padding: 10px;
4444
width: 100%;
4545
font-size: 0.9rem;

src/LinkDotNet.Blog.Web/Features/Home/Components/SearchInput.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div class="search-bar">
2-
<input type="text" class="search-bar-input" placeholder="search" aria-label="search" @bind-value="searchTerm"
2+
<input type="text" class="search-bar-input" placeholder="search" aria-label="search" @bind-value="searchTerm"
33
@onkeyup="@CheckForEnter" title="Search for blog post via title or tags"/>
44
<button class="search-bar-button" aria-label="search submit" @onclick="CallSearchEntered"><i class="search"></i></button>
55
</div>
66

77
@code {
88
private string searchTerm = string.Empty;
9-
9+
1010
[Parameter]
1111
public EventCallback<string> SearchEntered { get; set; }
1212

src/LinkDotNet.Blog.Web/Features/Home/Components/SearchInput.razor.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@
2828
.search-bar-input:focus {
2929
outline: 0;
3030
}
31-
3231
.search-bar-button {
3332
border: 0;
3433
border-radius: 100vh;
3534
margin-left: auto;
36-
width: calc(40px - 10px);
37-
height: calc(40px - 10px);
35+
width: 30px;
36+
height: 30px;
3837
cursor: pointer;
3938
background: transparent;
4039
}

0 commit comments

Comments
 (0)