Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Use dark mode #107

Open
wants to merge 44 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
79bcda1
Use dark mode
scottgigante-immunai Mar 8, 2023
fac5fe9
Update styles.css
scottgigante-immunai Mar 9, 2023
7c137d7
Set card bg dynamically
scottgigante-immunai Mar 9, 2023
e7c1f91
Image background for readability
scottgigante-immunai Mar 9, 2023
09919e0
make shadow color dynamic
scottgigante-immunai Mar 9, 2023
ce653bd
Merge branch 'main' into theme/dark_mode
scottgigante-immunai Mar 9, 2023
ba93c9a
fix table css in dark mode
scottgigante-immunai Mar 9, 2023
61a5cf7
fix heatmap
scottgigante-immunai Mar 9, 2023
e65acfc
don't make header dark if light mode
scottgigante-immunai Mar 9, 2023
6185fb7
remove navbar border
scottgigante-immunai Mar 9, 2023
4c2608d
make summary more readable
scottgigante-immunai Mar 9, 2023
a256eb6
reference relevant stylesheets
scottgigante-immunai Mar 9, 2023
dfdc412
fix scss syntax
scottgigante-immunai Mar 9, 2023
74c480d
change link colors
scottgigante-immunai Mar 9, 2023
6282973
More results table fixes
scottgigante-immunai Mar 9, 2023
654f6e2
try css theme
scottgigante-immunai Mar 9, 2023
8e83ef6
set link color with scss
scottgigante-immunai Mar 9, 2023
c497c4b
set navbar color in scss
scottgigante-immunai Mar 9, 2023
17f6c7f
only invert the icon buttons
scottgigante-immunai Mar 9, 2023
e783988
Revert c497c4b0f05d75ece5b3ca5fe90897437387f87d
scottgigante-immunai Mar 9, 2023
918d5b1
use scss properly
scottgigante-immunai Mar 9, 2023
7592bb2
Merge branch 'main' into theme/dark_mode
scottgigante-immunai Mar 9, 2023
6ec9c94
only invert icons in dark mode
scottgigante-immunai Mar 9, 2023
9b2804c
set button hover color
scottgigante-immunai Mar 9, 2023
18ffca1
fix scss variable export
scottgigante-immunai Mar 9, 2023
1138637
fix team page
scottgigante-immunai Mar 9, 2023
a3b8b9d
keep inverted
scottgigante-immunai Mar 9, 2023
c254446
replace toggle with moon
scottgigante-immunai Mar 9, 2023
e067ae7
fix moon toggle
scottgigante-immunai Mar 9, 2023
e8d679b
only change img background on tasks page
scottgigante-immunai Mar 9, 2023
acb8107
fix moon toggle again
scottgigante-immunai Mar 9, 2023
c258475
same font in both themes
scottgigante-immunai Mar 9, 2023
f88275b
just make the images white
scottgigante-immunai Mar 9, 2023
afff5df
try a little less dark
scottgigante-immunai Mar 9, 2023
8d6b573
make the shadow black
scottgigante-immunai Mar 9, 2023
9e629fa
make navbar the same size regardless of theme
scottgigante-immunai Mar 9, 2023
122f7e6
more height fixes
scottgigante-immunai Mar 9, 2023
ebfadcb
make logo readable on dark background
scottgigante-immunai Mar 9, 2023
2200ed1
more padding fixes
scottgigante-immunai Mar 9, 2023
6f85b4f
logo a little darker
scottgigante-immunai Mar 9, 2023
ad3f134
fix image backgrounds in neurips docs
scottgigante-immunai Mar 9, 2023
15d380a
mirror thumbnail -> thumnail typo
scottgigante-immunai Mar 9, 2023
2534abc
Merge branch 'main' into theme/dark_mode
scottgigante-immunai Mar 9, 2023
15c5d6e
Merge branch 'main' into theme/dark_mode
rcannood Mar 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ website:
contents: competitions/neurips_2021_docs
format:
html:
# theme:
# light: [ simplex, theme.scss ]
# dark: [ darkly, theme.scss ]
theme: [ simplex, theme.scss ]
theme:
light: [ simplex, theme.scss, theme-light.scss]
dark: [ darkly, theme.scss, theme-dark.scss ]
css: styles.css
toc: true
link-external-newwindow: true
Expand Down
2 changes: 1 addition & 1 deletion bibliography/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar: false
page-layout: full
resources:
- "library.bib"
css: [../styles.css, ../style-hero.css, biblio.css]
css: [../style-hero.css, biblio.css]
---

