Leiyre HF staff commited on
Commit
7afacd5
1 Parent(s): cfcacb3

include custom css

Browse files
Files changed (1) hide show
  1. app.py +9 -35
app.py CHANGED
@@ -8,45 +8,19 @@ from src.distilabel_dataset_generator.apps.textcat import app as textcat_app
8
  theme ='argilla/argilla-theme'
9
 
10
  css = """
 
 
 
 
 
11
  .main_ui_logged_out{opacity: 0.3; pointer-events: none}
12
- .tabitem{border: 0px}
13
  .group_padding{padding: .55em}
 
 
14
  #space_model .wrap > label:last-child{opacity: 0.3; pointer-events:none}
15
  #system_prompt_examples {
16
- color: black;
17
- }
18
- @media (prefers-color-scheme: dark) {
19
- #system_prompt_examples {
20
- color: white;
21
- background-color: black;
22
- }
23
- }
24
- button[role="tab"].selected,
25
- button[role="tab"][aria-selected="true"],
26
- button[role="tab"][data-tab-id][aria-selected="true"] {
27
- background-color: #000000;
28
- color: white;
29
- border: none;
30
- font-size: 16px;
31
- font-weight: bold;
32
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
33
- transition: background-color 0.3s ease, color 0.3s ease;
34
- }
35
- .gallery {
36
- color: black !important;
37
- }
38
- @media (prefers-color-scheme: dark) {
39
- .gallery {
40
- color: white !important;
41
- }
42
- }
43
- .flex-shrink-0.truncate.px-1 {
44
- color: black !important;
45
- }
46
- @media (prefers-color-scheme: dark) {
47
- .flex-shrink-0.truncate.px-1 {
48
- color: white !important;
49
- }
50
  }
51
  """
52
 
 
8
  theme ='argilla/argilla-theme'
9
 
10
  css = """
11
+ button[role="tab"][aria-selected="true"] { border: 0; background: var(--neutral-800); color: white; border-top-right-radius: var(--radius-md); border-top-left-radius: var(--radius-md)}
12
+ button[role="tab"][aria-selected="true"]:hover {border-color: var(--button-primary-background-fill)}
13
+ button.hf-login {background: var(--neutral-800); color: white}
14
+ button.hf-login:hover {background: var(--neutral-700); color: white}
15
+ .tabitem { border: 0; padding-inline: 0}
16
  .main_ui_logged_out{opacity: 0.3; pointer-events: none}
 
17
  .group_padding{padding: .55em}
18
+ .gallery-item {background: var(--background-fill-secondary); text-align: left}
19
+ .gallery {white-space: wrap}
20
  #space_model .wrap > label:last-child{opacity: 0.3; pointer-events:none}
21
  #system_prompt_examples {
22
+ color: var(--body-text-color) !important;
23
+ background-color: var(--block-background-fill) !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  }
25
  """
26