[Feature]: update layout
parent
76d8cd0197
commit
ae42726149
|
@ -26,7 +26,7 @@ $footer-background-color ?= $scheme-main
|
|||
$gap ?= 64px
|
||||
$tablet ?= 769px
|
||||
$desktop ?= 1088px
|
||||
$widescreen ?= 1280px
|
||||
$widescreen ?= 1580px
|
||||
$fullhd ?= 1472px
|
||||
|
||||
$shadow ?= 0 4px 10px rgba(0, 0, 0, 0.05)
|
||||
|
|
|
@ -41,7 +41,7 @@ function getColumnCount(widgets, config, page) {
|
|||
function getColumnSizeClass(columnCount) {
|
||||
switch (columnCount) {
|
||||
case 2:
|
||||
return 'is-4-tablet is-4-desktop is-4-widescreen';
|
||||
return 'is-6-tablet is-3-desktop is-3-widescreen';
|
||||
case 3:
|
||||
return 'is-4-tablet is-4-desktop is-3-widescreen';
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ module.exports = class extends Component {
|
|||
'order-2': true,
|
||||
'column-main': true,
|
||||
'is-12': columnCount === 1,
|
||||
'is-8-tablet is-8-desktop is-8-widescreen': columnCount === 2,
|
||||
'is-6-tablet is-9-desktop is-9-widescreen': columnCount === 2,
|
||||
'is-8-tablet is-8-desktop is-6-widescreen': columnCount === 3
|
||||
})} dangerouslySetInnerHTML={{ __html: body }}></div>
|
||||
<Widgets site={site} config={config} helper={helper} page={page} position={'left'} />
|
||||
|
|
Loading…
Reference in New Issue