Fix CSS and phantomjs

This commit is contained in:
Michel Roux 2019-12-13 19:57:53 +01:00
parent cec7639812
commit 1d9e44bca9
2 changed files with 7 additions and 7 deletions

View File

@ -130,7 +130,7 @@ class Connector(ABC):
def curl_content(self, url, params=None, ajax=False): def curl_content(self, url, params=None, ajax=False):
if self.is_behind_cloudflare: if self.is_behind_cloudflare:
try: 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, 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) shell=True, check=True, capture_output=True, timeout=7000)
output = qt_output.stdout output = qt_output.stdout

View File

@ -54,37 +54,37 @@ label.checkbox {
} }
.table td.is-primary, .table tr.is-primary { .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); border-color: rgba(0, 209, 178, 0.1);
white-space: nowrap; white-space: nowrap;
} }
.table td.is-link, .table tr.is-link { .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); border-color: rgba(50, 115, 220, 0.1);
white-space: nowrap; white-space: nowrap;
} }
.table td.is-info, .table tr.is-info { .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); border-color: rgba(32, 156, 238, 0.1);
white-space: nowrap; white-space: nowrap;
} }
.table td.is-success, .table tr.is-success { .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); border-color: rgba(35, 209, 96, 0.1);
white-space: nowrap; white-space: nowrap;
} }
.table td.is-warning, .table tr.is-warning { .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); border-color: rgba(255, 221, 87, 0.1);
white-space: nowrap; white-space: nowrap;
} }
.table td.is-danger, .table tr.is-danger { .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); border-color: rgba(255, 56, 96, 0.1);
white-space: nowrap; white-space: nowrap;
} }