Spaces:
Sleeping
Sleeping
Update styles.py
Browse files
styles.py
CHANGED
@@ -1,35 +1,38 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
def apply_styles():
|
4 |
-
# Estilos generales de la p谩gina
|
5 |
st.markdown("""
|
6 |
<style>
|
7 |
-
/*
|
8 |
.block-container {
|
9 |
-
padding-top:
|
10 |
-
padding-bottom:
|
|
|
11 |
}
|
12 |
|
13 |
-
/* Estilos del t铆tulo */
|
14 |
h1 {
|
15 |
-
margin-top: 0rem;
|
16 |
-
padding-top: 0.5rem;
|
17 |
color: #2C3E50;
|
18 |
font-family: 'Helvetica Neue', sans-serif;
|
19 |
-
font-size:
|
20 |
-
|
|
|
|
|
|
|
21 |
}
|
22 |
|
23 |
/* Estilos del subt铆tulo */
|
24 |
h3 {
|
25 |
-
margin-top: 0.5rem;
|
26 |
-
padding-top: 0rem;
|
27 |
color: #34495E;
|
28 |
font-family: 'Helvetica Neue', sans-serif;
|
29 |
-
font-size: 1.
|
30 |
line-height: 1.6;
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
-
|
33 |
/* Estilos del bot贸n */
|
34 |
div.stButton > button {
|
35 |
background-color: #2ECC71;
|
@@ -52,45 +55,6 @@ def apply_styles():
|
|
52 |
box-shadow: 0 6px 8px rgba(0,0,0,0.2);
|
53 |
transform: translateY(-2px);
|
54 |
}
|
55 |
-
|
56 |
-
/* Estilos del texto de salida */
|
57 |
-
.story-output {
|
58 |
-
border: 1px solid #ddd;
|
59 |
-
border-radius: 12px;
|
60 |
-
padding: 25px;
|
61 |
-
background-color: #ffffff;
|
62 |
-
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
63 |
-
margin: 20px 0;
|
64 |
-
font-size: 1.1rem;
|
65 |
-
line-height: 1.8;
|
66 |
-
}
|
67 |
-
|
68 |
-
/* Estilos del manual en sidebar */
|
69 |
-
.sidebar .sidebar-content {
|
70 |
-
background-color: #f8f9fa;
|
71 |
-
padding: 20px;
|
72 |
-
}
|
73 |
-
|
74 |
-
/* Estilos de los inputs */
|
75 |
-
.stTextInput > div > div > input {
|
76 |
-
border-radius: 8px;
|
77 |
-
border: 1px solid #ddd;
|
78 |
-
padding: 10px;
|
79 |
-
font-size: 1rem;
|
80 |
-
}
|
81 |
-
|
82 |
-
/* Estilos del expander */
|
83 |
-
.streamlit-expanderHeader {
|
84 |
-
background-color: #f8f9fa;
|
85 |
-
border-radius: 8px;
|
86 |
-
padding: 10px;
|
87 |
-
}
|
88 |
-
|
89 |
-
/* Estilos del interlineado general */
|
90 |
-
p {
|
91 |
-
line-height: 1.8;
|
92 |
-
margin-bottom: 1.2rem;
|
93 |
-
}
|
94 |
</style>
|
95 |
""", unsafe_allow_html=True)
|
96 |
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
def apply_styles():
|
|
|
4 |
st.markdown("""
|
5 |
<style>
|
6 |
+
/* Ajustes para el contenedor principal */
|
7 |
.block-container {
|
8 |
+
padding-top: 2rem !important;
|
9 |
+
padding-bottom: 2rem !important;
|
10 |
+
margin-top: 0 !important;
|
11 |
}
|
12 |
|
13 |
+
/* Estilos del t铆tulo principal */
|
14 |
h1 {
|
|
|
|
|
15 |
color: #2C3E50;
|
16 |
font-family: 'Helvetica Neue', sans-serif;
|
17 |
+
font-size: 3.2rem !important;
|
18 |
+
font-weight: 700;
|
19 |
+
margin: 1rem 0 !important;
|
20 |
+
padding: 0 !important;
|
21 |
+
text-align: center;
|
22 |
}
|
23 |
|
24 |
/* Estilos del subt铆tulo */
|
25 |
h3 {
|
|
|
|
|
26 |
color: #34495E;
|
27 |
font-family: 'Helvetica Neue', sans-serif;
|
28 |
+
font-size: 1.3rem !important;
|
29 |
line-height: 1.6;
|
30 |
+
margin: 1rem auto !important;
|
31 |
+
padding: 0 !important;
|
32 |
+
max-width: 800px;
|
33 |
+
text-align: center;
|
34 |
}
|
35 |
+
|
36 |
/* Estilos del bot贸n */
|
37 |
div.stButton > button {
|
38 |
background-color: #2ECC71;
|
|
|
55 |
box-shadow: 0 6px 8px rgba(0,0,0,0.2);
|
56 |
transform: translateY(-2px);
|
57 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
</style>
|
59 |
""", unsafe_allow_html=True)
|
60 |
|