示例#1
0
 private void SetBreakpointValues(JustifyContentOption value, params Breakpoint[] breakpoints)
 {
     foreach (var breakpoint in breakpoints)
     {
         this.breakpointDictionary[breakpoint] = value;
     }
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FluentJustifyContent"/> class.
 /// </summary>
 /// <param name="initialValue">The initial value across all CSS media queries.</param>
 public FluentJustifyContent(JustifyContentOption 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);
 }
示例#3
0
 /// <inheritdoc/>
 public IFluentJustifyContent OnMobileAndLarger(JustifyContentOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Mobile, Breakpoint.Tablet, Breakpoint.Desktop, Breakpoint.Widescreen, Breakpoint.FullHD);
     return(this);
 }
示例#4
0
 /// <inheritdoc/>
 public IFluentJustifyContent OnMobile(JustifyContentOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Mobile);
     return(this);
 }
示例#5
0
 /// <inheritdoc/>
 public IFluentJustifyContent OnFullHD(JustifyContentOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.FullHD);
     return(this);
 }
示例#6
0
 /// <inheritdoc/>
 public IFluentJustifyContent OnDesktopAndSmaller(JustifyContentOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Mobile, Breakpoint.Tablet, Breakpoint.Desktop);
     return(this);
 }
示例#7
0
 /// <inheritdoc/>
 public IFluentJustifyContent OnDesktop(JustifyContentOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Desktop);
     return(this);
 }
示例#8
0
 /// <inheritdoc/>
 public IFluentJustifyContent OnWidescreenAndLarger(JustifyContentOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Widescreen, Breakpoint.FullHD);
     return(this);
 }
示例#9
0
 /// <inheritdoc/>
 public IFluentJustifyContent OnWidescreen(JustifyContentOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Widescreen);
     return(this);
 }
示例#10
0
 /// <inheritdoc/>
 public IFluentJustifyContent OnTablet(JustifyContentOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Tablet);
     return(this);
 }