Initial commit
This commit is contained in:
14
assets/css/cb-icons.svg
Normal file
14
assets/css/cb-icons.svg
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
# CollectionBuilder-Icons
|
||||
#
|
||||
# This file prepares a central svg sprite file for use on all pages.
|
||||
# Default icons can be over ridden in theme.yml,
|
||||
# using icon names in Bootstrap Icons, https://icons.getbootstrap.com/
|
||||
#
|
||||
# Requires the cb_helpers.rb plugin!
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
{%- for i in site.data.theme_icons -%}
|
||||
{{ i[1].symbol }}
|
||||
{%- endfor -%}
|
||||
</svg>
|
||||
43
assets/css/cb.scss
Normal file
43
assets/css/cb.scss
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
# base CSS for collectionbuilder
|
||||
# includes some theming options
|
||||
# pulled in from "theme.yml" and "config-theme-colors.csv"
|
||||
---
|
||||
@charset "utf-8";
|
||||
|
||||
/* base variables pulled from theme.yml */
|
||||
$theme-base-font-family: {{ site.data.theme.base-font-family | default: '""' }};
|
||||
$theme-base-font-size: {{ site.data.theme.base-font-size | default: '""' }};
|
||||
$theme-text-color: {{ site.data.theme.text-color | default: '""' }};
|
||||
$theme-link-color: {{ site.data.theme.link-color | default: '""' }};
|
||||
|
||||
/* base tweaks to Bootstrap */
|
||||
@forward "base" with (
|
||||
$base-font-family: $theme-base-font-family,
|
||||
$base-font-size: $theme-base-font-size,
|
||||
$text-color: $theme-text-color,
|
||||
$link-color: $theme-link-color
|
||||
);
|
||||
|
||||
/* individual CB page styles */
|
||||
@forward "pages" with (
|
||||
$toc-a-color: {{ site.data.theme.text-color | default: '#191919' }}
|
||||
);
|
||||
|
||||
/* theme colors pulled from config-theme-colors */
|
||||
{% assign btns = site.data.config-theme-colors | where_exp: "item","item.color != nil" %}
|
||||
{% if btns != empty %}
|
||||
@use "sass:map";
|
||||
@forward "theme-colors" with (
|
||||
$link-color-base: $theme-link-color,
|
||||
$theme-colors: (
|
||||
{% for btn in btns %}{% assign color = btn.color | strip %}{% if color != empty %}
|
||||
"{{ btn.color_class | slugify }}": {{ color }}{% unless forloop.last %},{% endunless %}
|
||||
{% endif %}{% endfor %}
|
||||
)
|
||||
|
||||
);
|
||||
{% endif %}
|
||||
|
||||
/* pull in custom styles to override everything else */
|
||||
@use "custom";
|
||||
Reference in New Issue
Block a user