Skip to content

Commit a6dd540

Browse files
committed
s/ / /g (C) whatthecommit.com
1 parent 4fcc92b commit a6dd540

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

frontender/src/form-bordered-label/index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
</head>
1111
<body>
1212
<div id="bg">
13-
13+
<form action="#">
14+
<label for="email">e-mail</label>
15+
<input id="email" type="email"/>
16+
</form>
1417
</div>
1518
<script src="./main.js"></script>
1619
</body>

frontender/src/form-bordered-label/style.scss

+20-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,29 @@ $colors: (
88

99
html,
1010
body {
11-
height: 100%;
11+
height: 100%;
1212
}
1313

1414
body {
1515
margin: 0;
1616
font-family: map-get($fonts, primary);
17+
18+
form {
19+
position: relative;
20+
margin: 1em 0 0 1em;
21+
22+
label {
23+
position: absolute;
24+
margin: -.75em 0 0 1em;
25+
display: block;
26+
background-color: white;
27+
padding: 0.2em;
28+
}
29+
30+
input {
31+
padding: 1em;
32+
border-radius: 5px;
33+
border-width: 1px;
34+
}
35+
}
1736
}

0 commit comments

Comments
 (0)