landsgemeinde.theme =================== .. py:module:: landsgemeinde.theme Classes ------- .. autoapisummary:: landsgemeinde.theme.LandsgemeindeTheme Package Contents ---------------- .. py:class:: LandsgemeindeTheme(compress: bool = True) Bases: :py:obj:`onegov.town6.theme.TownTheme` Base class for Zurb Foundation based themes. Use this class to create a theme that customizes Zurb Foundation somehow. If you don't want to customize it at all, use :class:`Theme`. To customize start like this:: from onegov.foundation import BaseTheme class MyTheme(BaseTheme): name = 'my-theme' version = '1.0' You can then add paths with your own scss files, as well as imports that should be added *before* the foundation theme, and imports that should be added *after* the foundation theme. Finally, options passed to the :meth:`compile` function take this form:: options = { 'rowWidth': '1000px', 'columnGutter': '30px' } Those options result in variables added at the very top of the sass source (but after the _settings.scss) before it is compiled:: $rowWidth: 1000px; $columnGutter: 30px; If your variables rely on a certain order you need to pass an ordered dict. If use_flex is set to False on the theme itself, the float grid is used instead. If $xy-grid is set to false by the subclassing theme, the flex grid is used. .. py:attribute:: name :value: 'onegov.landsgemeinde.theme' The name of the theme, must be unique. .. py:property:: post_imports :type: list[str] Our scss code split into various files .. py:property:: extra_search_paths :type: list[str] A list of absolute search paths added before the actual foundation search path.