diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-07-06 13:43:15 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-06 13:56:30 -0400 |
commit | 452ebe908c35f7550373c314fc84ed0cf591121b (patch) | |
tree | c42931819c7f9f3d49aaaa2a95344f5709ba7ddd /scss/main.scss | |
parent | 6e92c7c3dbd7ef01e6638664fb7a207141a2e9b4 (diff) |
Implement annotations
Diffstat (limited to 'scss/main.scss')
-rw-r--r-- | scss/main.scss | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/scss/main.scss b/scss/main.scss index 968bceb..cc086a8 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -176,3 +176,42 @@ pre { img { max-width: 100%; } + +// Annotations +.highlight { + a.annotation { + color: inherit; + background: lighten($primary, 45); + border-bottom: 1px dotted $gray-800; + + &:hover { + text-decoration: none; + border-bottom: 1px solid $gray-800; + } + } + + details { + display: inline; + margin-left: 3rem; + color: $gray-600; + + &[open] { + display: block; + color: inherit; + background: $gray-100; + width: 30rem; + margin: 0; + white-space: normal; + font: inherit; + position: absolute; + + summary { + background: $gray-300; + } + + ul:last-child { + margin-bottom: 0; + } + } + } +} |