Simplify search bar

This commit is contained in:
Salt 2020-08-18 06:30:22 -05:00
parent af7ea34b5c
commit e95274dc31
2 changed files with 7 additions and 28 deletions

View File

@ -2,19 +2,13 @@
<head> <head>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?> <?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
<link href="/startpage/styles/styles.css" type="text/css" rel="stylesheet"/> <link href="/startpage/styles/styles.css" type="text/css" rel="stylesheet"/>
<link href="/styles/buttons.css" type="text/css" rel="stylesheet" />
<title>New Tab</title> <title>New Tab</title>
</head> </head>
<body> <body>
<div class="header"> <div class="header">
<div class="search-wrapper">
<form class="search-form" id="sp-search-form" action="https://www.startpage.com/do/dsearch" method="post"> <form class="search-form" id="sp-search-form" action="https://www.startpage.com/do/dsearch" method="post">
<input type="text" name="query" class="search-input" placeholder="sp" autofocus /> <input type="text" name="query" class="search-input" placeholder="search" autofocus />
</form> </form>
<form class="search-form" id="ddg-search-form" action="https://www.duckduckgo.com/html" method="get">
<input type="text" name="q" class="search-input" placeholder="ddg" />
</form>
</div>
</div> </div>
<div class="content"> <div class="content">
<div class="section-wrapper-header">labbity</div> <div class="section-wrapper-header">labbity</div>

View File

@ -5,26 +5,11 @@
* Distributed under terms of the MIT license. * Distributed under terms of the MIT license.
*/ */
/* Globals */
.content {
padding: inherit;
}
/* Specifics */
.search-wrapper {
display: flex;
flex-flow: row wrap;
max-width: 640px;
margin: auto;
padding: 2em 0;
position: relative;
}
.search-form { .search-form {
flex-grow: 1; margin: auto;
padding: 0 1em; max-width: 32em;
padding: 2em;
text-align: center;
} }
.search-input { .search-input {