Skip to content

Commit

Permalink
Merge branch 'main' into yt-embed
Browse files Browse the repository at this point in the history
  • Loading branch information
rrusher authored Nov 8, 2023
2 parents c51aae3 + dd197fb commit c24174c
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 57 deletions.
15 changes: 10 additions & 5 deletions blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,20 @@ body.light-nav {
height: 100vh;
}

.header.block nav svg {
.header.block nav .nav-primary-wrapper {
display: contents;
}

.header.block nav span.icon {
display: block;
}

.header.block nav span.icon img {
display: inline-block;
height: 100%;
width: 100%;
}

.header.block nav .nav-primary-wrapper {
display: contents;
}

.header.block nav .nav-logo {
display: flex;
position: sticky;
Expand All @@ -64,6 +68,7 @@ body.light-nav {
margin: auto 0;
}

/* stylelint-disable-next-line no-descending-specificity */
.header.block nav .nav-logo img {
display: block;
max-height: calc(var(--nav-height) - 30px);
Expand Down
23 changes: 11 additions & 12 deletions blocks/info-mouseover/info-mouseover.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@
margin-left: 4px;
}


.info-mouseover.block span.icon {
display: block;
}

.info-mouseover.block span.icon svg {
display: block;
height: 13px;
width: 13px;
}

.info-mouseover.block .info-content-wrapper {
display: block;
position: absolute;
Expand Down Expand Up @@ -93,6 +82,16 @@
width: 100%;
}

.info-mouseover.block span.icon {
display: block;
}

.info-mouseover.block span.icon img {
display: block;
height: 13px;
width: 13px;
}

@media screen and (min-width: 900px) {
.info-mouseover.block .info-content-wrapper {
left: -20px;
Expand All @@ -105,4 +104,4 @@
.info-mouseover.block .info-content-wrapper::after {
left: 18px;
}
}
}
5 changes: 1 addition & 4 deletions blocks/juicer/juicer.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ export default async function decorate(block) {
block.innerHTML = `
<h2>${config.title}</h2>
<ul class="juicer-feed"
data-feed-id="${config['feed-id']}"
data-pages="1"
data-per="${config.show || ''}"
data-columns="${config.columns || 4}"></ul>
data-feed-id="${config['feed-id']}"></ul>
`;
io.observe(block);
}
1 change: 1 addition & 0 deletions blocks/library-metadata/library-metadata.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* Empty file for handling PSI checks on Block Library pages. */
1 change: 1 addition & 0 deletions blocks/library-metadata/library-metadata.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Empty file for handling PSI checks on Block Library pages.
2 changes: 1 addition & 1 deletion blocks/liveby-demographics/liveby-demographics.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
font-size: var(--body-font-size-xxl);
}

.liveby-demographics.block > div .census-item .icon-bubble span.icon svg {
.liveby-demographics.block > div .census-item .icon-bubble span.icon img {
font-size: var(--body-font-size-xxl);
color: var(--primary-color);
height: 1em;
Expand Down
10 changes: 7 additions & 3 deletions blocks/liveby-schools/liveby-schools.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ main .section.liveby-schools-container p {
margin: 1em 0;
}

.liveby-schools .actions p.button-container {
text-align: center;
}

.liveby-schools .actions p.button-container a {
padding: .85em 1.15em;
margin: 0 auto;
font-size: var(--body-font-size-m);
color: var(--white);
background-color: var(--primary-color);
Expand Down Expand Up @@ -90,13 +95,12 @@ main .section.liveby-schools-container p {
opacity: .625;
}


.liveby-schools .school-lists section .school-item .school-details h3 {
margin: 0;
font-family: var(--font-family-georgia);
font-weight: var(--font-weight-bold);
font-size: var(--heading-font-size-xs);
line-height: var(--line-height-reg);
line-height: var(--line-height-m);
border-bottom: none;
}

Expand Down Expand Up @@ -162,4 +166,4 @@ main .section.liveby-schools-container p {
flex-basis: 33%;
margin: 1em;
}
}
}
21 changes: 10 additions & 11 deletions blocks/liveby-schools/liveby-schools.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { decorateIcons } from '../../scripts/aem.js';
import { LIVEBY_API } from '../../scripts/scripts.js';

const ES_GRADES = ['PK', 'KG', '01', '02', '03', '04', '05', '06'];
Expand Down Expand Up @@ -50,7 +49,8 @@ const sortMap = {
rating: ratingSort,
};

function buildSchoolList(type, schools, sort = ratingSort) {
async function buildSchoolList(type, schools, sort = ratingSort) {
const star = await fetch('/icons/liveby_rating.svg').then((resp) => (resp.ok ? resp.text() : ''));
const sorted = schools.sort(sort);

const section = document.createElement('section');
Expand Down Expand Up @@ -86,6 +86,7 @@ function buildSchoolList(type, schools, sort = ratingSort) {
if (s.rating >= i) {
span.classList.add('filled');
}
span.innerHTML = star;
rating.append(span);
}
} else {
Expand All @@ -95,8 +96,6 @@ function buildSchoolList(type, schools, sort = ratingSort) {
item.append(rating);
section.append(item);
});

decorateIcons(section);
return section;
}

Expand Down Expand Up @@ -152,9 +151,9 @@ export default async function decorate(block) {
sections.classList.add('school-lists');

sections.append(
buildSchoolList('Elementary', elementary),
buildSchoolList('Middle', middle),
buildSchoolList('High', high),
await buildSchoolList('Elementary', elementary),
await buildSchoolList('Middle', middle),
await buildSchoolList('High', high),
);
block.append(sections);

Expand All @@ -173,14 +172,14 @@ export default async function decorate(block) {
});
block.append(more);

block.querySelector('.sort select').addEventListener('change', (e) => {
block.querySelector('.sort select').addEventListener('change', async (e) => {
e.preventDefault();
e.stopPropagation();
const resort = sortMap[e.target.value || 'name'];
sections.replaceChildren(
buildSchoolList('Elementary', elementary, resort),
buildSchoolList('Middle', middle, resort),
buildSchoolList('High', high, resort),
await buildSchoolList('Elementary', elementary, resort),
await buildSchoolList('Middle', middle, resort),
await buildSchoolList('High', high, resort),
);
});
}
Expand Down
37 changes: 18 additions & 19 deletions blocks/rows/rows.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
.rows.block .row-content {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}

.rows.block .row-title {
width: 50%;
line-height: var(--line-height-m);
.rows.block .row-title {
width: 50%;
line-height: var(--line-height-m);
}

.rows.block .button-container a {
font-size: var(--body-font-size-xs);
font-size: var(--body-font-size-xs);
}

.rows.block.white-gray > div {
padding: 0 15px;

padding: 0 15px;
}

.rows.block.white-gray > div:nth-child(even) {
background: var(--light-grey);
background: var(--light-grey);
}

@media (max-width: 600px) {
.rows.block .row-content {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.rows.block .row-content {
display: flex;
flex-direction: column;
justify-content: flex-start;
}

.rows.block .row-title {
width: 100%;
}
}
.rows.block .row-title {
width: 100%;
}
}
2 changes: 1 addition & 1 deletion fstab.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mountpoints:
/: https://adobe.sharepoint.com/:f:/r/sites/HelixProjects/Shared%20Documents/sites/hsf/commonmoves
/: https://hsoa.sharepoint.com/:f:/r/sites/Franklin/Shared%20Documents/Website

folders:
/blog/blog-detail/: /blog/blog-detail
Expand Down
3 changes: 2 additions & 1 deletion icons/heart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c24174c

Please sign in to comment.