mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
New toolbar CSS component
This commit is contained in:
committed by
Preetha Appan
parent
e28fe37a1c
commit
9d4756f732
@@ -21,5 +21,6 @@
|
||||
@import './components/simple-list';
|
||||
@import './components/status-text';
|
||||
@import './components/timeline';
|
||||
@import './components/toolbar';
|
||||
@import './components/tooltip';
|
||||
@import './components/two-step-button';
|
||||
|
||||
31
ui/app/styles/components/toolbar.scss
Normal file
31
ui/app/styles/components/toolbar.scss
Normal file
@@ -0,0 +1,31 @@
|
||||
$spacing: 1.5em;
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
margin-bottom: $spacing / 2;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
margin-left: -$spacing / 4;
|
||||
margin-right: -$spacing / 4;
|
||||
|
||||
.toolbar-item {
|
||||
margin-bottom: $spacing / 2;
|
||||
padding-left: $spacing / 4;
|
||||
padding-right: $spacing / 4;
|
||||
align-self: center;
|
||||
flex-grow: 1;
|
||||
|
||||
&.is-right-aligned {
|
||||
flex-grow: 0;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
&.is-mobile-full-width {
|
||||
@include mobile {
|
||||
flex-grow: 1;
|
||||
margin-left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user