Quickly update
You probably just wanted to them the django cms in a quick way to give a look and feel of the brand you are working with.
Here is a 2-min guide to do so:
- Create a
admin/base_site.html
file inside your templates directory. - Copy the following snippet in that file.
1 | {% extends "admin/base_site.html" %} {% block extrastyle %} <style> :root { --primary-color: #1d1d1b; --primary-color-faded: #585853; --secondary-color: #4dffba; } ::selection { background: var(--secondary-color); color:var(--primary-color); opacity:1 } ::-moz-selection { background: var(--secondary-color); color:var(--primary-color); opacity:1 } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; } #branding h1, #branding h1 a:link, #branding h1 a:visited { color: #ffffff; font-weight: 400; } #header { background: var(--primary-color); } .module h2, .module caption, .inline-group h2 { background-color: var(--primary-color-faded); } div.breadcrumbs { background: var(--primary-color-faded); } a:link, a:visited { color: var(--primary-color-faded); } .selector-chosen h2 { background: var(--primary-color-faded) !important; } .button, input[type=submit], input[type=button], .submit-row input, a.button { background: var(--primary-color-faded); } .button.default, input[type=submit].default, .submit-row input.default { background: var(--primary-color); } .button:active, input[type=submit]:active, input[type=button]:active, .button:focus, input[type=submit]:focus, input[type=button]:focus, .button:hover, input[type=submit]:hover, input[type=button]:hover { background: var(--primary-color-faded); opacity: 0.8; } .button.default:active, input[type=submit].default:active, .button.default:focus, input[type=submit].default:focus, .button.default:hover, input[type=submit].default:hover { background: var(--primary-color); opacity: 0.8; } </style> {% endblock %} |
- Now modify the following css variables in the file as per your brand colors.
1 | :root { --primary-color: #1d1d1b; --primary-color-faded: #585853; --secondary-color: #4dffba; } |
- All set!
Детальное описание купить памятник из мрамора на сайте.