Skip to content

Commit 51dc591

Browse files
committed
textfield: 💥
1 parent 70dfd19 commit 51dc591

File tree

3 files changed

+105
-1
lines changed

3 files changed

+105
-1
lines changed

css/cardcolor.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
background-color: rgb(229, 9, 20);
1515
}
1616

17+
.tonal {
18+
background-color: #43aa8b;
19+
}
20+
1721
.demo {
1822
background-color: #35cce0;
1923
}

css/textfield.css

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,56 @@
1-
/* Add your css for textfields */
1+
/* Add your css for textfields */
2+
3+
4+
5+
/* Tonal Mathew : start */
6+
7+
.form-tonal {
8+
margin: 100px;
9+
}
10+
11+
.input-field-tonal {
12+
position: relative;
13+
width: 250px;
14+
height: 44px;
15+
line-height: 44px;
16+
}
17+
18+
.label-tonal {
19+
position: absolute;
20+
top: 0;
21+
left: 0;
22+
width: 100%;
23+
color: #43aa8b;
24+
transition: 0.2s all;
25+
cursor: text;
26+
}
27+
28+
.input-tonal {
29+
width: 100%;
30+
border: 0;
31+
outline: 0;
32+
padding: 0.5rem 0;
33+
border-bottom: 2px solid #43aa8b;
34+
box-shadow: none;
35+
color: #111;
36+
}
37+
38+
.input-tonal:invalid {
39+
outline: 0;
40+
}
41+
42+
.input-tonal:required {
43+
color: #00dd22;
44+
}
45+
46+
.input-tonal:focus,
47+
.input-tonal:valid {
48+
border-color: #00dd22;
49+
}
50+
51+
.input-tonal:focus~label,
52+
.input-tonal:valid~label {
53+
font-size: 14px;
54+
top: -24px;
55+
color: #00dd22;
56+
} /* Tonal Mathew : end */

pages/textfield.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,51 @@ <h3>Add your different textfields</h3>
4747
<div class="container-fluid">
4848
<!-- your name -->
4949
<!-- Add your html content that you have copied from contributors.md along with you component -->
50+
51+
52+
53+
<!-- Tonal Mathew -->
54+
<div class="row">
55+
<div class="col-lg-6">
56+
<div class="component">
57+
<div class="card magictime">
58+
<div class="card-title tonal">
59+
<strong>Textfield</strong>
60+
</div>
61+
<div class="card-content">
62+
<form class="form-tonal" action="">
63+
<div class="input-field-tonal">
64+
<input class="input-tonal" type="text" id="name" required />
65+
<label class="label-tonal" for="name">Your name:</label>
66+
</div>
67+
</form>
68+
</div>
69+
</div>
70+
</div>
71+
</div>
72+
<div class="col-lg-6">
73+
<div class="component">
74+
<div class="card magictime">
75+
<div class="card-title tonal">
76+
<strong>Creator</strong>
77+
</div>
78+
<div class="card-content">
79+
<div class="creater-name">
80+
<h2>
81+
<b>Name:</b>
82+
<span>
83+
<a href="https://github.com/tonalmathew">Tonal Mathew</a>
84+
</span>
85+
</h2>
86+
</div>
87+
</div>
88+
</div>
89+
</div>
90+
</div>
91+
</div>
92+
93+
94+
5095
</div>
5196
</section>
5297
<footer>

0 commit comments

Comments
 (0)