-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathImageButton.razor
More file actions
58 lines (55 loc) · 1.42 KB
/
ImageButton.razor
File metadata and controls
58 lines (55 loc) · 1.42 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
@using BlazorStyled
<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: @VisibleStyle;
</Styled>
<Styled @bind-Classname=@ButtonStyle>
background-image: url('@ImageUrl');
background-size: 100% 100%;
display: inline-block;
justify-content: center;
align-items: center;
outline: @OutlineStyle;
border: @BorderStyle;
background-repeat: no-repeat;
background-color: transparent;
width: @WidthStyle;
height: @HeightStyle;
white-space: nowrap;
vertical-align: central;
margin: 0px;
padding: 0px;
</Styled>
<Styled @bind-Classname=@ButtonTextStyle>
position: @Position;
left: @TextOffsetXStyle;
top: @TextOffsetYStyle;
text-align: @TextAlign;
font-family: @FontName;
font-size: @FontSizeStyle;
color: @TextColorName;
</Styled>
<style>
.imagebutton
{
cursor: default;
}
.imagebutton:hover
{
cursor: pointer !important;
}
</style>
<div class="@ButtonContainerStyle @ClassName">
<button class="imagebutton @ButtonStyle" @onclick="ButtonClicked" title="@Title">
<span class="@ButtonTextStyle">@Text</span>
</button>
</div>