-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLinkButton.razor
More file actions
65 lines (60 loc) · 1.59 KB
/
LinkButton.razor
File metadata and controls
65 lines (60 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@using BlazorStyled
@inject IJSRuntime JSRuntime
<Styled @bind-Classname=ButtonContainerStyle>
position: @Position;
left: @LeftStyle;
top: @TopStyle;
z-index: @ZIndex;
display: inline-block;
outline: none;
border: none;
width: auto;
margin: 0px;
padding: 0px;
visibility: @Visibility;
</Styled>
<Styled @bind-Classname=@ButtonStyle>
display: inline-block;
outline: none;
border: none;
background-repeat: no-repeat;
background-color: transparent;
width: @WidthStyle;
height: @HeightStyle;
white-space: nowrap;
color: @TextColorName;
vertical-align: central;
margin: 0px;
padding: 0px;
</Styled>
<Styled @bind-Classname=@ButtonTextStyle>
text-align: @TextAlign;
font-family: @FontName;
font-size: @FontSizeStyle;
</Styled>
<style>
.linkbutton {
background: none !important;
border: none;
padding: 0 !important;
color: @TextColor;
text-decoration: none;
cursor: pointer;
height: @HeightStyle;
font-size: @FontSizeStyle;
outline: none;
}
.linkbutton:visited {
color: @TextColor;
text-decoration: none;
outline: none;
}
.linkbutton:focus {
outline: none;
}
</style>
<div class="@ButtonContainerStyle">
<button class="linkbutton @ButtonStyle" @onclick="ButtonClicked" title="@Title">
<span class="@ButtonTextStyle">@Text</span>
</button>
</div>