From 5bf048570001b6a364b1ae33d4d436b14f44c974 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 17 Jan 2014 04:40:35 +0100 Subject: Use Debian's usual location for static web content. Hence put the CSS and fonts under /usr/share/. --- .../files/usr/share/mlmmj/static/css/fripost.css | 63 ++++++++++++++++++++++ .../files/var/lib/mlmmj/static/css/fripost.css | 63 ---------------------- roles/lists/tasks/mlmmj.yml | 12 ++--- 3 files changed, 69 insertions(+), 69 deletions(-) create mode 100644 roles/lists/files/usr/share/mlmmj/static/css/fripost.css delete mode 100644 roles/lists/files/var/lib/mlmmj/static/css/fripost.css (limited to 'roles/lists') diff --git a/roles/lists/files/usr/share/mlmmj/static/css/fripost.css b/roles/lists/files/usr/share/mlmmj/static/css/fripost.css new file mode 100644 index 0000000..197eee6 --- /dev/null +++ b/roles/lists/files/usr/share/mlmmj/static/css/fripost.css @@ -0,0 +1,63 @@ +html, body { + height: 100%; + max-width: 1024px; +} +#wrap { + min-height: 100%; + height: auto; + margin: -1.6em auto; + padding: 1.6em 0; + width: 100%; +} +#main { + margin: 0 15px; + padding: 0; + width: auto; +} +#header, #footer { + margin: 0 15px; + height: 1.5em; + overflow: hidden; + padding: 0; +} +#header { + border-bottom: 1px solid #c0c0c0; +} +#footer { + border-top: 1px solid #c0c0c0; +} +h1.msg.subject { + margin-bottom: 1.5ex; +} +.msg.header { + width: auto; + padding: 0; + margin-bottom: 2ex; +} +.msg.header table { + margin: 10px; +} +.msg.header table tr td:first-child { + font-weight: bold; + padding-right: 1ex; +} +.msg.body pre { + background: none; + border: none; + padding: 0 10px; +} +.dummy { + list-style: none; + font-style: italic; + color: gray; +} +.msg.footer { + margin-top: 1ex; + padding: 10px; +} +.msg.footer > ul { + margin-bottom: 0; +} +#main ul.index { + margin: 2ex 0; +} diff --git a/roles/lists/files/var/lib/mlmmj/static/css/fripost.css b/roles/lists/files/var/lib/mlmmj/static/css/fripost.css deleted file mode 100644 index 197eee6..0000000 --- a/roles/lists/files/var/lib/mlmmj/static/css/fripost.css +++ /dev/null @@ -1,63 +0,0 @@ -html, body { - height: 100%; - max-width: 1024px; -} -#wrap { - min-height: 100%; - height: auto; - margin: -1.6em auto; - padding: 1.6em 0; - width: 100%; -} -#main { - margin: 0 15px; - padding: 0; - width: auto; -} -#header, #footer { - margin: 0 15px; - height: 1.5em; - overflow: hidden; - padding: 0; -} -#header { - border-bottom: 1px solid #c0c0c0; -} -#footer { - border-top: 1px solid #c0c0c0; -} -h1.msg.subject { - margin-bottom: 1.5ex; -} -.msg.header { - width: auto; - padding: 0; - margin-bottom: 2ex; -} -.msg.header table { - margin: 10px; -} -.msg.header table tr td:first-child { - font-weight: bold; - padding-right: 1ex; -} -.msg.body pre { - background: none; - border: none; - padding: 0 10px; -} -.dummy { - list-style: none; - font-style: italic; - color: gray; -} -.msg.footer { - margin-top: 1ex; - padding: 10px; -} -.msg.footer > ul { - margin-bottom: 0; -} -#main ul.index { - margin: 2ex 0; -} diff --git a/roles/lists/tasks/mlmmj.yml b/roles/lists/tasks/mlmmj.yml index 0b88d75..934433e 100644 --- a/roles/lists/tasks/mlmmj.yml +++ b/roles/lists/tasks/mlmmj.yml @@ -47,8 +47,8 @@ owner=root group=root mode=0644 -- name: Create /var/lib/mlmmj/... - file: path=/var/lib/mlmmj/{{ item }} +- name: Create /usr/share/mlmmj/... + file: path=/usr/share/mlmmj/{{ item }} state=directory owner=root group=root mode=0755 @@ -58,8 +58,8 @@ - static/fonts - name: Copy CSS files - copy: src=var/lib/mlmmj/static/css/{{ item }} - dest=/var/lib/mlmmj/static/css/{{ item }} + copy: src=usr/share/mlmmj/static/css/{{ item }} + dest=/usr/share/mlmmj/static/css/{{ item }} owner=root group=root mode=0644 with_items: @@ -67,8 +67,8 @@ - fripost.css - name: Copy Glyphicon Halflings - copy: src=var/lib/mlmmj/static/fonts/{{ item }} - dest=/var/lib/mlmmj/static/fonts/{{ item }} + copy: src=usr/share/mlmmj/static/fonts/{{ item }} + dest=/usr/share/mlmmj/static/fonts/{{ item }} owner=root group=root mode=0644 with_items: -- cgit v1.2.3