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