Better styling for request wine related pages #36
Reference in New Issue
Block a user
No description provided.
Delete Branch "enhancement/request-wine-css-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Idea
The styling on pages related to requesting wines was directly bad, so I changed it to something better. Now utilizing grid and media breakpoints
Functionality
Gifs became too large to show functionality properly 😢
Why not
@include mobileOnly {?What are these strings?
@@ -9,3 +12,4 @@@mixin tablet {@media (min-width: #{$mobile-width + 1px}) {@content;}How would it work to have only the device a single rule per device?
Example: We have already added general styling for desktop because that is our main use-case ( e.g.
.banner { color: blue }. If want to add custom styling for mobile or tablet we usemobile-onlyortablet-onlyrespectivly and add styling for these devices. Now mobile will cover 0-320px (max-width: 320px) and tablet which is from 321px-756 (min-width: 321px & max-width: 756px) will cover styling from tablet up to our "default" that is the fallback defined in first step of example.fixed
@@ -9,3 +12,4 @@@mixin tablet {@media (min-width: #{$mobile-width + 1px}) {@content;}fixed
renamed for better readability
those are area names; https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas