Fix indentation, move body and head tags into header and rename form class
This commit is contained in:
parent
8be52b8388
commit
084ed8ed75
@ -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;
|
||||
|
||||
@ -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"
|
||||
crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="/public/main.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@ -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 %>
|
||||
@ -1,11 +1,8 @@
|
||||
<% include header %>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<section class="searchform">
|
||||
<section class="search-form">
|
||||
<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>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user