Skip to content

Commit

Permalink
Updated the code with refactor and css
Browse files Browse the repository at this point in the history
  • Loading branch information
teshukatepalli1 committed Dec 6, 2023
1 parent 318da03 commit 3b18f78
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 3 deletions.
20 changes: 20 additions & 0 deletions blocks/columns/columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@
flex-direction: column;
}

.columns picture {
display: block;
float: none;
max-width: none;
overflow: hidden;
padding-bottom: 56%;
position: relative;
width: 100%;
}

.columns picture img {
height: 100%;
left: 0;
object-fit: cover;
position: absolute;
top: 0;
transition: all .3s;
width: 100%;
}

.columns img {
width: 100%;
}
Expand Down
4 changes: 4 additions & 0 deletions blocks/recent-posts/recent-posts.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
text-align: left;
}

.recent-posts h1:first-child, .recent-posts h2:first-child {
padding-top: 0!important;
}

.recent-posts .post .image img {
width: 100%;
height: auto;
Expand Down
4 changes: 4 additions & 0 deletions blocks/sidebar-rte/sidebar-rte.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
display: block;
}

.sidebar-rte h1:first-child, .sidebar-rte h2:first-child, .sidebar-rte h3:first-child {
padding-top: 0!important;
}

.sidebar-rte ul li::before {
content: ''!important;
}
Expand Down
13 changes: 13 additions & 0 deletions styles/Typo.css
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,19 @@ body.mrna input[type="submit"]:hover {
grid-gap: 2%;
}

.shadow {
padding: 10%;
background-color: transparent;
border: none;
box-shadow: 0 2px 15px rgba(0 0 0 / 10%);
border-radius: 4px;
display: block;
}

.no-shadow {
box-shadow: none!important;
}

.text-normal {
font-weight: normal;
}
Expand Down
7 changes: 4 additions & 3 deletions templates/Anniversary/Anniversary.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ export default function buildAutoBlocks(block) {
sidebar.appendChild(sidebarItem);
});
}
sidebarSections.style.display = null;
main.appendChild(sidebarSections.cloneNode(true));
sidebarSections.outerHTML = defaultTemplate.outerHTML;
Array.from(sidebarSections.cloneNode(true).children).forEach((child) => {
main.appendChild(child);
});
sidebarSections.innerHTML = defaultTemplate.outerHTML;
}
setTimeout(() => setSidebarMaxHeight(), 1000);
setSidebarHeight();
Expand Down

0 comments on commit 3b18f78

Please sign in to comment.