Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Pages.CssLegacy Class

Creates CSS files for legacy browsers that don't support CSS custom properties (https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties).

For more information see <see href="https://YetaWF.com/Documentation/YetaWF/Topic/g_dev_cssvariables">CSS Custom Properties.</see> This is mainly used to support IE11 and older. By default this is not used in YetaWF.

When using Bootstrap 4 in a skin, AppSettings.json, Application:P:YetaWF_Core:SupportLegacyBrowser can be set to true to support IE11. Otherwise, any request by IE 11 (and lower) will be redirected to a customizable "Unsupported Browser" page (/Maintenance/Unsupported Browser.html). The default skins in YetaWF use Bootstrap 5. Bootstrap 4 is only available in custom skins.

Namespace: YetaWF.Core.Pages
Assembly: YetaWF.Core

Inheritance

Syntax

public class CssLegacy : YetaWF.Core.Support.IInitializeApplicationStartup;

Constructors

PublicCssLegacyConstructor.

Methods

PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
PublicStaticExcludeLegacyBrowser(not specified)
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
PublicInitializeApplicationStartupAsync(not specified)
PublicStaticIsLegacyBrowserReturns whether the browser for the current request is considered a legacy browser.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

See Also YetaWF.Core Overview