You've already forked AstralRinth
* update add files copy and go to next step on just one file * rename and reorder stages * add metadata stage and update details stage * implement files inside metadata stage * use regular prettier instead of prettier eslint * remove changelog stage config * save button on details stage * update edit buttons in versions table * add collapse environment selector * implement dependencies list in metadata step * move dependencies into provider * add suggested dependencies to metadata stage * pnpm prepr * fix unused var * Revert "add collapse environment selector" This reverts commit f90fabc7a57ff201f26e1b628eeced8e6ef75865. * hide resource pack loader only when its the only loader * fix no dependencies for modpack * add breadcrumbs with hide breadcrumb option * wider stages * add proper horizonal scroll breadcrumbs * fix titles * handle save version in version page * remove box shadow * add notification provider to storybook * add drop area for versions to drop file right into page * fix mobile versions table buttons overflowing * pnpm prepr * fix drop file opening modal in wrong stage * implement invalid file for dropping files * allow horizontal scroll on breadcrumbs * update infer.js as best as possible * add create version button uploading version state * add extractVersionFromFilename for resource pack and datapack * allow jars for datapack project * detect multiple loaders when possible * iris means compatible with optifine too * infer environment on loader change as well * add tooltip * prevent navigate forward when cannot go to next step * larger breadcrumb click targets * hide loaders and mc versions stage until files added * fix max width in header * fix add files from metadata step jumping steps * define width in NewModal instead * disable remove dependency in metadata stage * switch metadata and details buttons positions * fix remove button spacing * do not allow duplicate suggested dependencies * fix version detection for fabric minecraft version semvar * better verion number detection based on filename * show resource pack loader but uneditable * remove vanilla shader detection * refactor: break up large infer.js into ts and modules * remove duplicated types * add fill missing from file name step * pnpm prepr * fix neoforge loader parse failing and not adding neoforge loader * add missing pack formats * handle new pack format * pnpm prepr * add another regex where it is version in anywhere in filename * only show resource pack or data pack options for filetype on datapack project * add redundant zip folder check * reject RP and DP if has redundant folder * fix hide stage in breadcrumb * add snapshot group key in case no release version. brings out 26.1 snapshots * pnpm prepr * open in group if has something selected * fix resource pack loader uneditable if accidentally selected on different project type * add new environment tags * add unknown and not applicable environment tags * pnpm prepr * use shared constant on labels * use ref for timeout * remove console logs * remove box shadow only for cm-content * feat: xhr upload + fix wrangler prettierignore * fix: upload content type fix * fix dependencies version width * fix already added dependencies logic * add changelog minheight * set progress percentage on button * add legacy fabric detection logic * lint * small update on create version button label --------- Co-authored-by: Calum H. (IMB11) <contact@cal.engineer> Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
251 lines
4.1 KiB
SCSS
251 lines
4.1 KiB
SCSS
// Use border box on everything to preserve everyone's sanity
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
// Defaults
|
|
background-color: var(--color-bg);
|
|
color: var(--color-base);
|
|
--font-standard:
|
|
Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Oxygen, Ubuntu, Roboto, Cantarell,
|
|
Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
|
--mono-font: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
|
|
font-family: var(--font-standard);
|
|
font-size: 16px;
|
|
font-weight: var(--font-weight-regular);
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
// Font Sizes
|
|
--font-size-xxs: 0.625rem; //10px
|
|
--font-size-xs: 0.75rem; //12px
|
|
--font-size-sm: 0.875rem; //14px
|
|
--font-size-nm: 1rem; //16px
|
|
--font-size-md: 1.125rem; //18px
|
|
--font-size-lg: 1.25rem; //20px
|
|
--font-size-xl: 1.5rem; //24px
|
|
--font-size-2xl: 2rem; //32px
|
|
--font-size-3xl: 3rem; //48px
|
|
|
|
// Font Weights
|
|
--font-weight-regular: 400;
|
|
--font-weight-medium: 500;
|
|
--font-weight-bold: 700;
|
|
--font-weight-extrabold: 800;
|
|
|
|
--font-weight-text: var(--font-weight-medium);
|
|
--font-weight-heading: var(--font-weight-extrabold);
|
|
--font-weight-title: var(--font-weight-extrabold);
|
|
}
|
|
|
|
a.uncolored {
|
|
color: inherit;
|
|
}
|
|
|
|
input[type='text'],
|
|
input[type='url'],
|
|
input[type='number'],
|
|
input[type='password'],
|
|
textarea,
|
|
.input-text-inherit,
|
|
.cm-content {
|
|
border-radius: var(--radius-md);
|
|
box-sizing: border-box;
|
|
// safari iOS rounds inputs by default
|
|
// set the appearance to none to prevent this
|
|
appearance: none !important;
|
|
background: var(--color-button-bg);
|
|
color: var(--color-base);
|
|
padding: 0.5rem 1rem;
|
|
font-weight: var(--font-weight-medium);
|
|
transition: box-shadow 0.1s ease-in-out;
|
|
min-height: 36px;
|
|
box-shadow:
|
|
var(--shadow-inset-sm),
|
|
0 0 0 0 transparent;
|
|
border: none;
|
|
outline: none;
|
|
|
|
&:disabled,
|
|
&[disabled] {
|
|
opacity: 0.6;
|
|
pointer-events: none;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
&:focus::placeholder {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
&::placeholder {
|
|
color: var(--color-base);
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
.cm-content {
|
|
white-space: pre-wrap !important;
|
|
box-shadow: none;
|
|
}
|
|
|
|
input[type='number'] {
|
|
&::-webkit-inner-spin-button,
|
|
&::-webkit-outer-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.dropdown-input {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 1px;
|
|
.animated-dropdown {
|
|
width: unset;
|
|
|
|
.selected {
|
|
border-radius: var(--radius-md) 0 0 var(--radius-md);
|
|
|
|
&.render-down {
|
|
border-radius: var(--radius-md) 0 0 0;
|
|
}
|
|
|
|
&.render-up {
|
|
border-radius: 0 0 0 var(--radius-md);
|
|
}
|
|
}
|
|
}
|
|
|
|
input {
|
|
border-radius: 0 var(--radius-md) var(--radius-md) 0;
|
|
}
|
|
}
|
|
|
|
.iconified-input {
|
|
align-items: center;
|
|
display: inline-flex;
|
|
position: relative;
|
|
|
|
input {
|
|
padding: 0 0.5rem 0 2.5rem;
|
|
width: 100%;
|
|
}
|
|
|
|
&:focus-within svg {
|
|
opacity: 1;
|
|
color: var(--color-contrast);
|
|
}
|
|
|
|
svg {
|
|
position: absolute;
|
|
left: 0.75rem;
|
|
height: 1.25rem;
|
|
width: 1.25rem;
|
|
z-index: 1;
|
|
|
|
color: var(--color-base);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.r-btn {
|
|
@extend .transparent, .icon-only;
|
|
|
|
position: absolute;
|
|
right: 0.125rem;
|
|
z-index: 1;
|
|
|
|
svg {
|
|
position: relative;
|
|
left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
svg {
|
|
height: 1em;
|
|
width: 1em;
|
|
}
|
|
|
|
.chart {
|
|
svg {
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.button-animation {
|
|
transition:
|
|
opacity 0.5s ease-in-out,
|
|
filter 0.2s ease-in-out,
|
|
transform 0.05s ease-in-out,
|
|
outline 0.2s ease-in-out;
|
|
|
|
&:active:not(&:disabled) {
|
|
transform: scale(0.95);
|
|
}
|
|
}
|
|
|
|
input,
|
|
button {
|
|
&:disabled {
|
|
cursor: not-allowed !important;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion) {
|
|
.button-animation,
|
|
button {
|
|
transform: none !important;
|
|
}
|
|
}
|
|
|
|
input,
|
|
button {
|
|
&:disabled {
|
|
cursor: not-allowed !important;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion) {
|
|
.button-animation,
|
|
button {
|
|
transform: none !important;
|
|
}
|
|
}
|
|
|
|
h1 {
|
|
color: var(--color-contrast);
|
|
}
|
|
|
|
h2 {
|
|
margin-top: 0;
|
|
margin-bottom: 1rem;
|
|
color: var(--color-contrast);
|
|
}
|
|
|
|
h3 {
|
|
margin-block: var(--gap-md) var(--gap-md);
|
|
color: var(--color-contrast);
|
|
}
|
|
|
|
// Scrollbar styles
|
|
::-webkit-scrollbar {
|
|
width: 0.75rem;
|
|
height: 0.75rem;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--color-button-bg);
|
|
}
|
|
|
|
// Firefox scrollbar
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--color-button-bg) transparent;
|
|
}
|