Create styles.html
Browse files- styles.html +42 -0
styles.html
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<style>
|
2 |
+
/* Base CSS for components */
|
3 |
+
.st-emotion-cache-13ln4jf { /* Targets the sidebar container */
|
4 |
+
width: 350px !important;
|
5 |
+
}
|
6 |
+
.custom-dropdown {
|
7 |
+
position: relative; display: inline-block; width: 100%;
|
8 |
+
}
|
9 |
+
.size-button {
|
10 |
+
background-color: #f0f2f6; color: #31333F; padding: 8px 12px;
|
11 |
+
border: 1px solid #ced4da; border-radius: 0.5rem; cursor: pointer;
|
12 |
+
display: flex; justify-content: space-between; align-items: center;
|
13 |
+
width: 100%; font-size: 14px;
|
14 |
+
}
|
15 |
+
.size-button:hover { border-color: #4A90E2; }
|
16 |
+
.dropdown-content {
|
17 |
+
display: none; position: absolute; background-color: #ffffff;
|
18 |
+
min-width: 300px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
19 |
+
z-index: 1000; border-radius: 0.5rem; padding: 8px 0; border: 1px solid #ddd;
|
20 |
+
}
|
21 |
+
.custom-dropdown:hover .dropdown-content { display: block; }
|
22 |
+
.dropdown-item {
|
23 |
+
display: flex; align-items: center; padding: 10px 15px;
|
24 |
+
color: #31333F; text-decoration: none; gap: 15px;
|
25 |
+
}
|
26 |
+
.dropdown-item:hover, .dropdown-item.active { background-color: #f0f2f6; }
|
27 |
+
.item-icon { font-size: 20px; }
|
28 |
+
.item-text { flex-grow: 1; }
|
29 |
+
.item-primary { font-weight: 500; }
|
30 |
+
.item-subtitle { font-size: 12px; color: #555; }
|
31 |
+
.item-checkmark { font-weight: bold; color: #4A90E2; width: 20px; text-align: right; }
|
32 |
+
|
33 |
+
.dynamic-canvas-container {
|
34 |
+
width: 100%; max-width: 90vw; margin: 2rem auto; border: 1px solid #EAECEE;
|
35 |
+
box-shadow: 0 4px 8px rgba(0,0,0,0.05); border-radius: 8px; padding: 2%;
|
36 |
+
overflow: hidden; resize: both; transition: aspect-ratio 0.3s ease-in-out;
|
37 |
+
display: flex; flex-direction: column; background: #fff;
|
38 |
+
}
|
39 |
+
.dynamic-canvas-container .stTextArea textarea {
|
40 |
+
transition: font-size 0.2s;
|
41 |
+
}
|
42 |
+
</style>
|