privateuserh commited on
Commit
e277318
·
verified ·
1 Parent(s): 95d7964

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +150 -70
style.css CHANGED
@@ -1,77 +1,157 @@
1
- body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; background-color: #f4f7f9; color: #333; margin: 0; padding: 20px; }
2
- .container { width: 100%; max-width: 800px; background-color: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); margin: 20px auto; }
3
- header { text-align: center; border-bottom: 2px solid #e0e0e0; padding-bottom: 20px; margin-bottom: 30px; }
4
- header h1 { color: #0056b3; margin: 0; }
5
- h2 { color: #0056b3; margin-top: 30px; margin-bottom: 15px; border-top: 1px solid #eee; padding-top: 20px; }
6
- h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
7
- textarea, input[type="text"] { width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; box-sizing: border-box; margin-bottom: 15px; }
8
- textarea#reportBody { height: 200px; resize: vertical; }
9
- button { display: inline-block; width: auto; padding: 10px 20px; background-color: #007bff; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; margin-top: 15px; transition: background-color: 0.3s; }
10
- button:hover { background-color: #0056b3; }
11
- button:disabled { background-color: #a0c3e6; cursor: not-allowed; }
12
- #uploadForm button { width: 100%; padding: 15px; margin-top: 0; }
13
- .result-container, .history-container, .reports-container { background-color: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 5px; padding: 1px 20px; min-height: 50px; }
14
- .history-entry, .report-entry { border-bottom: 1px solid #eee; padding: 15px 0; }
15
- .history-entry:last-child, .report-entry:last-child { border-bottom: none; }
16
- .report-entry h3 { margin: 0; color: #0056b3; }
17
- .report-entry p { margin: 5px 0 0 0; font-size: 14px; }
18
- #uploadStatus { margin-top: 15px; font-size: 14px; }
19
- footer { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 2px solid #e0e0e0; font-size: 14px; color: #777; }
20
- /* ... (all your existing CSS rules) ... */
21
-
22
- /* NEW: Styles for the modal pop-up */
23
- .modal {
24
- display: none; /* Hidden by default */
25
- position: fixed; /* Stay in place */
26
- z-index: 1000; /* Sit on top */
27
- left: 0;
28
- top: 0;
29
- width: 100%;
30
- height: 100%;
31
- overflow: auto; /* Enable scroll if needed */
32
- background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
33
- }
34
-
35
- .modal-content {
36
- background-color: #fefefe;
37
- margin: 10% auto; /* 10% from the top and centered */
38
- padding: 30px;
39
- border: 1px solid #888;
40
- width: 80%;
41
- max-width: 700px;
42
- border-radius: 10px;
43
- position: relative;
44
- }
45
-
46
- .modal-close-button {
47
- color: #aaa;
48
- position: absolute;
49
- top: 15px;
50
- right: 25px;
51
- font-size: 28px;
52
- font-weight: bold;
53
- }
54
-
55
- .modal-close-button:hover,
56
- .modal-close-button:focus {
57
- color: black;
58
- text-decoration: none;
59
- cursor: pointer;
60
- }
61
-
62
- #modalTitle {
63
  margin-top: 0;
64
- padding-top: 0;
65
  border-top: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  }
67
 
68
- .modal-body-container {
 
 
 
 
 
 
 
 
 
 
 
69
  background-color: #f8f9fa;
70
  border: 1px solid #e0e0e0;
71
  border-radius: 5px;
72
- padding: 20px;
73
- max-height: 50vh; /* Set a max height */
74
- overflow-y: auto; /* Add vertical scrollbar if content overflows */
75
- white-space: pre-wrap; /* Respects line breaks and spaces */
76
- font-family: monospace;
77
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* General Body and Container Styles for Compact Layout */
2
+ body {
3
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
4
+ background-color: #f4f7f9;
5
+ color: #333;
6
+ margin: 0;
7
+ padding: 10px; /* Reduced padding for mobile */
8
+ }
9
+
10
+ .container {
11
+ width: 100%;
12
+ max-width: 700px; /* Reduced max-width for a more compact column */
13
+ background-color: #fff;
14
+ padding: 20px; /* Reduced padding */
15
+ border-radius: 10px;
16
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
17
+ margin: 10px auto;
18
+ }
19
+
20
+ header {
21
+ text-align: center;
22
+ border-bottom: 1px solid #e0e0e0;
23
+ padding-bottom: 15px;
24
+ margin-bottom: 20px;
25
+ }
26
+
27
+ header h1 {
28
+ font-size: 1.8em;
29
+ color: #0056b3;
30
+ margin: 0;
31
+ }
32
+
33
+ h2 {
34
+ font-size: 1.4em;
35
+ color: #0056b3;
36
+ margin-top: 25px;
37
+ margin-bottom: 15px;
38
+ border-top: 1px solid #eee;
39
+ padding-top: 15px;
40
+ display: flex; /* For aligning toggle icon */
41
+ justify-content: space-between; /* For aligning toggle icon */
42
+ align-items: center; /* For aligning toggle icon */
43
+ }
44
+
45
+ h2:first-of-type {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  margin-top: 0;
 
47
  border-top: none;
48
+ padding-top: 0;
49
+ }
50
+
51
+ /* Form Element Styles */
52
+ textarea, input[type="text"] {
53
+ width: 100%;
54
+ padding: 12px; /* Reduced padding */
55
+ border: 1px solid #ccc;
56
+ border-radius: 5px;
57
+ font-size: 1em;
58
+ box-sizing: border-box;
59
+ margin-bottom: 10px;
60
+ }
61
+
62
+ textarea#reportBody {
63
+ height: 150px;
64
+ resize: vertical;
65
+ }
66
+
67
+ button {
68
+ display: inline-block;
69
+ width: auto;
70
+ padding: 10px 18px; /* Adjusted padding */
71
+ background-color: #007bff;
72
+ color: white;
73
+ border: none;
74
+ border-radius: 5px;
75
+ font-size: 1em;
76
+ font-weight: bold;
77
+ cursor: pointer;
78
+ margin-top: 5px;
79
+ transition: background-color 0.3s;
80
+ }
81
+
82
+ button:hover {
83
+ background-color: #0056b3;
84
  }
85
 
86
+ button:disabled {
87
+ background-color: #a0c3e6;
88
+ cursor: not-allowed;
89
+ }
90
+
91
+ #uploadForm button {
92
+ width: 100%;
93
+ padding: 12px;
94
+ }
95
+
96
+ /* Container and Entry Styles */
97
+ .result-container, .history-container, .reports-container {
98
  background-color: #f8f9fa;
99
  border: 1px solid #e0e0e0;
100
  border-radius: 5px;
101
+ padding: 5px 20px;
102
+ min-height: 40px;
103
+ }
104
+
105
+ .history-entry, .report-entry {
106
+ border-bottom: 1px solid #eee;
107
+ padding: 12px 0;
108
+ }
109
+
110
+ .history-entry:last-child, .report-entry:last-child {
111
+ border-bottom: none;
112
+ }
113
+
114
+ .report-entry {
115
+ display: flex;
116
+ justify-content: space-between;
117
+ align-items: center;
118
+ gap: 10px;
119
+ }
120
+
121
+ .report-entry h3 { margin: 0; font-size: 1.1em; color: #0056b3; }
122
+ .report-entry p { margin: 4px 0 0 0; font-size: 0.9em; }
123
+
124
+ #uploadStatus {
125
+ margin-top: 10px;
126
+ font-size: 0.9em;
127
+ }
128
+
129
+ footer {
130
+ text-align: center;
131
+ margin-top: 25px;
132
+ padding-top: 15px;
133
+ border-top: 1px solid #e0e0e0;
134
+ font-size: 0.8em;
135
+ color: #777;
136
+ }
137
+
138
+ /* Collapsible Section Styles */
139
+ .collapsible-header {
140
+ cursor: pointer;
141
+ }
142
+ .toggle-icon {
143
+ font-size: 1.2em;
144
+ font-weight: bold;
145
+ color: #007bff;
146
+ }
147
+ .reports-container.collapsed {
148
+ display: none;
149
+ }
150
+
151
+ /* Modal Styles */
152
+ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); }
153
+ .modal-content { background-color: #fefefe; margin: 15% auto; padding: 25px; border: 1px solid #888; width: 90%; max-width: 600px; border-radius: 10px; position: relative; }
154
+ .modal-close-button { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; }
155
+ .modal-close-button:hover, .modal-close-button:focus { color: black; text-decoration: none; cursor: pointer; }
156
+ #modalTitle { margin-top: 0; padding-top: 0; border-top: none; }
157
+ .modal-body-container { background-color: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 5px; padding: 15px; max-height: 60vh; overflow-y: auto; white-space: pre-wrap; font-family: monospace; }