Skip to content

Commit 4c22dba

Browse files
authored
chore: project refresh (#53)
1 parent 2ac71e7 commit 4c22dba

File tree

7 files changed

+2987
-10023
lines changed

7 files changed

+2987
-10023
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Block Collection
22

3-
This project contains code that is featured in the [AEM Block Collection](https://www.aem.live/developer/block-collection#block-collection-1) documentation.
3+
This project contains code that is featured in the [AEM Block Collection](https://www.aem.live/developer/block-collection#bslock-collection-1) documentation.
44

55
## Environments
66
- Preview: https://main--aem-block-collection--adobe.hlx.page/
@@ -12,10 +12,16 @@ This project contains code that is featured in the [AEM Block Collection](https:
1212
npm i
1313
```
1414

15+
## Linting
16+
17+
```sh
18+
npm run lint
19+
```
20+
1521
## Local development
1622

1723
1. Create a new repository based on the `aem-block-collection` template and add a mountpoint in the `fstab.yaml`
18-
1. Add the [helix-bot](https://github.com/apps/helix-bot) to the repository
19-
1. Install the [Helix CLI](https://github.com/adobe/helix-cli): `npm install -g @adobe/helix-cli`
20-
1. Start Helix Pages Proxy: `hlx up` (opens your browser at `http://localhost:3000`)
24+
1. Add the [AEM Code Sync GitHub App](https://github.com/apps/aem-code-sync) to the repository
25+
1. Install the [AEM CLI](https://github.com/adobe/helix-cli): `npm install -g @adobe/aem-cli`
26+
1. Start AEM Proxy: `aem up` (opens your browser at `http://localhost:3000`)
2127
1. Open the `{repo}` directory in your favorite IDE and start coding :)

blocks/carousel/carousel.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
display: flex;
1414
scroll-behavior: smooth;
1515
scroll-snap-type: x mandatory;
16-
overflow-x: scroll;
17-
overflow-y: clip;
16+
overflow: scroll clip;
1817
}
1918

2019
.carousel .carousel-slides::-webkit-scrollbar {
@@ -143,7 +142,7 @@
143142
left: calc(50% - 3px);
144143
}
145144

146-
@media (min-width: 600px) {
145+
@media (width >= 600px) {
147146
.carousel .carousel-navigation-buttons {
148147
left: 1rem;
149148
right: 1rem;

blocks/form/form.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
padding: 0;
1414
}
1515

16-
@media (min-width: 900px) {
16+
@media (width >= 900px) {
1717
.form fieldset {
1818
grid-template-columns: repeat(3, 1fr);
1919
gap: 16px;
@@ -104,10 +104,7 @@
104104
.form .toggle-wrapper .slider {
105105
position: absolute;
106106
cursor: pointer;
107-
top: 0;
108-
left: 0;
109-
right: 0;
110-
bottom: 0;
107+
inset: 0;
111108
background-color: var(--dark-color);
112109
transition: 0.4s;
113110
border-radius: 30px;

blocks/header/header.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ header .breadcrumbs ol li:last-of-type {
329329
opacity: 1;
330330
}
331331

332-
@media screen and (min-width: 900px) {
332+
@media screen and (width >= 900px) {
333333
header .breadcrumbs {
334334
display: block;
335335
}

0 commit comments

Comments
 (0)