Move all other css to scss
This commit is contained in:
11 files changed
+95
-85
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import styles from './styles.module.css';
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
const HeroBanner = ({ title, subheading, backgroundImage }) => {
|
||||
return (
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
|
||||
.heroBanner {
|
||||
width: 100%;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
height: 300px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.textSection {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding: 15px;
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
.textSection p {
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
.textSection::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: var(--ifm-background-color);
|
||||
z-index: -1;
|
||||
transform-origin: top right;
|
||||
transform: skewX(-16deg);
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
[data-theme='light'] .textSection::after {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.heroBanner h1 {
|
||||
font-size: 2.5em;
|
||||
}
|
||||
|
||||
.heroBanner p {
|
||||
font-size: 1.2em;
|
||||
line-height: 1em;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
.heroBanner {
|
||||
width: 100%;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
height: 300px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.textSection {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding: 15px;
|
||||
padding-right: 30px;
|
||||
|
||||
p {
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: var(--ifm-background-color);
|
||||
z-index: -1;
|
||||
transform-origin: top right;
|
||||
transform: skewX(-16deg);
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
[data-theme='light'] .textSection::after {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.heroBanner {
|
||||
h1 {
|
||||
font-size: 2.5em;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 1.2em;
|
||||
line-height: 1em;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import clsx from 'clsx';
|
||||
import Heading from '@theme/Heading';
|
||||
import styles from './styles.module.css';
|
||||
import styles from './styles.module.scss';
|
||||
import Crossplatform0Img from '@site/static/img/site/crossplatform_0.png';
|
||||
import Crossplatform1Img from '@site/static/img/site/crossplatform_1.png';
|
||||
import Crossplatform2Img from '@site/static/img/site/crossplatform_2.png';
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user