Skip to content

Commit

Permalink
more fun color stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Apr 23, 2024
1 parent e960d42 commit 0d9f80a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions content/_layouts/partials/doc-category.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
{%- endfor -%}

{% for doc in collections[docCollection] %}
<div class="col-md-3 col-12 col-sm-6 doc-list-item">
<div class="list-group p-1">
{% capture flixelcol %}
{% cycle "--bs-flixel-yellow", "--bs-flixel-red", "--bs-flixel-green", "--bs-flixel-dark-blue", "--bs-flixel-light-blue" %}
{% endcapture %}
<div class="col-md-3 col-12 col-sm-6 doc-list-item gy-2">
<div class="list-group p-0 rounded-0 blog-card" style="outline-color: var({{flixelcol}})">
<a href="{{doc.url}}" class="list-group-item list-group-item-action fw-semibold">
{{ doc.data.title }}
</a>
Expand Down
3 changes: 3 additions & 0 deletions content/_scss/flixel-colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ $flixel-colors: (
flixel-light-blue: $flixel-light-blue,
);

$link-color: $flixel-dark-blue;
$link-color-dark: $flixel-light-blue;

$theme-colors: map-merge($theme-colors, $flixel-colors);

0 comments on commit 0d9f80a

Please sign in to comment.