2024-08-15 23:21:30 -07:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { computed } from 'vue'
|
|
|
|
|
|
|
|
|
|
const props = withDefaults(
|
2025-08-14 21:48:38 +01:00
|
|
|
defineProps<{
|
|
|
|
|
color?: 'standard' | 'brand' | 'red' | 'orange' | 'green' | 'blue' | 'purple'
|
|
|
|
|
size?: 'standard' | 'large' | 'small'
|
|
|
|
|
circular?: boolean
|
|
|
|
|
type?: 'standard' | 'outlined' | 'transparent' | 'highlight' | 'highlight-colored-text'
|
|
|
|
|
colorFill?: 'auto' | 'background' | 'text' | 'none'
|
|
|
|
|
hoverColorFill?: 'auto' | 'background' | 'text' | 'none'
|
|
|
|
|
highlightedStyle?: 'main-nav-primary' | 'main-nav-secondary'
|
|
|
|
|
highlighted?: boolean
|
|
|
|
|
}>(),
|
|
|
|
|
{
|
|
|
|
|
color: 'standard',
|
|
|
|
|
size: 'standard',
|
|
|
|
|
circular: false,
|
|
|
|
|
type: 'standard',
|
|
|
|
|
colorFill: 'auto',
|
|
|
|
|
hoverColorFill: 'auto',
|
|
|
|
|
highlightedStyle: 'main-nav-primary',
|
|
|
|
|
highlighted: false,
|
|
|
|
|
},
|
2024-08-15 23:21:30 -07:00
|
|
|
)
|
|
|
|
|
|
2025-04-18 22:23:30 -07:00
|
|
|
const highlightedColorVar = computed(() => {
|
2025-08-14 21:48:38 +01:00
|
|
|
switch (props.color) {
|
|
|
|
|
case 'brand':
|
|
|
|
|
return 'var(--color-brand-highlight)'
|
|
|
|
|
case 'red':
|
|
|
|
|
return 'var(--color-red-highlight)'
|
|
|
|
|
case 'orange':
|
|
|
|
|
return 'var(--color-orange-highlight)'
|
|
|
|
|
case 'green':
|
|
|
|
|
return 'var(--color-green-highlight)'
|
|
|
|
|
case 'blue':
|
|
|
|
|
return 'var(--color-blue-highlight)'
|
|
|
|
|
case 'purple':
|
|
|
|
|
return 'var(--color-purple-highlight)'
|
|
|
|
|
case 'standard':
|
|
|
|
|
default:
|
|
|
|
|
return null
|
|
|
|
|
}
|
2025-04-18 22:23:30 -07:00
|
|
|
})
|
|
|
|
|
|
2024-08-15 23:21:30 -07:00
|
|
|
const colorVar = computed(() => {
|
2025-08-14 21:48:38 +01:00
|
|
|
switch (props.color) {
|
|
|
|
|
case 'brand':
|
|
|
|
|
return 'var(--color-brand)'
|
|
|
|
|
case 'red':
|
|
|
|
|
return 'var(--color-red)'
|
|
|
|
|
case 'orange':
|
|
|
|
|
return 'var(--color-orange)'
|
|
|
|
|
case 'green':
|
|
|
|
|
return 'var(--color-green)'
|
|
|
|
|
case 'blue':
|
|
|
|
|
return 'var(--color-blue)'
|
|
|
|
|
case 'purple':
|
|
|
|
|
return 'var(--color-purple)'
|
|
|
|
|
case 'standard':
|
|
|
|
|
default:
|
|
|
|
|
return null
|
|
|
|
|
}
|
2024-08-15 23:21:30 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const height = computed(() => {
|
2025-08-14 21:48:38 +01:00
|
|
|
if (props.size === 'large') {
|
|
|
|
|
return '3rem'
|
|
|
|
|
} else if (props.size === 'small') {
|
|
|
|
|
return '1.5rem'
|
|
|
|
|
}
|
|
|
|
|
return '2.25rem'
|
2024-08-15 23:21:30 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const width = computed(() => {
|
2025-08-14 21:48:38 +01:00
|
|
|
if (props.size === 'large') {
|
|
|
|
|
return props.circular ? '3rem' : 'auto'
|
|
|
|
|
} else if (props.size === 'small') {
|
|
|
|
|
return props.circular ? '1.5rem' : 'auto'
|
|
|
|
|
}
|
|
|
|
|
return props.circular ? '2.25rem' : 'auto'
|
2024-08-15 23:21:30 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const paddingX = computed(() => {
|
2025-08-14 21:48:38 +01:00
|
|
|
let padding = props.circular ? '0.5rem' : '0.75rem'
|
|
|
|
|
if (props.size === 'large') {
|
|
|
|
|
padding = props.circular ? '0.75rem' : '1rem'
|
|
|
|
|
} else if (props.size === 'small') {
|
|
|
|
|
padding = props.circular ? '0.125rem' : '0.5rem'
|
|
|
|
|
}
|
|
|
|
|
return `calc(${padding} - 0.125rem)`
|
2024-08-15 23:21:30 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const paddingY = computed(() => {
|
2025-08-14 21:48:38 +01:00
|
|
|
if (props.size === 'large') {
|
|
|
|
|
return '0.75rem'
|
|
|
|
|
}
|
|
|
|
|
return '0.5rem'
|
2024-08-15 23:21:30 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const gap = computed(() => {
|
2025-08-14 21:48:38 +01:00
|
|
|
if (props.size === 'large') {
|
|
|
|
|
return '0.5rem'
|
|
|
|
|
} else if (props.size === 'small') {
|
|
|
|
|
return '0.25rem'
|
|
|
|
|
}
|
|
|
|
|
return '0.375rem'
|
2024-08-15 23:21:30 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const fontWeight = computed(() => {
|
2025-08-14 21:48:38 +01:00
|
|
|
if (props.size === 'large') {
|
|
|
|
|
return '800'
|
|
|
|
|
}
|
|
|
|
|
return '600'
|
2024-08-15 23:21:30 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const radius = computed(() => {
|
2025-08-14 21:48:38 +01:00
|
|
|
if (props.circular) {
|
|
|
|
|
return '99999px'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (props.size === 'large') {
|
|
|
|
|
return '1rem'
|
|
|
|
|
} else if (props.size === 'small') {
|
|
|
|
|
return '0.5rem'
|
|
|
|
|
}
|
|
|
|
|
return '0.75rem'
|
2024-08-15 23:21:30 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const iconSize = computed(() => {
|
2025-08-14 21:48:38 +01:00
|
|
|
if (props.size === 'large') {
|
|
|
|
|
return '1.5rem'
|
|
|
|
|
} else if (props.size === 'small') {
|
|
|
|
|
return '1rem'
|
|
|
|
|
}
|
|
|
|
|
return '1.25rem'
|
2024-08-15 23:21:30 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
function setColorFill(
|
2025-08-14 21:48:38 +01:00
|
|
|
colors: { bg: string; text: string },
|
|
|
|
|
fill: 'background' | 'text' | 'none',
|
2024-08-15 23:21:30 -07:00
|
|
|
): { bg: string; text: string } {
|
2025-08-14 21:48:38 +01:00
|
|
|
if (colorVar.value) {
|
|
|
|
|
if (fill === 'background') {
|
|
|
|
|
if (props.type === 'highlight' && highlightedColorVar.value) {
|
|
|
|
|
colors.bg = highlightedColorVar.value
|
|
|
|
|
colors.text = 'var(--color-contrast)'
|
|
|
|
|
} else if (props.type === 'highlight-colored-text' && highlightedColorVar.value) {
|
|
|
|
|
colors.bg = highlightedColorVar.value
|
|
|
|
|
colors.text = colorVar.value
|
|
|
|
|
} else {
|
|
|
|
|
colors.bg = colorVar.value
|
|
|
|
|
colors.text = 'var(--color-accent-contrast)'
|
|
|
|
|
}
|
|
|
|
|
} else if (fill === 'text') {
|
|
|
|
|
colors.text = colorVar.value
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return colors
|
2024-08-15 23:21:30 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const colorVariables = computed(() => {
|
2025-08-14 21:48:38 +01:00
|
|
|
if (props.highlighted) {
|
|
|
|
|
const colors = {
|
|
|
|
|
bg:
|
|
|
|
|
props.highlightedStyle === 'main-nav-primary'
|
|
|
|
|
? 'var(--color-brand-highlight)'
|
|
|
|
|
: 'var(--color-button-bg)',
|
|
|
|
|
text: 'var(--color-contrast)',
|
|
|
|
|
icon:
|
|
|
|
|
props.highlightedStyle === 'main-nav-primary'
|
|
|
|
|
? 'var(--color-brand)'
|
|
|
|
|
: 'var(--color-contrast)',
|
|
|
|
|
}
|
|
|
|
|
const hoverColors = JSON.parse(JSON.stringify(colors))
|
|
|
|
|
return `--_bg: ${colors.bg}; --_text: ${colors.text}; --_icon: ${colors.icon}; --_hover-bg: ${hoverColors.bg}; --_hover-text: ${hoverColors.text}; --_hover-icon: ${hoverColors.icon};`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let colors = {
|
|
|
|
|
bg: 'var(--color-button-bg)',
|
|
|
|
|
text: 'var(--color-base)',
|
|
|
|
|
}
|
|
|
|
|
let hoverColors = JSON.parse(JSON.stringify(colors))
|
|
|
|
|
|
|
|
|
|
if (props.type === 'outlined') {
|
|
|
|
|
hoverColors.bg = 'transparent'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (props.type === 'outlined' || props.type === 'transparent') {
|
|
|
|
|
colors.bg = 'transparent'
|
|
|
|
|
colors = setColorFill(colors, props.colorFill === 'auto' ? 'text' : props.colorFill)
|
|
|
|
|
hoverColors = setColorFill(
|
|
|
|
|
hoverColors,
|
|
|
|
|
props.hoverColorFill === 'auto' ? 'text' : props.hoverColorFill,
|
|
|
|
|
)
|
|
|
|
|
} else {
|
|
|
|
|
colors = setColorFill(colors, props.colorFill === 'auto' ? 'background' : props.colorFill)
|
|
|
|
|
hoverColors = setColorFill(
|
|
|
|
|
hoverColors,
|
|
|
|
|
props.hoverColorFill === 'auto' ? 'background' : props.hoverColorFill,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return `--_bg: ${colors.bg}; --_text: ${colors.text}; --_hover-bg: ${hoverColors.bg}; --_hover-text: ${hoverColors.text};`
|
2024-08-15 23:21:30 -07:00
|
|
|
})
|
2025-05-07 19:08:38 -07:00
|
|
|
|
|
|
|
|
const fontSize = computed(() => {
|
2025-08-14 21:48:38 +01:00
|
|
|
if (props.size === 'small') {
|
|
|
|
|
return 'text-sm'
|
|
|
|
|
}
|
|
|
|
|
return 'text-base'
|
2025-05-07 19:08:38 -07:00
|
|
|
})
|
2024-08-15 23:21:30 -07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2025-08-14 21:48:38 +01:00
|
|
|
<div
|
|
|
|
|
class="btn-wrapper"
|
|
|
|
|
:class="[{ outline: type === 'outlined' }, fontSize]"
|
|
|
|
|
:style="`${colorVariables}--_height:${height};--_width:${width};--_radius: ${radius};--_padding-x:${paddingX};--_padding-y:${paddingY};--_gap:${gap};--_font-weight:${fontWeight};--_icon-size:${iconSize};`"
|
|
|
|
|
>
|
|
|
|
|
<slot />
|
|
|
|
|
</div>
|
2024-08-15 23:21:30 -07:00
|
|
|
</template>
|
|
|
|
|
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
<style scoped lang="scss">
|
2024-08-15 23:21:30 -07:00
|
|
|
.btn-wrapper {
|
2025-08-14 21:48:38 +01:00
|
|
|
display: contents;
|
2024-08-15 23:21:30 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Searches up to 4 children deep for valid button */
|
App redesign (#2946)
* Start of app redesign
* format
* continue progress
* Content page nearly done
* Fix recursion issues with content page
* Fix update all alignment
* Discover page progress
* Settings progress
* Removed unlocked-size hack that breaks web
* Revamp project page, refactor web project page to share code with app, fixed loading bar, misc UI/UX enhancements, update ko-fi logo, update arrow icons, fix web issues caused by floating-vue migration, fix tooltip issues, update web tooltips, clean up web hydration issues
* Ads + run prettier
* Begin auth refactor, move common messages to ui lib, add i18n extraction to all apps, begin Library refactor
* fix ads not hiding when plus log in
* rev lockfile changes/conflicts
* Fix sign in page
* Add generated
* (mostly) Data driven search
* Fix search mobile issue
* profile fixes
* Project versions page, fix typescript on UI lib and misc fixes
* Remove unused gallery component
* Fix linkfunction err
* Search filter controls at top, localization for locked filters
* Fix provided filter names
* Fix navigating from instance browse to main browse
* Friends frontend (#2995)
* Friends system frontend
* (almost) finish frontend
* finish friends, fix lint
* Fix lint
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
* Refresh macOS app icon
* Update web search UI more
* Fix link opens
* Fix frontend build
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Jai A <jaiagr+gpg@pm.me>
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
2024-12-11 19:54:18 -08:00
|
|
|
.btn-wrapper :deep(:is(button, a, .button-like):first-child),
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
.btn-wrapper :slotted(:is(button, a, .button-like):first-child),
|
|
|
|
|
.btn-wrapper :slotted(*) > :is(button, a, .button-like):first-child,
|
|
|
|
|
.btn-wrapper :slotted(*) > *:first-child > :is(button, a, .button-like):first-child,
|
|
|
|
|
.btn-wrapper
|
2025-08-14 21:48:38 +01:00
|
|
|
:slotted(*)
|
|
|
|
|
> *:first-child
|
|
|
|
|
> *:first-child
|
|
|
|
|
> :is(button, a, .button-like):first-child {
|
|
|
|
|
@apply flex cursor-pointer flex-row items-center justify-center border-solid border-2 border-transparent bg-[--_bg] text-[--_text] h-[--_height] min-w-[--_width] rounded-[--_radius] px-[--_padding-x] py-[--_padding-y] gap-[--_gap] font-[--_font-weight] whitespace-nowrap;
|
|
|
|
|
transition:
|
|
|
|
|
scale 0.125s ease-in-out,
|
|
|
|
|
background-color 0.25s ease-in-out,
|
|
|
|
|
color 0.25s ease-in-out;
|
|
|
|
|
|
|
|
|
|
svg:first-child {
|
|
|
|
|
color: var(--_icon, var(--_text));
|
|
|
|
|
transition: color 0.25s ease-in-out;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&[disabled],
|
|
|
|
|
&[disabled='true'],
|
|
|
|
|
&.disabled,
|
|
|
|
|
&.looks-disabled {
|
|
|
|
|
@apply opacity-50;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&[disabled],
|
|
|
|
|
&[disabled='true'],
|
|
|
|
|
&.disabled {
|
|
|
|
|
@apply cursor-not-allowed;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:not([disabled]):not([disabled='true']):not(.disabled) {
|
|
|
|
|
@apply active:scale-95 hover:brightness-[--hover-brightness] focus-visible:brightness-[--hover-brightness] hover:bg-[--_hover-bg] hover:text-[--_hover-text] focus-visible:bg-[--_hover-bg] focus-visible:text-[--_hover-text];
|
|
|
|
|
|
|
|
|
|
&:hover svg:first-child,
|
|
|
|
|
&:focus-visible svg:first-child {
|
|
|
|
|
color: var(--_hover-icon, var(--_hover-text));
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-08-15 23:21:30 -07:00
|
|
|
}
|
|
|
|
|
|
App redesign (#2946)
* Start of app redesign
* format
* continue progress
* Content page nearly done
* Fix recursion issues with content page
* Fix update all alignment
* Discover page progress
* Settings progress
* Removed unlocked-size hack that breaks web
* Revamp project page, refactor web project page to share code with app, fixed loading bar, misc UI/UX enhancements, update ko-fi logo, update arrow icons, fix web issues caused by floating-vue migration, fix tooltip issues, update web tooltips, clean up web hydration issues
* Ads + run prettier
* Begin auth refactor, move common messages to ui lib, add i18n extraction to all apps, begin Library refactor
* fix ads not hiding when plus log in
* rev lockfile changes/conflicts
* Fix sign in page
* Add generated
* (mostly) Data driven search
* Fix search mobile issue
* profile fixes
* Project versions page, fix typescript on UI lib and misc fixes
* Remove unused gallery component
* Fix linkfunction err
* Search filter controls at top, localization for locked filters
* Fix provided filter names
* Fix navigating from instance browse to main browse
* Friends frontend (#2995)
* Friends system frontend
* (almost) finish frontend
* finish friends, fix lint
* Fix lint
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
* Refresh macOS app icon
* Update web search UI more
* Fix link opens
* Fix frontend build
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Jai A <jaiagr+gpg@pm.me>
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
2024-12-11 19:54:18 -08:00
|
|
|
.btn-wrapper.outline :deep(:is(button, a, .button-like):first-child),
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
.btn-wrapper.outline :slotted(:is(button, a, .button-like):first-child),
|
|
|
|
|
.btn-wrapper.outline :slotted(*) > :is(button, a, .button-like):first-child,
|
|
|
|
|
.btn-wrapper.outline :slotted(*) > *:first-child > :is(button, a, .button-like):first-child,
|
|
|
|
|
.btn-wrapper.outline
|
2025-08-14 21:48:38 +01:00
|
|
|
:slotted(*)
|
|
|
|
|
> *:first-child
|
|
|
|
|
> *:first-child
|
|
|
|
|
> :is(button, a, .button-like):first-child {
|
|
|
|
|
@apply border-current;
|
2024-08-15 23:21:30 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*noinspection CssUnresolvedCustomProperty*/
|
App redesign (#2946)
* Start of app redesign
* format
* continue progress
* Content page nearly done
* Fix recursion issues with content page
* Fix update all alignment
* Discover page progress
* Settings progress
* Removed unlocked-size hack that breaks web
* Revamp project page, refactor web project page to share code with app, fixed loading bar, misc UI/UX enhancements, update ko-fi logo, update arrow icons, fix web issues caused by floating-vue migration, fix tooltip issues, update web tooltips, clean up web hydration issues
* Ads + run prettier
* Begin auth refactor, move common messages to ui lib, add i18n extraction to all apps, begin Library refactor
* fix ads not hiding when plus log in
* rev lockfile changes/conflicts
* Fix sign in page
* Add generated
* (mostly) Data driven search
* Fix search mobile issue
* profile fixes
* Project versions page, fix typescript on UI lib and misc fixes
* Remove unused gallery component
* Fix linkfunction err
* Search filter controls at top, localization for locked filters
* Fix provided filter names
* Fix navigating from instance browse to main browse
* Friends frontend (#2995)
* Friends system frontend
* (almost) finish frontend
* finish friends, fix lint
* Fix lint
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
* Refresh macOS app icon
* Update web search UI more
* Fix link opens
* Fix frontend build
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Jai A <jaiagr+gpg@pm.me>
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
2024-12-11 19:54:18 -08:00
|
|
|
.btn-wrapper :deep(:is(button, a, .button-like):first-child) > svg:first-child,
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
.btn-wrapper :slotted(:is(button, a, .button-like):first-child) > svg:first-child,
|
|
|
|
|
.btn-wrapper :slotted(*) > :is(button, a, .button-like):first-child > svg:first-child,
|
|
|
|
|
.btn-wrapper
|
2025-08-14 21:48:38 +01:00
|
|
|
:slotted(*)
|
|
|
|
|
> *:first-child
|
|
|
|
|
> :is(button, a, .button-like):first-child
|
|
|
|
|
> svg:first-child,
|
2024-08-15 23:21:30 -07:00
|
|
|
.btn-wrapper
|
2025-08-14 21:48:38 +01:00
|
|
|
:slotted(*)
|
|
|
|
|
> *:first-child
|
|
|
|
|
> *:first-child
|
|
|
|
|
> :is(button, a, .button-like):first-child
|
|
|
|
|
> svg:first-child {
|
|
|
|
|
min-width: var(--_icon-size, 1rem);
|
|
|
|
|
min-height: var(--_icon-size, 1rem);
|
2024-08-15 23:21:30 -07:00
|
|
|
}
|
|
|
|
|
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
.joined-buttons {
|
2025-08-14 21:48:38 +01:00
|
|
|
display: flex;
|
|
|
|
|
gap: 1px;
|
|
|
|
|
|
|
|
|
|
> .btn-wrapper:not(:first-child) {
|
|
|
|
|
:deep(:is(button, a, .button-like):first-child),
|
|
|
|
|
:slotted(:is(button, a, .button-like):first-child),
|
|
|
|
|
:slotted(*) > :is(button, a, .button-like):first-child,
|
|
|
|
|
:slotted(*) > *:first-child > :is(button, a, .button-like):first-child,
|
|
|
|
|
:slotted(*) > *:first-child > *:first-child > :is(button, a, .button-like):first-child {
|
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> :not(:last-child) {
|
|
|
|
|
:deep(:is(button, a, .button-like):first-child),
|
|
|
|
|
:slotted(:is(button, a, .button-like):first-child),
|
|
|
|
|
:slotted(*) > :is(button, a, .button-like):first-child,
|
|
|
|
|
:slotted(*) > *:first-child > :is(button, a, .button-like):first-child,
|
|
|
|
|
:slotted(*) > *:first-child > *:first-child > :is(button, a, .button-like):first-child {
|
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
}
|
|
|
|
|
|
2024-08-15 23:21:30 -07:00
|
|
|
/* guys, I know this is nuts, I know */
|
|
|
|
|
</style>
|