Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/docsy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Chalin <chalin@users.noreply.github.com>2022-08-15 10:13:52 +0300
committerGitHub <noreply@github.com>2022-08-15 10:13:52 +0300
commitd4da7517de6705175289da3464c40be979ee3c72 (patch)
tree340eaa296c96277f50201cd2ad16a8deafdb09c5
parentf8e4409b497a6a5caef969c770c354917adcfd9d (diff)
Card-related shortcode style fixes (#1157)
-rw-r--r--assets/scss/shortcodes/cards-pane.scss42
-rw-r--r--layouts/shortcodes/card-code.html2
-rw-r--r--layouts/shortcodes/card.html2
-rw-r--r--layouts/shortcodes/cardpane.html2
4 files changed, 27 insertions, 21 deletions
diff --git a/assets/scss/shortcodes/cards-pane.scss b/assets/scss/shortcodes/cards-pane.scss
index f46cfe1..f1a66f7 100644
--- a/assets/scss/shortcodes/cards-pane.scss
+++ b/assets/scss/shortcodes/cards-pane.scss
@@ -1,19 +1,25 @@
-.card-deck {
- @extend .td-max-width-on-larger-screens;
-}
-.card {
- @extend .td-max-width-on-larger-screens;
- .highlight {
- border: none;
- }
-}
-.card-body.code {
- background-color: #f8f9fa;
- padding: 0 0 0 1ex;
-}
-.card-body {
- pre {
- margin: 0;
- padding: 0 1rem 1rem 1rem;
- }
+.td-card-deck.card-deck {
+ @extend .td-max-width-on-larger-screens;
}
+
+.td-card {
+ &.card {
+ @extend .td-max-width-on-larger-screens;
+
+ .highlight {
+ border: none;
+ }
+ }
+
+ .card-body {
+ &.code {
+ background-color: #f8f9fa;
+ padding: 0 0 0 1ex;
+ }
+
+ pre {
+ margin: 0;
+ padding: 0 1rem 1rem 1rem;
+ }
+ }
+} \ No newline at end of file
diff --git a/layouts/shortcodes/card-code.html b/layouts/shortcodes/card-code.html
index 7b0e2e9..a7c5465 100644
--- a/layouts/shortcodes/card-code.html
+++ b/layouts/shortcodes/card-code.html
@@ -1,4 +1,4 @@
-<div class="card">
+<div class="td-card card">
{{ $lang := "" }}
{{ with $.Get "lang" }}
{{ $lang = $.Get "lang" }}
diff --git a/layouts/shortcodes/card.html b/layouts/shortcodes/card.html
index 94b2bd9..f055813 100644
--- a/layouts/shortcodes/card.html
+++ b/layouts/shortcodes/card.html
@@ -1,4 +1,4 @@
-<div class="card mb-4">
+<div class="td-card card mb-4">
{{ with $.Get "header" }}
<div class="card-header">
{{ if eq $.Page.File.Ext "md" }}
diff --git a/layouts/shortcodes/cardpane.html b/layouts/shortcodes/cardpane.html
index 1c4e9a2..2617fdb 100644
--- a/layouts/shortcodes/cardpane.html
+++ b/layouts/shortcodes/cardpane.html
@@ -1,3 +1,3 @@
-<div class="card-deck mb-4">
+<div class="td-card-deck card-deck mb-4">
{{- .Inner -}}
</div> \ No newline at end of file