From 1d9e44bca9190ed73b09283a478e85d7741a962d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Fri, 13 Dec 2019 19:57:53 +0100 Subject: [PATCH] Fix CSS and phantomjs --- connectors.py | 2 +- static/css/styles.css | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/connectors.py b/connectors.py index 694c1e5..82ba72e 100644 --- a/connectors.py +++ b/connectors.py @@ -130,7 +130,7 @@ class Connector(ABC): def curl_content(self, url, params=None, ajax=False): if self.is_behind_cloudflare: try: - qt_env = {'QT_QPA_PLATFORM': 'offscreen'} if platform is 'linux' else {} + qt_env = {'QT_QPA_PLATFORM': 'offscreen'} if platform == 'linux' else {} qt_output = run('phantomjs --cookies-file=/tmp/cookies.json delay.js "%s" 5000' % url, env=qt_env, shell=True, check=True, capture_output=True, timeout=7000) output = qt_output.stdout diff --git a/static/css/styles.css b/static/css/styles.css index d9799d2..911b17b 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -54,37 +54,37 @@ label.checkbox { } .table td.is-primary, .table tr.is-primary { - background-color: rgba(0, 209, 178, 0.2); + background-color: rgba(0, 209, 178, 0.2) !important; border-color: rgba(0, 209, 178, 0.1); white-space: nowrap; } .table td.is-link, .table tr.is-link { - background-color: rgba(50, 115, 220, 0.2); + background-color: rgba(50, 115, 220, 0.2) !important; border-color: rgba(50, 115, 220, 0.1); white-space: nowrap; } .table td.is-info, .table tr.is-info { - background-color: rgba(32, 156, 238, 0.2); + background-color: rgba(32, 156, 238, 0.2) !important; border-color: rgba(32, 156, 238, 0.1); white-space: nowrap; } .table td.is-success, .table tr.is-success { - background-color: rgba(35, 209, 96, 0.2); + background-color: rgba(35, 209, 96, 0.2) !important; border-color: rgba(35, 209, 96, 0.1); white-space: nowrap; } .table td.is-warning, .table tr.is-warning { - background-color: rgba(255, 221, 87, 0.2); + background-color: rgba(255, 221, 87, 0.2) !important; border-color: rgba(255, 221, 87, 0.1); white-space: nowrap; } .table td.is-danger, .table tr.is-danger { - background-color: rgba(255, 56, 96, 0.2); + background-color: rgba(255, 56, 96, 0.2) !important; border-color: rgba(255, 56, 96, 0.1); white-space: nowrap; }