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);
.searchform {
.search-form {
background: #151515;
height: 100%;
position: absolute;
@ -7,8 +7,8 @@
width: 100%;
}
.searchform:before,
.searchform:after {
.search-form:before,
.search-form:after {
content: '';
display: block;
height: 1px;
@ -18,19 +18,19 @@
width: 800px;
}
.searchform:before {
.search-form:before {
background: #444;
background: linear-gradient(left, #151515, #444, #151515);
top: 192px;
}
.searchform:after {
.search-form:after {
background: #000;
background: linear-gradient(left, #151515, #000, #151515);
top: 191px;
}
.searchform form {
.search-form form {
background: #111;
background: linear-gradient(#1b1b1b, #111);
border: 1px solid #000;
@ -44,7 +44,7 @@
z-index: 1;
}
.searchform input {
.search-form input {
background: #222;
background: linear-gradient(#333, #222);
border: 1px solid #444;
@ -63,19 +63,19 @@
width: 200px;
}
.ie .searchform input {
.ie .search-form input {
line-height: 40px;
}
.searchform input::-webkit-input-placeholder {
.search-form input::-webkit-input-placeholder {
color: #888;
}
.searchform input:-moz-placeholder {
.search-form input:-moz-placeholder {
color: #888;
}
.searchform input:focus {
.search-form input:focus {
animation: glow 800ms ease-out infinite alternate;
background: #222922;
background: linear-gradient(#333933, #222922);
@ -85,15 +85,15 @@
outline: none;
}
.searchform input:focus::-webkit-input-placeholder {
.search-form input:focus::-webkit-input-placeholder {
color: #efe;
}
.searchform input:focus:-moz-placeholder {
.search-form input:focus:-moz-placeholder {
color: #efe;
}
.searchform button {
.search-form button {
background: #222;
background: linear-gradient(#333, #222);
box-sizing: border-box;
@ -116,15 +116,15 @@
width: 80px;
}
.searchform button:hover,
.searchform button:focus {
.search-form button:hover,
.search-form button:focus {
background: #292929;
background: linear-gradient(#393939, #292929);
color: #5f5;
outline: none;
}
.searchform button:active {
.search-form button:active {
background: #292929;
background: linear-gradient(#393939, #292929);
box-shadow: 0 1px 0 #000, inset 1px 0 1px #222;
@ -140,4 +140,4 @@
border-color: #6f6;
box-shadow: 0 0 20px rgba(0, 255, 0, .6), inset 0 0 10px rgba(0, 255, 0, .4), 0 2px 0 #000;
}
}
}

View File

@ -1,3 +1,3 @@
</body>
</html>
</html>

View File

@ -2,10 +2,13 @@
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Goodreads API</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<link rel="stylesheet" href="/public/main.css" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Goodreads API</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<link rel="stylesheet" href="/public/main.css" />
</head>
<body>

View File

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

View File

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

View File

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