Skip to content

Commit 507ec4d

Browse files
committed
add some style to input form
1 parent 5e49421 commit 507ec4d

2 files changed

Lines changed: 34 additions & 4 deletions

File tree

apps/localStorage-and-event-delegation/assets/style/index.css

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,37 @@ body {
5858

5959
.list__item {
6060
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
61-
padding: 10px 0;
61+
padding: 10px 10px 10px 0;
6262
font-weight: 100;
6363
display: flex;
6464
color: #160f11;
6565
font-size: 1.1em;
6666
}
6767

68+
.list__item__checkbox {
69+
margin-right: 10px;
70+
padding: 9px;
71+
border-radius: 3px;
72+
display: inline-block;
73+
}
74+
6875
.form {
6976
margin: 20px 0;
7077
align-self: flex-start;
7178
}
79+
80+
.form__input {
81+
background: #f7f7f7;
82+
border-radius: 5px;
83+
font-size: 0.8em;
84+
font-weight: 100;
85+
transition: 0.3s;
86+
border: 0.5px solid rgba(0, 0, 0, 0.2);
87+
padding: 10px 5px;
88+
}
89+
90+
.form__submite {
91+
text-transform: uppercase;
92+
color: #9c9c9c;
93+
padding: 10px;
94+
}

apps/localStorage-and-event-delegation/index.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,25 @@
6666
<h1 class="content__title">Fancy foods</h1>
6767

6868
<ul class="list">
69-
<li class="list__item">Loading...</li>
69+
<li class="list__item">
70+
<input class="list__item__checkbox " type="checkbox" />
71+
<label for="item">Beef Bourguignon</label>
72+
</li>
73+
<li class="list__item">
74+
<input class="list__item__checkbox " type="checkbox" />
75+
<label for="item">Salad Nicoise</label>
76+
</li>
7077
</ul>
7178

7279
<form class="form">
7380
<input
7481
class="form__input"
7582
type="text"
7683
name="item"
77-
placeholder="What do you need to study today?"
84+
placeholder="Type some food?"
7885
required
7986
/>
80-
<input class="form__submite" type="submit" value="Add" />
87+
<input class="form__input form__submite" type="submit" value="Add" />
8188
</form>
8289
</div>
8390
</div>

0 commit comments

Comments
 (0)