```{=html}
Expand Down
1 change: 1 addition & 0 deletions competitions/neurips_2021_docs/about_tasks/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ order: 4
listing:
contents: "*.qmd"
type: default
css: ../docs.css
---

The competition will focus on three tasks. Click on each header to learn more.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Task 1: Modality Prediction"
description: Predicting the flow of information from DNA to RNA and RNA to Protein
image: ../images/predict.svg
order: 2
css: ../docs.css
---

Experimental techniques to measure multiple modalities within the same single cell are increasingly becoming available. The demand for these measurements is driven by the promise to provide a deeper insight into the state of a cell. Yet, the modalities are also intrinsically linked. We know that DNA must be accessible (ATAC data) to produce mRNA (expression data), and mRNA in turn is used as a template to produce protein (protein abundance). These processes are regulated often by the same molecules that they produce: for example, a protein may bind DNA to prevent the production of more mRNA. Understanding these regulatory processes would be transformative for synthetic biology and drug target discovery. Any method that can predict a modality from another must have accounted for these regulatory processes, but the demand for multi-modal data shows that this is not trivial.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Task 2: Modality Matching"
description: Matching profiles of each cell from different modalities.
image: ../images/match.svg
order: 3
css: ../docs.css
---

While joint profiling of two modalities in the same single cell is now possible, most single-cell datasets that exist measure only a *single* modality. These modalities complement each other in their description of cellular state. Yet, it is challenging to analyse uni-modal datasets together when they do not share observations (cells) or a common feature space (genes, proteins, or open chromatin peaks). If we could map observations to one another across modalities, it would be possible to treat separately profiled datasets in the same manner as new multi-modal sequencing data. Mapping these modalities to one another opens up the vast amount of uni-modal single-cell datasets generated in the past years to multi-modal data analysis methods.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Task 3: Joint Embedding"
description: Learn a joint embedding from multiple modalities
image: ../images/integrate.svg
order: 3
css: ../docs.css
---

The functioning of organs, tissues, and whole organisms is determined by the interplay of cells. Cells are characterised into broad types, which in turn can take on different states. Here, a cell state is made up of the sum of all processes that are occurring within the cell. We can gain insight into the state of a cell by different types of measurements: e.g., RNA expression, protein abundance, or chromatin conformation. Combining this information to describe cellular heterogeneity requires the formation of joint embeddings generated from this multimodal data. These embeddings must account for and remove possible batch effects between different measurement batches. The reward for methods that can achieve this is great: a highly resolved description of the underlying biological state of a cell that determines its function, how it interacts with other cells, and thus the cell’s role in the functioning of the whole tissue.
Expand Down
1 change: 1 addition & 0 deletions competitions/neurips_2021_docs/data/about_multimodal.qmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "About multimodal single-cell data"
order: 2
css: ../docs.css
---
The goal for this page is to provide an introduction to multimodal single-cell data and the specific datasets used in the competition. We know that many participants may be encountering this data type for the first time (it's only been around for a couple of years!), and so this page serves as a general introduction. At the end you will find further reading recommendations that you can consult if you'd like to learn more.

Expand Down
3 changes: 3 additions & 0 deletions competitions/neurips_2021_docs/docs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
img.img-fluid, img.thumnail-image {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is the thumnail-image class used and why 'thumnail' and not 'thumbnail' ?

background-color: #ffffff;
}
1 change: 1 addition & 0 deletions competitions/neurips_2021_docs/submission/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ order: 5
listing:
contents: "*.qmd"
type: default
css: ../docs.css
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Starter kit contents"
order: 20
css: ../docs.css
---


Expand Down
Binary file modified images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions results/batch_integration_embed/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: "Removing batch effects while preserving biological variation (embeddi
engine: knitr
image: featured.png
page-layout: full
css: ../task_template.css
---

```{r}
Expand Down
1 change: 1 addition & 0 deletions results/batch_integration_feature/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: "Removing batch effects while preserving biological variation (feature
engine: knitr
image: featured.png
page-layout: full
css: ../task_template.css
---

```{r}
Expand Down
1 change: 1 addition & 0 deletions results/batch_integration_graph/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: "Removing batch effects while preserving biological variation (graph o
engine: knitr
image: featured.png
page-layout: full
css: ../task_template.css
---

```{r}
Expand Down
1 change: 1 addition & 0 deletions results/cell_cell_communication_ligand_target/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: "Detect interactions between ligands and target cell types"
engine: knitr
image: featured.png
page-layout: full
css: ../task_template.css
---

