tebicap commited on
Commit
4e096f1
·
verified ·
1 Parent(s): 31ab20e

mejora estilo título y función ampliar gráfico

Browse files
Files changed (1) hide show
  1. main.py +31 -2
main.py CHANGED
@@ -40,7 +40,8 @@ def html_principal():
40
  font-style: italic;
41
  font-size: 21px;
42
  text-align: center;
43
- background-image: linear-gradient(180deg, #9bff5fcf, transparent);
 
44
  margin-top: 0px;
45
  padding-top: 8px;
46
  padding-bottom: 7px;
@@ -49,12 +50,14 @@ def html_principal():
49
  position: fixed;
50
  left: 0px;
51
  right: 0px;
 
52
  }
53
  .grafico_img{
54
  max-width: 98vw;
55
  margin: 0 auto;
56
  display: block;
57
  margin-top: 20px;
 
58
  }
59
  p {
60
  color: #4567a5;
@@ -181,6 +184,30 @@ def html_principal():
181
  .hotmap-abierto{
182
  height: 500px;
183
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  /* pantalla grandecita */
185
  @media only screen and (min-width: 700px){
186
  p {
@@ -267,7 +294,9 @@ def html_principal():
267
  <!-- TradingView Widget END -->
268
 
269
  <!-- Elemento para mostrar gráfico -->
270
- <img class="grafico_img" id="grafico_img" src="">
 
 
271
 
272
  <!-- TradingView Widget BEGIN -->
273
  <!-- Este widget se edita en: "https://www.tradingview.com/widget-docs/widgets/tickers/ticker-tape/" -->
 
40
  font-style: italic;
41
  font-size: 21px;
42
  text-align: center;
43
+ /* background-image: linear-gradient(180deg, #9bff5fcf, transparent); */
44
+ background-image: linear-gradient(180deg, #b3ff5fd1, #edffd182 80%, #edffd100); /*este para usar con backdrop */
45
  margin-top: 0px;
46
  padding-top: 8px;
47
  padding-bottom: 7px;
 
50
  position: fixed;
51
  left: 0px;
52
  right: 0px;
53
+ backdrop-filter: blur(12px);
54
  }
55
  .grafico_img{
56
  max-width: 98vw;
57
  margin: 0 auto;
58
  display: block;
59
  margin-top: 20px;
60
+ transition: all 0.5s ease;
61
  }
62
  p {
63
  color: #4567a5;
 
184
  .hotmap-abierto{
185
  height: 500px;
186
  }
187
+ .imagen-container{
188
+ background-color: none;
189
+ border: none;
190
+ }
191
+ .imagen-container-big{
192
+ display: inline-flex;
193
+ position: fixed;
194
+ top: 0px;
195
+ bottom: 0px;
196
+ left: 0px;
197
+ right: 0px;
198
+ overflow: hidden;
199
+ z-index: 999;
200
+ flex-direction: column;
201
+ align-items: center;
202
+ justify-content: center;
203
+ background-color: #000000cf;
204
+ }
205
+ .imagen-container-big > img {
206
+ margin: 0;
207
+ max-width: 90vh;
208
+ transform: rotate(90deg);
209
+ transform-origin: center;
210
+ }
211
  /* pantalla grandecita */
212
  @media only screen and (min-width: 700px){
213
  p {
 
294
  <!-- TradingView Widget END -->
295
 
296
  <!-- Elemento para mostrar gráfico -->
297
+ <div class="imagen-container" id="imagen-container" onclick="this.classList.toggle('imagen-container-big')">
298
+ <img class="grafico_img" id="grafico_img" src="">
299
+ </div>
300
 
301
  <!-- TradingView Widget BEGIN -->
302
  <!-- Este widget se edita en: "https://www.tradingview.com/widget-docs/widgets/tickers/ticker-tape/" -->