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