Skip to content

Commit

Permalink
Various style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLeRoy committed Jun 13, 2024
1 parent 28ad9b0 commit d81651e
Show file tree
Hide file tree
Showing 21 changed files with 160 additions and 156 deletions.
8 changes: 4 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<head>
<meta charset="utf-8">

<title>FMS File Explorer</title>
<meta name="description" content="FMS File Explorer">
<title>BioFile Finder</title>
<meta name="description" content="BioFile Finder">
<meta name="author" content="AICS Software">

<link href="https://fonts.googleapis.com/css2?family=Open+Sans&family=Raleway:wght@600&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&family=Raleway:wght@0..600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css?v=1.0">
</head>

Expand All @@ -18,7 +18,7 @@
<header>
<img class="logo" src="resources/aics-logo.png" alt="AICS logo" />
<img class="logo" src="resources/aics-logo-name.png" alt="AICS logo" />
<h1 class="title">FMS File Explorer</h1>
<h1 class="title">BioFile Finder</h1>
</header>

<section>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const ROOT_ELEMENT_ID = "root";
initializeIcons();
loadTheme({
defaultFontStyle: {
fontFamily: "Roboto",
fontFamily: "Open sans, sans-serif",
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@
}

.title {
font-size: large;
margin: 0 0 0 var(--margin);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core/components/GlobalActionButtonRow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function GlobalActionButtonRow(props: Props) {
)
}
title="List view"
iconProps={{ iconName: "BulletedList" }}
iconProps={{ iconName: "NumberedListText" }}
/>
<IconButton
className={classNames(styles.iconButton, {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.content > p {
text-align: left;
}
4 changes: 3 additions & 1 deletion packages/core/components/Modal/DataSource/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import { ModalProps } from "..";
import BaseModal from "../BaseModal";
import DataSourcePrompt from "../../DataSourcePrompt";

import styles from "./DataSource.module.css";

/**
* Dialog meant to prompt user to select a data source option
*/
export default function DataSource(props: ModalProps) {
return (
<BaseModal
body={<DataSourcePrompt hideTitle />}
body={<DataSourcePrompt className={styles.content} hideTitle />}
title="Choose a data source"
onDismiss={props.onDismiss}
/>
Expand Down
6 changes: 2 additions & 4 deletions packages/core/components/QueryPart/QueryPart.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,12 @@
border-radius: var(--small-border-radius);
color: var(--primary-text-color);
margin: calc(var(--margin) / 2) calc(var(--margin) / 4);
}

.container > * {
padding: 0 calc(var(--margin) / 2);
padding: 3px 6px 10px 6px;
}

.header {
display: flex;
padding: 6px 8px;
}

.header:hover, .header:hover button {
Expand Down
5 changes: 3 additions & 2 deletions packages/core/components/QueryPart/QueryPartRow.module.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.icon-button {
.icon-button, .icon-button:hover {
background-color: unset;
color: unset;
max-height: 28px;
}

.icon-button:hover {
background-color: unset;
color: var(--highlight-text-color);
background-color: var(--highlight-background-color);
}

.icon-button i {
Expand All @@ -28,6 +28,7 @@
display: flex;
height: 34px;
width: 100%;
padding: 0 8px;
}

.interactive {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/components/QueryPart/QuerySort.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function QuerySort(props: Props) {
? [
{
id: props.sort.annotationName,
title: props.sort.annotationName,
title: `${props.sort.annotationName} (${props.sort.order})`,
},
]
: []
Expand Down
11 changes: 5 additions & 6 deletions packages/core/components/QuerySidebar/Query.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@

.title-container {
display: flex;
width: 100%;
}

.title-container > div {
width: 100%;
}

.title-container > div > div > div {
Expand Down Expand Up @@ -75,9 +80,3 @@
width: 100%;
white-space: nowrap;
}


.container p, h4 {
margin: 0 0 0 calc(var(--margin) / 2);
padding-top: 6px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.button {
color: var(--primary-sidebar-text-color);
background-color: var(--primary-sidebar-color);
border-radius: 4px;
margin-left: 2px;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core/hooks/useHelpOptions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default function useHelpOptions(
},
},
]),
...(!isOnWeb
...(isOnWeb
? []
: [
{
Expand Down
10 changes: 4 additions & 6 deletions packages/core/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,[email protected]&display=swap');

html {
box-sizing: border-box;
Expand Down Expand Up @@ -53,13 +52,12 @@ body {
--small-border-radius: 4px;
--large-border-radius: 16px;
--box-shadow: 3px 4px 6px 0.5px black;
--l-paragraph-size: 16px;
--s-paragraph-size: 14px;
--xs-paragraph-size: 12px;

--query-sidebar-max-width: 350px;
--file-details-width: 20%;
--margin: 12px;
--transition-duration: 0.5s;
}

h3 {
font-weight: 500;
}
2 changes: 1 addition & 1 deletion packages/web/assets/AICS-logo-and-name.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 8 additions & 11 deletions packages/web/src/components/Header/Header.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.header{
.header {
background-color: var(--primary-dark);
border-bottom: 1px solid var(--medium-grey);
color: var(--secondary-text-color);
Expand All @@ -10,21 +10,19 @@
}

.title {
color: var(--primary-text-color);
border-left: 1px solid var(--secondary-text-color);
color: var(--highlight-text-color);
height: 24px;
padding: 2px 0 0 1em;
margin: 6px 0 0 1em;
text-decoration: none;
}

.header-option {
margin: 0px 10px;
font-size: 16px;
font-weight: 400;
}

.left {
width: 50%;
display: flex;
flex: none;
align-items: center;
padding-top: 4px;
}

.right {
Expand All @@ -49,8 +47,6 @@
color: var(--aqua);
border: 1px solid var(--aqua);
border-radius: 18px;
height: 30px;
width: 110px;
}

.upload-button:hover, .upload-button:focus {
Expand All @@ -61,4 +57,5 @@
.upload-button-label {
font-weight: 400;
font-size: 14px;
text-wrap: nowrap;
}
5 changes: 2 additions & 3 deletions packages/web/src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ export default function Header() {
<a href="https://www.allencell.org/" target="_blank" rel="noreferrer">
<AICSLogo />
</a>
<div className={styles.headerOption}>|</div>
<Link
to={"/"}
className={styles.title}
target={isApp ? "_blank" : "_self"}
rel="noreferrer"
>
{APPLICATION_NAME}
<h4>{APPLICATION_NAME}</h4>
</Link>
</div>
<div className={styles.right}>
Expand All @@ -48,7 +47,7 @@ export default function Header() {
ariaLabel="Get started"
onClick={() => navigate("/app")}
title="Get started"
text="START"
text="GET STARTED"
/>
)}
</div>
Expand Down
43 changes: 0 additions & 43 deletions packages/web/src/components/Home/Banner.module.css

This file was deleted.

30 changes: 0 additions & 30 deletions packages/web/src/components/Home/Banner.tsx

This file was deleted.

Loading

0 comments on commit d81651e

Please sign in to comment.