39 lines
1.4 KiB
C#
39 lines
1.4 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Text;
|
||
|
||
namespace Acdiu.AspNetCore.Mvc.Commons.Constants
|
||
{
|
||
/// <summary>
|
||
/// 全局 UI 常量定义
|
||
/// </summary>
|
||
public static class UIConstants
|
||
{
|
||
/// <summary>
|
||
/// 资源路径常量
|
||
/// </summary>
|
||
public static class Paths
|
||
{
|
||
/// <summary>
|
||
/// 默认 Bootstrap Icons SVG Sprite 文件路径
|
||
/// </summary>
|
||
public const string DefaultIconSprite = "/lib/bootstrap-icons-1.13.1/bootstrap-icons.svg";
|
||
}
|
||
|
||
/// <summary>
|
||
/// BS SVG 图标默认需要添加的 CSS 类名
|
||
/// </summary>
|
||
public static class Classes
|
||
{
|
||
/// <summary>
|
||
/// 默认宽度类名,适配响应式根字号(1rem)。如果用户未指定宽度,则默认添加这些类名以确保图标大小适中且响应式。用户可以通过添加其他类名覆盖这些默认值。
|
||
/// </summary>
|
||
public const string DefaultWidth = "w-1r";
|
||
/// <summary>
|
||
/// 默认高度类名,适配响应式根字号(1rem)。如果用户未指定高度,则默认添加这些类名以确保图标大小适中且响应式。用户可以通过添加其他类名覆盖这些默认值。
|
||
/// </summary>
|
||
public const string DefaultHeight = "h-1r";
|
||
}
|
||
}
|
||
}
|