fabiogra commited on
Commit
2849148
1 Parent(s): 6182cce

style: css tabs and footer improvements

Browse files
Files changed (2) hide show
  1. app/footer.py +4 -4
  2. app/pages/Separate.py +13 -7
app/footer.py CHANGED
@@ -39,7 +39,7 @@ def layout(*args):
39
  style=styles(
40
  margin=px(0, 0, 0, 0),
41
  padding=px(5),
42
- font_size="0.8rem",
43
  color="rgb(51,51,51)",
44
  font_family="Exo",
45
  ),
@@ -98,12 +98,12 @@ def layout(*args):
98
 
99
  def footer():
100
  myargs = [
101
- "Made in ",
102
  link(
103
  "https://streamlit.io/",
104
- image("https://streamlit.io/images/brand/streamlit-mark-color.png", width="20px"),
105
  ),
106
- " with ❤️ by ",
107
  link("https://twitter.com/grsFabio", "@grsFabio"),
108
  "   ",
109
  link(
 
39
  style=styles(
40
  margin=px(0, 0, 0, 0),
41
  padding=px(5),
42
+ font_size="0.9rem",
43
  color="rgb(51,51,51)",
44
  font_family="Exo",
45
  ),
 
98
 
99
  def footer():
100
  myargs = [
101
+ "Made in 🇮🇹 with ",
102
  link(
103
  "https://streamlit.io/",
104
+ image("https://streamlit.io/images/brand/streamlit-mark-color.png", width="18px"),
105
  ),
106
+ " by ",
107
  link("https://twitter.com/grsFabio", "@grsFabio"),
108
  "   ",
109
  link(
app/pages/Separate.py CHANGED
@@ -88,11 +88,15 @@ def body():
88
  filename = None
89
  name_song = None
90
  st.markdown(
91
- """
92
- <style>
93
- div[data-baseweb="tab-list"] {
94
- align-items: center !important;
95
- justify-content: center !important;
 
 
 
 
96
  }
97
  </style>""",
98
  unsafe_allow_html=True,
@@ -209,8 +213,10 @@ def body():
209
  else:
210
  start_time = 0
211
  end_time = n_secs
212
- with st.columns([1, 3, 1])[1]:
213
- execute = st.button("Split Music 🎶", type="primary", use_container_width=True)
 
 
214
  if execute or st.session_state.executed:
215
  if execute:
216
  st.session_state.executed = False
 
88
  filename = None
89
  name_song = None
90
  st.markdown(
91
+ """<style>
92
+ div[data-baseweb="tab-list"] {
93
+ display: flex !important;
94
+ align-items: center !important;
95
+ justify-content: space-evenly !important;
96
+ flex-wrap: wrap !important;
97
+ .css-q8sbsg.e16nr0p34 p{
98
+ font-size: 1.1rem !important;
99
+ }
100
  }
101
  </style>""",
102
  unsafe_allow_html=True,
 
213
  else:
214
  start_time = 0
215
  end_time = n_secs
216
+ with st.columns([2, 1, 2])[1]:
217
+ execute = st.button(
218
+ "Separate Music Sources 🎶", type="primary", use_container_width=True
219
+ )
220
  if execute or st.session_state.executed:
221
  if execute:
222
  st.session_state.executed = False