Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Ortiz committed Sep 7, 2024
1 parent be03027 commit 4886332
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 66 deletions.
130 changes: 65 additions & 65 deletions src/tools/border-generator/border-generator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,71 +72,6 @@ border-radius: ${borders.value.topLeft.value}${unit.value} ${borders.value.topRi
});
</script>

<style scoped>
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
}
.square {
width: 250px;
height: 250px;
background-color: #f3f3f3;
}
.controls {
width: 100%;
}
.radius-controls,
.border-controls {
display: flex;
justify-content: space-around;
align-items: center;
gap: 20px;
}
.half-slider,
.border-width-slider {
position: relative;
padding: 10px 0;
width: 60%;
}
.half-slider span,
.border-width-slider span {
position: absolute;
right: 0;
top: 30px;
background-color: #fff;
padding: 2px 6px;
border-radius: 5px;
font-size: 0.9em;
color: #333;
}
.border-style-select {
width: 30%;
}
n-slider {
width: calc(100% - 60px);
}
.controls .n-form-item__label {
min-width: 70px;
text-align: right;
}
n-select,
n-color-picker {
width: 100%;
}
</style>

<template>
<div class="container">
<div class="square" :style="styleObject" />
Expand Down Expand Up @@ -212,3 +147,68 @@ n-color-picker {
</NCard>
</div>
</template>

<style scoped>
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
}
.square {
width: 250px;
height: 250px;
background-color: #f3f3f3;
}
.controls {
width: 100%;
}
.radius-controls,
.border-controls {
display: flex;
justify-content: space-around;
align-items: center;
gap: 20px;
}
.half-slider,
.border-width-slider {
position: relative;
padding: 10px 0;
width: 60%;
}
.half-slider span,
.border-width-slider span {
position: absolute;
right: 0;
top: 30px;
background-color: #fff;
padding: 2px 6px;
border-radius: 5px;
font-size: 0.9em;
color: #333;
}
.border-style-select {
width: 30%;
}
n-slider {
width: calc(100% - 60px);
}
.controls .n-form-item__label {
min-width: 70px;
text-align: right;
}
n-select,
n-color-picker {
width: 100%;
}
</style>
2 changes: 1 addition & 1 deletion src/tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,5 @@ export const toolsByCategory: ToolCategory[] = [

export const tools = toolsByCategory.flatMap(({ components }) => components);
export const toolsWithCategory = toolsByCategory.flatMap(({ components, name }) =>
components.map((tool) => ({ category: name, ...tool })),
components.map(tool) => ({ category: name, ...tool }),
);

0 comments on commit 4886332

Please sign in to comment.