Selaa lähdekoodia

Restored tabcontent background and text colors

deadtom 1 kuukausi sitten
vanhempi
sitoutus
8ea6e3b0df

+ 1 - 1
ownchatbot/static/style.css

@@ -84,7 +84,7 @@ img {
     display: none;
     padding: 6px 12px;
     border-top: none;
-    background-color: #4477aa;
+    background-color: #002e63;
     text-align: left;
 }
 

+ 5 - 5
ownchatbot/templates/add.html

@@ -26,7 +26,7 @@
                             {% if messages %}
                                 {% for category, message in messages %}
                                     {% if category == 'error' %}
-                                        <span style="color: #ee6677;">{{ message }}</span>
+                                        <span style="color: red;">{{ message }}</span>
                                     {% endif %}
                                 {% endfor %}
                             {% endif %}
@@ -123,14 +123,14 @@
                     
                     <tr>              
                         <td>Categories</td>
-                        <td>Categories in <span style="color: #ee6677;">red</span> are inactive.
+                        <td>Categories in <span style="color: red;">red</span> are inactive.
                             <table>
                                 {% for cat in all_cats %}
                                 <tr>
                                     {% if cat in active_categories %}
                                     <td><label for="category">{{ cat }}:</label></td>
                                     {% else %}
-                                    <td><label for="category"><span style="color: #ee6677;">{{ cat }}</span>:</label></td>
+                                    <td><label for="category"><span style="color: red;">{{ cat }}</span>:</label></td>
                                     {% endif %}
                                     <td><input id="category" type="checkbox" name="category" value="{{ cat }}"></td>
                                 </tr>
@@ -141,9 +141,9 @@
                 {% endif %}  
             </table>
             {% if reward_type == "category" %}
-                <br>By default, new categories are <span style="color: #ee6677;">inactive</span>.<br>
+                <br>By default, new categories are <span style="color: red;">inactive</span>.<br>
             {% else %}
-                <br>Your {{ reward_type }} will be <span style="color: #ee6677;">inactive</span>, until you add it to an active category.
+                <br>Your {{ reward_type }} will be <span style="color: red;">inactive</span>, until you add it to an active category.
             {% endif %}
             <br><button id="Add reward/category" class="button button2" type="submit">Create {{ reward_type }}</button><br>
         </form>

+ 2 - 2
ownchatbot/templates/edit.html

@@ -102,14 +102,14 @@
                     
                     <tr>
                         <td>Categories</td>
-                        <td>Categories in <span style="color: #ee6677;">red</span> are inactive.
+                        <td>Categories in <span style="color: red;">red</span> are inactive.
                             <table>
                                 {% for cat in all_cats %}
                                     <tr>
                                         {% if cat in active_categories %}
                                         <td> <label for="category">{{ cat }}:</label> </td>
                                         {% else %}
-                                        <td> <label for="category"><span style="color: #ee6677;">{{ cat }}</span>:</label> </td>
+                                        <td> <label for="category"><span style="color: red;">{{ cat }}</span>:</label> </td>
                                         {% endif %}
                                         {% if cat in reward_data["categories"] %}
                                             <td> <input id="category" type="checkbox" name="category" value="{{ cat }}" checked> </td>

+ 18 - 18
ownchatbot/templates/mgmt.html

@@ -77,7 +77,7 @@
             </table>
             <br>
             {% if rewards %}
-            Rewards in <span style="color: #ee6677 !important;">red</span> are inactive. To activate a reward, add it to an active category.
+            Rewards in <span style="color: red !important;">red</span> are inactive. To activate a reward, add it to an active category.
             <table>
                 <thead>
                     <tr>
@@ -95,7 +95,7 @@
                     {% if reward in active_rewards %}
                     <tr>
                     {% else %}
-                    <tr style="color: #ee6677;">
+                    <tr style="color: red;">
                     {% endif %}
                         <td>{{ prefix }}{{ reward }}</td>
                         <td>{{ reward_info["price"] }}</td>
@@ -108,8 +108,8 @@
                         {% endif %}
                         <td>{{ reward_info["categories"] | join(', ') }}</td>
                         <td>