```{r}
Expand Down
1 change: 1 addition & 0 deletions results/cell_cell_communication_source_target/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: "Detect interactions between source and target cell types"
engine: knitr
image: featured.png
page-layout: full
css: ../task_template.css
---

```{r}
Expand Down
1 change: 1 addition & 0 deletions results/denoising/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: "Removing noise in sparse single-cell RNA-sequencing count data"
engine: knitr
image: featured.png
page-layout: full
css: ../task_template.css
---

```{r}
Expand Down
1 change: 1 addition & 0 deletions results/dimensionality_reduction/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: "Reduction of high-dimensional datasets to 2D for visualization & inte
engine: knitr
image: featured.png
page-layout: full
css: ../task_template.css
---

```{r}
Expand Down
2 changes: 1 addition & 1 deletion results/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ listing:
contents: "*/index.qmd"
template: tasks.ejs
toc: false
css: [../styles.css, ../style-hero.css, tasks.css]
css: [../style-hero.css, tasks.css]
---

:::{#tasks}
Expand Down
1 change: 1 addition & 0 deletions results/label_projection/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: "Automated cell type annotation from rich, labeled reference data"
engine: knitr
image: featured.png
page-layout: full
css: ../task_template.css
---

```{r}
Expand Down
1 change: 1 addition & 0 deletions results/matching_modalities/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: "Alignment of cellular profiles from two different modalities"
engine: knitr
image: featured.png
page-layout: full
css: ../task_template.css
---

```{r}
Expand Down
1 change: 1 addition & 0 deletions results/regulatory_effect_prediction/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: "Prediction of gene expression from chromatin accessibility"
engine: knitr
image: featured.png
page-layout: full
css: ../task_template.css
---

```{r}
Expand Down
1 change: 1 addition & 0 deletions results/spatial_decomposition/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: "Calling cell-type compositions for spot-based spatial transcriptomics
engine: knitr
image: featured.png
page-layout: full
css: ../task_template.css
---

```{r}
Expand Down
64 changes: 64 additions & 0 deletions results/task_template.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
details > summary {
color: var(--bs-secondary-text-color);
}

/* Data table */

.dataTables_wrapper {
color: var(--bs-body-color);
}
.dataTables_wrapper button {
color: var(--bs-body-color);
}

div.dtsp-searchCont input.dtsp-search::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
color: var(--bs-body-color);
opacity: 1; /* Firefox */
}

div.dtsp-searchCont input.dtsp-search:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: var(--bs-body-color);
}

div.dtsp-searchCont input.dtsp-search::-ms-input-placeholder { /* Microsoft Edge */
color: var(--bs-body-color);
}

div.dtsp-panesContainer .dtsp-titleRow button {
color: var(--bs-body-color);
}
div.dtsp-panesContainer .dtsp-titleRow button.dtsp-disabledButton {
color: var(--bs-secondary);
}
div.dtsp-panesContainer .dtsp-titleRow button:hover {
background-color: var(--bs-button-hover);
}
div.dtsp-panesContainer .dtsp-titleRow button.dtsp-disabledButton:hover {
background-color: unset;
}

div.dtsp-topRow.dtsp-bordered:hover {
background-color: var(--bs-button-hover);
}
div.dtsp-panesContainer div.dtsp-searchPanes div.dtsp-searchPane input.dtsp-paneInputButton:hover, div.dtsp-panesContainer div.dtsp-searchPanes div.dtsp-searchPane button.dtsp-paneButton:hover {
background-color: var(--bs-button-hover);
}
div.dtsp-panesContainer div.dtsp-searchPanes div.dtsp-searchPane button.dtsp-paneButton.dtsp-searchIcon, div.dtsp-panesContainer div.dtsp-searchPanes div.dtsp-searchPane button.dtsp-paneButton.dtsp-nameButton, div.dtsp-panesContainer div.dtsp-searchPanes div.dtsp-searchPane button.dtsp-paneButton.dtsp-countButton {
filter: invert(var(--invert-colors));
}
div.dtsp-panesContainer div.dtsp-searchPanes div.dtsp-searchPane button.dtsp-paneButton.dtsp-searchIcon:hover, div.dtsp-panesContainer div.dtsp-searchPanes div.dtsp-searchPane button.dtsp-paneButton.dtsp-nameButton:hover, div.dtsp-panesContainer div.dtsp-searchPanes div.dtsp-searchPane button.dtsp-paneButton.dtsp-countButton:hover {
background-color: var(--bs-invert-button-hover);
}
div.dtsp-panesContainer div.dataTables_wrapper div.dataTables_scrollBody {
background-color: var(--bs-body-bg) !important;
KaiWaldrant marked this conversation as resolved.
Show resolved Hide resolved
}

