Skip to content

Commit

Permalink
Fix form css
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasevano committed Feb 14, 2021
1 parent be8b261 commit 68c23dc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions assets/css/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ form input:focus-within ~ label,
input[type="date"] ~ label {
@apply transform scale-75 -translate-y-6;
}

@media (max-width: 768px) {
input[type="date"] {
margin-top: 3rem;
}
}
2 changes: 1 addition & 1 deletion components/atoms/Input.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="flex-1 relative my-4 m-2 border-b-2 focus-within:border-black">
<div class="flex-1 relative my-6 m-2 border-b-2 focus-within:border-black">
<input
:type="inputType"
:id="inputId"
Expand Down
2 changes: 1 addition & 1 deletion components/atoms/Select.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="flex-1 m-2">
<div class="flex-1 relative my-6 m-2">
<div class="relative">
<select
class="block w-full appearance-none bg-transparent border-b-2 focus:outline-none focus-within:border-black"
Expand Down
6 changes: 5 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default {
font-weight: bold;
font-size: 2rem;
text-transform: uppercase;
margin-bottom: 40px;
margin: 40px 0;
}
.latest-articles {
Expand Down Expand Up @@ -268,6 +268,10 @@ export default {
margin: 40px auto;
}
.button {
margin-left: 15px;
}
.first-article-img {
height: 500px;
}
Expand Down

0 comments on commit 68c23dc

Please sign in to comment.