Exemplo n.º 1
0
        protected override void GenerateSpacingStyles(StringBuilder sb, Theme theme, ThemeSpacingOptions options)
        {
            if (theme.BreakpointOptions == null || options == null)
            {
                return;
            }

            foreach (var breakpoint in theme.BreakpointOptions)
            {
                var breakpointName = breakpoint.Key;
                var breakpointMin  = breakpoint.Value();

                var hasMinMedia = !string.IsNullOrEmpty(breakpointMin) && breakpointMin != "0";

                if (hasMinMedia)
                {
                    sb.Append($"@media (min-width: {breakpointMin})").Append("{");
                }

                var infix = string.IsNullOrEmpty(breakpointMin) || breakpointMin == "0"
                    ? ""
                    : $"-{breakpointName}";

                foreach ((string prop, string abbrev) in new[] { ("margin", "m"), ("padding", "p") })
Exemplo n.º 2
0
 protected override void GenerateSpacingStyles(StringBuilder sb, Theme theme, ThemeSpacingOptions options)
 {
     throw new System.NotImplementedException();
 }