Procházet zdrojové kódy

Styling tweaks

multi-sources
Ben Kurtovic před 3 roky
rodič
revize
79ec7a3319
5 změnil soubory, kde provedl 20 přidání a 7 odebrání
  1. +14
    -2
      static/style.css
  2. +1
    -1
      templates/index.mako
  3. +1
    -1
      templates/settings.mako
  4. +1
    -0
      templates/support/footer.mako
  5. +3
    -3
      templates/support/header.mako

+ 14
- 2
static/style.css Zobrazit soubor

@@ -21,7 +21,18 @@ body {
margin: 0 auto; margin: 0 auto;
} }


#container > div {
#container.splash {
display: flex;
flex-direction: column;
justify-content: center;
max-width: 1600px;
}

#container.splash > .padding {
height: 25%;
}

#content {
background-color: #fff; background-color: #fff;
border: 1px solid #c8ccd1; border: 1px solid #c8ccd1;
filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.25)); filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.25));
@@ -40,7 +51,8 @@ header > * {
} }


header h1 { header h1 {
font-size: 2em;
font-size: 2.25em;
font-weight: normal;
margin: 0 1em 0 0; margin: 0 1em 0 0;
} }




+ 1
- 1
templates/index.mako Zobrazit soubor

@@ -11,7 +11,7 @@
titleparts.append("Earwig's Copyvio Detector") titleparts.append("Earwig's Copyvio Detector")
title = " | ".join(titleparts) title = " | ".join(titleparts)
%>\ %>\
<%include file="/support/header.mako" args="title=title"/>
<%include file="/support/header.mako" args="title=title, splash=bool(result)"/>
<%namespace module="copyvios.highlighter" import="highlight_delta"/>\ <%namespace module="copyvios.highlighter" import="highlight_delta"/>\
<%namespace module="copyvios.misc" import="httpsfix, urlstrip"/>\ <%namespace module="copyvios.misc" import="httpsfix, urlstrip"/>\
% if notice: % if notice:


+ 1
- 1
templates/settings.mako Zobrazit soubor

@@ -3,7 +3,7 @@
from flask import g, request from flask import g, request
from copyvios.misc import cache from copyvios.misc import cache
%>\ %>\
<%include file="/support/header.mako" args="title='Settings | Earwig\'s Copyvio Detector'"/>
<%include file="/support/header.mako" args="title='Settings | Earwig\'s Copyvio Detector', splash=True"/>
% if status: % if status:
<div id="info-box" class="green-box"> <div id="info-box" class="green-box">
<p>${status}</p> <p>${status}</p>


+ 1
- 0
templates/support/footer.mako Zobrazit soubor

@@ -4,6 +4,7 @@
%>\ %>\
</main> </main>
</div> </div>
<div class="padding"></div>
</div> </div>
<footer> <footer>
<ul> <ul>


+ 3
- 3
templates/support/header.mako Zobrazit soubor

@@ -1,4 +1,4 @@
<%page args="title"/>\
<%page args="title, splash=False"/>\
<%! <%!
from flask import g, request, url_for from flask import g, request, url_for
from copyvios.background import set_background from copyvios.background import set_background
@@ -18,8 +18,8 @@
% else: % else:
<body onload="update_screen_size()" style="background-image: url('${set_background(selected) | h}');"> <body onload="update_screen_size()" style="background-image: url('${set_background(selected) | h}');">
% endif % endif
<div id="container">
<div>
<div id="container"${' class="splash"' if splash else ''}>
<div id="content">
<header> <header>
<h1><a href="/">Earwig&apos;s <strong>Copyvio Detector</strong></a></h1> <h1><a href="/">Earwig&apos;s <strong>Copyvio Detector</strong></a></h1>
<a id="settings-link" href="/settings">Settings</a> <a id="settings-link" href="/settings">Settings</a>


Načítá se…
Zrušit
Uložit