Skip to content

Commit

Permalink
change(columns): moved some css values to variables for cleaner custo…
Browse files Browse the repository at this point in the history
…mizations

- this way in a theme package you can create theme/addons/volto-addons/columnsBlocks/columns.variables and use other values in order
 to get the desired css values to be compiled
  • Loading branch information
ichim-david committed Nov 14, 2022
1 parent 768f29c commit bdf653b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/less/columns.less
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,15 @@

.ui.grid > .column-blocks-wrapper,
.ui.grid > .column-blocks-wrapper:not(.row) {
padding-top: 0.5em;
padding-bottom: 0.5em;
padding-top: @columnBlocksWrapperPaddingTop;
padding-bottom: @columnBlocksWrapperPaddingBottom;
}
}

.ui.grid.column-grid {
padding: @columnGridPadding;
margin-top: 0.8rem;
margin-bottom: 0.8rem;
margin-top: @columnGridMarginTop;
margin-bottom: @columnGridMarginBottom;
}
/* remove padding from column-grid when we have styled-with-bg style from volto-block-style */
.styled-with-bg .grid.column-grid {
Expand Down
10 changes: 9 additions & 1 deletion src/less/columns.variables
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
@columnGridPadding: 0;
@columnGridPadding: 0;

// Column block wrapper
@columnBlocksWrapperPaddingTop: 0.5em;
@columnBlocksWrapperPaddingBottom: 0.5em;

// Column grid
@columnGridMarginTop: 0.8rem;
@columnGridMarginBottom: 0.8rem;

0 comments on commit bdf653b

Please sign in to comment.