More Restructuring

This commit is contained in:
2021-03-09 12:37:14 +01:00
parent 07e8b269e2
commit dc794a15fa
17 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
@import 'spacing/_spacing'
@import 'elementList/_elementList'
@import 'boxShadow/_boxShadow'
@import 'iconized/_iconized'

View File

@@ -0,0 +1,100 @@
/*
* A collection of Box Shadows
*/
/*
* Just a simple box shadow, surrounding the box
*/
RV-BoxShadow--simple(color)
+RV-Block--modifier()
box-shadow 0 0 10px 3px color
RV-BoxShadow--solid(color)
+RV-Block--modifier()
border 8px solid color
border-radius 14px
padding 8px
margin -8px
/*
* Hhuge shadow under the bottom of the
* box, which creates an levitation effect
*/
RV-BoxShadow--levitating(color)
+RV-Block--modifier()
box-shadow: color 0px 1px 1px 0px inset, color 0px 40px 80px -15px, color 0px 30px 60px -30px;
/*
* Stacked, retro, synth wave style
* shadows unterneath the box
* To change the color using CSS vars
* you have to set the separte r, g, b values
* --color: 107, 86, 144
* This may cause other types of shadow to break
* if used in the same selector / var scope
*/
RV-BoxShadow--stacked(color)
+RV-Block--modifier()
--color red(@--color), green(@--color), blue(@--color)
box-shadow: 'rgba(%s, 0.4) 0px 5px, rgba(%s, 0.3) 0px 10px, rgba(%s, 0.2) 0px 15px, rgba(%s, 0.1) 0px 20px, rgba(%s, 0.05) 0px 25px' % (color color color color color)
/*
* Two shadows at the lower left and right of the box
* to create the effect the corners are lifted like
* a piece of paper
*/
RV-BoxShadow--liftedCorners(color)
+RV-Block--modifier()
&:before, &:after
bottom 15px
left 10px
width 50%
height 20%
box-shadow 0 15px 8px color
transform rotate(-5deg)
&:after
right 10px
left auto
transform rotate(5deg)
/*
* A suttle drop shadow in the middle of the element
*/
RV-BoxShadow--drop(color)
+RV-Block--modifier()
position relative
box-shadow 0 1px 4px color
&:after
box-shadow 0 0 40px color
bottom 0px
left 10%
right 10%
width 80%
height 50%
border-radius 100%
RV-BoxShadow()
position relative
background-color white
&:before, &:after
content ''
position absolute
z-index -2
+RV-Block('RV-BoxShadow')
RV-CSSParameter({
color: #6b5690
})
RV-BoxShadow()
RV-BoxShadow--simple(--color)
RV-BoxShadow--liftedCorners(--color)
RV-BoxShadow--levitating(--color)
RV-BoxShadow--stacked(--color)
RV-BoxShadow--drop(--color)
RV-BoxShadow--solid(--color)

View File

@@ -0,0 +1,38 @@
<div class="RV-FlexGrid RV-FlexGrid--fixedSize RV-Spacing__Inner--medium">
<div class="RV-FlexGrid__Item">
<div class="RV-BoxShadow RV-BoxShadow--simple">
<img src="https://via.placeholder.com/300/7242af"/>
</div>
</div>
<div class="RV-FlexGrid__Item">
<div class="RV-BoxShadow RV-BoxShadow--liftedCorners">
<img src="https://via.placeholder.com/300/7242af"/>
</div>
</div>
<div class="RV-FlexGrid__Item">
<div class="RV-BoxShadow RV-BoxShadow--levitating">
<img src="https://via.placeholder.com/300/7242af"/>
</div>
</div>
<div class="RV-FlexGrid__Item">
<div class="RV-BoxShadow RV-BoxShadow--stacked">
<img src="https://via.placeholder.com/300/7242af"/>
</div>
</div>
<div class="RV-FlexGrid__Item">
<div class="RV-BoxShadow RV-BoxShadow--drop">
<img src="https://via.placeholder.com/300/7242af"/>
</div>
</div>
<div class="RV-FlexGrid__Item">
<div class="RV-BoxShadow RV-BoxShadow--solid">
<img src="https://via.placeholder.com/300/7242af"/>
</div>
</div>
</div>

