diff --git a/assets/scss/learn.scss b/assets/scss/learn.scss index 61dd52a7e..5f39cfe07 100644 --- a/assets/scss/learn.scss +++ b/assets/scss/learn.scss @@ -252,7 +252,7 @@ h2 { margin-top: 68px; & > li { position: relative; - padding: 50px 39px 20px 40px; + padding: 50px 39px 40px 40px; margin-bottom: 58px; border-radius: 8px; background-color: #ffffff; @@ -278,6 +278,10 @@ h2 { top: -20px; left: 30px; border-radius: 5px; + white-space: nowrap; + text-overflow: ellipsis; + max-width: 75%; + overflow: hidden; } } @@ -373,6 +377,46 @@ h2 { } } } + + .button{ + position: absolute; + height: 48px; + width: 100%; + bottom: 0; + left: 0; + background: linear-gradient(360deg, rgba(85, 188, 138, 0.25) 0%, rgba(85, 188, 138, 0) 100%); + border: none; + font-weight: 600; + font-size: 14px; + line-height: 20px; + color: #0F8049; + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + + #close{ + display: none; + } + } + + .hideButton{ + display: none; + } + + .active{ + #open{ + display: none; + } + + #close{ + display: block; + } + + svg{ + transform: rotateX(180deg); + } + } } } } diff --git a/layouts/learn/list.html b/layouts/learn/list.html index 16be0ee89..df18b239e 100644 --- a/layouts/learn/list.html +++ b/layouts/learn/list.html @@ -22,7 +22,7 @@ - + {{ end }} @@ -78,7 +78,7 @@
{{ .LinkTitle }}