| /* |
| * Copyright 2020 The Go Authors. All rights reserved. |
| * Use of this source code is governed by a BSD-style |
| * license that can be found in the LICENSE file. |
| */ |
| |
| .UnitReadme { |
| margin-bottom: 2rem; |
| } |
| .UnitReadme-title { |
| border-bottom: 0.0625rem solid var(--gray-8); |
| font-size: 1.375rem; |
| margin: 0.5rem 0 0 0; |
| padding-bottom: 1rem; |
| } |
| .UnitReadme-title img { |
| margin-right: 1rem; |
| } |
| .UnitReadme-content { |
| position: relative; |
| max-height: 20rem; |
| overflow: hidden; |
| } |
| .UnitReadme-content ul { |
| line-height: 1.5rem; |
| } |
| .UnitReadme-fadeOut { |
| position: absolute; |
| bottom: 0; |
| left: 0; |
| width: 100%; |
| text-align: center; |
| margin: 0; |
| padding: 1.875rem 0; |
| background-image: linear-gradient(to bottom, transparent, var(--white)); |
| } |
| .UnitReadme-expandLink { |
| cursor: pointer; |
| padding: 0.625rem 0; |
| color: var(--turq-dark); |
| } |
| .UnitReadme-collapseLink { |
| cursor: pointer; |
| display: none; |
| padding: 0.625rem 0; |
| color: var(--turq-dark); |
| } |
| .UnitReadme--expanded .UnitReadme-content { |
| max-height: initial; |
| } |
| .UnitReadme--expanded .UnitReadme-fadeOut { |
| display: none; |
| } |
| .UnitReadme--expanded .UnitReadme-expandLink { |
| display: none; |
| } |
| .UnitReadme--expanded .UnitReadme-collapseLink { |
| display: block; |
| } |