2019-11-27 05:49:19 +00:00
|
|
|
:root
|
|
|
|
{
|
2019-11-27 07:06:22 +00:00
|
|
|
--color-accent: #D80C49;
|
|
|
|
--color-secondary: #AE1246;
|
|
|
|
--color-light: #EEEEEE;
|
2019-12-02 03:25:41 +00:00
|
|
|
--color-dark-lighter: #6A6A6A;
|
2019-11-27 07:06:22 +00:00
|
|
|
--color-dark: #1D1D1D;
|
|
|
|
|
2019-11-27 05:49:19 +00:00
|
|
|
--font-family: 'Source Sans Pro';
|
|
|
|
--font-size: 18px;
|
2019-12-02 03:25:41 +00:00
|
|
|
--font-size-larger: 22px;
|
2019-11-27 07:06:22 +00:00
|
|
|
--font-color: var(--color-dark);
|
|
|
|
|
|
|
|
--base-size: 25px;
|
|
|
|
|
|
|
|
--animation-ease-out: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
|
|
--animation-short: .3s;
|
2019-11-27 05:49:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
body, html
|
|
|
|
{
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
outline: 0;
|
|
|
|
height: 100%;
|
|
|
|
|
2019-11-27 07:06:22 +00:00
|
|
|
background-color: var(--color-light);
|
|
|
|
|
2019-11-27 05:49:19 +00:00
|
|
|
font-family: var(--font-family);
|
|
|
|
font-size: var(--font-size);
|
2019-11-27 07:06:22 +00:00
|
|
|
line-height: var(--base-size);
|
|
|
|
color: var(--font-color);
|
2019-11-27 05:49:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
body, html, #root
|
|
|
|
{
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
input
|
|
|
|
{
|
|
|
|
font-family: var(--font-family);
|
|
|
|
font-size: var(--font-size);
|
2019-11-27 07:06:22 +00:00
|
|
|
|
|
|
|
padding: 0 calc(.6 * var(--base-size));
|
|
|
|
height: calc(2 * var(--base-size));
|
2019-11-27 05:49:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
*, *::before, *::after
|
|
|
|
{
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2019-11-27 07:06:22 +00:00
|
|
|
/**
|
|
|
|
* App
|
|
|
|
*/
|
|
|
|
|
2019-11-27 05:49:19 +00:00
|
|
|
.App
|
|
|
|
{
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2019-11-27 07:06:22 +00:00
|
|
|
.App .TermInput
|
2019-11-27 05:49:19 +00:00
|
|
|
{
|
|
|
|
position: absolute;
|
|
|
|
z-index: 2;
|
|
|
|
|
2019-11-27 07:06:22 +00:00
|
|
|
width: 600px;
|
|
|
|
|
|
|
|
top: calc(2 * var(--base-size));
|
2019-11-27 05:49:19 +00:00
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
2019-11-27 07:06:22 +00:00
|
|
|
}
|
2019-11-27 05:49:19 +00:00
|
|
|
|
2019-11-27 07:06:22 +00:00
|
|
|
/**
|
|
|
|
* TermInput
|
|
|
|
*/
|
|
|
|
|
|
|
|
.TermInput
|
|
|
|
{
|
2019-11-27 05:49:19 +00:00
|
|
|
display: flex;
|
2019-11-27 07:06:22 +00:00
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
border: 2px solid var(--color-dark);
|
|
|
|
border-radius: 2px;
|
|
|
|
background: white;
|
|
|
|
|
|
|
|
transition: box-shadow var(--animation-short) var(--animation-ease-out);
|
2019-11-27 05:49:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.TermInput:focus-within
|
|
|
|
{
|
2019-11-27 07:06:22 +00:00
|
|
|
box-shadow:
|
|
|
|
-1px -1px 0px var(--color-dark),
|
|
|
|
1px -1px 0px var(--color-dark),
|
|
|
|
1px 1px 0px var(--color-dark),
|
|
|
|
-1px 1px 0px var(--color-dark);
|
|
|
|
}
|
|
|
|
|
|
|
|
.TermInput_term
|
|
|
|
{
|
|
|
|
display: inline-block;
|
|
|
|
background: var(--color-secondary);
|
|
|
|
color: var(--color-light);
|
|
|
|
|
|
|
|
border-radius: 2px;
|
2019-11-27 08:33:03 +00:00
|
|
|
padding: calc(.25 * var(--base-size)) calc(.5 * var(--base-size));
|
2019-11-27 07:06:22 +00:00
|
|
|
margin-left: calc(.3 * var(--base-size));
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
transition: background var(--animation-short) var(--animation-ease-out);
|
|
|
|
}
|
|
|
|
|
|
|
|
.TermInput_term:hover
|
|
|
|
{
|
|
|
|
background: var(--color-accent);
|
2019-11-27 05:49:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.TermInput_input
|
|
|
|
{
|
|
|
|
flex: 1;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2019-11-27 07:06:22 +00:00
|
|
|
/**
|
|
|
|
* Graph
|
|
|
|
*/
|
2019-11-27 05:49:19 +00:00
|
|
|
|
|
|
|
.Graph
|
|
|
|
{
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
2019-11-27 07:06:22 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
2019-11-27 05:49:19 +00:00
|
|
|
overflow: hidden;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Graph_edgesContainer
|
|
|
|
{
|
|
|
|
position: absolute;
|
|
|
|
z-index: 0;
|
|
|
|
|
|
|
|
top: 0;
|
|
|
|
left 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Graph_edgesContainer line
|
|
|
|
{
|
2019-11-27 07:06:22 +00:00
|
|
|
stroke: var(--color-dark);
|
2019-11-27 05:49:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.Graph_node
|
|
|
|
{
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
transform: translate(-50%, -50%);
|
2019-12-02 03:25:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* SearchResults
|
|
|
|
*/
|
|
|
|
|
|
|
|
.SearchResults_result
|
|
|
|
{
|
|
|
|
display: inline-block;
|
|
|
|
max-width: 200px;
|
|
|
|
padding: calc(.25 * var(--base-size)) calc(.5 * var(--base-size));
|
2019-11-27 05:49:19 +00:00
|
|
|
|
|
|
|
background: white;
|
2019-12-02 03:25:41 +00:00
|
|
|
border-radius: 2px;
|
|
|
|
margin-left: calc(.3 * var(--base-size));
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
font-style: italic;
|
|
|
|
color: var(--color-dark-lighter);
|
|
|
|
|
|
|
|
transition: background var(--animation-short) var(--animation-ease-out);
|
|
|
|
}
|
|
|
|
|
|
|
|
.SearchResults_result-disease
|
|
|
|
{
|
|
|
|
font-size: var(--font-size-larger);
|
|
|
|
font-style: normal;
|
|
|
|
color: var(--color-dark);
|
|
|
|
}
|
|
|
|
|
|
|
|
.SearchResults_result-term
|
|
|
|
{
|
|
|
|
background: var(--color-secondary);
|
|
|
|
color: var(--color-light);
|
2019-11-27 05:49:19 +00:00
|
|
|
}
|