Converting the rest to stylus

This commit is contained in:
2021-01-03 15:33:36 +01:00
parent 35a11bab6e
commit 80bed0b6c7
20 changed files with 609 additions and 194 deletions

View File

@@ -164,23 +164,31 @@
display: block;
overflow: hidden;
}
.RV-ContentCrop img {
.RV-ContentCrop .RV-Image *,
.RV-ContentCrop .RV-Image {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.RV-ContentCrop p {
.RV-ContentCrop .RV-Text {
overflow: hidden;
display: block;
text-overflow: ellipsis;
padding: 0;
margin: 0;
line-height: 1.21;
z-index: -20;
position: relative;
background-color: #fff;
height: 96.80000000000001%;
max-height: 96.80000000000001%;
padding: 0;
margin: 0;
}
.RV-ContentCrop .RV-Text * {
margin: 0;
padding-bottom: 19.360000000000003px;
}
.RV-ContentCrop .RV-Text *:last-child {
padding-bottom: unset;
}
.RV-ContentCrop--fade:after {
background-image: linear-gradient(180deg, rgba(255,255,255,0), #fff);
@@ -209,7 +217,7 @@
padding-top: 100%;
position: relative;
}
.RV-ContentCrop--square img,
.RV-ContentCrop--square .RV-Image *,
.RV-ContentCrop--square div {
position: absolute;
top: 0;
@@ -223,7 +231,7 @@
position: relative;
border-radius: 50%;
}
.RV-ContentCrop--circle img,
.RV-ContentCrop--circle .RV-Image *,
.RV-ContentCrop--circle div {
position: absolute;
top: 0;
@@ -236,7 +244,7 @@
padding-top: 200%;
position: relative;
}
.RV-ContentCrop--1to2 img {
.RV-ContentCrop--1to2 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -249,7 +257,7 @@
padding-top: 50%;
position: relative;
}
.RV-ContentCrop--2to1 img {
.RV-ContentCrop--2to1 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -262,7 +270,7 @@
padding-top: 75%;
position: relative;
}
.RV-ContentCrop--4to3 img {
.RV-ContentCrop--4to3 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -275,7 +283,7 @@
padding-top: 56.25%;
position: relative;
}
.RV-ContentCrop--16to9 img {
.RV-ContentCrop--16to9 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -288,7 +296,7 @@
padding-top: 66.66666666666666%;
position: relative;
}
.RV-ContentCrop--3to2 img {
.RV-ContentCrop--3to2 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -296,19 +304,19 @@
bottom: 0;
right: 0;
}
.RV-ContentCrop--left img {
.RV-ContentCrop--left .RV-Image * {
object-position: left;
}
.RV-ContentCrop--center img {
.RV-ContentCrop--center .RV-Image * {
object-position: center;
}
.RV-ContentCrop--top img {
.RV-ContentCrop--top .RV-Image * {
object-position: top;
}
.RV-ContentCrop--bottom img {
.RV-ContentCrop--bottom .RV-Image * {
object-position: bottom;
}
.RV-ContentCrop--center img {
.RV-ContentCrop--center .RV-Image * {
object-position: center;
}
.RV-Fan__Container--vertical {
@@ -350,23 +358,31 @@
display: block;
overflow: hidden;
}
.RV-Fan__Surface img {
.RV-Fan__Surface .RV-Image *,
.RV-Fan__Surface .RV-Image {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.RV-Fan__Surface p {
.RV-Fan__Surface .RV-Text {
overflow: hidden;
display: block;
text-overflow: ellipsis;
padding: 0;
margin: 0;
line-height: 1.21;
z-index: -20;
position: relative;
background-color: #fff;
height: 96.80000000000001%;
max-height: 96.80000000000001%;
padding: 0;
margin: 0;
}
.RV-Fan__Surface .RV-Text * {
margin: 0;
padding-bottom: 19.360000000000003px;
}
.RV-Fan__Surface .RV-Text *:last-child {
padding-bottom: unset;
}
.RV-Fan__Surface--fade:after {
background-image: linear-gradient(180deg, rgba(255,255,255,0), #fff);
@@ -395,7 +411,7 @@
padding-top: 100%;
position: relative;
}
.RV-Fan__Surface--square img,
.RV-Fan__Surface--square .RV-Image *,
.RV-Fan__Surface--square div {
position: absolute;
top: 0;
@@ -409,7 +425,7 @@
position: relative;
border-radius: 50%;
}
.RV-Fan__Surface--circle img,
.RV-Fan__Surface--circle .RV-Image *,
.RV-Fan__Surface--circle div {
position: absolute;
top: 0;
@@ -422,7 +438,7 @@
padding-top: 200%;
position: relative;
}
.RV-Fan__Surface--1to2 img {
.RV-Fan__Surface--1to2 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -435,7 +451,7 @@
padding-top: 50%;
position: relative;
}
.RV-Fan__Surface--2to1 img {
.RV-Fan__Surface--2to1 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -448,7 +464,7 @@
padding-top: 75%;
position: relative;
}
.RV-Fan__Surface--4to3 img {
.RV-Fan__Surface--4to3 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -461,7 +477,7 @@
padding-top: 56.25%;
position: relative;
}
.RV-Fan__Surface--16to9 img {
.RV-Fan__Surface--16to9 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -474,7 +490,7 @@
padding-top: 66.66666666666666%;
position: relative;
}
.RV-Fan__Surface--3to2 img {
.RV-Fan__Surface--3to2 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -482,41 +498,24 @@
bottom: 0;
right: 0;
}
.RV-Fan__Surface--left img {
.RV-Fan__Surface--left .RV-Image * {
object-position: left;
}
.RV-Fan__Surface--center img {
.RV-Fan__Surface--center .RV-Image * {
object-position: center;
}
.RV-Fan__Surface--top img {
.RV-Fan__Surface--top .RV-Image * {
object-position: top;
}
.RV-Fan__Surface--bottom img {
.RV-Fan__Surface--bottom .RV-Image * {
object-position: bottom;
}
.RV-Fan__Surface--center img {
.RV-Fan__Surface--center .RV-Image * {
object-position: center;
}
.RV-FlexGrid__Container {
display: grid;
}
.RV-FlexGrid__Container--autoWidth {
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
grid-auto-rows: minmax(300px, 1fr);
}
.RV-FlexGrid__Container--fixedSize {
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
grid-auto-rows: minmax(300px, 1fr);
grid-template-columns: repeat(auto-fill, 300px);
justify-content: space-between;
}
.RV-FlexGrid__Container--masonry {
display: block;
column-count: auto;
column-width: 300px;
}
.RV-FlexGrid__Item {
display: grid;
}
@@ -550,6 +549,23 @@
display: grid;
align-items: center;
}
.RV-FlexGrid__Container--autoWidth {
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
grid-auto-rows: minmax(300px, 1fr);
}
.RV-FlexGrid__Container--fixedSize {
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
grid-auto-rows: minmax(300px, 1fr);
grid-template-columns: repeat(auto-fill, 300px);
justify-content: space-between;
}
.RV-FlexGrid__Container--masonry {
display: block;
column-count: auto;
column-width: 300px;
}
.RV-FlexRow__Container {
display: flex;
height: 100%;
@@ -670,23 +686,31 @@
display: block;
overflow: hidden;
}
.RV-FullWidthContent__Item img {
.RV-FullWidthContent__Item .RV-Image *,
.RV-FullWidthContent__Item .RV-Image {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.RV-FullWidthContent__Item p {
.RV-FullWidthContent__Item .RV-Text {
overflow: hidden;
display: block;
text-overflow: ellipsis;
padding: 0;
margin: 0;
line-height: 1.21;
z-index: -20;
position: relative;
background-color: #fff;
height: 96.80000000000001%;
max-height: 96.80000000000001%;
padding: 0;
margin: 0;
}
.RV-FullWidthContent__Item .RV-Text * {
margin: 0;
padding-bottom: 19.360000000000003px;
}
.RV-FullWidthContent__Item .RV-Text *:last-child {
padding-bottom: unset;
}
.RV-FullWidthContent__Item--fade:after {
background-image: linear-gradient(180deg, rgba(255,255,255,0), #fff);
@@ -715,7 +739,7 @@
padding-top: 100%;
position: relative;
}
.RV-FullWidthContent__Item--square img,
.RV-FullWidthContent__Item--square .RV-Image *,
.RV-FullWidthContent__Item--square div {
position: absolute;
top: 0;
@@ -729,7 +753,7 @@
position: relative;
border-radius: 50%;
}
.RV-FullWidthContent__Item--circle img,
.RV-FullWidthContent__Item--circle .RV-Image *,
.RV-FullWidthContent__Item--circle div {
position: absolute;
top: 0;
@@ -742,7 +766,7 @@
padding-top: 200%;
position: relative;
}
.RV-FullWidthContent__Item--1to2 img {
.RV-FullWidthContent__Item--1to2 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -755,7 +779,7 @@
padding-top: 50%;
position: relative;
}
.RV-FullWidthContent__Item--2to1 img {
.RV-FullWidthContent__Item--2to1 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -768,7 +792,7 @@
padding-top: 75%;
position: relative;
}
.RV-FullWidthContent__Item--4to3 img {
.RV-FullWidthContent__Item--4to3 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -781,7 +805,7 @@
padding-top: 56.25%;
position: relative;
}
.RV-FullWidthContent__Item--16to9 img {
.RV-FullWidthContent__Item--16to9 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -794,7 +818,7 @@
padding-top: 66.66666666666666%;
position: relative;
}
.RV-FullWidthContent__Item--3to2 img {
.RV-FullWidthContent__Item--3to2 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
@@ -802,19 +826,409 @@
bottom: 0;
right: 0;
}
.RV-FullWidthContent__Item--left img {
.RV-FullWidthContent__Item--left .RV-Image * {
object-position: left;
}
.RV-FullWidthContent__Item--center img {
.RV-FullWidthContent__Item--center .RV-Image * {
object-position: center;
}
.RV-FullWidthContent__Item--top img {
.RV-FullWidthContent__Item--top .RV-Image * {
object-position: top;
}
.RV-FullWidthContent__Item--bottom img {
.RV-FullWidthContent__Item--bottom .RV-Image * {
object-position: bottom;
}
.RV-FullWidthContent__Item--center img {
.RV-FullWidthContent__Item--center .RV-Image * {
object-position: center;
}
.RV-ElementList {
display: flex;
height: 100%;
margin: 0;
padding: 0;
top: 0;
bottom: 0;
left: 0;
right: 0;
border: none;
list-style-type: none;
}
.RV-ElementList--breakPoint {
flex-wrap: wrap;
margin: 0;
padding: 0;
top: 0;
bottom: 0;
left: 0;
right: 0;
border: none;
gap: 0px;
}
.RV-ElementList--breakPoint * {
flex-basis: calc(500px * 999 - 100% * 999);
}
.RV-ElementList--horizontal {
flex-direction: row;
}
.RV-ElementList--vertical {
flex-direction: column;
}
.RV-ElementList--auto {
flex-direction: row;
flex-wrap: wrap;
}
@include RV-FlexRow__Item;
.RV-Menu--vertical .RV-Menu__List {
flex-direction: column;
width: 100%;
}
.RV-Menu--horizontal .RV-Menu__List {
flex-direction: row;
flex-wrap: wrap;
margin: 0;
padding: 0;
top: 0;
bottom: 0;
left: 0;
right: 0;
border: none;
gap: 0px;
}
.RV-Menu--horizontal .RV-Menu__List * {
flex-basis: calc(400px * 999 - 100% * 999);
}
.RV-Menu__List {
display: flex;
height: 100%;
display: flex;
height: 100%;
margin: 0;
padding: 0;
top: 0;
bottom: 0;
left: 0;
right: 0;
border: none;
list-style-type: none;
}
.RV-Menu__List--breakPoint {
flex-wrap: wrap;
margin: 0;
padding: 0;
top: 0;
bottom: 0;
left: 0;
right: 0;
border: none;
gap: 0px;
}
.RV-Menu__List--breakPoint * {
flex-basis: calc(500px * 999 - 100% * 999);
}
.RV-Menu__List--horizontal {
flex-direction: row;
}
.RV-Menu__List--vertical {
flex-direction: column;
}
.RV-Menu__List--auto {
flex-direction: row;
flex-wrap: wrap;
}
@include RV-FlexRow__Item;
.RV-Menu__Item {
flex-basis: max-content;
flex-grow: 3;
flex-shrink: 3;
display: grid;
width: 100px;
}
.RV-Menu__Item--top {
display: grid;
align-content: start;
}
.RV-Menu__Item--bottom {
display: grid;
align-content: end;
}
.RV-Menu__Item--left {
display: grid;
justify-content: start;
}
.RV-Menu__Item--right {
display: grid;
justify-content: end;
}
.RV-Menu__Item--horizontalCenter {
display: grid;
justify-content: center;
}
.RV-Menu__Item--verticalCenter {
display: grid;
align-items: center;
}
.RV-Menu__Item--center {
display: grid;
justify-content: center;
display: grid;
align-items: center;
}
.RV-Menu__Item--narrower {
flex-grow: 1;
flex-shrink: 5;
}
.RV-Menu__Item--narrow {
flex-grow: 2;
flex-shrink: 4;
}
.RV-Menu__Item--wide() {
flex-grow: 4;
flex-shrink: 2;
}
.RV-Menu__Item--wider {
flex-grow: 5;
flex-shrink: 1;
}
.RV-Menu__Item--fixedSize {
flex-grow: 0;
flex-shrink: 0;
width: min-content;
flex-basis: 100px;
}
.RV-Menu__Item--half {
flex-grow: 0;
flex-shrink: 0;
flex-basis: 50%;
width: 50%;
}
.RV-Menu__Item--third {
flex-grow: 0;
flex-shrink: 0;
flex-basis: 33.333333333333336%;
width: 33.333333333333336%;
}
.RV-Menu__Item--quarter {
flex-grow: 0;
flex-shrink: 0;
flex-basis: 25%;
width: 25%;
}
.RV-Menu__Item--content {
flex-grow: 0;
flex-shrink: 0;
width: max-content;
flex-basis: max-content;
}
.RV-Menu__Item .RV-Link {
padding: 10px;
background-color: #f5f5dc;
display: block;
white-space: nowrap;
}
.RV-ImageGrid__Container {
display: grid;
}
.RV-ImageGrid__Item {
display: grid;
}
.RV-ImageGrid__Item--top {
display: grid;
align-content: start;
}
.RV-ImageGrid__Item--bottom {
display: grid;
align-content: end;
}
.RV-ImageGrid__Item--left {
display: grid;
justify-content: start;
}
.RV-ImageGrid__Item--right {
display: grid;
justify-content: end;
}
.RV-ImageGrid__Item--horizontalCenter {
display: grid;
justify-content: center;
}
.RV-ImageGrid__Item--verticalCenter {
display: grid;
align-items: center;
}
.RV-ImageGrid__Item--center {
display: grid;
justify-content: center;
display: grid;
align-items: center;
}
.RV-ImageGrid__Container {
padding: 10px;
gap: 10px;
column-gap: 10px;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
grid-auto-rows: minmax(300px, 1fr);
}
.RV-ImageGrid__Item {
display: block;
overflow: hidden;
}
.RV-ImageGrid__Item .RV-Image *,
.RV-ImageGrid__Item .RV-Image {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.RV-ImageGrid__Item .RV-Text {
overflow: hidden;
display: block;
text-overflow: ellipsis;
line-height: 1.21;
z-index: -20;
position: relative;
background-color: #fff;
max-height: 96.80000000000001%;
padding: 0;
margin: 0;
}
.RV-ImageGrid__Item .RV-Text * {
margin: 0;
padding-bottom: 19.360000000000003px;
}
.RV-ImageGrid__Item .RV-Text *:last-child {
padding-bottom: unset;
}
.RV-ImageGrid__Item--fade:after {
background-image: linear-gradient(180deg, rgba(255,255,255,0), #fff);
display: block;
content: ' ';
opacity: 0.8;
position: relative;
top: -25%;
width: 100%;
height: 25%;
z-index: -10;
}
.RV-ImageGrid__Item--ellipsis:after {
position: relative;
display: block;
bottom: 1.2em;
left: calc(100% - 3ch);
content: '...';
font-size: 1.2em;
min-width: 2em;
background-color: #fff;
padding: 0 2px;
}
.RV-ImageGrid__Item--square {
width: 100%;
padding-top: 100%;
position: relative;
}
.RV-ImageGrid__Item--square .RV-Image *,
.RV-ImageGrid__Item--square div {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.RV-ImageGrid__Item--circle {
width: 100%;
padding-top: 100%;
position: relative;
border-radius: 50%;
}
.RV-ImageGrid__Item--circle .RV-Image *,
.RV-ImageGrid__Item--circle div {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.RV-ImageGrid__Item--1to2 {
width: 100%;
padding-top: 200%;
position: relative;
}
.RV-ImageGrid__Item--1to2 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.RV-ImageGrid__Item--2to1 {
width: 100%;
padding-top: 50%;
position: relative;
}
.RV-ImageGrid__Item--2to1 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.RV-ImageGrid__Item--4to3 {
width: 100%;
padding-top: 75%;
position: relative;
}
.RV-ImageGrid__Item--4to3 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.RV-ImageGrid__Item--16to9 {
width: 100%;
padding-top: 56.25%;
position: relative;
}
.RV-ImageGrid__Item--16to9 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.RV-ImageGrid__Item--3to2 {
width: 100%;
padding-top: 66.66666666666666%;
position: relative;
}
.RV-ImageGrid__Item--3to2 .RV-Image * {
object-fit: cover;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.RV-ImageGrid__Item--left .RV-Image * {
object-position: left;
}
.RV-ImageGrid__Item--center .RV-Image * {
object-position: center;
}
.RV-ImageGrid__Item--top .RV-Image * {
object-position: top;
}
.RV-ImageGrid__Item--bottom .RV-Image * {
object-position: bottom;
}
.RV-ImageGrid__Item--center .RV-Image * {
object-position: center;
}
.RV-ImageGrid__Item .RV-Image * {
object-position: center;
}
.RV-FlexGrid__Container--masonry.RV-Spacing__Inner--small * {
@@ -826,3 +1240,6 @@
.RV-FlexGrid__Container--masonry.RV-Spacing__Inner--large * {
margin-bottom: 35px;
}
.RV-FlexGrid__Container--masonry.RV-ImageGrid__Container * {
margin-bottom: 10px;
}