View File

@@ -0,0 +1 @@
{}

View File

@@ -0,0 +1,14 @@
RV-ElementList__Item()
+RV-Element()
RV-FlexRow__Item()
RV-ElementList(break_width=500px)
RV-FlexRow()
RV-Reset()
list-style-type none
+RV-Block('RV-ElementList')
RV-ElementList()
RV-ElementList__Item()

View File

@@ -0,0 +1 @@
{}

View File

@@ -0,0 +1,22 @@
<ul class="RV-ElementList RV-ElementList--vertical">
<li class="RV-ElementList__Item">Item</li>
<li class="RV-ElementList__Item">Item</li>
<li class="RV-ElementList__Item">Item</li>
<li class="RV-ElementList__Item">Item</li>
</ul>
<br><br>
<ul class="RV-ElementList RV-ElementList--horizontal">
<li class="RV-ElementList__Item">Item</li>
<li class="RV-ElementList__Item">Item</li>
<li class="RV-ElementList__Item">Item</li>
<li class="RV-ElementList__Item">Item</li>
</ul>
<br><br>
<ul class="RV-ElementList RV-ElementList--auto">
<li class="RV-ElementList__Item">ItemItem</li>
<li class="RV-ElementList__Item">ItemItemItem</li>
<li class="RV-ElementList__Item">ItemItem</li>
<li class="RV-ElementList__Item">Item</li>
</ul>

View File

@@ -0,0 +1,62 @@
RV-Iconized--extraSmall()
+RV-Block--modifier()
+RV-Element('Icon')
width 1em
height 1em
position relative
top .125em
RV-Iconized--small()
+RV-Block--modifier()
top -.25em
+RV-Element('Icon')
width 1.5em
height 1.5em
position relative
top .45em
RV-Iconized--medium()
+RV-Block--modifier()
top -.5em
+RV-Element('Icon')
width 2em
height 2em
position relative
top .625em
RV-Iconized--large()
+RV-Block--modifier()
top -1.03073em
+RV-Element('Icon')
width 3em
height 3em
position relative
top 1.15573em
RV-Iconized--huge()
+RV-Block--modifier()
top -2.05em
+RV-Element('Icon')
width 5em
height 5em
position relative
top 2.175em
RV-Iconized__Icon()
+RV-Element()
RV-Reset()
RV-Iconized()
position relative
+RV-Block('RV-Iconized')
RV-Iconized()
RV-Iconized__Icon()
RV-Iconized--extraSmall()
RV-Iconized--small()
RV-Iconized--medium()
RV-Iconized--large()
RV-Iconized--huge()

View File

@@ -0,0 +1 @@
{}

View File

