Skip to content

Commit

Permalink
Make single event
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Nov 24, 2023
1 parent e8f066d commit 289cb5a
Show file tree
Hide file tree
Showing 7 changed files with 445 additions and 48 deletions.

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

210 changes: 210 additions & 0 deletions wp-content/themes/academyAfrica/assets/css/dist/pages/single_event.css

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

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
@use "../abstracts/" as *;

.single-page-event {
max-width: 1920px;
padding: 20px;
.image-container {
position: relative;
width: 100%;
height: 300px; /* Set your specific height here */
overflow: hidden;
margin: 50px 0;
}
.featured-image {
width: 100%;
height: 100%;
object-fit: cover; /* This property crops the image while maintaining its aspect ratio */
}
.divider {
height: 0.5px;
background: #a9a9a9;
margin: 40px 0;
border: none;
}
.custom-data {
p {
color: #000;
font-family: Open Sans;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 24px; /* 133.333% */
text-transform: uppercase;
margin-bottom: 20px;
& .speaker {
color: var(--shades-black, #000);
font-family: Open Sans;
font-size: 18px;
font-style: normal;
font-weight: 700;
line-height: 24px; /* 133.333% */
letter-spacing: -0.36px;
}
}
}
.content {
color: var(--shades-black, #000);
font-family: Open Sans;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 28px; /* 155.556% */
}
.linked-post {
.title {
color: var(--primary-700, #0c1a81);
font-family: Open Sans;
font-size: 18px;
font-style: normal;
font-weight: 700;
line-height: 24px; /* 133.333% */
}
.name {
color: var(--shades-black, #000);
font-family: Open Sans;
font-size: 18px;
font-style: normal;
font-weight: 700;
line-height: 24px; /* 133.333% */
letter-spacing: -0.36px;
}
.description {
color: var(--shades-black, #000);
font-family: Open Sans;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 28px; /* 155.556% */
}
* {
margin-top: 32px;
}
}
}

@include media-breakpoint-up(large) {
.single-page-event {
padding: 20px 148px;
}
}
@include media-breakpoint-up(xlarge) {
.single-page-event {
padding: 20px 388px;
}
}
1 change: 1 addition & 0 deletions wp-content/themes/academyAfrica/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function child_theme_configurator_css()
function my_theme_enqueue_styles()
{
wp_enqueue_style('child-style', get_stylesheet_directory_uri() . '/assets/css/dist/main.css', array('hello-elementor', 'hello-elementor', 'hello-elementor-theme-style'), '6.3.11');
wp_enqueue_style('single-event', get_stylesheet_directory_uri() . '/assets/css/dist/pages/single_event.css', array(), '6.3.11');
}

add_action('wp_enqueue_scripts', 'my_theme_enqueue_styles');
Expand Down
Loading

0 comments on commit 289cb5a

Please sign in to comment.