Skip to content

Commit

Permalink
added media queries
Browse files Browse the repository at this point in the history
  • Loading branch information
harikrishnan.vinod committed Aug 11, 2024
1 parent 2a6ac29 commit 33ec012
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
</head>
<body>
<div class="search-container">
<input type="text" name="movie-name" id="movie-name" />
<input
type="text"
placeholder="Enter the movie name"
name="movie-name"
id="movie-name"
/>
<button id="search-button" onclick="GetMovieDetails()">search</button>
</div>
<div class="result" id="result">
Expand Down
28 changes: 28 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ body {
.search-container {
display: flex;
justify-content: center;
align-items: center;
padding: 2ch;
gap: 2ch;
}
Expand Down Expand Up @@ -39,6 +40,7 @@ body {
.result {
display: none;
justify-content: center;
align-items: center;
gap: 3ch;
padding: 5ch 4ch;
}
Expand Down Expand Up @@ -109,3 +111,29 @@ body {
font-weight: bold;
border-radius: 0.5ch;
}

@media (max-width: 576px) {
.search-container {
flex-direction: column;
}

.search-container input {
width: 100%;
}

.search-container button {
width: max-content;
}

.popup-message .message {
width: 250px;
}

.result {
flex-direction: column;
}

.result-data {
order: 2;
}
}

0 comments on commit 33ec012

Please sign in to comment.