Bootstrap 4 css and other display errors
Permalink 8 users found helpful
Below are a few fixes for several issues when creating a bootstrap 4 theme for concrete5 v8.
Fix for the dashboard side bar acting inline instead of stacking each element.
This next one drove me crazy. There is an issue with the way layouts are presented in edit mode. Specifically with the div that is added via the `layouts.js` core javascript file. Here's the fix.
Fix for the dashboard side bar acting inline instead of stacking each element.
div.ccm-panel-content ul.nav, div.ccm-panel-content menu { display:block; }
This next one drove me crazy. There is an issue with the way layouts are presented in edit mode. Specifically with the div that is added via the `layouts.js` core javascript file. Here's the fix.
#ccm-theme-grid-edit-mode-row-wrapper { display: flex; width:100%; }
Thanks for this.
Good to know.
Great, thanks!
Are you providing your theme with the Bootstrap JS too? $this->providesAsset('javascript', 'bootstrap/*');
Do you experience any issues with JS?
Thanks!
Do you experience any issues with JS?
Thanks!
This could be usefull to make the popover menus visible also on editing mode.
.ccm-edit-mode-block-menu.popover, .popover {visibility: visible;}
Thank you, very useful!
I also found this helps with the positioning of the radio buttons and checkboxes on the edit panels:
and this fixes the inline input group checkbox (such as on editing a page list and you want to truncate the description:
I also found this helps with the positioning of the radio buttons and checkboxes on the edit panels:
.ccm-ui .radio input[type="radio"], .ccm-ui .radio-inline input[type="radio"], .ccm-ui .checkbox input[type="checkbox"], .ccm-ui .checkbox-inline input[type="checkbox"] { width: auto; }
and this fixes the inline input group checkbox (such as on editing a page list and you want to truncate the description:
.ccm-ui .input-group-addon { width: 10%; }