From 92656a208825527fa1bd6ecb5a2294db9e96c9b0 Mon Sep 17 00:00:00 2001 From: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com> Date: Fri, 23 Aug 2019 15:55:34 +0200 Subject: Fixing inconsistent indentation style in logs template and logs css --- pydis_site/static/css/staff/logs.css | 148 ++++++++++++++++++----------------- pydis_site/templates/staff/logs.html | 133 +++++++++++++++---------------- 2 files changed, 143 insertions(+), 138 deletions(-) (limited to 'pydis_site') diff --git a/pydis_site/static/css/staff/logs.css b/pydis_site/static/css/staff/logs.css index a09d33ac..d7bb04cf 100644 --- a/pydis_site/static/css/staff/logs.css +++ b/pydis_site/static/css/staff/logs.css @@ -7,7 +7,7 @@ main.site-content { letter-spacing: 0; text-rendering: optimizeLegibility; padding: 1rem; - font-family: Whitney,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; + font-family: Whitney, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; } .has-small-margin { @@ -39,7 +39,7 @@ main.site-content { } .discord-message-metadata { - color: hsla(0,0%,100%,.2); + color: hsla(0, 0%, 100%, .2); font-size: 0.75rem; font-weight: 400; margin: 0 .3rem; @@ -59,10 +59,10 @@ main.site-content { .discord-embed { - position: relative; - margin-top: 5px; - max-width: 520px; - display: flex; + position: relative; + margin-top: 5px; + max-width: 520px; + display: flex; } .discord-embed a { @@ -76,24 +76,24 @@ main.site-content { } .discord-embed-color { - width: 4px; - border-radius: 3px 0 0 3px; - flex-shrink: 0; + width: 4px; + border-radius: 3px 0 0 3px; + flex-shrink: 0; } .discord-embed-inner { background-color: #34363b; - padding: 8px 10px; + padding: 8px 10px; border-radius: 0 3px 3px 0; - box-sizing: border-box; - border: 1px solid hsla(225, 8%, 20%, 0.6); - display: flex; - flex-direction: column; + box-sizing: border-box; + border: 1px solid hsla(225, 8%, 20%, 0.6); + display: flex; + flex-direction: column; } .discord-embed-content { - width: 100%; - display: flex; + width: 100%; + display: flex; } .discord-embed-main { @@ -121,11 +121,11 @@ main.site-content { } .discord-embed-author-icon { - margin-right: 9px; - width: 20px; - height: 20px; - object-fit: contain; - border-radius: 50%; + margin-right: 9px; + width: 20px; + height: 20px; + object-fit: contain; + border-radius: 50%; } .discord-embed-author a { @@ -148,33 +148,33 @@ main.site-content { } .discord-embed-fields { - display: flex; - flex-direction: row; - flex-wrap: wrap; - margin-top: -10px; - margin-bottom: 10px; + display: flex; + flex-direction: row; + flex-wrap: wrap; + margin-top: -10px; + margin-bottom: 10px; } .discord-embed-field { - flex: 0; - padding-top: 5px; - min-width: 100%; - max-width: 506px; + flex: 0; + padding-top: 5px; + min-width: 100%; + max-width: 506px; } .discord-embed-field-name { - margin-bottom: 4px; - font-weight: 600; + margin-bottom: 4px; + font-weight: 600; } .discord-embed-field-value { - font-weight: 500; + font-weight: 500; } .discord-embed-field-inline { - flex: 1; - min-width: 150px; - flex-basis: auto; + flex: 1; + min-width: 150px; + flex-basis: auto; } .discord-embed-main > :last-child { @@ -182,33 +182,33 @@ main.site-content { } .discord-embed-image { - position: relative; - display: inline-block; + position: relative; + display: inline-block; margin-bottom: 10px; } .discord-embed-image > img { margin: 0; - vertical-align: bottom; - max-width: 300px; - display: flex; - overflow: hidden; - border-radius: 2px; + vertical-align: bottom; + max-width: 300px; + display: flex; + overflow: hidden; + border-radius: 2px; } .discord-embed-footer-text { - font-size: .70rem !important; - letter-spacing: 0; + font-size: .70rem !important; + letter-spacing: 0; display: inline-block; } .discord-embed-footer-icon { - margin-right: 10px; - height: 18px; - width: 18px; - object-fit: contain; - float: left; - border-radius: 50%; + margin-right: 10px; + height: 18px; + width: 18px; + object-fit: contain; + float: left; + border-radius: 50%; } .discord-embed-content { @@ -221,32 +221,36 @@ main.site-content { /* Discord Font definitions */ @font-face { - font-family: Whitney; - font-style: light; - font-weight:300; - src:url(https://discordapp.com/assets/6c6374bad0b0b6d204d8d6dc4a18d820.woff) format("woff") + font-family: Whitney; + font-style: light; + font-weight: 300; + src: url(https://discordapp.com/assets/6c6374bad0b0b6d204d8d6dc4a18d820.woff) format("woff") } + @font-face { - font-family: Whitney; - font-style: normal; - font-weight:500; - src:url(https://discordapp.com/assets/e8acd7d9bf6207f99350ca9f9e23b168.woff) format("woff") + font-family: Whitney; + font-style: normal; + font-weight: 500; + src: url(https://discordapp.com/assets/e8acd7d9bf6207f99350ca9f9e23b168.woff) format("woff") } + @font-face { - font-family:Whitney; - font-style: medium; - font-weight:600; - src:url(https://discordapp.com/assets/3bdef1251a424500c1b3a78dea9b7e57.woff) format("woff") + font-family: Whitney; + font-style: medium; + font-weight: 600; + src: url(https://discordapp.com/assets/3bdef1251a424500c1b3a78dea9b7e57.woff) format("woff") } + @font-face { - font-family: WhitneyMedium; - font-style: medium; - font-weight: 600; - src:url(https://discordapp.com/assets/be0060dafb7a0e31d2a1ca17c0708636.woff) format("woff") + font-family: WhitneyMedium; + font-style: medium; + font-weight: 600; + src: url(https://discordapp.com/assets/be0060dafb7a0e31d2a1ca17c0708636.woff) format("woff") } + @font-face { - font-family: Whitney; - font-style: bold; - font-weight: 700; - src:url(https://discordapp.com/assets/8e12fb4f14d9c4592eb8ec9f22337b04.woff) format("woff") -} \ No newline at end of file + font-family: Whitney; + font-style: bold; + font-weight: 700; + src: url(https://discordapp.com/assets/8e12fb4f14d9c4592eb8ec9f22337b04.woff) format("woff") +} diff --git a/pydis_site/templates/staff/logs.html b/pydis_site/templates/staff/logs.html index 49d9c368..e5b3627d 100644 --- a/pydis_site/templates/staff/logs.html +++ b/pydis_site/templates/staff/logs.html @@ -13,84 +13,85 @@
  • Deleted by: {{ actor }}
  • Date: {{ creation }}
  • -
    - {% for message in messages %} + {% for message in messages %}
    - {{ message.author }} + {{ message.author }}
    {{ message.content|linebreaks }}
    - - {% for embed in message.embeds %} -
    -
    -
    -
    -
    -
    - - {% if embed.author %} -
    - {% if embed.author.icon_url %}Author Icon{% endif %} - {% if embed.author.url %}{% endif %} - {{ embed.author.name }} - {% if embed.author.url %}{% endif %} -
    - {% endif %} - - {% if embed.title %} -
    - {% if embed.url %}{% endif %} - {{ embed.title }} - {% if embed.url %}{% endif %} -
    - {% endif %} - - {% if embed.description %} -
    - {{ embed.description | linebreaksbr }} -
    - {% endif %} - - {% if embed.fields %} -
    - {% for field in embed.fields %} -
    -
    {{ field.name }}
    -
    {{ field.value }}
    + {% for embed in message.embeds %} +
    +
    +
    +
    +
    + {% if embed.author %} +
    + {% if embed.author.icon_url %} + Author Icon{% endif %} + {% if embed.author.url %}{% endif %} + {{ embed.author.name }} + {% if embed.author.url %}{% endif %}
    - {% endfor %} -
    - {% endif %} - {% if embed.image %} -
    - Discord Embed Image + {% endif %} + {% if embed.title %} +
    + {% if embed.url %}{% endif %} + {{ embed.title }} + {% if embed.url %}{% endif %} +
    + {% endif %} + {% if embed.description %} +
    + {{ embed.description | linebreaksbr }} +
    + {% endif %} + {% if embed.fields %} +
    + {% for field in embed.fields %} +
    +
    {{ field.name }}
    +
    {{ field.value }}
    +
    + {% endfor %} +
    + {% endif %} + {% if embed.image %} +
    + Discord Embed Image +
    + {% endif %}
    + {% if embed.thumbnail %} +
    + Embed thumbnail +
    {% endif %}
    - {% if embed.thumbnail %} -
    - Embed thumbnail -
    - {% endif %} + {% if embed.footer or embed.timestamp %} + + {% endif %}
    - {% if embed.footer or embed.timestamp %} - - {% endif %} -
    -
    - {% endfor %} + {% endfor %}
    {% endfor %} -{% endblock %} \ No newline at end of file +{% endblock %} -- cgit v1.2.3