-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathconstants.py
41 lines (36 loc) · 1.12 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from django.conf import settings
from django.utils.translation import gettext_lazy as _
DEVICE_CHOICES = (
('xs', _('Extra small')), # default <576px
('sm', _('Small')), # default ≥576px
('md', _('Medium')), # default ≥768px
('lg', _('Large')), # default ≥992px
('xl', _('Extra large')), # default ≥1200px
)
DEVICE_SIZES = tuple(size for size, name in DEVICE_CHOICES)
# Only adding block elements
TAG_CHOICES = getattr(
settings,
'DJANGOCMS_BOOTSTRAP4_TAG_CHOICES',
['div', 'section', 'article', 'header', 'footer', 'aside'],
)
TAG_CHOICES = tuple((entry, entry) for entry in TAG_CHOICES)
COLOR_STYLE_CHOICES = getattr(
settings,
'DJANGOCMS_BOOTSTRAP4_COLOR_STYLE_CHOICES',
(
('primary', _('Primary')),
('secondary', _('Secondary')),
('success', _('Success')),
('danger', _('Danger')),
('warning', _('Warning')),
('info', _('Info')),
('light', _('Light')),
('dark', _('Dark')),
)
)
ALIGN_CHOICES = (
('text-left', _('Left')),
('text-center', _('Center')),
('text-right', _('Right')),
)