Fix indentation, move body and head tags into header and rename form class

This commit is contained in:
Linus Miller 2018-03-04 19:25:18 +01:00
parent 8be52b8388
commit 084ed8ed75
6 changed files with 40 additions and 46 deletions

View File

@ -1,5 +1,5 @@
@import url(https://fonts.googleapis.com/css?family=Cabin:400); @import url(https://fonts.googleapis.com/css?family=Cabin:400);
.searchform { .search-form {
background: #151515; background: #151515;
height: 100%; height: 100%;
position: absolute; position: absolute;
@ -7,8 +7,8 @@
width: 100%; width: 100%;
} }
.searchform:before, .search-form:before,
.searchform:after { .search-form:after {
content: ''; content: '';
display: block; display: block;
height: 1px; height: 1px;
@ -18,19 +18,19 @@
width: 800px; width: 800px;
} }
.searchform:before { .search-form:before {
background: #444; background: #444;
background: linear-gradient(left, #151515, #444, #151515); background: linear-gradient(left, #151515, #444, #151515);
top: 192px; top: 192px;
} }
.searchform:after { .search-form:after {
background: #000; background: #000;
background: linear-gradient(left, #151515, #000, #151515); background: linear-gradient(left, #151515, #000, #151515);
top: 191px; top: 191px;
} }
.searchform form { .search-form form {
background: #111; background: #111;
background: linear-gradient(#1b1b1b, #111); background: linear-gradient(#1b1b1b, #111);
border: 1px solid #000; border: 1px solid #000;
@ -44,7 +44,7 @@
z-index: 1; z-index: 1;
} }
.searchform input { .search-form input {
background: #222; background: #222;
background: linear-gradient(#333, #222); background: linear-gradient(#333, #222);
border: 1px solid #444; border: 1px solid #444;
@ -63,19 +63,19 @@
width: 200px; width: 200px;
} }
.ie .searchform input { .ie .search-form input {
line-height: 40px; line-height: 40px;
} }
.searchform input::-webkit-input-placeholder { .search-form input::-webkit-input-placeholder {
color: #888; color: #888;
} }
.searchform input:-moz-placeholder { .search-form input:-moz-placeholder {
color: #888; color: #888;
} }
.searchform input:focus { .search-form input:focus {
animation: glow 800ms ease-out infinite alternate; animation: glow 800ms ease-out infinite alternate;
background: #222922; background: #222922;
background: linear-gradient(#333933, #222922); background: linear-gradient(#333933, #222922);
@ -85,15 +85,15 @@
outline: none; outline: none;
} }
.searchform input:focus::-webkit-input-placeholder { .search-form input:focus::-webkit-input-placeholder {
color: #efe; color: #efe;
} }
.searchform input:focus:-moz-placeholder { .search-form input:focus:-moz-placeholder {
color: #efe; color: #efe;
} }
.searchform button { .search-form button {
background: #222; background: #222;
background: linear-gradient(#333, #222); background: linear-gradient(#333, #222);
box-sizing: border-box; box-sizing: border-box;
@ -116,15 +116,15 @@
width: 80px; width: 80px;
} }
.searchform button:hover, .search-form button:hover,
.searchform button:focus { .search-form button:focus {
background: #292929; background: #292929;
background: linear-gradient(#393939, #292929); background: linear-gradient(#393939, #292929);
color: #5f5; color: #5f5;
outline: none; outline: none;
} }
.searchform button:active { .search-form button:active {
background: #292929; background: #292929;
background: linear-gradient(#393939, #292929); background: linear-gradient(#393939, #292929);
box-shadow: 0 1px 0 #000, inset 1px 0 1px #222; box-shadow: 0 1px 0 #000, inset 1px 0 1px #222;

View File

@ -9,3 +9,6 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"> crossorigin="anonymous">
<link rel="stylesheet" href="/public/main.css" /> <link rel="stylesheet" href="/public/main.css" />
</head>
<body>

View File

@ -1,13 +1,7 @@
<% include header %> <% include header %>
</head> <h1>Welcome</h1>
<body> <p>To the most legit website in the world. Besides rating books you can also buy the best drugs.</p>
<section class="searchform">
<form class="pure-form " action="" method="">
<input type="text" placeholder="Enter ISBN" autofocus required />
<button onclick="">Search</button>
</form>
</section>
<% include footer %> <% include footer %>

View File

@ -1,3 +1,3 @@
<% include header %> <% include header %>
<% include footer %> <% include footer %>

View File

@ -1,13 +1,10 @@
<% include header %> <% include header %>
</head> <section class="search-form">
<body>
<section class="searchform">
<form class="pure-form " action="" method=""> <form class="pure-form " action="" method="">
<input type="text" placeholder="Enter ISBN" autofocus required> <input type="text" placeholder="Enter ISBN" autofocus required />
<button>Search</button> <button>Search</button>
</form> </form>
</section> </section>
<% include footer %> <% include footer %>