Skip to content

Commit 1a5ec63

Browse files
committed
Improve colours, hover states and UI for clearing input sequence
1 parent 6dfeedf commit 1a5ec63

7 files changed

Lines changed: 21 additions & 18 deletions

File tree

public/css/app.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/databases.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,14 @@ export class Databases extends Component {
6868

6969
// Toggle button.
7070
var toggleState = '[Select all]';
71-
var toggleClass = 'px-2 text-seqblue text-sm';
71+
var toggleClass = 'px-2 text-sm';
7272
var toggleShown = this.databases(category).length > 1;
7373
var toggleDisabled = this.state.type && this.state.type !== category;
74-
if (toggleShown && toggleDisabled) toggleClass += ' text-gray-400';
74+
if (toggleShown && toggleDisabled) {
75+
toggleClass += ' text-gray-400';
76+
} else {
77+
toggleClass += ' text-seqblue';
78+
}
7579
if (!toggleShown) toggleClass += ' hidden';
7680
if (this.nselected() === this.databases(category).length) {
7781
toggleState = '[Deselect all]';

public/js/query.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,16 +345,16 @@ export class SearchQueryWidget extends Component {
345345
</textarea>
346346
</div>
347347
<div
348-
className="hidden"
349-
style={{ position: 'absolute', top: '4px', right: '19px' }}
348+
className="hidden absolute top-2 right-2"
350349
ref={this.controlsRef}>
351350
<button
352351
type="button"
353-
className="btn btn-sm btn-default" id="btn-sequence-clear"
352+
className="border border-gray-300 rounded bg-white hover:bg-gray-200" id="btn-sequence-clear"
354353
title="Clear query sequence(s)."
355354
onClick={this.clear}>
356355
<span id="sequence-file"></span>
357-
<i className="fa fa-times"></i>
356+
<i className="fa fa-times w-6 h-6 p-1"></i>
357+
<span className="sr-only">Clear query sequence(s).</span>
358358
</button>
359359
</div>
360360
</div>

public/js/search_button.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class SearchButton extends Component {
157157
>
158158
<button
159159
type="submit"
160-
className="w-full md:w-auto flex text-xl justify-center py-2 px-16 border border-transparent rounded-md shadow-sm text-white bg-seqblue hover:bg-seqorange focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-seqorange"
160+
className="uppercase w-full md:w-auto flex text-xl justify-center py-2 px-16 border border-transparent rounded-md shadow-sm text-white bg-seqblue hover:bg-seqorange focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-seqorange"
161161
id="method"
162162
ref={this.submitButtonRef}
163163
name="method"
@@ -179,9 +179,8 @@ export class SearchButton extends Component {
179179
</button>
180180

181181
<div id="dropdown"
182-
className={`z-10 bg-blue-300 divide-y divide-gray-100 rounded-lg shadow absolute left-0 w-full text-xl text-center ${this.state.dropdownVisible ? '' : 'hidden'}`}>
183-
184-
<ul className="py-2 text-gray-700" aria-labelledby="dropdownDefaultButton">
182+
className={`z-10 my-2 uppercase bg-blue-300 divide-y divide-gray-100 rounded-lg shadow absolute left-0 w-full text-xl text-center ${this.state.dropdownVisible ? '' : 'hidden'}`}>
183+
<ul className="text-gray-700" aria-labelledby="dropdownDefaultButton">
185184
{_.map(
186185
methods.slice(1),
187186
_.bind(function (method) {
@@ -192,7 +191,7 @@ export class SearchButton extends Component {
192191
this.changeAlgorithm(method);
193192
}, this)}
194193
>
195-
<a href="#" className="block px-4 py-2 hover:bg-blue-400">{method}</a>
194+
<a href="#" className="block px-4 py-2 hover:bg-blue-400 rounded-lg">{method}</a>
196195
</li>
197196
);
198197
}, this)

public/sequenceserver-report.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/sequenceserver-search.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

views/search_layout.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666
<div class="mx-auto px-4">
6767
<div class="container">
6868
<p class="text-center">
69-
Please cite data sources and <a style='vertical-align: baseline' href="https://doi.org/10.1093/molbev/msz185">the paper</a> describing <a href="https://wurmlab.com">our</a> <a href="https://sequenceserver.com">SequenceServer BLAST interface</a>.
70-
<a style='vertical-align: baseline' href='https://sequenceserver.com'>
69+
Please cite data sources and <a class="text-seqblue" href="https://doi.org/10.1093/molbev/msz185">the paper</a> describing <a class="text-seqblue" href="https://wurmlab.com">our</a> <a class="text-seqblue" href="https://sequenceserver.com">SequenceServer BLAST interface</a>.
70+
<a class="text-seqblue" href='https://sequenceserver.com'>
7171
<em>
7272
<%=
7373
quote = [

0 commit comments

Comments
 (0)