ngoctuanai commited on
Commit
91ef084
·
1 Parent(s): 3bab0ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -20
app.py CHANGED
@@ -80,8 +80,8 @@ css = """
80
  max-width: 900px;
81
  margin: auto;
82
  padding-top: 1.5rem;
83
- border-radius: 15px; /* 添加圆角边框 */
84
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* 可选:为深度添加阴影 */
85
  }
86
 
87
  /* Button Styles */
@@ -90,53 +90,53 @@ css = """
90
  border-color: black;
91
  background: black;
92
  white-space: nowrap;
93
- border-radius: 8px; /* 圆角按钮 */
94
- transition: background-color 0.3s, color 0.3s; /* 平滑的悬停效果过渡 */
95
  }
96
 
97
  .gr-button:hover {
98
- background-color: #555; /* 悬停时略微变亮的黑色 */
99
  color: #fff;
100
  }
101
 
102
  .gr-button:focus {
103
- /* [其他焦点样式] */
104
  }
105
 
106
  /* Textbox Styles */
107
  .gr-textbox {
108
- border-radius: 8px; /* 文本框的圆角边框 */
109
- border: 1px solid #ccc; /* 添加微弱的边框 */
110
- transition: border-color 0.3s; /* 焦点效果的过渡 */
111
  }
112
 
113
  .gr-textbox:focus {
114
- border-color: #333; /* 焦点时较暗的边框 */
115
- outline: none; /* 移除默认轮廓 */
116
  }
117
 
118
  /* Footer Styles */
119
- /* [这里不需要更改,除非你想要圆角边框] */
120
 
121
  /* Share Button Styles */
122
  #share-btn-container {
123
- /* [现有样式] */
124
- border-radius: 20px; /* 更圆角的分享按钮容器 */
125
  }
126
 
127
  /* Animation Styles */
128
- /* [这里不需要更改] */
129
 
130
  /* Gallery Styles */
131
  #gallery {
132
- /* [现有样式] */
133
- border-radius: 12px; /* 图库的圆角边框 */
134
  }
135
 
136
- /* 图片大小限制 */
137
  .gradio-container img {
138
- max-width: 100%; /* 图片宽度不超过父容器的100% */
139
- height: auto; /* 自适应高度 */
140
  }
141
  """
142
 
 
80
  max-width: 900px;
81
  margin: auto;
82
  padding-top: 1.5rem;
83
+ border-radius: 15px; /* Add rounded corners */
84
+ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a box shadow for depth */
85
  }
86
 
87
  /* Button Styles */
 
90
  border-color: black;
91
  background: black;
92
  white-space: nowrap;
93
+ border-radius: 8px; /* Rounded buttons */
94
+ transition: background-color 0.3s, color 0.3s; /* Smooth hover effect transition */
95
  }
96
 
97
  .gr-button:hover {
98
+ background-color: #555; /* Slightly lighter black on hover */
99
  color: #fff;
100
  }
101
 
102
  .gr-button:focus {
103
+ /* [Other focus styles] */
104
  }
105
 
106
  /* Textbox Styles */
107
  .gr-textbox {
108
+ border-radius: 8px; /* Rounded corners for textboxes */
109
+ border: 1px solid #ccc; /* Add a subtle border */
110
+ transition: border-color 0.3s; /* Transition for focus effect */
111
  }
112
 
113
  .gr-textbox:focus {
114
+ border-color: #333; /* Darker border on focus */
115
+ outline: none; /* Remove default outline */
116
  }
117
 
118
  /* Footer Styles */
119
+ /* [No changes needed here unless you want rounded corners] */
120
 
121
  /* Share Button Styles */
122
  #share-btn-container {
123
+ /* [Existing styles] */
124
+ border-radius: 20px; /* More rounded edges for the share button container */
125
  }
126
 
127
  /* Animation Styles */
128
+ /* [No changes needed here] */
129
 
130
  /* Gallery Styles */
131
  #gallery {
132
+ /* [Existing styles] */
133
+ border-radius: 12px; /* Rounded corners for the gallery */
134
  }
135
 
136
+ /* Reduce image size */
137
  .gradio-container img {
138
+ max-width: 50%; /* Adjust the percentage to make images smaller */
139
+ height: auto; /* Maintain aspect ratio */
140
  }
141
  """
142