adamelliotfields commited on
Commit
c851587
1 Parent(s): 301d341

Update styles

Browse files
Files changed (2) hide show
  1. app.css +56 -20
  2. partials/intro.html +9 -5
app.css CHANGED
@@ -4,58 +4,94 @@
4
  }
5
  .accordion > button {
6
  justify-content: flex-start;
 
 
 
 
7
  }
8
  .accordion > button > span:first-child {
9
  width: auto;
10
  margin-right: 4px;
11
  }
12
  .accordion .tabs {
13
- margin-top: 12px;
14
  }
15
  .accordion .tabitem > div {
16
  --block-border-width: 1px;
17
  }
18
 
19
- .tabs, .tabitem, .tab-nav, .tab-nav > .selected {
20
- border-width: 0px;
21
- }
22
- .tabitem {
23
- max-height: 600px;
24
- overflow-y: auto;
25
  }
26
- .tabitem .markdown {
27
- margin-top: 4px;
28
- margin-left: 8px;
29
  }
30
 
31
- .gallery {
32
- --block-border-width: 0px;
33
- background-color: transparent;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
35
 
36
  #intro {
 
 
 
37
  display: flex;
38
- align-items: center;
39
  }
40
- #intro > h1 > span {
41
- color: #047857 !important;
42
  font-style: italic;
 
43
  }
44
- #intro > h1 > span:is(.dark *) {
45
  color: #10b981 !important;
46
  }
47
- #intro > svg {
48
- display: inline-block;
49
  width: 1.5rem;
50
  height: 1.5rem;
51
  margin-top: 0.25rem;
52
  margin-left: 0.5rem;
 
53
  fill: #047857 !important;
54
  animation: spin 3s linear infinite reverse;
55
  }
56
- #intro > svg:is(.dark *) {
57
  fill: #10b981 !important;
58
  }
59
  @keyframes spin {
60
  100% { transform: rotate(360deg); }
61
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
  .accordion > button {
6
  justify-content: flex-start;
7
+ color: var(--body-text-color-subdued);
8
+ }
9
+ .accordion > button:hover {
10
+ color: var(--body-text-color);
11
  }
12
  .accordion > button > span:first-child {
13
  width: auto;
14
  margin-right: 4px;
15
  }
16
  .accordion .tabs {
17
+ margin-top: 8px;
18
  }
19
  .accordion .tabitem > div {
20
  --block-border-width: 1px;
21
  }
22
 
23
+ .gallery {
24
+ background-color: var(--bg);
 
 
 
 
25
  }
26
+ .gallery:is(.dark *) {
27
+ background-color: var(--bg-dark);
 
28
  }
29
 
30
+ .icon-button {
31
+ max-width: 42px;
32
+ position: relative;
33
+ }
34
+ .icon-button:hover::after {
35
+ white-space: nowrap;
36
+ position: absolute;
37
+ left: 50%;
38
+ bottom: calc(100% + 8px);
39
+ transform: translateX(-50%);
40
+ padding: 4px 8px;
41
+ border-radius: 4px;
42
+ border-width: 1px;
43
+ border-color: var(--button-secondary-border-color-hover);
44
+ background: var(--button-secondary-background-fill-hover);
45
+ color: var(--button-secondary-text-color-hover);
46
+ font-weight: var(--section-header-text-weight);
47
+ font-size: var(--section-header-text-size);
48
+ }
49
+ .icon-button#clear:hover::after {
50
+ content: 'Clear gallery';
51
+ }
52
+ .icon-button#random:hover::after {
53
+ content: 'Roll seed';
54
  }
55
 
56
  #intro {
57
+ margin-bottom: 8px !important;
58
+ }
59
+ #intro > div {
60
  display: flex;
 
61
  }
62
+ #intro > div > h1 > span {
 
63
  font-style: italic;
64
+ color: #047857 !important;
65
  }
66
+ #intro > div > h1 > span:is(.dark *) {
67
  color: #10b981 !important;
68
  }
69
+ #intro > div > svg {
 
70
  width: 1.5rem;
71
  height: 1.5rem;
72
  margin-top: 0.25rem;
73
  margin-left: 0.5rem;
74
+ align-self: center;
75
  fill: #047857 !important;
76
  animation: spin 3s linear infinite reverse;
77
  }
78
+ #intro > div > svg:is(.dark *) {
79
  fill: #10b981 !important;
80
  }
81
  @keyframes spin {
82
  100% { transform: rotate(360deg); }
83
  }
