Refactor border radius variable: rename $standard-border-radius to $border-radius-standard and update usage across components; add types for Album, Artist, and Genre
This commit is contained in:
1 parent
8a3f6c3248
commit
1950b883f8
7 files changed
+25
-6
No files matched your search
@@ -7,4 +7,4 @@ $color-button: rgba(255, 255, 255, 0.08);
|
|||||||
$color-button-hover: rgba(255, 255, 255, 0.16);
|
$color-button-hover: rgba(255, 255, 255, 0.16);
|
||||||
$color-attention: #fc8181;
|
$color-attention: #fc8181;
|
||||||
|
|
||||||
$standard-border-radius: 0.3rem;
|
$border-radius-standard: 0.3rem;
|
||||||
+1
-1
@@ -45,7 +45,7 @@ const props = withDefaults(defineProps<ButtonProps>(), {
|
|||||||
.button {
|
.button {
|
||||||
padding: 0.6rem 1rem;
|
padding: 0.6rem 1rem;
|
||||||
transition: background-color 0.2s ease-in-out;
|
transition: background-color 0.2s ease-in-out;
|
||||||
border-radius: $standard-border-radius;
|
border-radius: $border-radius-standard;
|
||||||
|
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ const props = defineProps<CardProps>()
|
|||||||
|
|
||||||
.card {
|
.card {
|
||||||
border: 1px solid $color-border;
|
border: 1px solid $color-border;
|
||||||
border-radius: $standard-border-radius;
|
border-radius: $border-radius-standard;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
+1
-1
@@ -77,7 +77,7 @@ const props = defineProps<CheckboxProps>()
|
|||||||
height: 1rem;
|
height: 1rem;
|
||||||
width: 1rem;
|
width: 1rem;
|
||||||
border: 1px solid $color-border;
|
border: 1px solid $color-border;
|
||||||
border-radius: $standard-border-radius;
|
border-radius: $border-radius-standard;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
transition: background-color 0.2s, border-color 0.2s;
|
transition: background-color 0.2s, border-color 0.2s;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -70,7 +70,7 @@ const props = defineProps<InputProps>()
|
|||||||
}
|
}
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
border-radius: $standard-border-radius;
|
border-radius: $border-radius-standard;
|
||||||
border: 1px solid $color-border;
|
border: 1px solid $color-border;
|
||||||
|
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1rem;
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ const { toasts, remove } = useToast()
|
|||||||
.toast {
|
.toast {
|
||||||
background-color: $color-background;
|
background-color: $color-background;
|
||||||
border: 1px solid $color-border;
|
border: 1px solid $color-border;
|
||||||
border-radius: $standard-border-radius;
|
border-radius: $border-radius-standard;
|
||||||
|
|
||||||
padding: 10px 16px;
|
padding: 10px 16px;
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
interface Base {
|
||||||
|
_id: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Album extends Base {
|
||||||
|
name: string
|
||||||
|
file: string
|
||||||
|
artists: Artist[]
|
||||||
|
genre: Genre
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Artist extends Base {
|
||||||
|
name: string
|
||||||
|
file: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Genre extends Base {
|
||||||
|
name: string
|
||||||
|
}
|
||||||
Reference in new issue
Block a user