From daec3d43f5241f31dabd436f8bf261b8791071b5 Mon Sep 17 00:00:00 2001 From: codecalm Date: Sun, 12 Jan 2020 21:53:20 +0100 Subject: [PATCH] lists, page title fixes --- package.json | 2 +- pages/_data/menu.yml | 3 +++ pages/lists.html | 15 +++++++++++++++ pages/tmp.html | 24 +++++++++--------------- scss/layout/_page.scss | 2 +- 5 files changed, 29 insertions(+), 17 deletions(-) create mode 100644 pages/lists.html diff --git a/package.json b/package.json index 033e09b65..6bde7d798 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "css-minify": "for i in tmp-dist/css/tabler*.css;do echo $i; N=`echo $i | sed -e 's/^dist\\/css\\///g' | sed -e 's/\\\\.css//g'`; echo $N; cleancss --level 1 --format breakWith=lf --source-map --source-map-inline-sources --output tmp-dist/css/$N.min.css tmp-dist/css/$N.css; done", "css-minify-build": "for i in dist/css/tabler*.css;do echo $i; N=`echo $i | sed -e 's/^dist\\/css\\///g' | sed -e 's/\\\\.css//g'`; echo $N; cleancss --level 1 --format breakWith=lf --source-map --source-map-inline-sources --output dist/css/$N.min.css dist/css/$N.css; done", "css-lint": "stylelint \"scss/**/*.scss\" --cache --cache-location .cache/.stylelintcache", - "css-main": "npm-run-all css-compile", + "css-main": "npm-run-all css-compile css-prefix", "css-main-build": "npm-run-all css-lint css-compile css-prefix-build css-minify", "watch": "npm-run-all --parallel watch-css watch-js watch-html", "watch-incremental": "npm-run-all --parallel watch-css watch-js watch-html-incremental", diff --git a/pages/_data/menu.yml b/pages/_data/menu.yml index a8e13a7d2..c23ebfd74 100644 --- a/pages/_data/menu.yml +++ b/pages/_data/menu.yml @@ -31,6 +31,9 @@ base: carousel: title: Carousel url: carousel.html + lists: + title: Lists + url: lists.html users: title: Users url: users.html diff --git a/pages/lists.html b/pages/lists.html new file mode 100644 index 000000000..23653e6cc --- /dev/null +++ b/pages/lists.html @@ -0,0 +1,15 @@ +--- +menu: base.lists +title: Lists +page-title: Lists +--- + +
+
+ {% include cards/users-list-2.html %} + {% include cards/users-list.html offset=8 checkbox=true title="Contacts" %} +
+
+ {% include cards/users-list.html hoverable=true checked-ids="2,5,8" %} +
+
diff --git a/pages/tmp.html b/pages/tmp.html index 00dc727aa..74d7be67f 100644 --- a/pages/tmp.html +++ b/pages/tmp.html @@ -4,6 +4,14 @@ menu: a.b.c ---
+
+ {% assign person = site.data.people[0] %} +
+
+

{{ person.full_name }}

+
+
+
{% include cards/small-stats.html chart-type="bar" chart-data="20,40,30,40,60,80,70" color="red" icon="heart" %}
@@ -11,20 +19,6 @@ menu: a.b.c {% include cards/small-stats.html chart-type="bar" chart-data="5,8,2,5,-1,3,5,3" color="blue" icon="heart" %}
- {% for chart in site.data.charts %} - {% if chart[1].demo %} -
-
-
- {% assign chart-id = chart[0] %} -

{{ chart-id }}

- {% include ui/chart.html chart-id=chart-id height=15 %} -
-
-
- {% endif %} - {% endfor %} -
@@ -67,4 +61,4 @@ menu: a.b.c
- \ No newline at end of file + diff --git a/scss/layout/_page.scss b/scss/layout/_page.scss index ddb9239c0..5370d86b5 100644 --- a/scss/layout/_page.scss +++ b/scss/layout/_page.scss @@ -2,7 +2,7 @@ display: flex; align-items: center; min-height: 2.25rem; - margin: .25rem 0 $card-spacer-y; + margin: -.25rem 0 $card-spacer-y; >* { flex: 1;