Skip to content

Commit

Permalink
add @query for mobile top marginand display 2em
Browse files Browse the repository at this point in the history
  • Loading branch information
FitzBrendan committed Jul 19, 2023
1 parent a5b669e commit 006c893
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ Digital Calculator

Completed layout and styles for calculator.

Complete calc functions are defined
Complete calc functions are defined

Responsive @query 2em top margin and displays min height
17 changes: 10 additions & 7 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ html {
--green__border--inset: 4px inset #8ee18eb3;
}

@media (max-width: 480px) {
#calc__grid--container {
margin-top: 2em;
}
#pad,
#result {
min-height: 2em;
}
}

#calc__grid--container {
margin: auto;
margin-top: 4em;
Expand Down Expand Up @@ -71,7 +81,6 @@ html {
border: 4px inset #fafafa66;
}


/* ==== Styles for Hover over Input Grid Items */

.erase:hover,
Expand Down Expand Up @@ -143,7 +152,6 @@ html {
grid-row: 1;
}
#pad {
/* grid-column: 2 / -1; */
grid-column: 2 / span 3;
grid-row: 1 / span 1;
}
Expand All @@ -157,13 +165,8 @@ html {
grid-row: 2 / span 1;
}


/* ==== Calculator Inputs Grid Line Positioning */

/* #pos_neg {
grid-column: 1;
grid-row: 3;
} */
#percentage {
grid-column: 2;
grid-row: 3;
Expand Down

0 comments on commit 006c893

Please sign in to comment.