Skip to content

Improved colours #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
38 changes: 19 additions & 19 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ description: |
</div>
<div class="d-flex flex-row flex-wrap panel-wrapper gap-4 section-end-space">
<div class="panel">
<div class="panel-title">
<div class="panel-title pb-1">
Intuitive
</div>
Turing models are easy to write and communicate — syntax is close to mathematical notations.
</div>
<div class="panel">
<div class="panel-title">
<div class="panel-title pb-1">
General-purpose
</div>
Turing supports models with discrete parameters and stochastic control flow.
</div>
<div class="panel">
<div class="panel-title">
<div class="panel-title pb-1">
Modular & composable
</div>
Turing is modular, written entirely in Julia, and is interoperable with the powerful Julia ecosystem.
Expand Down Expand Up @@ -109,9 +109,9 @@ end
</div>

```{=html}
<div class="pb-3 fs-2 fw-bold">
<h3 class="pb-3">
News
</div>
</h3>
```
::: {#news}

Expand All @@ -120,57 +120,57 @@ end
[See all news &rarr;](news/)

```{=html}
<div class="section-start-space pb-3 fs-2 fw-bold">
<h3 class="pb-3 section-start-space">
Learn more
</div>
</h3>
<div class="list grid quarto-listing-cols-3">
<a class="pseudolisting" href="https://discourse.julialang.org/c/domain/probprog/48">
<div class="card-title h5">
Discourse
</div>
<div class="card-text quarto-grid-item">
<p class="quarto-grid-item">
Get support from and discuss with other users.
</div>
</p>
</a>
<a class="pseudolisting" href="https://turinglang.org/docs/tutorials/docs-00-getting-started/">
<div class="card-title h5">
Documentation
</div>
<div class="card-text quarto-grid-item">
<p class="quarto-grid-item">
Familiarize yourself with the Turing.jl API.
</div>
</p>
</a>
<a class="pseudolisting" href="https://turinglang.org/docs/tutorials/00-introduction/">
<div class="card-title h5">
Official tutorials
</div>
<div class="card-text quarto-grid-item">
<p class="quarto-grid-item">
Learn to tackle specific problems with Turing.jl.
</div>
</p>
</a>
<a class="pseudolisting" href="resources/content/inofficial_tutorials.qmd">
<div class="card-title h5">
Inofficial tutorials
</div>
<div class="card-text quarto-grid-item">
<p class="quarto-grid-item">
A list of inofficial tutorials using Turing.jl.
</div>
</p>
</a>
<a class="pseudolisting" href="resources/content/talks.qmd">
<div class="card-title h5">
Talks
</div>
<div class="card-text quarto-grid-item">
<p class="quarto-grid-item">
A list of talks on the Turing.jl ecosystem.
</div>
</p>
</a>
<a class="pseudolisting" href="">
<div class="card-title h5">
Workshop
</div>
<div class="card-text quarto-grid-item">
<p class="quarto-grid-item">
Placeholder for Turing-Workshop repo link.
</div>
</p>
</a>
</div>
```
4 changes: 1 addition & 3 deletions theming/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ $theme: "cosmo" !default;

@import "rules/layouts";
@import "rules/hoverables-dark";
@import "rules/panels";
@import "rules/navbar";
@import "rules/codeblocks";
@import "rules/quarto-tweaks";

@import "old/old-styles";

//
4 changes: 2 additions & 2 deletions theming/light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

@import "rules/layouts";
@import "rules/hoverables-light";
@import "rules/panels";
@import "rules/navbar";
@import "rules/codeblocks";
@import "rules/quarto-tweaks";

@import "old/old-styles";

//
9 changes: 0 additions & 9 deletions theming/rules/_codeblocks.scss

This file was deleted.

10 changes: 6 additions & 4 deletions theming/rules/_hoverables-dark.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
$hover-border: lighten($color-secondary, 5%);

.button {
@include button($hover-border)
@include button($border-hover);
}

.card {
@include card($hover-border)
@include card($border-hover);

.card-text {
color: $text-muted;
}
}

.example-code {
Expand Down
6 changes: 2 additions & 4 deletions theming/rules/_hoverables-light.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
$hover-border: darken($color-secondary, 15%);

.button {
@include button($hover-border)
@include button($border-hover)
}

.card {
@include card($hover-border)
@include card($border-hover)
}

.example-code {
Expand Down
31 changes: 31 additions & 0 deletions theming/rules/_layouts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,34 @@
.section-start-space {
padding-top: $large-y-space;
}

.panel {
border-radius: $border-radius-sm;
padding: 1rem 1.25rem;
min-height: 150px;
min-width: 300px;
max-width: 31%;

color: $text-muted !important;
background-color: $color-mute-bg !important;
border: solid $color-mute-bg 0px !important;

.panel-title {
color: $color-fg !important;
font-size: x-large;
font-weight: 700;
}

&--nopad {
@extend .panel;
padding: 0rem;
}
}

.panel-wrapper {
justify-content: space-between;

@media screen and (max-width: 992px) {
justify-content: center;
}
}
5 changes: 1 addition & 4 deletions theming/rules/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
font-weight: 700;
}

.card-text {
color: $text-muted !important;
}

&:hover {
background-color: $color-highlight !important;
border-color: $hover-border !important;
Expand All @@ -40,6 +36,7 @@
&:hover {
background-color: $color-mute-bg !important;
border-color: $color-mute-bg !important;
text-decoration: none;
}
}

Expand Down
11 changes: 10 additions & 1 deletion theming/rules/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
color: $text-muted;

a:hover {
text-decoration: none;
text-decoration: none !important;
}

.nav-link:hover {
color: $link-color !important;
}

.navbar-brand:hover {
color: $link-color !important;
transition: color 0.15s ease-in-out !important;
}
}
31 changes: 0 additions & 31 deletions theming/rules/_panels.scss

This file was deleted.

36 changes: 36 additions & 0 deletions theming/rules/_quarto-tweaks.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.sourceCode {
background-color: $color-mute-bg !important;
border-color: $color-mute-bg !important;
border-radius: $border-radius-sm !important;

pre {
padding: 0.5rem !important;
}
}

.quarto-title-banner {
background-color: $body-bg !important;

.title {
color: $color-fg !important;
}
}

.listing-description {
.no-external {
color: $text-muted !important;
}
}

.input-group-text {
background-color: $color-mute-bg !important;
}

a {
text-decoration: none;
&:hover {
color: $link-color;
text-decoration: underline;
}

}
Loading