diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f0276fac..cabd7c9ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,54 +110,54 @@ jobs: mkdocs gh-deploy --force mkdocs --version - # # Publish Python package and Docker image - # publish: - # if: startsWith(github.ref, 'refs/tags') - # needs: build - # runs-on: ubuntu-latest - # steps: + # Publish Python package and Docker image + publish: + if: startsWith(github.ref, 'refs/tags') + needs: build + runs-on: ubuntu-latest + steps: - # # Limit clone depth to speed up build - # - uses: actions/checkout@v1 - # with: - # fetch-depth: 5 + # Limit clone depth to speed up build + - uses: actions/checkout@v1 + with: + fetch-depth: 5 - # # Ensure latest build if repository is not up-to-date - # - run: rm -rf material + # Ensure latest build if repository is not up-to-date + - run: rm -rf material - # # Download distribution files - # - uses: actions/download-artifact@v1 - # with: - # name: material + # Download distribution files + - uses: actions/download-artifact@v1 + with: + name: material - # # Install Python runtime and dependencies - # - uses: actions/setup-python@v1 - # with: - # python-version: 3.x + # Install Python runtime and dependencies + - uses: actions/setup-python@v1 + with: + python-version: 3.x - # - run: pip install --upgrade setuptools wheel twine + - run: pip install --upgrade setuptools wheel twine - # # Build and test Docker image - # - run: | - # docker build -t ${GITHUB_REPOSITORY} . - # docker run --rm -i -v $(pwd):/docs ${GITHUB_REPOSITORY} \ - # build --theme material + # Build and test Docker image + - run: | + docker build -t ${GITHUB_REPOSITORY} . + docker run --rm -i -v $(pwd):/docs ${GITHUB_REPOSITORY} \ + build --theme material - # # Build Python package - # - run: python setup.py build sdist bdist_wheel --universal + # Build Python package + - run: python setup.py build sdist bdist_wheel --universal - # # Push release to PyPI - # - env: - # PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} - # PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - # run: twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/* + # Push release to PyPI + - env: + PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} + PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/* - # # Push image to Docker Hub - # - env: - # DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - # DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - # run: | - # docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD} - # docker tag ${GITHUB_REPOSITORY} ${GITHUB_REPOSITORY}:${GITHUB_REF##*/} - # docker tag ${GITHUB_REPOSITORY} ${GITHUB_REPOSITORY}:latest - # docker push ${GITHUB_REPOSITORY} + # Push image to Docker Hub + - env: + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} + run: | + docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD} + docker tag ${GITHUB_REPOSITORY} ${GITHUB_REPOSITORY}:${GITHUB_REF##*/} + docker tag ${GITHUB_REPOSITORY} ${GITHUB_REPOSITORY}:latest + docker push ${GITHUB_REPOSITORY} diff --git a/src/assets/stylesheets/base/_typeset.scss b/src/assets/stylesheets/base/_typeset.scss index cefc81aa2..53fea4ceb 100644 --- a/src/assets/stylesheets/base/_typeset.scss +++ b/src/assets/stylesheets/base/_typeset.scss @@ -464,7 +464,7 @@ kbd { // Table rows tr { - transition: background-color 0.125s; + transition: background-color 125ms; // Add background on hover &:hover { diff --git a/src/assets/stylesheets/layout/_footer.scss b/src/assets/stylesheets/layout/_footer.scss index 3c11129ba..ea8ef137c 100644 --- a/src/assets/stylesheets/layout/_footer.scss +++ b/src/assets/stylesheets/layout/_footer.scss @@ -98,7 +98,7 @@ &__button { @extend %md-icon__button; - transition: background 0.25s; + transition: background 250ms; } // Link title - set line height to match icon for correct alignment @@ -199,7 +199,7 @@ // Social icon svg { width: px2rem(16px); - transition: fill 0.25s; + transition: fill 250ms; vertical-align: -25%; fill: $md-color-white--light; } diff --git a/src/assets/stylesheets/layout/_header.scss b/src/assets/stylesheets/layout/_header.scss index 1ddf0c8cc..158bfe2d7 100644 --- a/src/assets/stylesheets/layout/_header.scss +++ b/src/assets/stylesheets/layout/_header.scss @@ -50,9 +50,9 @@ // Show and animate shadow &[data-md-state="shadow"] { transition: - background-color 0.25s, - color 0.25s, - box-shadow 0.25s; + background-color 250ms, + color 250ms, + box-shadow 250ms; box-shadow: 0 0 px2rem(4px) rgba(0, 0, 0, 0.1), 0 px2rem(4px) px2rem(8px) rgba(0, 0, 0, 0.2); @@ -73,7 +73,7 @@ @extend %md-icon__button; position: relative; - transition: opacity 0.25s; + transition: opacity 250ms; z-index: 1; // Hovered icon diff --git a/src/assets/stylesheets/layout/_search.scss b/src/assets/stylesheets/layout/_search.scss index e90dde7ab..27a0da7cd 100644 --- a/src/assets/stylesheets/layout/_search.scss +++ b/src/assets/stylesheets/layout/_search.scss @@ -509,7 +509,7 @@ $md-toggle__search--checked: // Link inside item &__link { display: block; - transition: background 0.25s; + transition: background 250ms; outline: 0; overflow: hidden; scroll-snap-align: start; @@ -558,7 +558,7 @@ $md-toggle__search--checked: position: absolute; left: 0; margin: px2rem(2px); - transition: opacity 0.25s; + transition: opacity 250ms; color: $md-color-black--light; content: "\E880"; // find_in_page