View accessible-accordion-accordion.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { getAbsoluteHeight } from './utils.js'; | |
class Curtain extends HTMLDetailsElement { | |
#summary = this.querySelector('summary'); | |
#content = this.querySelector('.curtain__content'); | |
#animation = null; | |
connectedCallback() { |
View web-component-polyfill.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//unpkg.com/@ungap/custom-elements/es.js"></script> |
View accessible-accordion-basic-accordion-styling.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
details { | |
--curtain-border-color: #334455; | |
--curtain-background-color: #223344; | |
--curtain-color: #ffffff; | |
max-width: 30rem; | |
border: 1px solid var(--curtain-border-color); | |
color: var(--curtain-color); | |
overflow: hidden; | |
} |
View accessible-accordion-basic-styles.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background: #001122; | |
} | |
p { | |
margin: 1rem 0; | |
} | |
p:first-child { | |
margin-top: 0; |
View run-np.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
np |
View install-np.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install np -g |
View npm-publish.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm publish |
View create-readme.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
touch readme.md |
View index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sum(num1, num2) { | |
return num1 + num2; | |
} | |
module.exports = sum; |
View clone-project.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd projects | |
git clone git@github.com:YourUserName/ws-my-first-package.git | |
cd ws-my-first-package | |
npm init |
NewerOlder