KarrLab / datanator_frontend

Graphical web-based interface for the Datanator toolkit for discovering data for modeling cells
https://datanator.info
MIT License
1 stars 1 forks source link

Style search results page #18

Closed jonrkarr closed 4 years ago

jonrkarr commented 4 years ago

Below are notes about what needs to be improved and specific CSS changes that address most of these issues. I'm also attaching a screenshot of what the page looks like with these changes.

Datanator

/* top navigation bar */
.bp3-navbar.bp3-dark {
    background: #1890ff;
    box-shadow: 0 2px 3px #00000066;
}

.logo-holder {
    height: 46px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.bp3-dark .bp3-button:not([class*=bp3-intent-]) .bp3-icon {
    color: #fff;
}

/* page content */
.general {
    margin: 0 auto;
    margin-top: 50px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
}
.general > .MuiGrid-root {
    max-width: 15%;
    flex-basis: 15%;
    margin-right: 2rem;    
}

/* search input box */
.ConcSearch {
    display: none !important;
}

/* contents */
.contents {
    color: #333;
    padding: 0.5rem;
    margin: 0 !important;
    border-radius: 4px;
    border: 1px solid #ffc306;
    background: #fffcf2; /* 95% lighten of primary color */
    box-shadow: 3px 3px 5px #00000066;
    position: sticky;
    top: calc(50px + 2rem);
}
.contents h3 {
    margin: 0;
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
    height: auto;
    padding: 0;
    line-height: 100%;
}
.contents ol {
    list-style-type: circle;
    padding: 0;
    margin: 0;
    margin-left: 1.1rem;
}
.contents a {
    margin-left: -0.125rem;
}
.contents a {
    color: #333;    
}
.contents a:hover {
    text-decoration: none;
}

/* search results */
.general > .google.results {
    width: 100%;
}

.google.results > .MuiGrid-root {
    width: 100%;
    max-width: unset;
    flex-basis: unset;
}
.google.results > .MuiGrid-root > div {
    width: 100%;
    border: 1px solid #1890ff;
    border-radius: 4px;
    background: #f3f9ff;
    box-shadow: 3px 3px 5px #00000066;
}
.google.results > .MuiGrid-root > div:not(:first-child) {
    margin-top: 2rem;
}

.google.results .MuiTypography-h6 {
    color: #fff;
    background: #1890ff;    
    font-weight: bold;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.google.results .MuiList-root {
    width: 100%;
    padding: 1rem;
}

.google.results li {
    padding: 0;
    margin: 0;
}
.google.results li:not(:first-child) {
    margin-top: 1.0rem;
}
.google.results li .MuiListItemText-multiline {
    margin: 0;
}

.google.results li a {
    color: #000;
    font-weight: bold;
    font-size: 1rem;    
}

/* general styling */
br {
    display: none;
}
jonrkarr commented 4 years ago

The page is looking better. However, I can't comment on most of the page because I don't see any results.

yosefdroth commented 4 years ago

I made those changes. How is the search results page now?

Example link - http://datanator.info/general/?q=glucose&organism=Escherichia%20coli

jonrkarr commented 4 years ago

Some of the changes have not been made. It is important to address each point of an issue. I have created new issues for items which have not been addressed. See #29 #30. The comments in #24 about vertical spacing probably also apply.

jonrkarr commented 4 years ago

Unfortunately, I don't see any results. The server is unavailable. Error 503. I do see that the spinner is centered. That looks nice.

Can you save the page in HTML (Save as --> "Webpage, complete") and attach to the issue?

I think the URL for search results should be renamed (general --> search). See #38.

http://datanator.info/search/?q=glucose&organism=Escherichia%20coli
yosefdroth commented 4 years ago

Datanator_ Molecular data for integrative research.zip

jonrkarr commented 4 years ago

Remaining issues to address

jonrkarr commented 4 years ago

Reordered sections

jonrkarr commented 4 years ago

Also display search query

jonrkarr commented 4 years ago

Also display number of search results

jonrkarr commented 4 years ago

CSS styling done.

Notes about additional content that is needed are now covered by #77, #78, #79, and #80.