microsoft/hve-core
Publicmirrored fromhttps://github.com/microsoft/hve-coreAvailable
docs/docusaurus/src/components/CollectionCards/styles.module.css
87lines · modecode
| 1 | .collectionCard { |
| 2 | display: block; |
| 3 | position: relative; |
| 4 | background: var(--ifm-card-background-color); |
| 5 | border: 1px solid transparent; |
| 6 | border-radius: 2px; |
| 7 | padding: 1.25rem; |
| 8 | box-shadow: rgba(0, 0, 0, 0.13) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, 0.11) 0px 0.3px 0.9px 0px; |
| 9 | } |
| 10 | |
| 11 | .collectionCard:hover .collectionName { |
| 12 | text-decoration: underline; |
| 13 | } |
| 14 | |
| 15 | .collectionHeader { |
| 16 | display: flex; |
| 17 | align-items: center; |
| 18 | justify-content: space-between; |
| 19 | margin-bottom: 0.5rem; |
| 20 | } |
| 21 | |
| 22 | .collectionName { |
| 23 | display: block; |
| 24 | font-size: 16px; |
| 25 | font-weight: 600; |
| 26 | line-height: 20px; |
| 27 | color: var(--ifm-color-primary); |
| 28 | text-decoration: none; |
| 29 | margin: 0; |
| 30 | } |
| 31 | |
| 32 | .collectionName::after { |
| 33 | content: ''; |
| 34 | position: absolute; |
| 35 | inset: 0; |
| 36 | } |
| 37 | |
| 38 | .collectionName:hover { |
| 39 | text-decoration: underline; |
| 40 | } |
| 41 | |
| 42 | .collectionName:visited { |
| 43 | color: var(--ms-learn-visited-link); |
| 44 | } |
| 45 | |
| 46 | .maturityBadge { |
| 47 | display: inline-block; |
| 48 | font-size: 11px; |
| 49 | font-weight: 600; |
| 50 | text-transform: uppercase; |
| 51 | letter-spacing: 0.5px; |
| 52 | padding: 2px 8px; |
| 53 | border-radius: 2px; |
| 54 | line-height: 16px; |
| 55 | flex-shrink: 0; |
| 56 | } |
| 57 | |
| 58 | .maturityStable { |
| 59 | background: var(--ifm-color-success-contrast-background); |
| 60 | color: var(--ifm-color-success-dark); |
| 61 | } |
| 62 | |
| 63 | .maturityPreview { |
| 64 | background: var(--ifm-color-warning-contrast-background); |
| 65 | color: var(--ifm-color-warning-dark); |
| 66 | } |
| 67 | |
| 68 | .maturityExperimental { |
| 69 | background: var(--ifm-color-info-contrast-background); |
| 70 | color: var(--ifm-color-info-dark); |
| 71 | } |
| 72 | |
| 73 | .collectionDescription { |
| 74 | margin: 0 0 0.75rem; |
| 75 | font-size: 0.875rem; |
| 76 | color: var(--ms-learn-text-subtle); |
| 77 | } |
| 78 | |
| 79 | .artifactCount { |
| 80 | font-size: 0.8rem; |
| 81 | color: var(--ms-learn-text-subtle); |
| 82 | margin: 0; |
| 83 | } |
| 84 | |
| 85 | .artifactCount strong { |
| 86 | color: var(--ifm-font-color-base); |
| 87 | } |
| 88 | |