Skip to content

Commit

Permalink
Right align search and settings icons on larger screens
Browse files Browse the repository at this point in the history
  • Loading branch information
SegiH committed Jul 5, 2024
1 parent 3155480 commit 99d20f5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 15 deletions.
39 changes: 25 additions & 14 deletions src/app/page.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
@media only screen and (min-width: 992px) {
.searchIcon {
margin-left: auto !important;
}

.settingsIcon {
margin-left: auto !important;
margin-right: 5% !important;
}
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
.inputStyle {
max-width: 200px !important;
Expand Down Expand Up @@ -148,7 +159,7 @@ input:checked+.slider:before {
}

.customWidth {
min-width:100% !important;
min-width: 100% !important;
height: 30px;
}

Expand All @@ -173,7 +184,7 @@ input:checked+.slider:before {
text-align: center;
font-size: 1.2em;
transition: all 1s;
}
}

.fade-in {
animation: fadeInAnimation 0.5s linear;
Expand Down Expand Up @@ -275,7 +286,7 @@ input:checked+.slider:before {
color: #424242;
display: inline-flex;
min-height: 56px;

width: 100%;
margin-bottom: 15px;
overflow: scroll;
Expand Down Expand Up @@ -418,7 +429,7 @@ input:checked+.slider:before {
position: relative;
top: 65%;
left: 50%;
transform: translate(-50%,-50%);
transform: translate(-50%, -50%);
transition: all 1s;
min-width: 400px !important;
height: 50px;
Expand All @@ -428,20 +439,20 @@ input:checked+.slider:before {
border: 4px solid white;
padding: 5px;
}

.searchContainer:hover,
.searchContainer:valid{
.searchContainer:valid {
min-width: 300px;
cursor: pointer;
}

.searchContainer:hover input,
.searchContainer:valid input{
.searchContainer:valid input {
display: block;
}

.searchContainer:hover .fa,
.searchContainer:valid .fa{
.searchContainer:valid .fa {
background: #07051a;
color: white;
}
Expand All @@ -461,10 +472,10 @@ input:checked+.slider:before {
}

/* The IMDB search input has type="search" that shows an x to clear the search input. This moves it up so its more centered */
.searchInput::-webkit-search-cancel-button{
position:relative;
top:-20px;
}
.searchInput::-webkit-search-cancel-button {
position: relative;
top: -20px;
}

.searchHeader {
/*background-color: #f1ebdf;*/
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ const SharedLayout = () => {
</>
}

<span className="clickable leftMargin" style={{ color: "white" }} onClick={showSettings}>
<span className="clickable leftMargin settingsIcon" style={{ color: "white" }} onClick={showSettings}>
{SettingsIconComponent}
</span>
</span>
Expand Down

0 comments on commit 99d20f5

Please sign in to comment.