mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
New layout helper for associating two elements vertically
By default, blocks have a margin of 1.5em to create a consistent vertical rhythm. However, sometimes elements need to be associated with the element above them. In this cases, the gap between elements needs to be tighter. There are many ways to do this, but this approach asks the latter content to be marked as associative. The implication is that the association is with the previous block.
This commit is contained in:
@@ -1,34 +1,35 @@
|
||||
// Utils
|
||||
@import "./utils/reset.scss";
|
||||
@import "./utils/z-indices";
|
||||
@import "./utils/product-colors";
|
||||
@import "./utils/bumper";
|
||||
@import './utils/reset.scss';
|
||||
@import './utils/z-indices';
|
||||
@import './utils/product-colors';
|
||||
@import './utils/bumper';
|
||||
@import './utils/layout';
|
||||
|
||||
// Start with Bulma variables as a foundation
|
||||
@import "bulma/sass/utilities/initial-variables";
|
||||
@import 'bulma/sass/utilities/initial-variables';
|
||||
|
||||
// Override variables where appropriate
|
||||
@import "./core/variables.scss";
|
||||
@import './core/variables.scss';
|
||||
|
||||
// Bring in the rest of Bulma
|
||||
@import "bulma/bulma";
|
||||
@import 'bulma/bulma';
|
||||
|
||||
// Override Bulma details where appropriate
|
||||
@import "./core/buttons";
|
||||
@import "./core/breadcrumb";
|
||||
@import "./core/columns";
|
||||
@import "./core/forms";
|
||||
@import "./core/icon";
|
||||
@import "./core/level";
|
||||
@import "./core/menu";
|
||||
@import "./core/message";
|
||||
@import "./core/navbar";
|
||||
@import "./core/notification";
|
||||
@import "./core/pagination";
|
||||
@import "./core/progress";
|
||||
@import "./core/section";
|
||||
@import "./core/table";
|
||||
@import "./core/tabs";
|
||||
@import "./core/tag";
|
||||
@import "./core/title";
|
||||
@import "./core/typography";
|
||||
@import './core/buttons';
|
||||
@import './core/breadcrumb';
|
||||
@import './core/columns';
|
||||
@import './core/forms';
|
||||
@import './core/icon';
|
||||
@import './core/level';
|
||||
@import './core/menu';
|
||||
@import './core/message';
|
||||
@import './core/navbar';
|
||||
@import './core/notification';
|
||||
@import './core/pagination';
|
||||
@import './core/progress';
|
||||
@import './core/section';
|
||||
@import './core/table';
|
||||
@import './core/tabs';
|
||||
@import './core/tag';
|
||||
@import './core/title';
|
||||
@import './core/typography';
|
||||
|
||||
3
ui/app/styles/utils/layout.scss
Normal file
3
ui/app/styles/utils/layout.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
.is-associative {
|
||||
margin-top: -0.75em;
|
||||
}
|
||||
Reference in New Issue
Block a user