Update style.css
Browse files
style.css
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
* {
|
| 2 |
box-sizing: border-box;
|
| 3 |
padding: 0;
|
|
@@ -5,105 +20,66 @@
|
|
| 5 |
font-family: sans-serif;
|
| 6 |
}
|
| 7 |
|
| 8 |
-
html,
|
| 9 |
-
body {
|
| 10 |
height: 100%;
|
|
|
|
| 11 |
}
|
| 12 |
|
| 13 |
body {
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
body,
|
| 19 |
-
#container {
|
| 20 |
display: flex;
|
| 21 |
flex-direction: column;
|
| 22 |
-
justify-content: center;
|
| 23 |
align-items: center;
|
|
|
|
|
|
|
| 24 |
}
|
| 25 |
|
| 26 |
#container {
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
width: 640px;
|
| 30 |
-
height: 640px;
|
| 31 |
-
max-width: 100%;
|
| 32 |
-
max-height: 100%;
|
| 33 |
-
border: 2px dashed #3572A5; /* Python blue */
|
| 34 |
-
border-radius: 0.75rem;
|
| 35 |
-
overflow: hidden;
|
| 36 |
-
cursor: pointer;
|
| 37 |
margin: 1rem;
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
background-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
| 44 |
}
|
| 45 |
|
| 46 |
textarea {
|
| 47 |
-
width:
|
| 48 |
-
height:
|
| 49 |
padding: 10px;
|
| 50 |
margin: 10px 0;
|
| 51 |
-
border: 1px solid
|
| 52 |
border-radius: 5px;
|
| 53 |
-
background-color: #
|
| 54 |
font-family: 'Courier New', Courier, monospace;
|
| 55 |
font-size: 16px;
|
|
|
|
| 56 |
}
|
| 57 |
|
| 58 |
button {
|
| 59 |
padding: 10px 20px;
|
| 60 |
-
background-color:
|
| 61 |
-
color:
|
| 62 |
border: none;
|
| 63 |
border-radius: 5px;
|
| 64 |
cursor: pointer;
|
| 65 |
font-size: 16px;
|
|
|
|
| 66 |
}
|
| 67 |
|
| 68 |
button:hover {
|
| 69 |
-
background-color:
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
#upload {
|
| 73 |
-
display: none;
|
| 74 |
-
}
|
| 75 |
-
|
| 76 |
-
svg {
|
| 77 |
-
pointer-events: none;
|
| 78 |
-
}
|
| 79 |
-
|
| 80 |
-
#example {
|
| 81 |
-
font-size: 14px;
|
| 82 |
-
text-decoration: underline;
|
| 83 |
-
color: #3572A5;
|
| 84 |
-
cursor: pointer;
|
| 85 |
-
}
|
| 86 |
-
|
| 87 |
-
#example:hover {
|
| 88 |
-
color: #2563EB;
|
| 89 |
-
}
|
| 90 |
-
|
| 91 |
-
.bounding-box {
|
| 92 |
-
position: absolute;
|
| 93 |
-
box-sizing: border-box;
|
| 94 |
-
border: solid 2px;
|
| 95 |
-
}
|
| 96 |
-
|
| 97 |
-
.bounding-box-label {
|
| 98 |
-
color: white;
|
| 99 |
-
position: absolute;
|
| 100 |
-
font-size: 12px;
|
| 101 |
-
margin: -16px 0 0 -2px;
|
| 102 |
-
padding: 1px;
|
| 103 |
}
|
| 104 |
|
| 105 |
#results {
|
| 106 |
-
width:
|
| 107 |
max-width: 640px;
|
| 108 |
background-color: #f0f0f0;
|
| 109 |
border: 1px solid #ddd;
|
|
@@ -111,4 +87,33 @@ svg {
|
|
| 111 |
padding: 10px;
|
| 112 |
margin-top: 10px;
|
| 113 |
overflow: auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
}
|
|
|
|
| 1 |
+
/* Base Styles */
|
| 2 |
+
:root {
|
| 3 |
+
--primary-color: #3572A5;
|
| 4 |
+
--secondary-color: #FFD43B;
|
| 5 |
+
--background-color: #f5f5f5;
|
| 6 |
+
--text-color: #282c34;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
[data-theme="dark"] {
|
| 10 |
+
--primary-color: #FFD43B;
|
| 11 |
+
--secondary-color: #3572A5;
|
| 12 |
+
--background-color: #282c34;
|
| 13 |
+
--text-color: #f5f5f5;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
* {
|
| 17 |
box-sizing: border-box;
|
| 18 |
padding: 0;
|
|
|
|
| 20 |
font-family: sans-serif;
|
| 21 |
}
|
| 22 |
|
| 23 |
+
html, body {
|
|
|
|
| 24 |
height: 100%;
|
| 25 |
+
width: 100%;
|
| 26 |
}
|
| 27 |
|
| 28 |
body {
|
| 29 |
+
background-color: var(--background-color);
|
| 30 |
+
color: var(--text-color);
|
| 31 |
+
padding: 16px;
|
|
|
|
|
|
|
|
|
|
| 32 |
display: flex;
|
| 33 |
flex-direction: column;
|
|
|
|
| 34 |
align-items: center;
|
| 35 |
+
justify-content: flex-start;
|
| 36 |
+
transition: background-color 0.3s, color 0.3s;
|
| 37 |
}
|
| 38 |
|
| 39 |
#container {
|
| 40 |
+
width: 100%;
|
| 41 |
+
max-width: 640px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
margin: 1rem;
|
| 43 |
+
border: 2px dashed var(--primary-color);
|
| 44 |
+
border-radius: 0.75rem;
|
| 45 |
+
padding: 16px;
|
| 46 |
+
background-color: var(--secondary-color);
|
| 47 |
+
color: var(--text-color);
|
| 48 |
+
text-align: center;
|
| 49 |
+
transition: background-color 0.3s, border-color 0.3s;
|
| 50 |
}
|
| 51 |
|
| 52 |
textarea {
|
| 53 |
+
width: 100%;
|
| 54 |
+
height: 180px;
|
| 55 |
padding: 10px;
|
| 56 |
margin: 10px 0;
|
| 57 |
+
border: 1px solid var(--primary-color);
|
| 58 |
border-radius: 5px;
|
| 59 |
+
background-color: #ffffff;
|
| 60 |
font-family: 'Courier New', Courier, monospace;
|
| 61 |
font-size: 16px;
|
| 62 |
+
resize: vertical;
|
| 63 |
}
|
| 64 |
|
| 65 |
button {
|
| 66 |
padding: 10px 20px;
|
| 67 |
+
background-color: var(--primary-color);
|
| 68 |
+
color: var(--text-color);
|
| 69 |
border: none;
|
| 70 |
border-radius: 5px;
|
| 71 |
cursor: pointer;
|
| 72 |
font-size: 16px;
|
| 73 |
+
transition: background-color 0.3s;
|
| 74 |
}
|
| 75 |
|
| 76 |
button:hover {
|
| 77 |
+
background-color: var(--secondary-color);
|
| 78 |
+
color: var(--primary-color);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
}
|
| 80 |
|
| 81 |
#results {
|
| 82 |
+
width: 100%;
|
| 83 |
max-width: 640px;
|
| 84 |
background-color: #f0f0f0;
|
| 85 |
border: 1px solid #ddd;
|
|
|
|
| 87 |
padding: 10px;
|
| 88 |
margin-top: 10px;
|
| 89 |
overflow: auto;
|
| 90 |
+
color: #333;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
/* Toggle for Light/Dark Mode */
|
| 94 |
+
#toggle-theme {
|
| 95 |
+
margin: 10px;
|
| 96 |
+
cursor: pointer;
|
| 97 |
+
color: var(--primary-color);
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
/* Responsive Design */
|
| 101 |
+
@media (max-width: 768px) {
|
| 102 |
+
body {
|
| 103 |
+
padding: 8px;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
#container, #results {
|
| 107 |
+
width: 100%;
|
| 108 |
+
padding: 12px;
|
| 109 |
+
font-size: 16px;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
textarea {
|
| 113 |
+
height: 120px;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
button {
|
| 117 |
+
width: 100%;
|
| 118 |
+
}
|
| 119 |
}
|