siddhartharya commited on
Commit
a2f03c9
·
verified ·
1 Parent(s): b5793b7

Update app.css

Browse files
Files changed (1) hide show
  1. app.css +111 -46
app.css CHANGED
@@ -1,85 +1,150 @@
1
  /* app.css */
2
 
 
3
  body {
4
- background-color: #f5f5f5;
 
 
5
  margin: 0;
6
  padding: 0;
7
  }
8
 
9
- .gradio-container {
10
- font-family: 'Roboto', sans-serif;
11
- margin: 0 auto;
12
- padding: 20px;
13
- max-width: 100%; /* Ensure the container doesn't exceed the viewport width */
14
- overflow-x: hidden; /* Hide horizontal overflow */
15
  }
16
 
17
- .gr-button {
18
- background-color: #6200EE;
19
- color: white;
20
- font-weight: bold;
21
- cursor: pointer;
 
 
 
 
 
 
 
 
 
 
 
 
22
  border: none;
 
23
  padding: 10px 20px;
24
- margin: 5px;
 
 
 
 
25
  border-radius: 4px;
26
- transition: background-color 0.3s;
 
27
  }
28
 
29
- .gr-button:hover {
30
- background-color: #3700B3;
31
  }
32
 
33
- h1 {
34
- color: #333;
 
 
 
35
  text-align: center;
36
- font-weight: normal;
 
 
37
  }
38
 
39
- .card {
40
- background-color: white;
 
 
 
 
 
 
41
  border-radius: 4px;
42
- margin: 10px 0;
43
- padding: 15px;
44
- box-sizing: border-box; /* Include padding and border in the total width and height */
45
- word-wrap: break-word; /* Break long words to prevent overflow */
46
- overflow-wrap: break-word; /* For better compatibility */
47
- max-width: 100%; /* Ensure cards don't exceed the container width */
48
  }
49
 
50
- .card-content h3 {
51
- margin-top: 0;
52
- font-size: 1.2em;
53
- color: #6200EE;
 
54
  }
55
 
56
- .card-content p {
57
- margin: 5px 0;
58
- color: #555;
59
  }
60
 
61
- .card-content a {
62
- color: #1E88E5;
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  text-decoration: none;
64
- word-break: break-all; /* Break long URLs to prevent overflow */
65
  }
66
 
67
- .card-content a:hover {
68
  text-decoration: underline;
 
69
  }
70
 
71
- .dead-link {
72
- border: 2px solid #D32F2F;
 
73
  }
74
 
75
- .dead-link .card-content h3,
76
- .dead-link .card-content p,
77
- .dead-link .card-content a {
78
- color: #D32F2F;
 
79
  }
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  @media screen and (max-width: 600px) {
82
- .card-content h3 {
83
- font-size: 1em;
 
 
 
 
 
84
  }
85
  }
 
1
  /* app.css */
2
 
3
+ /* General Styling */
4
  body {
5
+ font-family: Arial, Helvetica, sans-serif;
6
+ background-color: #f9f9f9; /* Light background for the entire app */
7
+ color: #333333; /* Dark text for readability */
8
  margin: 0;
9
  padding: 0;
10
  }
11
 
12
+ /* Header Styling */
13
+ h1, h2, h3, h4, h5, h6 {
14
+ color: #2C3E50; /* Dark blue-gray for headings */
 
 
 
15
  }
16
 
17
+ /* Card Styling */
18
+ .card {
19
+ box-shadow: 0 4px 8px 0 rgba(0,0,0,0.1);
20
+ transition: box-shadow 0.3s ease;
21
+ padding: 15px;
22
+ margin: 10px;
23
+ border-radius: 8px;
24
+ background-color: #ffffff; /* White background for cards */
25
+ }
26
+
27
+ .card:hover {
28
+ box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
29
+ }
30
+
31
+ /* Button Styling */
32
+ button {
33
+ background-color: #4CAF50; /* Green background for buttons */
34
  border: none;
35
+ color: white;
36
  padding: 10px 20px;
37
+ text-align: center;
38
+ text-decoration: none;
39
+ display: inline-block;
40
+ font-size: 14px;
41
+ margin: 4px 2px;
42
  border-radius: 4px;
43
+ cursor: pointer;
44
+ transition: background-color 0.3s ease;
45
  }
46
 
47
+ button:hover {
48
+ background-color: #45a049; /* Darker green on hover */
49
  }
50
 
51
+ /* File Upload Styling */
52
+ input[type="file"] {
53
+ border: 2px dashed #4CAF50;
54
+ border-radius: 5px;
55
+ padding: 20px;
56
  text-align: center;
57
+ color: #4CAF50;
58
+ cursor: pointer;
59
+ transition: background-color 0.3s ease, color 0.3s ease;
60
  }
61
 
62
+ input[type="file"]:hover {
63
+ background-color: #f1f1f1;
64
+ color: #45a049;
65
+ }
66
+
67
+ /* Dropdown Styling */
68
+ select, .gr-dropdown {
69
+ padding: 8px;
70
  border-radius: 4px;
71
+ border: 1px solid #ccc;
72
+ font-size: 14px;
73
+ width: 100%;
74
+ box-sizing: border-box;
75
+ margin-bottom: 10px;
 
76
  }
77
 
78
+ /* Checkbox Group Styling */
79
+ .gr-checkboxgroup {
80
+ display: flex;
81
+ flex-direction: column;
82
+ margin-bottom: 10px;
83
  }
84
 
85
+ .gr-checkboxgroup label {
86
+ margin-bottom: 5px;
87
+ font-size: 14px;
88
  }
89
 
90
+ /* Textbox Styling */
91
+ textarea, input[type="text"], input[type="number"], input[type="email"], input[type="password"], .gr-textbox {
92
+ width: 100%;
93
+ padding: 8px 12px;
94
+ margin: 4px 0;
95
+ box-sizing: border-box;
96
+ border: 2px solid #ccc;
97
+ border-radius: 4px;
98
+ resize: vertical;
99
+ font-size: 14px;
100
+ }
101
+
102
+ /* Link Styling */
103
+ a {
104
+ color: #2980B9; /* Blue color for links */
105
  text-decoration: none;
 
106
  }
107
 
108
+ a:hover {
109
  text-decoration: underline;
110
+ color: #1F618D;
111
  }
112
 
113
+ /* Markdown Styling */
114
+ .markdown {
115
+ line-height: 1.6;
116
  }
117
 
118
+ /* Output Textbox Styling */
119
+ .gr-output .gr-textbox {
120
+ background-color: #f0f0f0; /* Light gray background for outputs */
121
+ border: 1px solid #ccc;
122
+ color: #333333;
123
  }
124
 
125
+ /* Export Button Styling */
126
+ .gr-button--export {
127
+ background-color: #3498DB; /* Blue background for export button */
128
+ }
129
+
130
+ .gr-button--export:hover {
131
+ background-color: #2980B9; /* Darker blue on hover */
132
+ }
133
+
134
+ /* Download Link Styling */
135
+ .gr-html {
136
+ margin-top: 10px;
137
+ font-size: 14px;
138
+ }
139
+
140
+ /* Responsive Design */
141
  @media screen and (max-width: 600px) {
142
+ .gr-row {
143
+ flex-direction: column;
144
+ }
145
+
146
+ button, select, input[type="file"], textarea, input[type="text"], input[type="number"], input[type="email"], input[type="password"] {
147
+ width: 100%;
148
+ margin: 5px 0;
149
  }
150
  }