Skip to content

Commit

Permalink
Merge pull request #827 from SynBioHub/issue806
Browse files Browse the repository at this point in the history
Reorganize header layout
  • Loading branch information
3ach authored Feb 12, 2019
2 parents 313175f + d919691 commit ddb0b00
Show file tree
Hide file tree
Showing 25 changed files with 139 additions and 185 deletions.
27 changes: 18 additions & 9 deletions public/styles/site/synbiohub.less
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,28 @@ a {
.login .username {
}

.top-search-form {
margin-left: 50px;
margin-top: 1.2em;
}

.top-search-form input, .main-search-form input {
.main-search-form input {
font-size: .9em;
border: 1px solid white;
margin-left: -8px;
color: #2C3E50;
background: #ECF0F1 url("../images/search_icon.svg") no-repeat 5px 50%;
background-size: 20px;
border-radius: 4px 0 0px 4px;
padding: 5px 6px 5px 25px;
padding: 5px 6px 5px 25px;
}

.top-search-form input {
font-size: .9em;
border: 1px solid white;
color: #2C3E50;
border-radius: 4px 0 0px 4px;
padding: 5px 6px 5px 9px;
}

.top-search-form .submit {
background-color: #2C3E50;
margin-left: 0px;
}

.entry-detail-table {
Expand Down Expand Up @@ -205,7 +213,7 @@ a {
.sbol_breadcrumbs ul {
list-style: none;
margin: 0;
height: 40px;
height: 100%;
-webkit-padding-start: 0px;
}

Expand Down Expand Up @@ -361,7 +369,7 @@ a {

.sbol-breadcrumbs {
background-color: @baseColor;
height: 55px;
height: 66px;
margin-top: 65px;
}

Expand All @@ -378,6 +386,7 @@ a {
.sbol-breadcrumbs ul li {
padding: 17px;
float: left;
height: 100%;
}

.sbol-breadcrumbs ul li a {
Expand Down
2 changes: 1 addition & 1 deletion templates/layouts/admin.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends ./default.jade

block breadcrumbs
ul
li
li.inactive
span.fa.fa-cogs
| Admin

Expand Down
18 changes: 7 additions & 11 deletions templates/layouts/default.jade
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,12 @@ block body
div.pull-left
h1(style='margin-left: 15px;') #{config.instanceName}

if section != 'search'
div.pull-left
form(action='search').top-search-form
input.sbh-autocomplete(type='text',name='q',placeholder=('Search ' + config.instanceName) value=(searchQuery || ''))
button(type='submit').submit Search

div.pull-right.menu
ul
li
a(href='/submit')
span.fa.fa-cloud-upload
span.blue-text Submit
li
a(href='/about')
span.fa.fa-info-circle
span.blue-text About

if locals.user
li
Expand Down Expand Up @@ -72,8 +62,14 @@ block body

block intro

div.sbol-breadcrumbs
div.sbol-breadcrumbs(style="display: flex")
block breadcrumbs
ul(style="flex-grow: 1")
li(style="width: 100%; height: 100%")
form(action='search').top-search-form
input.sbh-autocomplete(type='text',name='q',placeholder=('Search ' + config.instanceName) value=(searchQuery || ''),style="width: 96%")
button.inactive(type='submit').submit
span.fa.fa-search

block content

Expand Down
7 changes: 2 additions & 5 deletions templates/layouts/identified.jade
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ block jsState
block breadcrumbs
ul
li.inactive
a(href='/search')
span.fa.fa-search
| Search
li
a(href=meta.url) #{meta.uri}
span.fa.fa-eye
| View

block content

Expand Down
2 changes: 1 addition & 1 deletion templates/views/advanced-search.jade
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ block head

block breadcrumbs
ul
li
li.inactive
span.fa.fa-search
| Advanced Search

Expand Down
2 changes: 1 addition & 1 deletion templates/views/browse.jade
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ block head

block breadcrumbs
ul
li
li.inactive
span.fa.fa-search
| Search

Expand Down
2 changes: 1 addition & 1 deletion templates/views/clone.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends ../layouts/default.jade

block breadcrumbs
ul
li
li.inactive
span.fa.fa-cloud-upload
| Copy

Expand Down
4 changes: 2 additions & 2 deletions templates/views/copyFromRemote.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends ../layouts/default.jade

block breadcrumbs
ul
li
li.inactive
span.fa.fa-cloud-upload
| Copy

Expand Down Expand Up @@ -100,4 +100,4 @@ block content
| Overwrite Existing Objects
div.row
div.col-md-12
button(type='submit').btn.btn-primary.btn-lg Copy
button(type='submit').btn.btn-primary.btn-lg Copy
2 changes: 1 addition & 1 deletion templates/views/createCollection.jade
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ block head

block breadcrumbs
ul
li
li.inactive
span.fa.fa-search
| Create Collection

Expand Down
2 changes: 1 addition & 1 deletion templates/views/jobs.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends ../layouts/default.jade

block breadcrumbs
ul
li
li.inactive
span.fa.fa-tasks
| Jobs

Expand Down
2 changes: 1 addition & 1 deletion templates/views/makePublic.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends ../layouts/default.jade

block breadcrumbs
ul
li
li.inactive
span.fa.fa-cloud-upload
| Make Public

Expand Down
2 changes: 1 addition & 1 deletion templates/views/manage.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include ../mixins/search-result.jade

block breadcrumbs
ul
li
li.inactive
span.fa.fa-align-left
| Manage Submissions

Expand Down
2 changes: 1 addition & 1 deletion templates/views/search.jade
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ block head

block breadcrumbs
ul
li
li.inactive
span.fa.fa-search
| Search

Expand Down
2 changes: 1 addition & 1 deletion templates/views/selectBenchlingRemote.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends ../layouts/default.jade

block breadcrumbs
ul
li
li.inactive
span.fa.fa-cloud-upload
| Select Benchling Remote Instance

Expand Down
2 changes: 1 addition & 1 deletion templates/views/selectICERemote.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends ../layouts/default.jade

block breadcrumbs
ul
li
li.inactive
span.fa.fa-cloud-upload
| Select ICE Remote Instance

Expand Down
4 changes: 2 additions & 2 deletions templates/views/shared.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include ../mixins/search-result.jade

block breadcrumbs
ul
li
li.inactive
span.fa.fa-bolt
| Shared with Me

Expand All @@ -21,4 +21,4 @@ block content
div.search-results

each submission in searchResults
+search-result-collection(submission)
+search-result-collection(submission)
2 changes: 1 addition & 1 deletion templates/views/submit.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends ../layouts/default.jade

block breadcrumbs
ul
li
li.inactive
span.fa.fa-cloud-upload
| Submit

Expand Down
30 changes: 12 additions & 18 deletions tests/previousresults/getrequest__.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,6 @@ <h1 style="margin-left: 15px">
</h1>
</div>
</a>
<div class="pull-left">
<form action="search" class="top-search-form">
<input class="sbh-autocomplete" name="q" placeholder="Search Test Synbiohub" type="text" value=""/>
<button class="submit" type="submit">
Search
</button>
</form>
</div>
<div class="pull-right menu">
<ul>
<li>
Expand All @@ -136,15 +128,6 @@ <h1 style="margin-left: 15px">
</span>
</a>
</li>
<li>
<a href="/about">
<span class="fa fa-info-circle">
</span>
<span class="blue-text">
About
</span>
</a>
</li>
<li>
<a href="/login">
<span class="fa fa-sign-in">
Expand All @@ -160,14 +143,25 @@ <h1 style="margin-left: 15px">
</nav>
<div class="clearfix">
</div>
<div class="sbol-breadcrumbs">
<div class="sbol-breadcrumbs" style="display: flex">
<ul>
<li>
<span class="fa fa-home">
</span>
Home
</li>
</ul>
<ul style="flex-grow: 1">
<li style="width: 100%; height: 100%">
<form action="search" class="top-search-form">
<input class="sbh-autocomplete" name="q" placeholder="Search Test Synbiohub" style="width: 96%" type="text" value=""/>
<button class="inactive submit" type="submit">
<span class="fa fa-search">
</span>
</button>
</form>
</li>
</ul>
</div>
<div class="container container-fluid">
<div class="row">
Expand Down
30 changes: 12 additions & 18 deletions tests/previousresults/getrequest__after_admin_login.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,6 @@ <h1 style="margin-left: 15px">
</h1>
</div>
</a>
<div class="pull-left">
<form action="search" class="top-search-form">
<input class="sbh-autocomplete" name="q" placeholder="Search Test Synbiohub" type="text" value=""/>
<button class="submit" type="submit">
Search
</button>
</form>
</div>
<div class="pull-right menu">
<ul>
<li>
Expand All @@ -136,15 +128,6 @@ <h1 style="margin-left: 15px">
</span>
</a>
</li>
<li>
<a href="/about">
<span class="fa fa-info-circle">
</span>
<span class="blue-text">
About
</span>
</a>
</li>
<li>
<a href="/login">
<span class="fa fa-sign-in">
Expand All @@ -160,14 +143,25 @@ <h1 style="margin-left: 15px">
</nav>
<div class="clearfix">
</div>
<div class="sbol-breadcrumbs">
<div class="sbol-breadcrumbs" style="display: flex">
<ul>
<li>
<span class="fa fa-home">
</span>
Home
</li>
</ul>
<ul style="flex-grow: 1">
<li style="width: 100%; height: 100%">
<form action="search" class="top-search-form">
<input class="sbh-autocomplete" name="q" placeholder="Search Test Synbiohub" style="width: 96%" type="text" value=""/>
<button class="inactive submit" type="submit">
<span class="fa fa-search">
</span>
</button>
</form>
</li>
</ul>
</div>
<div class="container container-fluid">
<div class="row">
Expand Down
Loading

0 comments on commit ddb0b00

Please sign in to comment.