Skip to content

Commit

Permalink
Merge pull request #78 from OpenSourceOrg/add/dev/39-event-manager-up…
Browse files Browse the repository at this point in the history
…dates

Event Manager - mobile styles (dev)
  • Loading branch information
bernattorras authored May 22, 2024
2 parents fc791f9 + 11d9ea1 commit d826402
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 2 deletions.
33 changes: 33 additions & 0 deletions themes/osi/assets/css/editor-style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion themes/osi/assets/css/editor-style.css.map

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions themes/osi/assets/scss/_7_vendor.plugins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ form.wp-block-jetpack-contact-form {
* Events Manager
* - Booking's Submit Button
* -- Feels very nasty, but I had to add !important, as the plugin's CSS is also using !important!
* - Mobile Styling
*/

.em-booking-form-section-confirm .em-booking-form-buttons input[type=submit].em-form-submit {
Expand All @@ -84,4 +85,39 @@ form.wp-block-jetpack-contact-form {
text-decoration: none !important;
transition: all 0.3s !important;
}
}

/* Specific styling for mobile devices */
@media only screen and (max-width: 768px) {
/* Hide large header and show small header on mobile */
.header-main {
display: none;
}
.header-main-small {
display: block !important;
}

/* Adjust featured image size on mobile devices */
.single-event .wp-block-cover__image-background {
width: 100%;
height: auto;
object-fit: cover;
}

/* Ensure the cover container does not add extra padding or margins */
.single-event .entry-header .wp-block-cover.alignfull {
padding: 0;
margin: 0;
min-height: auto;
}
}

/* Ensures the small header is hidden on larger screens */
.header-main-small {
display: none;
}

/* Adjust the aspect ratio of the cover image */
.single-event .entry-header .wp-block-cover {
aspect-ratio: 16 / 9;
}
33 changes: 33 additions & 0 deletions themes/osi/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion themes/osi/style.css.map

Large diffs are not rendered by default.

0 comments on commit d826402

Please sign in to comment.