diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index ae9ee85..fe4f913 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -12,13 +12,13 @@ jobs: steps: # https://github.com/actions/checkout - name: 拉取代码 - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: develop # https://github.com/docker/login-action - name: 登录到 Docker hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -26,21 +26,21 @@ jobs: # https://github.com/docker/metadata-action - name: 提取事件元数据 id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: mokeyjay/pixiv-daily-ranking-widget # https://github.com/docker/setup-buildx-action - name: 使用 buildx 作为构建器 - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 # https://github.com/docker/build-push-action - name: 构建并推送 - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . file: docker/Dockerfile push: true - tags: mokeyjay/pixiv-daily-ranking-widget:develop + tags: ${{ steps.meta.outputs.tags }} platforms: linux/amd64,linux/arm64 - cache-from: type=registry,ref=mokeyjay/pixiv-daily-ranking-widget:latest \ No newline at end of file + cache-from: mokeyjay/pixiv-daily-ranking-widget:latest \ No newline at end of file diff --git a/app/Views/index.php b/app/Views/index.php index 0c566b2..39c6ddc 100755 --- a/app/Views/index.php +++ b/app/Views/index.php @@ -59,43 +59,46 @@ transform .5s; opacity: 0; } - .button.left { + .button.prev { left: -70px; } - .button.right { + .button.next { right: -70px; } body:hover .button { opacity: 1; } - body:hover .button.left { transform: translateX(70px); } - body:hover .button.right { transform: translateX(-70px); } - - /* 左右翻页箭头 */ - .arrow { - transform: rotate(45deg); - border: 4px solid white; - border-radius: 2px; + body:hover .button.prev { transform: translateX(70px); } + body:hover .button.next { transform: translateX(-70px); } + /* 左右箭头 */ + .button i { + position: relative; + display: block; + width: 30px; + height: 30px; + } + .button i::before, .button i::after { + display: block; + content: " "; width: 16px; height: 16px; + border: 4px solid white; + border-radius: 2px; position: absolute; - top: 0; - left: 0; + border-bottom: none; + border-left: none; + transform: rotate(45deg); } - .arrow.shadow { + .button i::before { border-color: #777; filter: blur(2px); - box-shadow: none !important; } - .arrow.left { - border-top: none; - border-right: none; - left: -8px; - } - .arrow.right { - border-bottom: none; - border-left: none; - transform: rotate(45deg); - left: -12px; + .button.prev i::before, .button.prev i::after { + transform: rotate(225deg); + left: 10px; } + /*.button.prev i::before, .button.prev i::after {*/ + /* border-top: none;*/ + /* border-right: none;*/ + /*}*/ /* 阴影遮罩层 */ .mask { @@ -164,18 +167,8 @@ -