84
+
85
+ .tabs, .tabitem, .tab-nav, .tab-nav > .selected {
86
+ border-width: 0px;
87
+ }
88
+ .tabitem {
89
+ max-height: 600px;
90
+ overflow-y: auto;
91
+ }
92
+ .tabitem .markdown {
93
+ margin-left: 8px;
94
+ }
95
+ .tab-nav > button {
96
+ padding-bottom: 8px;
97
+ }
partials/intro.html CHANGED
@@ -1,7 +1,11 @@
1
  <div id="intro">
2
- <h1>Stable Diffusion <span>Zero</span></h1>
3
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 15 15">
4
- <path d="M7.48877 6.75C7.29015 6.75 7.09967 6.82902 6.95923 6.96967C6.81879 7.11032 6.73989 7.30109 6.73989 7.5C6.73989 7.69891 6.81879 7.88968 6.95923 8.03033C7.09967 8.17098 7.29015 8.25 7.48877 8.25C7.68738 8.25 7.87786 8.17098 8.0183 8.03033C8.15874 7.88968 8.23764 7.69891 8.23764 7.5C8.23764 7.30109 8.15874 7.11032 8.0183 6.96967C7.87786 6.82902 7.68738 6.75 7.48877 6.75ZM7.8632 0C11.2331 0 11.3155 2.6775 9.54818 3.5625C8.80679 3.93 8.47728 4.7175 8.335 5.415C8.69446 5.565 9.00899 5.7975 9.24863 6.0975C12.0195 4.5975 15 5.19 15 7.875C15 11.25 12.3265 11.325 11.4428 9.5475C11.0684 8.805 10.2746 8.475 9.57813 8.3325C9.42836 8.6925 9.19621 9 8.89665 9.255C10.3869 12.0225 9.79531 15 7.11433 15C3.74438 15 3.67698 12.315 5.44433 11.43C6.17823 11.0625 6.50774 10.2825 6.65751 9.5925C6.29056 9.4425 5.96855 9.2025 5.72891 8.9025C2.96555 10.3875 0 9.8025 0 7.125C0 3.75 2.666 3.6675 3.54967 5.445C3.92411 6.1875 4.71043 6.51 5.40689 6.6525C5.54918 6.2925 5.78882 5.9775 6.09586 5.7375C4.60559 2.97 5.1972 0 7.8632 0Z"></path>
5
- </svg>
 
 
 
 
 
6
  </div>
7
- <p>Stable Diffusion 1.5 powered by 🤗 <a href="https://huggingface.co/spaces/zero-gpu-explorers/README" target="_blank" rel="noopener noreferrer">ZeroGPU</a>.</p>
 
1
  <div id="intro">
2
+ <div>
3
+ <h1>
4
+ Stable Diffusion&nbsp;<span>Zero</span>
5
+ </h1>
6
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 15 15">
7
+ <path d="M7.48877 6.75C7.29015 6.75 7.09967 6.82902 6.95923 6.96967C6.81879 7.11032 6.73989 7.30109 6.73989 7.5C6.73989 7.69891 6.81879 7.88968 6.95923 8.03033C7.09967 8.17098 7.29015 8.25 7.48877 8.25C7.68738 8.25 7.87786 8.17098 8.0183 8.03033C8.15874 7.88968 8.23764 7.69891 8.23764 7.5C8.23764 7.30109 8.15874 7.11032 8.0183 6.96967C7.87786 6.82902 7.68738 6.75 7.48877 6.75ZM7.8632 0C11.2331 0 11.3155 2.6775 9.54818 3.5625C8.80679 3.93 8.47728 4.7175 8.335 5.415C8.69446 5.565 9.00899 5.7975 9.24863 6.0975C12.0195 4.5975 15 5.19 15 7.875C15 11.25 12.3265 11.325 11.4428 9.5475C11.0684 8.805 10.2746 8.475 9.57813 8.3325C9.42836 8.6925 9.19621 9 8.89665 9.255C10.3869 12.0225 9.79531 15 7.11433 15C3.74438 15 3.67698 12.315 5.44433 11.43C6.17823 11.0625 6.50774 10.2825 6.65751 9.5925C6.29056 9.4425 5.96855 9.2025 5.72891 8.9025C2.96555 10.3875 0 9.8025 0 7.125C0 3.75 2.666 3.6675 3.54967 5.445C3.92411 6.1875 4.71043 6.51 5.40689 6.6525C5.54918 6.2925 5.78882 5.9775 6.09586 5.7375C4.60559 2.97 5.1972 0 7.8632 0Z"></path>
8
+ </svg>
9
+ </div>
10
+ <p>Stable Diffusion 1.5 powered by 🤗 <a href="https://huggingface.co/spaces/zero-gpu-explorers/README" target="_blank" rel="noopener noreferrer">ZeroGPU</a>.</p>
11
  </div>