mirror of
https://github.com/dzeiocom/components.git
synced 2025-04-22 19:02:15 +00:00
Updated GradientBackground to make child 100vh
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
52df94ed25
commit
df06831c56
@ -6,14 +6,13 @@ $percent = 15%
|
||||
transition all $transition
|
||||
background $mainGradient
|
||||
|
||||
&.fullscreen
|
||||
&.fullscreen > :first-child
|
||||
min-height 100vh
|
||||
|
||||
.info
|
||||
background linear-gradient(to right, $infoLight, lighten($infoLight, $percent))
|
||||
@media (prefers-color-scheme dark)
|
||||
background linear-gradient(to right, $infoDark, darken($infoDark, $percent))
|
||||
|
||||
|
||||
.success
|
||||
background linear-gradient(to right, $successLight, lighten($successLight, $percent))
|
||||
|
@ -13,8 +13,8 @@ interface Props {
|
||||
|
||||
/**
|
||||
* Make the background a linear-gradient
|
||||
*
|
||||
* @version 1.0.1
|
||||
*
|
||||
* @version 1.0.2
|
||||
*/
|
||||
export default class GradientBackground extends React.Component<Props> {
|
||||
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user