Including breakpoint in horizontal fan

This commit is contained in:
reverend 2021-03-10 00:56:25 +01:00
parent 212c587f7f
commit 640b45ad02
2 changed files with 42 additions and 37 deletions

View File

@ -16,29 +16,25 @@
*/ */
RV-Fan--horizontal(base-height, base-width) RV-Fan--horizontal(base-height, base-width)
+RV-Block--modifier() +RV-Block--modifier()
flex-direction row RV-CSSParameter({
localBreakPoint: 'calc(2 * %s)' % base-width
+RV-Element('Base') })
//flex-basis 'calc(2 * (%s + 2 * var(--inner-spacing) + 2 * var(--outer-spacing)) * 999 - 100% * 999)' % base-width RV-BreakPoint(--localBreakPoint)
flex-basis 'calc(2 * (%s) * 999 - 100% * 999)' % base-width
box-sizing border-box
flex-shrink 9999
flex-grow 1
max-width base-width
margin 0
padding 0
--_padding var(--inner-spacing)
--_margin var(--outer-spacing)
*
margin var(--_margin)
padding var(--_padding)
box-sizing border-box
+RV-Element('Surface') +RV-Element('Surface')
height base-height RV-BreakPoint__Item()
box-sizing border-box
flex-basis 'calc(2 * (%s + 2 * var(--inner-spacing) + 2 * var(--outer-spacing)) * 999 - 100% * 999)' % base-width +RV-Element('Base')
RV-BreakPoint__Item()
+RV-Squash()
RV-BreakPoint__Item--outside()
flex-basis base-width
flex-grow 0
RV-BreakPoint--horizontal()
min-width unset
/* /*
* Base above, Surfce below * Base above, Surfce below
@ -53,7 +49,6 @@ RV-Fan--vertical(base-height, base-width)
+RV-Element('Surface') +RV-Element('Surface')
width base-width width base-width
box-sizing border-box
min-width initial min-width initial
min-height base-height min-height base-height
@ -88,6 +83,13 @@ RV-Fan__Base(base-height, base-width)
flex-basis base-width flex-basis base-width
flex-shrink 0 flex-shrink 0
flex-grow 0 flex-grow 0
height base-height
width base-width
> *
height calc_height()
width calc_width()
RV-Fan__Surface--fixedHeight(height) RV-Fan__Surface--fixedHeight(height)
+RV-Element--modifier() +RV-Element--modifier()
@ -105,7 +107,12 @@ RV-Fan__Surface(base-height, base-width)
box-sizing border-box box-sizing border-box
height base-height height base-height
flex-basis base-width flex-basis base-width
min-width base-width
flex-grow 1 flex-grow 1
> *
height calc_height()
width calc_width()
/* ############ /* ############
* Block Mixin * Block Mixin

View File

@ -7,22 +7,20 @@
<br> <br>
<br> <br>
<div class="RV-Fan RV-Fan{{modifier}} RV-BoxShadow RV-BoxShadow--drop"> <div class="RV-Fan RV-Fan{{modifier}} RV-BoxShadow RV-BoxShadow--drop">
<div class="RV-Fan__Base RV-Spacing__Inner--small"> <div class="RV-Fan__Base">
<div class="RV-ContentCrop"> <img class="RV-Image RV-Spacing__Outer--small RV-FocalPoint" style="--focalX: 50%; --focalY: 16.66%" src="{{path '/images/landscape.jpeg'}}"/>
<img class="RV-Image" src="{{path '/images/landscape.jpeg'}}"/>
</div>
</div> </div>
<div class="RV-Fan__Surface RV-Spacing__Inner--small"> <div class="RV-Fan__Surface">
<div class="RV-Text"> <div class="RV-Spacing__Outer--small">
<p> <div class="RV-Truncation">
Et voluptas earum ut. Distinctio qui eaque quo aliquid ipsam ut. Et est sit sed odio aliquam nam. Possimus numquam officiis tenetur quibusdam sint quos sit est. Doloremque hic totam error velit hic. Dolorum labore necessitatibus cumque quisquam voluptate molestiae quae aspernatur. <div class="RV-Truncation__Cutter">
</p> <p class="RV-Truncation__Content">
<p> Et voluptas earum ut. Distinctio qui eaque quo aliquid ipsam ut. Et est sit sed odio aliquam nam. Possimus numquam officiis tenetur quibusdam sint quos sit est. Doloremque hic totam error velit hic. Dolorum labore necessitatibus cumque quisquam voluptate molestiae quae aspernatur.
Quasi vitae cupiditate ducimus nihil. Repudiandae est iste aperiam mollitia et est occaecati at. Nobis ut voluptates tempora quis esse ipsam. Quasi vitae cupiditate ducimus nihil. Repudiandae est iste aperiam mollitia et est occaecati at. Nobis ut voluptates tempora quis esse ipsam.
</p> Praesentium facere ea deserunt accusantium velit eos. Eaque non sapiente repellendus facilis omnis eligendi. Deserunt officiis consequatur nihil maiores explicabo. Perspiciatis qui quia et amet.
<p> </p>
Praesentium facere ea deserunt accusantium velit eos. Eaque non sapiente repellendus facilis omnis eligendi. Deserunt officiis consequatur nihil maiores explicabo. Perspiciatis qui quia et amet. </div>
</p> </div>
</div> </div>
</div> </div>
</div> </div>