From 494330a42ffec44da322a3d42322af6557efb3d4 Mon Sep 17 00:00:00 2001 From: liuboaibc Date: Mon, 8 Jun 2020 15:52:03 +0800 Subject: [PATCH] add link template' --- assets/scss/common.scss | 36 +++++++++++++++++++++--------------- assets/scss/index.scss | 23 ----------------------- layouts/index.html | 32 ++++++++++++++++---------------- 3 files changed, 37 insertions(+), 54 deletions(-) diff --git a/assets/scss/common.scss b/assets/scss/common.scss index c0534bd66..75906ba7b 100644 --- a/assets/scss/common.scss +++ b/assets/scss/common.scss @@ -15,14 +15,6 @@ html { background-color: #f5f8f9; } -button { - border: none; - - &:hover { - box-shadow: none; - } -} - .common-layout { width: 1160px; margin: 0 auto; @@ -41,7 +33,7 @@ button { font-size: 32px; font-weight: bold; line-height: 1.63; - color: #3d3e49; + color: #171c34; } .title-white-h2 { @@ -53,11 +45,17 @@ button { } .title-p { + font-size: 16px; + line-height: 2; + text-align: center; + color: #919aa3; +} + +.common-center-p { font-size: 16px; line-height: 1.5; - letter-spacing: -0.04px; - color: #ffffff; - text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); + text-align: center; + color: #8f94a1; } .common-btn { @@ -68,11 +66,19 @@ button { box-shadow: 0 10px 50px 0 rgba(34,43,62,.1),0 8px 16px 0 rgba(33,43,61,.2); &:hover { - box-shadow: none; + box-shadow: none!important; } } -.common-a-green { +.inner-a { + color: #00a971; + + &:hover { + color: #008a5c; + } +} + +.common-green-a { height: 24px; font-weight: 600; line-height: 24px; @@ -83,7 +89,7 @@ button { } } -.common-a-black { +.common-black-a { height: 24px; font-weight: 600; line-height: 24px; diff --git a/assets/scss/index.scss b/assets/scss/index.scss index 88f2e41e9..407747c2e 100644 --- a/assets/scss/index.scss +++ b/assets/scss/index.scss @@ -79,20 +79,12 @@ section { button { height: 56px; - line-height: 56px; border-radius: 28px; - text-align: center; font-size: 16px; - border: none; - cursor: pointer; - &:hover { - box-shadow: none; - } } .btn1 { width: 211px; - color: #ffffff; box-shadow: 0 10px 50px 0 rgba(34, 43, 62, 0.1), 0 8px 16px 0 rgba(33, 43, 61, 0.2), 0 10px 50px 0 rgba(76, 169, 134, 0.05); background-image: linear-gradient(to bottom,rgba(0,0,0,0),rgba(0,0,0,0.1) 97%),linear-gradient(to bottom,#242e42,#242e42); } @@ -146,26 +138,11 @@ section { z-index: 2; & > div { - width: 1160px; - margin: 0 auto; text-align: center; - & > h2 { - height: 52px; - text-shadow: 0 4px 8px rgba(35, 45, 65, 0.1); - font-size: 32px; - font-weight: bold; - line-height: 1.63; - color: #171c34; - } - & > p { width: 964px; - height: 72px; margin: 16px auto 50px; - font-size: 16px; - line-height: 1.5; - color: #919aa3; } & > ul { diff --git a/layouts/index.html b/layouts/index.html index 55786ebb1..75babbe4e 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,11 +7,11 @@
-

{{ .title }}

-

{{ .topic }}

-

{{ .content }}

- - +

{{ .title | safeHTML }}

+

{{ .topic | safeHTML }}

+

{{ .content | safeHTML }}

+ +
@@ -22,15 +22,15 @@
{{ with .Params.section2 }} -
-

{{ .title }}

-

{{ .content }}

+
+

{{ .title | safeHTML }}

+

{{ .content | safeHTML }}

    {{ range .children }}
  • -

    {{ .name }}

    -

    {{ .content }}

    +

    {{ .name | safeHTML }}

    +

    {{ .content | safeHTML }}

  • {{ end }}
@@ -41,8 +41,8 @@
{{ with .Params.section3 }}
-

{{ .title }}

-

{{ .content }}

+

{{ .title | safeHTML }}

+

{{ .content | safeHTML }}

{{ i18n "Read More" }} →