Skip to content

Commit d2ace11

Browse files
committed
コンポーネントのスタイルを調整
1 parent c6d4721 commit d2ace11

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

components/ActionButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default class ActionButton extends Vue {
7171
display: inline-block;
7272
width: 100%;
7373
font-weight: 600;
74-
padding: 0.8em 1em;
74+
padding: 0.8em 1.5em;
7575
border-radius: 0.5em;
7676
border: none;
7777
color: $white;
@@ -97,7 +97,7 @@ export default class ActionButton extends Vue {
9797
&-outline {
9898
background-color: $white;
9999
color: $primary;
100-
border: 2px solid currentColor;
100+
box-shadow: 0 0 0 2px currentColor inset;
101101
}
102102
&-text {
103103
background-color: transparent;

components/InputField.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ export default Vue.extend({
190190
&::placeholder {
191191
color: $gray-2;
192192
}
193+
&[type='datetime-local'] {
194+
padding: 12px 16px;
195+
}
193196
}
194197
.labelText {
195198
display: block;

components/ModalBase.vue

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
@click="showContent ? (showContent = false) : $emit('close')"
77
>
88
<transition name="modalContentTransition" @after-leave="$emit('close')">
9-
<div v-if="showContent" class="modalContent" @click.stop>
9+
<div
10+
v-if="showContent"
11+
:class="['modalContent', wide ? 'wide' : '']"
12+
@click.stop
13+
>
1014
<div class="closeButton" @click="showContent = false">
1115
<CloseIcon />
1216
</div>
@@ -41,6 +45,10 @@ export default Vue.extend({
4145
type: Boolean,
4246
default: false,
4347
},
48+
wide: {
49+
type: Boolean,
50+
default: false,
51+
},
4452
},
4553
data(): {
4654
showContent: boolean
@@ -75,17 +83,19 @@ export default Vue.extend({
7583
}
7684
.modalContent {
7785
position: absolute;
78-
top: 0;
86+
top: 50%;
7987
left: 50%;
8088
width: 80%;
8189
max-width: 520px;
82-
min-height: 50%;
8390
max-height: calc(100vh - 100px);
8491
padding: 22px 10px 40px;
85-
margin: 50px 0;
8692
background-color: $white;
8793
border-radius: 10px;
88-
transform: translate(-50%, 0);
94+
transform: translate(-50%, -50%);
95+
96+
&.wide {
97+
max-width: 800px;
98+
}
8999
90100
&Transition {
91101
&-enter,

0 commit comments

Comments
 (0)