瀏覽代碼

fix: added padding in scss file and fixed indentation

version-14
codescientist703 4 年之前
父節點
當前提交
008a72e92a
共有 2 個檔案被更改,包括 6 行新增3 行删除
  1. +4
    -0
      frappe/public/scss/website/page_builder.scss
  2. +2
    -3
      frappe/website/web_template/section_with_cards/section_with_cards.html

+ 4
- 0
frappe/public/scss/website/page_builder.scss 查看文件

@@ -154,6 +154,10 @@
line-height: 1;
}

img {
padding: 1rem;
}

&.card-sm {
.card-body {
padding: 1.5rem;


+ 2
- 3
frappe/website/web_template/section_with_cards/section_with_cards.html 查看文件

@@ -11,10 +11,9 @@
}) -%}
<div class="mt-6 {{ col_classes }}">
<div class="card {{ card_classes }} h-100">
{%- if image -%}
{{ frappe.render_template('templates/includes/image_with_blur.html', {
{%- if image -%}
{{ frappe.render_template('templates/includes/image_with_blur.html', {
"src": image,
"class": ["card-img-top p-2"]
}) }}
{%- endif -%}
<div class="card-body">


Loading…
取消
儲存