diff --git a/pygal/css/__init__.py b/pygal/css/__init__.py new file mode 100644 index 0000000..fa709d1 --- /dev/null +++ b/pygal/css/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# This file is part of pygal +# +# A python svg graph plotting library +# Copyright © 2012-2018 Kozea +# +# This library is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This library is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with pygal. If not, see . + +"""CSS package containing all needed styles""" + +from pygal.css.base import CSS as CSS_BASE +from pygal.css.graph import CSS as CSS_GRAPH +from pygal.css.style import CSS as CSS_STYLE + +__all__ = ('CSS_BASE', 'CSS_GRAPH', 'CSS_STYLE',) diff --git a/pygal/css/base.css b/pygal/css/base.py similarity index 70% rename from pygal/css/base.css rename to pygal/css/base.py index 01f5d5b..6b7c01f 100644 --- a/pygal/css/base.css +++ b/pygal/css/base.py @@ -1,4 +1,25 @@ -/* +# -*- coding: utf-8 -*- +# This file is part of pygal +# +# A python svg graph plotting library +# Copyright © 2012-2018 Kozea +# +# This library is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This library is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with pygal. If not, see . + +"""Base styles""" + +CSS = """/* * This file is part of pygal * * A python svg graph plotting library @@ -67,3 +88,4 @@ font-family: {{ style.no_data_font_family }}; font-size: {{ style.no_data_font_size }}px; } +""" diff --git a/pygal/css/graph.css b/pygal/css/graph.py similarity index 77% rename from pygal/css/graph.css rename to pygal/css/graph.py index a638fb7..08c6205 100644 --- a/pygal/css/graph.css +++ b/pygal/css/graph.py @@ -1,4 +1,25 @@ -/* +# -*- coding: utf-8 -*- +# This file is part of pygal +# +# A python svg graph plotting library +# Copyright © 2012-2018 Kozea +# +# This library is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This library is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with pygal. If not, see . + +"""Graph styles""" + +CSS = """/* * This file is part of pygal * * A python svg graph plotting library @@ -150,3 +171,4 @@ stroke: {{ style.background }}; stroke-width: 2px; } +""" diff --git a/pygal/css/style.css b/pygal/css/style.py similarity index 81% rename from pygal/css/style.css rename to pygal/css/style.py index cd01f06..57d78ec 100644 --- a/pygal/css/style.css +++ b/pygal/css/style.py @@ -1,4 +1,25 @@ -/* +# -*- coding: utf-8 -*- +# This file is part of pygal +# +# A python svg graph plotting library +# Copyright © 2012-2018 Kozea +# +# This library is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This library is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with pygal. If not, see . + +"""Styles""" + +CSS = """/* * This file is part of pygal * * A python svg graph plotting library @@ -172,3 +193,4 @@ {{ colors }} {{ strokes }} +"""