private void SetBreakpointValues(AlignItemsOption value, params Breakpoint[] breakpoints) { foreach (var breakpoint in breakpoints) { this.breakpointDictionary[breakpoint] = value; } }
/// <summary> /// Initializes a new instance of the <see cref="FluentAlignItems"/> class. /// </summary> /// <param name="initialValue">The initial value across all CSS media queries.</param> public FluentAlignItems(AlignItemsOption initialValue) { this.breakpointDictionary.Add(Breakpoint.Mobile, initialValue); this.breakpointDictionary.Add(Breakpoint.Tablet, initialValue); this.breakpointDictionary.Add(Breakpoint.Desktop, initialValue); this.breakpointDictionary.Add(Breakpoint.Widescreen, initialValue); this.breakpointDictionary.Add(Breakpoint.FullHD, initialValue); }
/// <inheritdoc/> public IFluentAlignItems OnMobile(AlignItemsOption option) { this.SetBreakpointValues(option, Breakpoint.Mobile); return(this); }
/// <inheritdoc/> public IFluentAlignItems OnFullHDAndSmaller(AlignItemsOption option) { this.SetBreakpointValues(option, Breakpoint.Mobile, Breakpoint.Tablet, Breakpoint.Desktop, Breakpoint.Widescreen, Breakpoint.FullHD); return(this); }
/// <inheritdoc/> public IFluentAlignItems OnFullHD(AlignItemsOption option) { this.SetBreakpointValues(option, Breakpoint.FullHD); return(this); }
/// <inheritdoc/> public IFluentAlignItems OnDesktopAndSmaller(AlignItemsOption option) { this.SetBreakpointValues(option, Breakpoint.Mobile, Breakpoint.Tablet, Breakpoint.Desktop); return(this); }
/// <inheritdoc/> public IFluentAlignItems OnDesktopAndLarger(AlignItemsOption option) { this.SetBreakpointValues(option, Breakpoint.Desktop, Breakpoint.Widescreen, Breakpoint.FullHD); return(this); }
/// <inheritdoc/> public IFluentAlignItems OnDesktop(AlignItemsOption option) { this.SetBreakpointValues(option, Breakpoint.Desktop); return(this); }
/// <inheritdoc/> public IFluentAlignItems OnWidescreen(AlignItemsOption option) { this.SetBreakpointValues(option, Breakpoint.Widescreen); return(this); }
/// <inheritdoc/> public IFluentAlignItems OnTablet(AlignItemsOption option) { this.SetBreakpointValues(option, Breakpoint.Tablet); return(this); }