Browse Source

增加文字渐变

master
kola-web 3 days ago
parent
commit
b61436c572
  1. 5
      src/pages/index/index.scss
  2. 5
      src/pages/my/index.scss

5
src/pages/index/index.scss

@ -63,8 +63,11 @@ @@ -63,8 +63,11 @@
}
.c-content {
font-size: 36rpx;
color: rgba(255, 255, 255, 1);
color: transparent;
font-weight: bold;
// 文字渐变
background: linear-gradient(119.23deg, #ffffff 14.08%, #ffd6a8 90.77%);
-webkit-background-clip: text;
}
}
}

5
src/pages/my/index.scss

@ -81,8 +81,11 @@ page { @@ -81,8 +81,11 @@ page {
}
.c-content {
font-size: 36rpx;
color: rgba(255, 255, 255, 1);
color: transparent;
font-weight: bold;
// 文字渐变
background: linear-gradient(119.23deg, #ffffff 14.08%, #ffd6a8 90.77%);
-webkit-background-clip: text;
}
}
}

Loading…
Cancel
Save