فهرست منبع

디자인 패치

2DU 9 سال پیش
والد
کامیت
33880a6784
4فایلهای تغییر یافته به همراه26 افزوده شده و 37 حذف شده
  1. 2 1
      .gitignore
  2. 3 2
      main.py
  3. 0 29
      static/style.css
  4. 21 5
      templates/index.html

+ 2 - 1
.gitignore

@@ -1 +1,2 @@
-set.json
+set.json
+/__pycache__

+ 3 - 2
main.py

@@ -14,13 +14,14 @@ import hashlib
 json_data = open('set.json').read()
 set_data = json.loads(json_data)
 
-print('port : ' + set_data['port'])
-
 if(not set_data['log'] == "O"):
     import logging
     log = logging.getLogger('werkzeug')
     log.setLevel(logging.ERROR)
 
+    print('port : ' + set_data['port'])
+    
+
 def start():
     try:
         db_ex("select * from data limit 1")

+ 0 - 29
static/style.css

@@ -1,7 +1,3 @@
-#RecentChanges:hover, #RecentChanges:focus {
-    text-decoration: none;
-	color: #e5dafb;
-}
 #logo:hover, #logo:focus {
     color: #e5dafb;
 }
@@ -305,10 +301,6 @@ div.scroll-buttons {
     position: relative;
 }
 
-#is_mobile {
-    margin-left: 5px;
-}
-
 table {
     font-size: 13px;
 }
@@ -351,27 +343,6 @@ body {
     background: #EFEFEF;
 }
 
-#RecentChanges {
-	line-height: 32px;
-    width: 105px;
-    height: 45px;
-    font-size: 16px;
-    color: white;
-    float: left;
-    padding: 5px;
-}
-@media (max-width: 710px) {
-	#is_mobile {
-		display: none;
-	}
-	#RecentChanges {
-		width: 20px;
-		margin-right: 10px;
-		margin-top: 9px;
-		height: 36px;
-	}
-}
-
 #left_bar {
     height: 100%;
     width: 15%;

+ 21 - 5
templates/index.html

@@ -27,11 +27,27 @@
             <div id="top">
                 <a href="/" id="logo">{{logo}}</a>
                 <div>
-                    <a href="/recentchanges" id="RecentChanges"><i class="fa fa-refresh" aria-hidden="true"></i><span id="is_mobile">최근 변경</span></a>
-                    <a href="/recentdiscuss" id="RecentChanges"><i class="fa fa-comment" aria-hidden="true"></i><span id="is_mobile">최근 토론</span></a>
-                    <a href="/random" id="log"><i class="fa fa-random" aria-hidden="true"></i></a>
-                    <a href="/user" id="log">{% if login == 1 %}<i class="fa fa-user" aria-hidden="true"></i>{% elif login == 0 %}<i class="fa fa-user-times" aria-hidden="true"></i>{% else %}<i class="fa fa-user-secret" aria-hidden="true"></i>{% endif %}</a>
-                    <a href="/other" id="log"><i class="fa fa-cogs" aria-hidden="true"></i></a>
+                    <a href="/recentchanges" id="log">
+                        <i class="fa fa-refresh" aria-hidden="true"></i>
+                    </a>
+                    <a href="/recentdiscuss" id="log">
+                        <i class="fa fa-comment" aria-hidden="true"></i>
+                    </a>
+                    <a href="/random" id="log">
+                        <i class="fa fa-random" aria-hidden="true"></i>
+                    </a>
+                    <a href="/user" id="log">
+                        {% if login == 1 %}
+                        <i class="fa fa-user" aria-hidden="true"></i>
+                        {% elif login == 0 %}
+                        <i class="fa fa-user-times" aria-hidden="true"></i>
+                        {% else %}
+                        <i class="fa fa-user-secret" aria-hidden="true"></i>
+                        {% endif %}
+                    </a>
+                    <a href="/other" id="log">
+                        <i class="fa fa-cogs" aria-hidden="true"></i>
+                    </a>
                 </div>
                 <form method="POST" action="/search" id="search">
                     <div class="input-group">