Skip to content

Commit

Permalink
css変更
Browse files Browse the repository at this point in the history
  • Loading branch information
Nattuki committed Jul 14, 2024
1 parent bd61a01 commit f45499f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
11 changes: 10 additions & 1 deletion src/pages/registerView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@
<div :class="$style.itemC">C</div>
</div>
</div>
<radio-card
title="title"
content="選択肢の説明"
input-id="1"
name="a"
value="a"
/>
</template>

<script setup lang="ts"></script>
<script setup lang="ts">
import RadioCard from '@/shared/components/RadioCard.vue';
</script>

<style lang="scss" module>
.wrapper {
Expand Down
21 changes: 14 additions & 7 deletions src/shared/components/RadioCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/>
<label
:class="$style.container"
:style="`width: ${props.width}; height: ${props.height}`"
:style="`width: ${props.width}`"
:for="props.inputId"
>
<div :class="$style.title_wrapper">
Expand All @@ -35,7 +35,6 @@ const props = withDefaults(
}>(),
{
width: '310px',
height: '88px',
},
);
Expand All @@ -46,9 +45,12 @@ const model = defineModel<string>();
.container {
box-shadow: inset 0 0 0 1px $color-secondary;
border-radius: 4px;
display: inline-block;
display: flex;
width: 351px;
padding: 16px;
font-size: 16px;
flex-direction: column;
align-items: flex-start;
gap: 8px;
cursor: pointer;
}
Expand All @@ -63,8 +65,8 @@ const model = defineModel<string>();
.title_wrapper {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
align-items: flex-start;
align-self: stretch;
}
.title {
Expand All @@ -73,9 +75,13 @@ const model = defineModel<string>();
}
.content {
color: $color-text-secondary;
font-size: 16px;
text-align: left;
align-self: stretch;
color: $color-text-dimmed;
font-size: 16px;
font-weight: 500;
line-height: normal;
}
.input {
Expand All @@ -87,6 +93,7 @@ const model = defineModel<string>();
position: relative;
width: 24px;
height: 24px;
flex-shrink: 0;
}
.btn::before {
Expand Down
1 change: 1 addition & 0 deletions src/styles/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $color-text-secondary: #515151;
$color-text-secondary-pale: #5151515d;
$color-text-secondary-disabled: #939393;
$color-text-white: #ffffff;
$color-text-dimmed: #626264;

$color-container-secondary: #f1f1f4;

Expand Down

0 comments on commit f45499f

Please sign in to comment.