Repository navigation
Expand file tree
/
Copy pathdefault.html
More file actions
165 lines (150 loc) · 5.8 KB
/
Copy pathdefault.html
File metadata and controls
165 lines (150 loc) · 5.8 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<div class="col-lg-12 control-section">
<div class="sample_container avatar-default">
<div class="avatar-block">
<div class="e-card e-avatar-showcase">
<div class="e-card-content">
<!-- xSmall Avatar-->
<div class="e-avatar e-avatar-xsmall image"></div>
<!-- Small Avatar-->
<div class="e-avatar e-avatar-small image"></div>
<!-- Avatar-->
<div class="e-avatar image"></div>
<!-- Large Avatar-->
<div class="e-avatar e-avatar-large image"></div>
<!-- xLarge Avatar-->
<div class="e-avatar e-avatar-xlarge image"></div>
</div>
<div class="e-card-content">
<div>Default</div>
</div>
</div>
</div>
<div class="circleAvatar avatar-block">
<div class="e-card e-avatar-showcase">
<div class="e-card-content">
<!-- xSmall Circle Avatar-->
<div class="e-avatar e-avatar-xsmall e-avatar-circle image"></div>
<!-- Small Circle Avatar-->
<div class="e-avatar e-avatar-small e-avatar-circle image"></div>
<!-- Circle Avatar-->
<div class="e-avatar e-avatar-circle image"></div>
<!-- Large Circle Avatar-->
<div class="e-avatar e-avatar-large e-avatar-circle image"></div>
<!-- xLarge Circle Avatar-->
<div class="e-avatar e-avatar-xlarge e-avatar-circle image"></div>
</div>
<div class="e-card-content">
<div>Circle</div>
</div>
</div>
</div>
</div>
</div>
<div id="action-description">
<p>This sample demonstrates the default avatar and circle avatar in which the
<code>.e-avatar</code> and
<code>.e-avatar-circle</code> classes should be added, respectively to the target element.</p>
</div>
<div id="description">
<p>The avatar is developed in pure CSS which is used to represents the profile picture or initials or icons in presentable way. It comes with two different shapes, they are listed below.</p>
<ul>
<li>Default avatar: To apply default avatar, add the
<code>.e-avatar</code> class to the target element.</li>
<li>Circle avatar: To apply circle avatar, add the
<code>.e-avatar-circle</code> class to the target element.</li>
</ul>
<p>The avatar comes with 5 different sizes, and are applied through modifier classes. They are:</p>
<ul>
<li>xSmall avatar: This can be applied by adding
<code>.e-avatar-</code> class.</li>
<li>Small avatar: This can be applied by adding
<code>.e-avatar-small</code> class.</li>
<li>Default avatar: This can be applied by adding
<code>.e-avatar</code> class. No additional class is needed for this.</li>
<li>Large avatar: This can be applied by adding
<code>.e-avatar-large</code> class.</li>
<li>xLarge avatar: This can be applied by adding
<code>.e-avatar-xlarge</code> class.</li>
</ul>
<p>
<i>The
<code>.e-avatar</code> is the main class, which should be included in the target element to use any of the other avatar features.</i>
</p>
<p>The images can be added in the following two different ways to the avatar:</p>
<ul>
<li>Using CSS
<code>background</code> property on the avatar element. It doesn’t require any additional element.</li>
<li>Using image tag. The image tag needs to be wrapped by the avatar element.</li>
</ul>
</div>
<style>
.control-section {
overflow: auto;
}
/* Media Quries for various devices */
@media only screen and (max-width: 965px) {
.sample_container.avatar-default {
max-width: 332px;
margin: auto;
margin-top: 0;
}
.circleAvatar {
margin-top: 15px;
}
.e-avatar-showcase.e-card {
width: 300px;
}
}
@media only screen and (min-width: 965px) {
.sample_container.avatar-default {
max-width: 825px;
margin: auto;
margin-top: 70px;
}
.e-avatar-showcase.e-card {
width: 400px;
}
}
.sample_container.avatar-default .avatar-block {
display: inline-block;
vertical-align: top;
}
/* Assinging image for avatar in 'background-image' property */
.e-avatar.image {
background-image: url(./src/avatar/images/pic01.png);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
/* Card Customization */
.e-avatar-showcase.e-card {
height: 140px;
padding: 5px;
margin: 5px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
border-radius: 8px;
}
.e-avatar-showcase.e-card .e-card-header .e-card-header-title {
align-self: center;
font-size: 18px;
letter-spacing: 1px;
text-shadow: #eaeaea 1px 1px 2px;
}
.e-avatar-showcase.e-card .e-card-header .e-card-sub-title {
color: rgba(0, 0, 0, 0.75);
white-space: pre-line;
font-size: 14px;
text-shadow: #eaeaea 1px 1px 2px;
}
.e-avatar-showcase.e-card .e-card-header .e-card-sub-title p {
margin: 0;
}
.e-avatar-showcase.e-card .e-card-content {
align-self: center;
padding: 10px 0 10px 0;
overflow: visible;
}
.bootstrap4 .e-avatar-showcase.e-card {
box-shadow: none;
}
</style>