ngoctuanai commited on
Commit
fa07f4a
·
1 Parent(s): 445a9bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -18
app.py CHANGED
@@ -73,21 +73,20 @@ def generate_txt2img(current_model, prompt, is_negative=False, image_style="None
73
  return image
74
 
75
  css = """
76
- /* Custom CSS */
77
  .gradio-container {
78
  font-family: 'IBM Plex Sans', sans-serif;
79
- max-width: 900px;
80
  margin: auto;
81
- padding: 2rem;
82
- border-radius: 15px;
83
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
84
  text-align: center; /* Center the content horizontally */
85
  }
86
 
87
  /* Button Styles */
88
  .gr-button {
89
  color: white;
90
- background-color: #007bff; /* Use a primary color for the background */
 
91
  border: none;
92
  padding: 10px 20px;
93
  border-radius: 8px;
@@ -96,27 +95,45 @@ css = """
96
  }
97
 
98
  .gr-button:hover {
99
- background-color: #0056b3; /* Darken the background color on hover */
100
  }
101
 
102
- /* Textbox Styles */
103
- .gr-textbox {
104
- border-radius: 8px;
105
- border: 1px solid #ccc;
106
- padding: 10px;
107
- transition: border-color 0.3s;
 
 
 
 
 
 
 
108
  }
109
 
110
- .gr-textbox:focus {
111
- border-color: #007bff;
112
- outline: none;
 
 
 
 
 
 
 
 
 
 
 
 
113
  }
114
 
115
  /* Centered Container for the Image */
116
  .image-container {
117
  max-width: 100%; /* Set the maximum width for the container */
118
- margin: 0 auto; /* Center the container horizontally */
119
- text-align: center; /* Center the content inside the container horizontally */
120
  padding: 20px; /* Add padding for spacing */
121
  border: 1px solid #ccc; /* Add a subtle border to the container */
122
  border-radius: 10px;
 
73
  return image
74
 
75
  css = """
76
+ /* General Container Styles */
77
  .gradio-container {
78
  font-family: 'IBM Plex Sans', sans-serif;
79
+ max-width: 730px !important;
80
  margin: auto;
81
+ padding-top: 1.5rem;
 
 
82
  text-align: center; /* Center the content horizontally */
83
  }
84
 
85
  /* Button Styles */
86
  .gr-button {
87
  color: white;
88
+ background: black;
89
+ white-space: nowrap;
90
  border: none;
91
  padding: 10px 20px;
92
  border-radius: 8px;
 
95
  }
96
 
97
  .gr-button:hover {
98
+ background-color: #060606; /* Darken the background color on hover */
99
  }
100
 
101
+ /* Share Button Styles */
102
+ #share-btn-container {
103
+ padding: 0.5rem !important;
104
+ background-color: #000000;
105
+ justify-content: center;
106
+ align-items: center;
107
+ border-radius: 9999px !important;
108
+ max-width: 13rem;
109
+ margin: 0 auto; /* Center the container horizontally */
110
+ }
111
+
112
+ #share-btn-container:hover {
113
+ background-color: #060606;
114
  }
115
 
116
+ #share-btn {
117
+ all: initial;
118
+ color: #ffffff;
119
+ font-weight: 600;
120
+ cursor: pointer;
121
+ font-family: 'IBM Plex Sans', sans-serif;
122
+ margin: 0.5rem !important;
123
+ padding: 0.5rem !important;
124
+ }
125
+ /* Other Styles */
126
+ #gallery {
127
+ min-height: 22rem;
128
+ margin: auto; /* Center the gallery horizontally */
129
+ border-bottom-right-radius: 0.5rem !important;
130
+ border-bottom-left-radius: 0.5rem !important;
131
  }
132
 
133
  /* Centered Container for the Image */
134
  .image-container {
135
  max-width: 100%; /* Set the maximum width for the container */
136
+ margin: auto; /* Center the container horizontally */
 
137
  padding: 20px; /* Add padding for spacing */
138
  border: 1px solid #ccc; /* Add a subtle border to the container */
139
  border-radius: 10px;