Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: reorder Container type options #898

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions taccsite_cms/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,11 @@ def get_subdirs_as_module_names(path):

# SEE: https://github.com/django-cms/djangocms-bootstrap4
DJANGOCMS_BOOTSTRAP4_GRID_CONTAINERS = [
('container', _('Container')),
('container-fluid', _('Fluid container')),
('o-section', _('Section')),
('_', _('None')),
(_('Container'), (
('container', _('Container')), # default
(
'container o-section',
_('Container + Section (transparent / margin)')
Expand All @@ -631,7 +634,6 @@ def get_subdirs_as_module_names(path):
),
)),
(_('Fluid container'), (
('container-fluid', _('Fluid container')), # default
(
'container-fluid o-section',
_('Fluid container + Section (transparent / margin)')
Expand All @@ -650,10 +652,6 @@ def get_subdirs_as_module_names(path):
),
)),
(_('Section only'), (
(
'o-section',
_('Section (transparent / margin)')
),
(
'o-section o-section--style-light',
_('Light section')
Expand All @@ -667,12 +665,6 @@ def get_subdirs_as_module_names(path):
_('Dark section')
),
)),
(_('Empty'), (
(
'_',
_('No container, No section')
),
)),
]

# https://github.com/django-cms/djangocms-style
Expand Down