-                            <a href="{{ url_for('web_panels.edit', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: #ccbb44;">Edit</span></button></a>&nbsp
-                            <a href="{{ url_for('web_panels.delete', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: #ee6677;">Delete</span></button></a>
+                            <a href="{{ url_for('web_panels.edit', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: green;">Edit</span></button></a>&nbsp
+                            <a href="{{ url_for('web_panels.delete', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: red;">Delete</span></button></a>
                     {% endif %}
                     </tr>
                 {% endfor %}
@@ -133,15 +133,15 @@
                     {% if reward in active_rewards %}
                     <tr>
                     {% else %}
-                    <tr style="color: #ee6677;">
+                    <tr style="color: red;">
                     {% endif %}
                         <td>{{ prefix }}{{ reward }}</td>
                         <td>{{ reward_info["target"] }}</td>
                         <td>{{ reward_info["info"] }}</td>
                         <td>{{ reward_info["categories"] | join(', ') }}</td>
                         <td>
-                            <a href="{{ url_for('web_panels.edit', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: #ee6677;">Edit</span></button></a>&nbsp
-                            <a href="{{ url_for('web_panels.delete', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: #ccbb44;">Delete</span></button></a>&nbsp
+                            <a href="{{ url_for('web_panels.edit', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: red;">Edit</span></button></a>&nbsp
+                            <a href="{{ url_for('web_panels.delete', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: green;">Delete</span></button></a>&nbsp
                             <a href="{{ url_for('web_panels.reset', reward_name=reward, reward_type=reward_info["type"]) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: orange;">Reset</span></button></a>
                     {% endif %}
                     </tr>
@@ -166,15 +166,15 @@
                     {% if reward in active_rewards %}
                     <tr>
                     {% else %}
-                    <tr style="color: #ee6677;">
+                    <tr style="color: red;">
                     {% endif %}
                         <td>{{ prefix }}{{ reward }}</td>
                         <td>{{ reward_info["price"] }}</td>
                         <td>{{ reward_info["info"] }}</td>
                         <td>{{ reward_info["categories"] | join(', ') }}</td>
                         <td>
-                            <a href="{{ url_for('web_panels.edit', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: #ee6677;">Edit</span></button></a>&nbsp
-                            <a href="{{ url_for('web_panels.delete', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: #ee6677;">Delete</span></button></a>&nbsp
+                            <a href="{{ url_for('web_panels.edit', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: red;">Edit</span></button></a>&nbsp
+                            <a href="{{ url_for('web_panels.delete', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: red;">Delete</span></button></a>&nbsp
                             <a href="{{ url_for('web_panels.reset', reward_name=reward, reward_type=reward_info["type"]) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: orange;">Reset</span></button></a>
                     {% endif %}
                     </tr>
@@ -204,7 +204,7 @@
                 {% for user in users %}
                     <tr>
                         {% if not user[1] %}
-                            <td style="color: #ee6677;"> Temporary Account </td>
+                            <td style="color: red;"> Temporary Account </td>
                         {% else %}
                             <td> {{ user[1] }} </td>
                         {% endif %}
@@ -213,7 +213,7 @@
                         <td>{{ user[2] }} {{ points_label }}</td>
                         {% if user[4] %}
                             {% if not user[1] %}
-                                <td style="color: #ee6677;">{{ user[4] }}</td>
+                                <td style="color: red;">{{ user[4] }}</td>
                             {% else %}
                                 <td>{{ user[4] }}</td>
                             {% endif %}
@@ -255,7 +255,7 @@
                         </td>
                         <td>
                             {% for cat in inactive_categories %}
-                            &nbsp;&nbsp;{{ cat }} - <a href="/mgmt/activate/{{ cat }}"><span style="color: #ee6677;">Activate</span></a>&nbsp;<a href="/mgmt/delcat/{{ cat }}/inactive"><span style="color: gray;">Delete</span></a><br>
+                            &nbsp;&nbsp;{{ cat }} - <a href="/mgmt/activate/{{ cat }}"><span style="color: red;">Activate</span></a>&nbsp;<a href="/mgmt/delcat/{{ cat }}/inactive"><span style="color: gray;">Delete</span></a><br>
                             {% endfor %}
                         </td>
                     </tr>
@@ -478,12 +478,12 @@
                     {% if item.crossed == 'no' %}
                         <li style="text-decoration:none;">
                             {{ item.name }}
