Spaces:
Sleeping
Sleeping
Contrast colors for white background
Browse files- styles.css +56 -41
styles.css
CHANGED
@@ -1,30 +1,36 @@
|
|
1 |
-
/*
|
2 |
-
body
|
|
|
|
|
3 |
font-family: Arial, sans-serif;
|
4 |
-
background-color: #FFFFFF;
|
5 |
margin: 20px;
|
|
|
6 |
}
|
7 |
|
8 |
-
/*
|
|
|
|
|
9 |
h1, h2, h3, .subtitle, .variants_container {
|
10 |
-
color: #
|
11 |
display: flex;
|
12 |
text-align: center;
|
13 |
justify-content: center;
|
14 |
-
|
15 |
}
|
16 |
|
17 |
h1 {
|
18 |
font-size: 2.3rem;
|
19 |
font-weight: 700;
|
20 |
margin-top: 2rem;
|
21 |
-
|
22 |
}
|
23 |
|
24 |
.subtitle {
|
25 |
margin-bottom: 50px;
|
26 |
}
|
27 |
|
|
|
|
|
|
|
28 |
.variants_container {
|
29 |
margin: 50px auto;
|
30 |
border-radius: 10px;
|
@@ -33,43 +39,40 @@ h1 {
|
|
33 |
justify-content: center;
|
34 |
padding: 15px;
|
35 |
width: fit-content;
|
|
|
36 |
}
|
37 |
|
38 |
.variants_title {
|
39 |
font-size: 20px;
|
40 |
font-weight: 500;
|
|
|
41 |
}
|
42 |
|
43 |
-
|
44 |
-
|
|
|
45 |
table {
|
46 |
width: 100%;
|
47 |
-
border-collapse:
|
48 |
-
border-spacing: 0;
|
49 |
-
border: none;
|
50 |
-
margin-top: 20px;
|
51 |
-
overflow: hidden;
|
52 |
border-radius: 10px;
|
|
|
|
|
53 |
}
|
54 |
|
55 |
table th {
|
56 |
-
background-color: #
|
|
|
57 |
font-weight: bold;
|
58 |
font-size: 18px;
|
59 |
-
border-bottom:
|
60 |
}
|
61 |
|
62 |
-
/* Alternate row colors for table rows excluding the header */
|
63 |
table tr:not(:first-child):nth-child(odd) {
|
64 |
-
background-color: #
|
65 |
}
|
66 |
|
67 |
table tr:not(:first-child):nth-child(even) {
|
68 |
-
background-color: #
|
69 |
-
}
|
70 |
-
|
71 |
-
table tr {
|
72 |
-
border: none;
|
73 |
}
|
74 |
|
75 |
th, td {
|
@@ -78,11 +81,12 @@ th, td {
|
|
78 |
border: none;
|
79 |
}
|
80 |
|
81 |
-
|
82 |
-
|
|
|
83 |
button {
|
84 |
-
background-color: #
|
85 |
-
color:
|
86 |
border: none;
|
87 |
padding: 8px 12px;
|
88 |
border-radius: 4px;
|
@@ -92,32 +96,41 @@ button {
|
|
92 |
}
|
93 |
|
94 |
button:hover {
|
95 |
-
background-color: #
|
96 |
transform: translateY(-2px);
|
97 |
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
98 |
}
|
99 |
|
100 |
-
/*
|
|
|
|
|
101 |
.sort-info {
|
102 |
-
color: #
|
103 |
text-align: center;
|
104 |
margin: 10px 0;
|
105 |
padding: 5px;
|
106 |
-
background-color: #
|
107 |
border-radius: 5px;
|
108 |
font-size: 16px;
|
109 |
}
|
110 |
|
111 |
-
/*
|
|
|
|
|
112 |
.gradio-container .checkbox-container {
|
113 |
margin-right: 10px;
|
|
|
|
|
|
|
114 |
}
|
115 |
|
116 |
-
/*
|
|
|
|
|
117 |
input[type="text"] {
|
118 |
-
background-color: #
|
119 |
-
color: #
|
120 |
-
border: 1px solid #
|
121 |
border-radius: 5px;
|
122 |
padding: 10px;
|
123 |
width: 100%;
|
@@ -126,17 +139,19 @@ input[type="text"] {
|
|
126 |
}
|
127 |
|
128 |
input[type="text"]:focus {
|
129 |
-
border-color: #
|
130 |
outline: none;
|
131 |
-
box-shadow: 0 0 5px rgba(
|
132 |
}
|
133 |
|
134 |
-
/*
|
|
|
|
|
135 |
.no-results {
|
136 |
-
color: #
|
137 |
text-align: center;
|
138 |
padding: 30px;
|
139 |
-
background-color: #
|
140 |
border-radius: 10px;
|
141 |
font-size: 18px;
|
142 |
margin-top: 20px;
|
|
|
1 |
+
/* ------------------------------------------------------------------
|
2 |
+
General body style
|
3 |
+
------------------------------------------------------------------ */
|
4 |
+
body {
|
5 |
font-family: Arial, sans-serif;
|
6 |
+
background-color: #FFFFFF;
|
7 |
margin: 20px;
|
8 |
+
color: #333333;
|
9 |
}
|
10 |
|
11 |
+
/* ------------------------------------------------------------------
|
12 |
+
Headings & Subtitle
|
13 |
+
------------------------------------------------------------------ */
|
14 |
h1, h2, h3, .subtitle, .variants_container {
|
15 |
+
color: #222222;
|
16 |
display: flex;
|
17 |
text-align: center;
|
18 |
justify-content: center;
|
|
|
19 |
}
|
20 |
|
21 |
h1 {
|
22 |
font-size: 2.3rem;
|
23 |
font-weight: 700;
|
24 |
margin-top: 2rem;
|
|
|
25 |
}
|
26 |
|
27 |
.subtitle {
|
28 |
margin-bottom: 50px;
|
29 |
}
|
30 |
|
31 |
+
/* ------------------------------------------------------------------
|
32 |
+
Variants Container (Filters)
|
33 |
+
------------------------------------------------------------------ */
|
34 |
.variants_container {
|
35 |
margin: 50px auto;
|
36 |
border-radius: 10px;
|
|
|
39 |
justify-content: center;
|
40 |
padding: 15px;
|
41 |
width: fit-content;
|
42 |
+
background-color: #F2F2F2;
|
43 |
}
|
44 |
|
45 |
.variants_title {
|
46 |
font-size: 20px;
|
47 |
font-weight: 500;
|
48 |
+
color: #222222;
|
49 |
}
|
50 |
|
51 |
+
/* ------------------------------------------------------------------
|
52 |
+
Table styling
|
53 |
+
------------------------------------------------------------------ */
|
54 |
table {
|
55 |
width: 100%;
|
56 |
+
border-collapse: separate;
|
|
|
|
|
|
|
|
|
57 |
border-radius: 10px;
|
58 |
+
overflow: hidden;
|
59 |
+
margin-top: 20px;
|
60 |
}
|
61 |
|
62 |
table th {
|
63 |
+
background-color: #F2F2F2;
|
64 |
+
color: #222222;
|
65 |
font-weight: bold;
|
66 |
font-size: 18px;
|
67 |
+
border-bottom: 2px solid #CCCCCC;
|
68 |
}
|
69 |
|
|
|
70 |
table tr:not(:first-child):nth-child(odd) {
|
71 |
+
background-color: #FAFAFA;
|
72 |
}
|
73 |
|
74 |
table tr:not(:first-child):nth-child(even) {
|
75 |
+
background-color: #FFFFFF;
|
|
|
|
|
|
|
|
|
76 |
}
|
77 |
|
78 |
th, td {
|
|
|
81 |
border: none;
|
82 |
}
|
83 |
|
84 |
+
/* ------------------------------------------------------------------
|
85 |
+
Buttons
|
86 |
+
------------------------------------------------------------------ */
|
87 |
button {
|
88 |
+
background-color: #007BFF;
|
89 |
+
color: #FFFFFF;
|
90 |
border: none;
|
91 |
padding: 8px 12px;
|
92 |
border-radius: 4px;
|
|
|
96 |
}
|
97 |
|
98 |
button:hover {
|
99 |
+
background-color: #0056B3;
|
100 |
transform: translateY(-2px);
|
101 |
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
102 |
}
|
103 |
|
104 |
+
/* ------------------------------------------------------------------
|
105 |
+
Sort‐info Banner
|
106 |
+
------------------------------------------------------------------ */
|
107 |
.sort-info {
|
108 |
+
color: #222222;
|
109 |
text-align: center;
|
110 |
margin: 10px 0;
|
111 |
padding: 5px;
|
112 |
+
background-color: #F2F2F2;
|
113 |
border-radius: 5px;
|
114 |
font-size: 16px;
|
115 |
}
|
116 |
|
117 |
+
/* ------------------------------------------------------------------
|
118 |
+
Checkboxes Container
|
119 |
+
------------------------------------------------------------------ */
|
120 |
.gradio-container .checkbox-container {
|
121 |
margin-right: 10px;
|
122 |
+
background-color: #F2F2F2;
|
123 |
+
padding: 8px;
|
124 |
+
border-radius: 5px;
|
125 |
}
|
126 |
|
127 |
+
/* ------------------------------------------------------------------
|
128 |
+
Search Input
|
129 |
+
------------------------------------------------------------------ */
|
130 |
input[type="text"] {
|
131 |
+
background-color: #F2F2F2;
|
132 |
+
color: #333333;
|
133 |
+
border: 1px solid #CCCCCC;
|
134 |
border-radius: 5px;
|
135 |
padding: 10px;
|
136 |
width: 100%;
|
|
|
139 |
}
|
140 |
|
141 |
input[type="text"]:focus {
|
142 |
+
border-color: #007BFF;
|
143 |
outline: none;
|
144 |
+
box-shadow: 0 0 5px rgba(0,123,255,0.5);
|
145 |
}
|
146 |
|
147 |
+
/* ------------------------------------------------------------------
|
148 |
+
No‐results Message
|
149 |
+
------------------------------------------------------------------ */
|
150 |
.no-results {
|
151 |
+
color: #333333;
|
152 |
text-align: center;
|
153 |
padding: 30px;
|
154 |
+
background-color: #FAFAFA;
|
155 |
border-radius: 10px;
|
156 |
font-size: 18px;
|
157 |
margin-top: 20px;
|