75 lines
1.5 KiB
CSS
75 lines
1.5 KiB
CSS
{%- if theme and theme.apply_style -%}
|
|
|
|
{%- set font_family_sans_serif = '"Helvetica Neue", Helvetica, Arial, sans-serif' -%}
|
|
{%- set heading_selectors = "h1, h2, h3, h4, h5, h6" -%}
|
|
|
|
{{ theme.webfont_import or "" }}
|
|
|
|
body {
|
|
{# background #}
|
|
{% if theme.background_image -%}
|
|
background: url("{{ theme.background_image }}") repeat;
|
|
|
|
{%- else -%}
|
|
background-color: {{ theme.background_color }};
|
|
background-image: none;
|
|
|
|
{%- endif %}
|
|
|
|
{# text #}
|
|
{% if theme.text_webfont -%}
|
|
font-family: "{{ theme.text_webfont }}", {{ font_family_sans_serif }};
|
|
|
|
{%- endif %}
|
|
|
|
{% if theme.font_size -%}
|
|
font-size: {{ theme.font_size }};
|
|
{%- endif %}
|
|
|
|
color: {{ theme.text_color }};
|
|
}
|
|
|
|
{# links #}
|
|
a {
|
|
color: {{ theme.link_color }};
|
|
}
|
|
|
|
a:hover,
|
|
a:focus,
|
|
a:active {
|
|
color: {{ get_shade(theme.link_color, 25) }};
|
|
}
|
|
|
|
{# headings #}
|
|
{% if theme.heading_webfont -%}
|
|
{{ heading_selectors }} {
|
|
font-family: "{{ theme.heading_webfont }}", {{ font_family_sans_serif }};
|
|
}
|
|
{%- endif %}
|
|
|
|
{% if theme.heading_style -%}
|
|
{{ heading_selectors }} {
|
|
text-transform: {{ theme.heading_style }};
|
|
}
|
|
{%- endif %}
|
|
|
|
{% include "frappe/templates/includes/website_theme/navbar.css" %}
|
|
|
|
{% include "frappe/templates/includes/website_theme/footer.css" %}
|
|
|
|
{# borders #}
|
|
.page-content {
|
|
border-right: 1px solid {{ border_color }};
|
|
}
|
|
|
|
.page-sidebar {
|
|
border-left: 1px solid {{ border_color }};
|
|
}
|
|
|
|
.page-footer {
|
|
border-top: 1px solid {{ border_color }};
|
|
}
|
|
|
|
{% if theme.css -%} {% include theme.css %} {%- endif %}
|
|
|
|
{%- endif -%}
|