-                            <a href="{{ url_for('web_panels.cross', item_id=loop.index0) }}">[Cross Off]</a>&nbsp;<a href="{{ url_for('web_panels.rem_todo_item', item_id=loop.index0) }}"><span style="color: #ccbb44;">[Remove]</span></a>
+                            <a href="{{ url_for('web_panels.cross', item_id=loop.index0) }}">[Cross Off]</a>&nbsp;<a href="{{ url_for('web_panels.rem_todo_item', item_id=loop.index0) }}"><span style="color: green;">[Remove]</span></a>
                         </li>
                     {% else %}
                         <li> <span style="text-decoration:line-through;">
                             {{ item.name }}</span>
-                            <a href="{{ url_for('web_panels.uncross', item_id=loop.index0) }}">[Un-Cross]</a>&nbsp;<a href="{{ url_for('web_panels.rem_todo_item', item_id=loop.index0) }}"><span style="color: #ccbb44;">[Remove]</span></a>
+                            <a href="{{ url_for('web_panels.uncross', item_id=loop.index0) }}">[Un-Cross]</a>&nbsp;<a href="{{ url_for('web_panels.rem_todo_item', item_id=loop.index0) }}"><span style="color: green;">[Remove]</span></a>
                     {% endif %}
                 {% endfor %}
             {% endif %}
@@ -550,7 +550,7 @@
                     <td><input type="file" name="FOLLOWER_ALERT" accept=".gif, .jpg, .jpeg, .png, .webm" required></td>
                     <td><button id="new_follow_image_upload" class="button button2" type="submit">Upload</button>
                     </form>&nbsp
-                        <a href="{{ url_for('web_panels.del_alert', alert_type='FOLLOWER_ALERT') }}"><button id="new_follow_image_upload" class="button button2" onclick="openTab(event, 'alerts')"><span style="color: #ccbb44;">Clear</span></button></a></td>
+                        <a href="{{ url_for('web_panels.del_alert', alert_type='FOLLOWER_ALERT') }}"><button id="new_follow_image_upload" class="button button2" onclick="openTab(event, 'alerts')"><span style="color: green;">Clear</span></button></a></td>
                     <td>{{ settings_info[10] }}/alert/follower</td>
                 </tr>
                 <tr>
@@ -568,7 +568,7 @@
                     {% endif %}
                     <td><input type="file" name="MILESTONE_ALERT" accept=".gif, .jpg, .jpeg, .png, .webm" required></td>
                     <td><button id="new_milestone_image_upload" class="button button2" type="submit">Upload</button></form>&nbsp
-                        <a href="{{ url_for('web_panels.del_alert', alert_type='MILESTONE_ALERT') }}"><button id="new_milestone_image_upload" class="button button2" onclick="openTab(event, 'alerts')"><span style="color: #ccbb44;">Clear</span></button></a></td>
+                        <a href="{{ url_for('web_panels.del_alert', alert_type='MILESTONE_ALERT') }}"><button id="new_milestone_image_upload" class="button button2" onclick="openTab(event, 'alerts')"><span style="color: green;">Clear</span></button></a></td>
                     <td>{{ settings_info[10] }}/alert/milestone</td>
                 </tr>
                 <tr>
@@ -586,7 +586,7 @@
                     {% endif %}
                     <td><input type="file" name="GOAL_ALERT" accept=".gif, .jpg, .jpeg, .png, .webm" required></td>
                     <td><button id="new_goal_image_upload" class="button button2" type="submit">Upload</button></form>&nbsp
-                        <a href="{{ url_for('web_panels.del_alert', alert_type='GOAL_ALERT') }}"><button id="new_goal_image_upload" class="button button2" onclick="openTab(event, 'alerts')"><span style="color: #ccbb44;">Clear</span></button></a></td>
+                        <a href="{{ url_for('web_panels.del_alert', alert_type='GOAL_ALERT') }}"><button id="new_goal_image_upload" class="button button2" onclick="openTab(event, 'alerts')"><span style="color: green;">Clear</span></button></a></td>
                     <td>{{ settings_info[10] }}/alert/goal</td>
                 </tr>
         </table>

+ 1 - 1
ownchatbot/templates/userpanel.html

@@ -60,7 +60,7 @@
                         {% if messages %}
                             {% for category, message in messages %}
                                 {% if category == 'failure' %}
-                                    <span style="color: #ee6677;">{{ message }}</span>
+                                    <span style="color: red;">{{ message }}</span>
                                 {% endif %}
                                 {% if category == 'success' %}
                                     <span style="color: green;">{{ message }}</span>