コード例 #1
0
 private void SetBreakpointValues(AlignItemsOption value, params Breakpoint[] breakpoints)
 {
     foreach (var breakpoint in breakpoints)
     {
         this.breakpointDictionary[breakpoint] = value;
     }
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <inheritdoc/>
 public IFluentAlignItems OnMobile(AlignItemsOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Mobile);
     return(this);
 }
コード例 #4
0
 /// <inheritdoc/>
 public IFluentAlignItems OnFullHDAndSmaller(AlignItemsOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Mobile, Breakpoint.Tablet, Breakpoint.Desktop, Breakpoint.Widescreen, Breakpoint.FullHD);
     return(this);
 }
コード例 #5
0
 /// <inheritdoc/>
 public IFluentAlignItems OnFullHD(AlignItemsOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.FullHD);
     return(this);
 }
コード例 #6
0
 /// <inheritdoc/>
 public IFluentAlignItems OnDesktopAndSmaller(AlignItemsOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Mobile, Breakpoint.Tablet, Breakpoint.Desktop);
     return(this);
 }
コード例 #7
0
 /// <inheritdoc/>
 public IFluentAlignItems OnDesktopAndLarger(AlignItemsOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Desktop, Breakpoint.Widescreen, Breakpoint.FullHD);
     return(this);
 }
コード例 #8
0
 /// <inheritdoc/>
 public IFluentAlignItems OnDesktop(AlignItemsOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Desktop);
     return(this);
 }
コード例 #9
0
 /// <inheritdoc/>
 public IFluentAlignItems OnWidescreen(AlignItemsOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Widescreen);
     return(this);
 }
コード例 #10
0
 /// <inheritdoc/>
 public IFluentAlignItems OnTablet(AlignItemsOption option)
 {
     this.SetBreakpointValues(option, Breakpoint.Tablet);
     return(this);
 }