/* Funkyheatmap */

.quarto-figure svg text {
fill: var(--bs-body-color);
}

.quarto-figure svg rect.row ~ text {
fill: var(--bs-dark);
}
4 changes: 4 additions & 0 deletions results/tasks.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
.quarto-grid-item .card-text {
margin-bottom: auto;
}

.card-shadow .card-img-top {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.card-shadow .card-img-top {
.card .card-img-top {

background-color: var(--bs-white);
}
40 changes: 34 additions & 6 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,41 @@ a {
text-decoration: none;
}

code {
color: var(--bs-code-color);
}

.navbar {
border-width: 0px;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}

.nav-link {
padding: 0.9rem 1rem;
}

.navbar-brand {
padding-top: 0.7125rem;
padding-bottom: 0.7125rem;
}

.navbar-dark {
background-color: var(--bs-body-bg);
}

.navbar-logo {
max-height: 48px;
}

.navbar .quarto-color-scheme-toggle .bi::before {
background-image: var(--moon-svg) !important;
}

.navbar-collapse .quarto-color-scheme-toggle {
margin-top: -20px;
}

@media screen and (max-width: 575.98px) {
.navbar-logo {
max-height: 30px;
Expand All @@ -35,8 +66,6 @@ a {
}
}



.mermaid svg {
display: block;
margin: auto;
Expand Down Expand Up @@ -65,14 +94,13 @@ header#quarto-header {
.card-shadow {
overflow: hidden;
text-overflow: ellipsis;
background: #fff;
box-shadow: 0 2px 4px rgba(0,0,0,.4);
background: var(--bs-body-bg);
box-shadow: 0 2px 4px var(--shadow-color);
transition: all .2s ease-out;
}

a .card-shadow:hover,
.card-shadow:has(a):hover {
box-shadow: 0 8px 16px rgba(0,0,0,.4);
box-shadow: 0 8px 16px var(--shadow-color);
}
.card .btn {
margin-top: 0.5rem;
Expand Down
4 changes: 2 additions & 2 deletions team/team.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
.portrait-title h5 {
font-size: 1.4em;
font-weight: 300;
color: #000;
color: var(--bs-body-color);
margin: 20px 0 10px;
}

.portrait-title h6 {
font-size: 1rem;
font-weight: 300;
color: rgba(0, 0, 0, 0.54);
color: var(--bs-secondary-text-color);
margin: 0 0 10px;
}

Expand Down
19 changes: 19 additions & 0 deletions theme-dark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*-- scss:defaults --*/
$font-family-sans-serif: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
$body-bg: #333;

:root {
--invert-colors: 1;
--bs-secondary-text-color: #bcc5cd;
--bs-code-color: #bf6de8;
--bs-button-hover: #444;
--bs-invert-button-hover: #cfcfcf;
}

.navbar .quarto-color-scheme-toggle .bi::before {
--moon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='20' fill='%23dee2e6' title='moon'%3E%3Cpath d='M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z' /%3E%3C/svg%3E");
}

.card-shadow {
--shadow-color: #000;
}
16 changes: 16 additions & 0 deletions theme-light.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*-- scss:defaults --*/
:root {
--invert-colors: 0;
--bs-secondary-text-color: #6c757d;
--bs-code-color: #9753b8;
--bs-button-hover: #f0f0f0;
--bs-invert-button-hover: #f0f0f0;
}

.navbar .quarto-color-scheme-toggle .bi::before {
--moon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='20' fill='%23666666' title='moon'%3E%3Cpath d='M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z' /%3E%3C/svg%3E");
}

.card-shadow {
--shadow-color: #5a6268;
}
2 changes: 1 addition & 1 deletion theme.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*-- scss:defaults --*/
$primary: #ff414b;
$secondary: #5a6268;
$link-color: $primary;

/* Fonts */
@font-face {
Expand Down Expand Up @@ -36,6 +37,5 @@ p {

a {
font-family: 'hk_groteskmedium', Fallback, sans-serif;
color: #d15454;
font-weight: bold;
}