浏览代码

Change opacity percentages in CSS to decimals for wider browser support (#711)

* Change opacity from percentage to decimal.

As per https://caniuse.com/mdn-css_properties_opacity_percentages,
percentage values are only supported in ~75% of globally used browsers.

* Forgot to add myself to contributors.
Simon Hollingshead 3 年之前
父节点
当前提交
15369b056e

+ 1 - 0
CONTRIBUTORS.md

@@ -116,3 +116,4 @@
 - [Saurmandal](https://saur.neocities.org)
 - [Jneo8](https://github.com/jneo8)
 - [Daniel Nduati](https://github.com/DanNduati)
+- [Simon Hollingshead](https://github.com/simonhollingshead)

+ 3 - 3
assets/scss/_float.scss

@@ -14,17 +14,17 @@
     color: $alt-fg-color;
     background-color: $alt-bg-color;
     border-radius: 0.2rem;
-    opacity: 50%;
+    opacity: 0.5;
     transition: all 0.25s ease-in;
 
     &:hover,
     &:focus {
       color: $link-color;
-      opacity: 100%;
+      opacity: 1;
 
       @media only screen and (max-width: 768px) {
         color: $alt-fg-color;
-        opacity: 50%;
+        opacity: 0.5;
       }
     }
 

文件差异内容过多而无法显示
+ 0 - 0
resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.content


+ 1 - 1
resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.json

@@ -1 +1 @@
-{"Target":"css/coder.min.6b1a4fbc48955b72aea7913e43fabeb45e8bc120da5aa41b598dd33adcac4b59.css","MediaType":"text/css","Data":{"Integrity":"sha256-axpPvEiVW3Kup5E+Q/q+tF6LwSDaWqQbWY3TOtysS1k="}}
+{"Target":"css/coder.min.c4d7e93a158eda5a65b3df343745d2092a0a1e2170feeec909b8a89443903c6a.css","MediaType":"text/css","Data":{"Integrity":"sha256-xNfpOhWO2lpls980N0XSCSoKHiFw/u7JCbiolEOQPGo="}}

部分文件因为文件数量过多而无法显示