From 1c33775f920365f5b17795a9cdb7cf9665fad984 Mon Sep 17 00:00:00 2001 From: Alex Danamir Date: Wed, 22 May 2024 15:58:16 +0300 Subject: [PATCH] fixed table --- app.py | 2 +- static/css/index.css | 65 +++++++++--------- templates/searchonaud.html | 132 +++++++++++++++++++------------------ 3 files changed, 100 insertions(+), 99 deletions(-) diff --git a/app.py b/app.py index 79f99ba..0c5ef9f 100644 --- a/app.py +++ b/app.py @@ -16,7 +16,7 @@ from xlutils.copy import copy app = Flask(__name__) -app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///PRODproject.db" +app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///project.db" app.jinja_env.auto_reload = True app.config['TEMPLATES_AUTO_RELOAD'] = True diff --git a/static/css/index.css b/static/css/index.css index 9a5b0ea..c445320 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -8,7 +8,7 @@ body { min-width: 580px; } -.row{ +.row { text-align: center; @@ -24,7 +24,7 @@ body { header { text-align: center; - + background-color: #6A90B6; padding: 2px; } @@ -35,7 +35,7 @@ a:hover { color: #041322; } -a{ +a { color: #041322; @@ -67,64 +67,62 @@ h5 { } - -.hidden-column{ - display: none; +.hidden-column { + display: none; } -nav{ +nav { - width:100%; + width: 100%; } -table{ +table { word-break: break-all; - border-collapse: separate!important; + border-collapse: separate !important; } -.table td{ +.table td { font-size: 14px; padding: 0; max-width: 10rem; word-break: break-all; - border-collapse: separate!important; + border-collapse: separate !important; } -.aud{ +.aud { width: 110px; } -.inv{ +.inv { width: 400px; } -.rasp{ +.rasp { width: 200px; word-break: break-word; white-space: nowrap; } -#modal_matcenn{ +#modal_matcenn { margin-left: 20px; } -.datatable{ +.datatable { background-color: whitesmoke; } .datatable th:nth-child(7) { - width: 200px; + width: 200px; } - @media print { - *{ + * { font-family: "Times New Roman", Times, serif; } @@ -132,7 +130,7 @@ table{ margin: 0; padding: 0; background-color: transparent; - + } @@ -152,29 +150,30 @@ table{ width: 100%; } + .no-print { display: none; - } + } - table.rs-table-bordered{ - border:1px solid #000000; - margin-top:20px; + table.rs-table-bordered { + border: 1px solid #000000; + margin-top: 20px; font-size: 14pt; - - } - table.rs-table-bordered > thead > tr > th{ - border:1px solid #000000; + + } + + table.rs-table-bordered > thead > tr > th { + border: 1px solid #000000; padding: 2px; font-size: 14pt; } - table.rs-table-bordered > tbody > tr > td{ - border:1px solid #000000; + + table.rs-table-bordered > tbody > tr > td { + border: 1px solid #000000; padding: 10px; font-size: 14pt; } - - } \ No newline at end of file diff --git a/templates/searchonaud.html b/templates/searchonaud.html index ff0d394..5f03253 100644 --- a/templates/searchonaud.html +++ b/templates/searchonaud.html @@ -3,96 +3,98 @@ {% block content %} - -