datasciencedojo commited on
Commit
70e1662
1 Parent(s): 7ca549f

added button css

Browse files
Files changed (1) hide show
  1. app.py +41 -2
app.py CHANGED
@@ -35,7 +35,46 @@ css = """
35
  footer {display:none !important}
36
  .output-markdown{display:none !important}
37
  footer {visibility: hidden}
38
- #dsd_button {background: purple, color: white}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  #component-14 textarea[data-testid="textbox"] { height: 178px !important}
41
  #component-17 textarea[data-testid="textbox"] { height: 178px !important}
@@ -71,7 +110,7 @@ with gr.Blocks(title="Wikipedia Article Scrape | Data Science Dojo", css = css)
71
  inp = gr.Textbox(placeholder="Enter the name of wikipedia article", label="Wikipedia article name")
72
  lan = gr.Dropdown(label=" Select Language", choices=language, value=language[108], interactive=True)
73
 
74
- btn = gr.Button("Start Scraping", elem_id="dsd_button")
75
  with gr.Row():
76
  with gr.Column():
77
  gr.Markdown("""## About""")
 
35
  footer {display:none !important}
36
  .output-markdown{display:none !important}
37
  footer {visibility: hidden}
38
+
39
+ .gr-button-lg {
40
+ z-index: 14;
41
+ width: 113px;
42
+ height: 30px;
43
+ left: 0px;
44
+ top: 0px;
45
+ padding: 0px;
46
+ cursor: pointer !important;
47
+ background: none rgb(17, 20, 45) !important;
48
+ border: none !important;
49
+ text-align: center !important;
50
+ font-size: 14px !important;
51
+ font-weight: 500 !important;
52
+ color: rgb(255, 255, 255) !important;
53
+ line-height: 1 !important;
54
+ border-radius: 6px !important;
55
+ transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
56
+ box-shadow: none !important;
57
+ }
58
+ .gr-button-lg:hover{
59
+ z-index: 14;
60
+ width: 113px;
61
+ height: 30px;
62
+ left: 0px;
63
+ top: 0px;
64
+ padding: 0px;
65
+ cursor: pointer !important;
66
+ background: none rgb(37, 56, 133) !important;
67
+ border: none !important;
68
+ text-align: center !important;
69
+ font-size: 14px !important;
70
+ font-weight: 500 !important;
71
+ color: rgb(255, 255, 255) !important;
72
+ line-height: 1 !important;
73
+ border-radius: 6px !important;
74
+ transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
75
+ box-shadow: rgb(0 0 0 / 23%) 0px 1px 7px 0px !important;
76
+ }
77
+
78
 
79
  #component-14 textarea[data-testid="textbox"] { height: 178px !important}
80
  #component-17 textarea[data-testid="textbox"] { height: 178px !important}
 
110
  inp = gr.Textbox(placeholder="Enter the name of wikipedia article", label="Wikipedia article name")
111
  lan = gr.Dropdown(label=" Select Language", choices=language, value=language[108], interactive=True)
112
 
113
+ btn = gr.Button("Start scraping", elem_id="dsd_button")
114
  with gr.Row():
115
  with gr.Column():
116
  gr.Markdown("""## About""")