Updated GradientBackground to make child 100vh

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-07-12 23:39:15 +02:00
parent 52df94ed25
commit df06831c56
Signed by: Florian Bouillon
GPG Key ID: 50BD648F12C86AB6
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ $percent = 15%
transition all $transition
background $mainGradient
&.fullscreen
&.fullscreen > :first-child
min-height 100vh
.info
@ -14,7 +14,6 @@ $percent = 15%
@media (prefers-color-scheme dark)
background linear-gradient(to right, $infoDark, darken($infoDark, $percent))
.success
background linear-gradient(to right, $successLight, lighten($successLight, $percent))
@media (prefers-color-scheme dark)

View File

@ -14,7 +14,7 @@ interface Props {
/**
* Make the background a linear-gradient
*
* @version 1.0.1
* @version 1.0.2
*/
export default class GradientBackground extends React.Component<Props> {

View File

@ -51,4 +51,5 @@ $default = $main
// See https://github.com/stylus/stylus/issues/1872#issuecomment-86553717
use('stylusUtils.js')
// Import theme in the root folder of the project
@import '../../../../../../theme' if file-exists('../../../../../../theme.styl')