Skip to content

Commit 43ef917

Browse files
authored
Merge pull request #1467 from thunderstore-io/06-09-refactor_upload_page
Refactor upload page
2 parents fd252f5 + a6002e4 commit 43ef917

File tree

12 files changed

+985
-654
lines changed

12 files changed

+985
-654
lines changed

apps/cyberstorm-remix/app/upload/Upload.css

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,34 @@
5252
background-color: var(--border-default);
5353
}
5454

55+
.upload__no-teams {
56+
display: flex;
57+
gap: 4px;
58+
align-items: center;
59+
}
60+
61+
.upload__no-teams-text {
62+
color: var(--color-text-secondary);
63+
font-weight: var(--font-weight-medium);
64+
65+
font-size: var(--font-size-body-md);
66+
}
67+
68+
.upload__category {
69+
display: flex;
70+
flex-direction: column;
71+
gap: var(--gap-xs);
72+
align-items: flex-start;
73+
align-self: stretch;
74+
}
75+
76+
.upload__category-label {
77+
color: var(--color-text-secondary);
78+
font-weight: var(--font-weight-medium);
79+
80+
font-size: var(--font-size-body-md);
81+
}
82+
5583
.drag-n-drop {
5684
display: flex;
5785
flex: 1 0 0;
@@ -69,6 +97,11 @@
6997
cursor: pointer;
7098
}
7199

100+
.drag-n-drop--success {
101+
border: 2px solid var(--color-cyber-green-7);
102+
background: var(--color-surface-1);
103+
}
104+
72105
.drag-n-drop__body {
73106
display: flex;
74107
flex-direction: column;
@@ -102,13 +135,37 @@
102135
text-align: center;
103136
}
104137

138+
.drag-n-drop__remove-button {
139+
color: var(--color-text-tertiary);
140+
font-weight: var(--font-weight-regular);
141+
font-size: var(--font-size-body-md);
142+
background: transparent;
143+
text-decoration-line: underline;
144+
text-decoration-style: solid;
145+
text-decoration-skip-ink: none;
146+
text-decoration-thickness: auto;
147+
text-underline-offset: auto;
148+
text-underline-position: from-font;
149+
}
150+
151+
.upload__nsfw-switch {
152+
display: flex;
153+
flex-direction: row;
154+
gap: var(--gap-md);
155+
align-items: center;
156+
align-self: flex-start;
157+
justify-content: flex-start;
158+
}
159+
105160
.upload__buttons {
106161
display: flex;
107162
flex-direction: row;
108163
gap: var(--gap-md);
164+
align-self: stretch;
109165
}
110166

111167
.upload__submit {
168+
flex: 1;
112169
align-self: stretch;
113170
}
114171

0 commit comments

Comments
 (0)