fffiloni commited on
Commit
7dec02f
·
1 Parent(s): cf0d196

update css part for share btn

Browse files
Files changed (1) hide show
  1. app.py +27 -0
app.py CHANGED
@@ -73,6 +73,33 @@ css = '''
73
  .dark .footer>p {
74
  background: #0b0f19;
75
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  '''
77
 
78
  with gr.Blocks(css=css) as demo:
 
73
  .dark .footer>p {
74
  background: #0b0f19;
75
  }
76
+ .animate-spin {
77
+ animation: spin 1s linear infinite;
78
+ }
79
+ @keyframes spin {
80
+ from {
81
+ transform: rotate(0deg);
82
+ }
83
+ to {
84
+ transform: rotate(360deg);
85
+ }
86
+ }
87
+ #share-btn-container {
88
+ display: flex; padding-left: 0.5rem !important; padding-right: 0.5rem !important; background-color: #000000; justify-content: center; align-items: center; border-radius: 9999px !important; width: 13rem;
89
+ }
90
+ #share-btn {
91
+ all: initial; color: #ffffff;font-weight: 600; cursor:pointer; font-family: 'IBM Plex Sans', sans-serif; margin-left: 0.5rem !important; padding-top: 0.25rem !important; padding-bottom: 0.25rem !important;right:0;
92
+ }
93
+ #share-btn * {
94
+ all: unset;
95
+ }
96
+ #share-btn-container div:nth-child(-n+2){
97
+ width: auto !important;
98
+ min-height: 0px !important;
99
+ }
100
+ #share-btn-container .wrap {
101
+ display: none !important;
102
+ }
103
  '''
104
 
105
  with gr.Blocks(css=css) as demo: