From 03c99e736199bcbb155a0853e7781a5310445ebf Mon Sep 17 00:00:00 2001 From: codecalm Date: Wed, 2 Oct 2019 00:15:52 +0200 Subject: [PATCH] new card elements --- pages/_includes/cards/card-group.html | 5 ++++ pages/_includes/cards/card-image.html | 16 ++++++++++ pages/_includes/cards/card.html | 42 ++++++++++++++++++++++----- pages/_includes/ui/form/check.html | 2 +- pages/cards.html | 38 +++++++++++++++++------- scss/_variables.scss | 2 ++ scss/tabler.scss | 2 +- scss/ui/_cards.scss | 18 +++++++++--- scss/{layout => ui}/_grid.scss | 4 +++ scss/ui/forms/_input.custom.scss | 5 ++++ 10 files changed, 110 insertions(+), 24 deletions(-) create mode 100644 pages/_includes/cards/card-group.html create mode 100644 pages/_includes/cards/card-image.html rename scss/{layout => ui}/_grid.scss (91%) diff --git a/pages/_includes/cards/card-group.html b/pages/_includes/cards/card-group.html new file mode 100644 index 00000000..1ad0c8c5 --- /dev/null +++ b/pages/_includes/cards/card-group.html @@ -0,0 +1,5 @@ +
+ {% include_cached cards/card.html body="This is first card"%} + {% include_cached cards/card.html body="This is second card"%} + {% include_cached cards/card.html body="This is third card"%} +
diff --git a/pages/_includes/cards/card-image.html b/pages/_includes/cards/card-image.html new file mode 100644 index 00000000..7d12adb2 --- /dev/null +++ b/pages/_includes/cards/card-image.html @@ -0,0 +1,16 @@ +
+
+
+ {{ include.img-alt | default: 'Card side image' }} +
+
+
+ {% if include.title %} +

{{ include.title }}

+ {% endif %} +

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima + neque pariatur perferendis sed suscipit velit vitae voluptatem.

+
+
+
+
diff --git a/pages/_includes/cards/card.html b/pages/_includes/cards/card.html index c15c65af..24b9b2e3 100644 --- a/pages/_includes/cards/card.html +++ b/pages/_includes/cards/card.html @@ -1,15 +1,15 @@ -
+
{% if include.img-top %} {{ include.img-top-alt | default: 'Card top image' }} {% endif %} - {% if include.status-position %} -
+ {% if include.status-top %} +
{% endif %} - {% if include.header-title %} + {% if include.header or include.header-title %}
-

{{ include.header-title }}

+

{{ include.header-title | default: 'Header title' }}

{% endif %} @@ -40,18 +40,46 @@ {% endif %}
- {% if include.footer or include.footer-button or include.footer-buttons %} + {% if include.footer or include.footer-button or include.footer-buttons or include.footer-elements %} {% endif %} diff --git a/pages/_includes/ui/form/check.html b/pages/_includes/ui/form/check.html index e384c294..cb3973ed 100644 --- a/pages/_includes/ui/form/check.html +++ b/pages/_includes/ui/form/check.html @@ -12,7 +12,7 @@ {% assign title = title | append: ' ' | append: type %} {% assign title = title | append: ' input' | lstrip | capitalize %} {% endunless %} -