Skip to content

Commit 75d4075

Browse files
committed
Updated vignette and logo
1 parent 061ece8 commit 75d4075

6 files changed

Lines changed: 38 additions & 12 deletions

File tree

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ knitr::opts_chunk$set(
1313
)
1414
```
1515

16-
# `CroCoNet` <img src="man/figures/logo.png" align="right" width="200" /> <br/> Cro<span style="font-weight:normal">ss-species</span> <br/> Co<span style="font-weight:normal">mparison of</span> <br/> Net<span style="font-weight:normal">works</span>
16+
# `CroCoNet` <img src="man/figures/logo.png" align="right" width="17.5%" /> <br/> Cro<span style="font-weight:normal">ss-species</span> <br/> Co<span style="font-weight:normal">mparison of</span> <br/> Net<span style="font-weight:normal">works</span>
1717

1818
`CroCoNet` is a tool to quantitatively compare gene regulatory networks across species and identify conserved and diverged modules. It hinges on contrasting module variability within and across species in order to distinguish between-species divergence from confounding factors such as diversity across individuals, environmental differences and technical noise.
1919

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
<!-- README.md is generated from README.Rmd. Please edit that file -->
33

4-
# `CroCoNet` <img src="man/figures/logo.png" align="right" width="200" /> <br/> Cro<span style="font-weight:normal">ss-species</span> <br/> Co<span style="font-weight:normal">mparison of</span> <br/> Net<span style="font-weight:normal">works</span>
4+
# `CroCoNet` <img src="man/figures/logo.png" align="right" width="17.5%" /> <br/> Cro<span style="font-weight:normal">ss-species</span> <br/> Co<span style="font-weight:normal">mparison of</span> <br/> Net<span style="font-weight:normal">works</span>
55

66
`CroCoNet` is a tool to quantitatively compare gene regulatory networks
77
across species and identify conserved and diverged modules. It hinges on

data-raw/logo.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
imgurl <- "data-raw/logo.png"
2-
sticker(imgurl, p_size=19, s_x=1, s_y=1.15, s_width=.64, p_y = 0.48, h_color = "#91c36f", h_fill = "#eaf4e4", package = "CroCoNet", p_color = "#385723", p_family = "sans", p_fontface = "bold",
2+
sticker(imgurl, p_size=19, s_x=1, s_y=1.16, s_width=.63, p_y = 0.49, h_color = "#91c36f", h_fill = "#eaf4e4", package = "CroCoNet", p_color = "#385723", p_family = "sans", h_size = 0.6, p_fontface = "bold",
33
filename="inst/figures/CroCoNet_logo.png")

inst/figures/CroCoNet_logo.png

-1.53 KB
Loading

man/figures/logo.png

-1.56 KB
Loading

vignettes/CroCoNet.Rmd

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,48 @@ p.caption {
2121
margin: auto;
2222
}
2323

24-
h1.title {
25-
font-size: 30px;
24+
<!-- h1.title { -->
25+
<!-- font-size: 30px; -->
26+
<!-- } -->
27+
<!-- h1 { /* Header 1 */ -->
28+
<!-- font-size: 24px; -->
29+
<!-- } -->
30+
<!-- h2 { /* Header 2 */ -->
31+
<!-- font-size: 18px; -->
32+
<!-- } -->
33+
34+
/* ---- Works in plain html_vignette ---- */
35+
h1.title { font-size: 1.9rem; } /* ≈ 30px (~22pt) */
36+
h1 { font-size: 1.5rem; } /* ≈ 24px (~18pt) */
37+
h2 { font-size: 1.15rem; } /* ≈ 18px (~13pt) */
38+
39+
/* ---- Ensure the same sizes inside pkgdown ---- */
40+
.template-article .page-header h1,
41+
.template-vignette .page-header h1 {
42+
font-size: 1.9rem !important;
2643
}
27-
h1 { /* Header 1 */
28-
font-size: 24px;
44+
45+
.template-article .contents h2,
46+
.template-vignette .contents h2 {
47+
font-size: 1.5rem !important;
48+
}
49+
50+
.template-article .contents h3,
51+
.template-vignette .contents h3 {
52+
font-size: 1.15rem !important;
2953
}
30-
h2 { /* Header 2 */
31-
font-size: 18px;
54+
55+
/* Optional: adjust spacing */
56+
.template-article .contents h2,
57+
.template-article .contents h3 {
58+
line-height: 1.25;
59+
margin-top: 1.1em;
3260
}
61+
3362
body {
3463
text-align: justify
3564
}
3665

37-
.template-article .contents h2 { font-size: 1.75rem; } /* top-level section */
38-
.template-article .contents h3 { font-size: 1.35rem; } /* subsections */
39-
4066
</style>
4167

4268
```{r, include = FALSE}

0 commit comments

Comments
 (0)