@@ -0,0 +1,57 @@
<span class="RV-Iconized RV-Iconized--extraSmall">
<svg class="RV-Iconized__Icon" version="1.1" id="Capa_1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve">
<g>
<path d="M492,236H276V20c0-11.046-8.954-20-20-20c-11.046,0-20,8.954-20,20v216H20c-11.046,0-20,8.954-20,20s8.954,20,20,20h216
v216c0,11.046,8.954,20,20,20s20-8.954,20-20V276h216c11.046,0,20-8.954,20-20C512,244.954,503.046,236,492,236z" />
</g>
</svg>
<span class="RV-Iconized__Text">This is a text</span>
</span>
<br>
<span class="RV-Iconized RV-Iconized--small">
<svg class="RV-Iconized__Icon" version="1.1" id="Capa_1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve">
<g>
<path d="M492,236H276V20c0-11.046-8.954-20-20-20c-11.046,0-20,8.954-20,20v216H20c-11.046,0-20,8.954-20,20s8.954,20,20,20h216
v216c0,11.046,8.954,20,20,20s20-8.954,20-20V276h216c11.046,0,20-8.954,20-20C512,244.954,503.046,236,492,236z" />
</g>
</svg>
<span class="RV-Iconized__Text">This is a text</span>
</span>
<br>
<span class="RV-Iconized RV-Iconized--medium">
<svg class="RV-Iconized__Icon RV-Iconized__Icon--medium" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M19 6.4L17.6 5 12 10.6 6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12z"></path>
</svg>
<span class="RV-Iconized__Text">This is a text</span>
</span>
<br>
<span class="RV-Iconized RV-Iconized--large">
<svg class="RV-Iconized__Icon RV-Iconized__Icon" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M19 6.4L17.6 5 12 10.6 6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12z"></path>
</svg>
<span class="RV-Iconized__Text">This is a text</span>
</span>
<br>
<p style="font-size: 18px;">
You could see there was text coming out of her eyes, text coming out of her wherever. Trump Ipsum is calling for a total and complete shutdown of Muslim text entering your website. Does everybody know that pig named Lorem Ipsum? She's a disgusting pig, right? When other websites give you text, theyre not sending the best. Theyre not sending you, theyre sending words that have lots of problems and theyre bringing those problems with us. Theyre bringing mistakes. Theyre bringing misspellings. Theyre typists… And some, I assume, are good words. I'm speaking with myself, number one, because I have a very good brain and I've said a lot of things. Efficiently unleash cross-media information without cross-media value. Quickly maximize timely deliverables for real-time schemas. Dramatically maintain clicks-and-mortar solutions without functional solutions.
<a href="#">
<span class="RV-Iconized RV-Iconized--small">
<svg class="RV-Iconized__Icon" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512"
xml:space="preserve">
<g>
<path d="M492,236H276V20c0-11.046-8.954-20-20-20c-11.046,0-20,8.954-20,20v216H20c-11.046,0-20,8.954-20,20s8.954,20,20,20h216
v216c0,11.046,8.954,20,20,20s20-8.954,20-20V276h216c11.046,0,20-8.954,20-20C512,244.954,503.046,236,492,236z" />
</g>
</svg>
<span class="RV-Iconized__Text">Wurstwasser</span>
</span>
</a>
You could see there was text coming out of her eyes, text coming out of her wherever. Trump Ipsum is calling for a total and complete shutdown of Muslim text entering your website. Does everybody know that pig named Lorem Ipsum? She's a disgusting pig, right? When other websites give you text, theyre not sending the best. Theyre not sending you, theyre sending words that have lots of problems and theyre bringing those problems with us. Theyre bringing mistakes. Theyre bringing misspellings. Theyre typists… And some, I assume, are good words. I'm speaking with myself, number one, because I have a very good brain and I've said a lot of things. Efficiently unleash cross-media information without cross-media value. Quickly maximize timely deliverables for real-time schemas. Dramatically maintain clicks-and-mortar solutions without functional solutions.
</p>

View File

@@ -0,0 +1,63 @@
RV-Spacing__Outer--small()
+RV-Element--modifier()
--outer-spacing spacing-small
margin var(--outer-spacing)
* > {
--outer-spacing 0
}
RV-Spacing__Outer--medium()
+RV-Element--modifier()
--outer-spacing spacing-medium
margin var(--outer-spacing)
* > {
--outer-spacing 0
}
RV-Spacing__Outer--large()
+RV-Element--modifier()
--outer-spacing spacing-large
margin var(--outer-spacing)
* > {
--outer-spacing 0
}
RV-Spacing__Inner--small()
+RV-Element--modifier()
--inner-spacing spacing-small
padding var(--inner-spacing)
gap var(--inner-spacing)
column-gap var(--inner-spacing)
* > {
--inner-spacing 0
}
RV-Spacing__Inner--medium()
+RV-Element--modifier()
--inner-spacing spacing-medium
padding var(--inner-spacing)
gap var(--inner-spacing)
column-gap var(--inner-spacing)
* > {
--inner-spacing 0
}
RV-Spacing__Inner--large()
+RV-Element--modifier()
--inner-spacing spacing-large
padding var(--inner-spacing)
gap var(--inner-spacing)
column-gap var(--inner-spacing)
* > {
--inner-spacing 0
}
+RV-Block('RV-Spacing')
+RV-Element('Outer')
RV-Spacing__Outer--small()
RV-Spacing__Outer--medium()
RV-Spacing__Outer--large()
+RV-Element('Inner')
RV-Spacing__Inner--small()
RV-Spacing__Inner--medium()
RV-Spacing__Inner--large()

View File

@@ -0,0 +1,5 @@
{
"context": {
}
}

View File