mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
New storybook CSS helpers (hover region, multiples variations)
This commit is contained in:
@@ -122,6 +122,17 @@
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&.with-spacing {
|
||||
> * {
|
||||
margin-right: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-left-aligned {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
.chart-container {
|
||||
@@ -162,4 +173,17 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mock-hover-region {
|
||||
width: 200px;
|
||||
height: 100px;
|
||||
position: relative;
|
||||
border-radius: $radius;
|
||||
margin: 1em 0;
|
||||
padding: 1em;
|
||||
border: 1px solid $grey-blue;
|
||||
background: $white-ter;
|
||||
color: $grey;
|
||||
font-weight: $weight-bold;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user