소스 검색

Rem footer animations; fix language mis-alignment.

Add:
        app.py, templates/layout.html, static/sass/main.sass
                -Remove footer's slide-up animation; the additional content
                displayed (a copyright statement) is superfluous.
tags/v1.0^2
Severyn Kozak 10 년 전
부모
커밋
81126ab3e8
5개의 변경된 파일22개의 추가작업 그리고 33개의 파일을 삭제
  1. +1
    -2
      app.py
  2. +2
    -13
      static/sass/main.sass
  3. +15
    -11
      templates/error404.html
  4. +4
    -4
      templates/index.html
  5. +0
    -3
      templates/layout.html

+ 1
- 2
app.py 파일 보기

@@ -8,13 +8,12 @@ import flask
from json import dumps
from flask import Flask, make_response, render_template, request
from bitshift import assets
from bitshift.database import Database
from bitshift.database import Database
from bitshift.languages import LANGS
from bitshift.query import parse_query, QueryParseException

app = Flask(__name__, static_folder="static", static_url_path="")
app.config.from_object("bitshift.config")
app.jinja_env.globals.update(year=datetime.datetime.now().year)

app_env = app.jinja_env
app_env.line_statement_prefix = "="


+ 2
- 13
static/sass/main.sass 파일 보기

@@ -29,12 +29,9 @@ div#container
width: 75%

div#footer
@extend .t3
@include delay(1s)

background-color: $baseColor1
bottom: -30px
height: 60px
bottom: 0
height: 30px
padding-bottom: 5px
padding-top: 15px
position: fixed
@@ -42,11 +39,6 @@ div#container
width: 100%
z-index: 100

&:hover
@include delay(0s)

bottom: 0

*
color: white

@@ -60,6 +52,3 @@ div#container

&:hover
text-decoration: underline

p span
font-size: 0.7em

+ 15
- 11
templates/error404.html 파일 보기

@@ -1,5 +1,9 @@
= extends "layout.html"

= block title
404
= endblock

= block head
{{ assets.tag("error404.css") }}
= endblock
@@ -7,16 +11,16 @@
= block body
<div id="message">
{{ assets.syntax_highlight([
'puts("404");',
'printf("%d\n", 404);',
'puts 404',
'System.out.println("404")',
'print 404',
'console.log("404")',
'echo 404',
'std::cout << "404\\n"',
'(println "404")',
'say "404!";'
] | random) | safe }}
'puts("404");',
'printf("%d\n", 404);',
'puts 404',
'System.out.println("404")',
'print 404',
'console.log("404")',
'echo 404',
'std::cout << "404\\n"',
'(println "404")',
'say "404!";'
] | random) | safe }}
</div>
= endblock

+ 4
- 4
templates/index.html 파일 보기

@@ -88,10 +88,10 @@
<div id="search-groups">
<div class="search-group" id="selected">
<div id="language">
<div class="name">language</div>
<input id="autocomplete" class="language" name="language" type="text">
<input type="checkbox" name="regex">
<span class="regex">Regex</span>
<div class="name">languages</div
><input id="autocomplete" class="language" name="language" type="text"
><input type="checkbox" name="regex"
><span class="regex">Regex</span>
</div>
</div>
</div>


+ 0
- 3
templates/layout.html 파일 보기

@@ -41,9 +41,6 @@
<a href="/">home</a>
<a href="/about">about</a>
<a href="/developers">developers</a>
<p>
&copy; {{ year }} bitshift
</p>
</div>
</div>
</body>


불러오는 중...
취소
저장