From 0e6d19da62eefbf268048bd23482bc8c1a9c9d03 Mon Sep 17 00:00:00 2001 From: William Arin Date: Thu, 26 Aug 2021 21:14:25 +0800 Subject: [PATCH] style: fix hover opacity on image anchors --- assets/sass/typography.scss | 2 +- src/Resources/public/build/entrypoints.json | 2 +- .../public/build/{main.40ffb428.css => main.cdcc1237.css} | 2 +- src/Resources/public/build/manifest.json | 2 +- webpack.config.js | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) rename src/Resources/public/build/{main.40ffb428.css => main.cdcc1237.css} (99%) diff --git a/assets/sass/typography.scss b/assets/sass/typography.scss index 9701355..3c25abf 100644 --- a/assets/sass/typography.scss +++ b/assets/sass/typography.scss @@ -72,7 +72,7 @@ a { text-decoration-thickness: 0.075em; text-decoration-color: rgba(var(--color-primary-rgb), 0.4); - &:hover { + &:not(:has(img)):hover { @apply opacity-80; text-decoration-color: rgba(var(--color-primary-rgb), 0.8); } diff --git a/src/Resources/public/build/entrypoints.json b/src/Resources/public/build/entrypoints.json index 380d18e..b82f74a 100644 --- a/src/Resources/public/build/entrypoints.json +++ b/src/Resources/public/build/entrypoints.json @@ -7,7 +7,7 @@ "/bundles/numberninechapterone/build/main.7e5746af.js" ], "css": [ - "/bundles/numberninechapterone/build/main.40ffb428.css" + "/bundles/numberninechapterone/build/main.cdcc1237.css" ] }, "product": { diff --git a/src/Resources/public/build/main.40ffb428.css b/src/Resources/public/build/main.cdcc1237.css similarity index 99% rename from src/Resources/public/build/main.40ffb428.css rename to src/Resources/public/build/main.cdcc1237.css index 7c66df9..bd34ef7 100644 --- a/src/Resources/public/build/main.40ffb428.css +++ b/src/Resources/public/build/main.cdcc1237.css @@ -41,7 +41,7 @@ * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. - */.text-header-big{font-size:4.5rem;font-weight:300;line-height:1;margin-bottom:.25rem}h1{font-size:2.25rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.125rem}h5{font-size:1rem}h6{font-size:.875rem}h1,h2,h3,h4,h5,h6{--tw-text-opacity:1;color:hsla(var(--color-quaternary-h),var(--color-quaternary-s),var(--color-quaternary-l),var(--tw-text-opacity));font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-weight:300;margin-bottom:.25rem}.dark h1,.dark h2,.dark h3,.dark h4,.dark h5,.dark h6{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{--tw-text-opacity:1;color:hsla(var(--color-quaternary-h),var(--color-quaternary-s),var(--color-quaternary-l),var(--tw-text-opacity));text-decoration:none}html{color:hsla(var(--color-secondary-h),var(--color-secondary-s),var(--color-secondary-l),var(--tw-text-opacity));font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}a,html{--tw-text-opacity:1}a{color:hsla(var(--color-primary-h),var(--color-primary-s),var(--color-primary-l),var(--tw-text-opacity));text-decoration:underline;-webkit-text-decoration-color:rgba(var(--color-primary-rgb),.4);text-decoration-color:rgba(var(--color-primary-rgb),.4);text-decoration-thickness:.075em;text-underline-offset:.1em}a:hover{opacity:.8;-webkit-text-decoration-color:rgba(var(--color-primary-rgb),.8);text-decoration-color:rgba(var(--color-primary-rgb),.8)}ul{list-style-type:disc}ol{list-style-type:decimal}ol:not(.list-none),ul:not(.list-none){padding-left:1.25rem}.dark,.dark a,a.dark{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity));-webkit-text-decoration-color:#fff6;text-decoration-color:#fff6}.dark a:hover,a.dark:hover{-webkit-text-decoration-color:#fffc;text-decoration-color:#fffc}.container{width:100%}@media (min-width:425px){.container{max-width:425px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1280px){.container{max-width:1280px}}.standard-container{display:flex;margin-left:auto;margin-right:auto} + */.text-header-big{font-size:4.5rem;font-weight:300;line-height:1;margin-bottom:.25rem}h1{font-size:2.25rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.125rem}h5{font-size:1rem}h6{font-size:.875rem}h1,h2,h3,h4,h5,h6{--tw-text-opacity:1;color:hsla(var(--color-quaternary-h),var(--color-quaternary-s),var(--color-quaternary-l),var(--tw-text-opacity));font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-weight:300;margin-bottom:.25rem}.dark h1,.dark h2,.dark h3,.dark h4,.dark h5,.dark h6{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{--tw-text-opacity:1;color:hsla(var(--color-quaternary-h),var(--color-quaternary-s),var(--color-quaternary-l),var(--tw-text-opacity));text-decoration:none}html{color:hsla(var(--color-secondary-h),var(--color-secondary-s),var(--color-secondary-l),var(--tw-text-opacity));font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}a,html{--tw-text-opacity:1}a{color:hsla(var(--color-primary-h),var(--color-primary-s),var(--color-primary-l),var(--tw-text-opacity));text-decoration:underline;-webkit-text-decoration-color:rgba(var(--color-primary-rgb),.4);text-decoration-color:rgba(var(--color-primary-rgb),.4);text-decoration-thickness:.075em;text-underline-offset:.1em}a:not(:has(img)):hover{opacity:.8;-webkit-text-decoration-color:rgba(var(--color-primary-rgb),.8);text-decoration-color:rgba(var(--color-primary-rgb),.8)}ul{list-style-type:disc}ol{list-style-type:decimal}ol:not(.list-none),ul:not(.list-none){padding-left:1.25rem}.dark,.dark a,a.dark{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity));-webkit-text-decoration-color:#fff6;text-decoration-color:#fff6}.dark a:hover,a.dark:hover{-webkit-text-decoration-color:#fffc;text-decoration-color:#fffc}.container{width:100%}@media (min-width:425px){.container{max-width:425px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1280px){.container{max-width:1280px}}.standard-container{display:flex;margin-left:auto;margin-right:auto} /*! * This file is part of the NumberNine package. * diff --git a/src/Resources/public/build/manifest.json b/src/Resources/public/build/manifest.json index 363a5e0..11b7a80 100644 --- a/src/Resources/public/build/manifest.json +++ b/src/Resources/public/build/manifest.json @@ -1,5 +1,5 @@ { - "build/main.css": "/bundles/numberninechapterone/build/main.40ffb428.css", + "build/main.css": "/bundles/numberninechapterone/build/main.cdcc1237.css", "build/main.js": "/bundles/numberninechapterone/build/main.7e5746af.js", "build/product.css": "/bundles/numberninechapterone/build/product.3b666e5e.css", "build/product.js": "/bundles/numberninechapterone/build/product.29c2bd9b.js", diff --git a/webpack.config.js b/webpack.config.js index d88ab98..3b7f128 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,5 @@ const Encore = require('@symfony/webpack-encore'); const WatchExternalFilesPlugin = require('webpack-watch-files-plugin').default; -const path = require('path'); if (!Encore.isRuntimeEnvironmentConfigured()) { Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev'); @@ -48,7 +47,8 @@ Encore verbose: true })) .configureDevServerOptions(options => { - options.firewall = false; + options.allowedHosts = 'all'; + delete options.client; }) ;