Skip to content

Commit 6494e5a

Browse files
committed
Event Manager - mobile styles.
1 parent 56a1083 commit 6494e5a

5 files changed

Lines changed: 104 additions & 2 deletions

File tree

themes/osi/assets/css/editor-style.css

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/assets/css/editor-style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/assets/scss/_7_vendor.plugins.scss

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ form.wp-block-jetpack-contact-form {
5858
* Events Manager
5959
* - Booking's Submit Button
6060
* -- Feels very nasty, but I had to add !important, as the plugin's CSS is also using !important!
61+
* - Mobile Styling
6162
*/
6263

6364
.em-booking-form-section-confirm .em-booking-form-buttons input[type=submit].em-form-submit {
@@ -84,4 +85,39 @@ form.wp-block-jetpack-contact-form {
8485
text-decoration: none !important;
8586
transition: all 0.3s !important;
8687
}
88+
}
89+
90+
/* Specific styling for mobile devices */
91+
@media only screen and (max-width: 768px) {
92+
/* Hide large header and show small header on mobile */
93+
.header-main {
94+
display: none;
95+
}
96+
.header-main-small {
97+
display: block !important;
98+
}
99+
100+
/* Adjust featured image size on mobile devices */
101+
.single-event .wp-block-cover__image-background {
102+
width: 100%;
103+
height: auto;
104+
object-fit: cover;
105+
}
106+
107+
/* Ensure the cover container does not add extra padding or margins */
108+
.single-event .entry-header .wp-block-cover.alignfull {
109+
padding: 0;
110+
margin: 0;
111+
min-height: auto;
112+
}
113+
}
114+
115+
/* Ensures the small header is hidden on larger screens */
116+
.header-main-small {
117+
display: none;
118+
}
119+
120+
/* Adjust the aspect ratio of the cover image */
121+
.single-event .entry-header .wp-block-cover {
122+
aspect-ratio: 16 / 9;
87123
}

themes/osi/style.css

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)