_rdoc.scss 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ._rdoc {
  2. > .description, > .documentation-section { padding-left: 1rem; }
  3. > .description > h2, .section-header { @extend %block-heading; }
  4. > .description > h2, .section-header, .method-heading { margin-left: -1rem; }
  5. .description > h1 { font-size: 1rem; }
  6. .method-description > h2, h3, h4, h5, h6 { font-size: 1em; }
  7. .method-heading {
  8. font-weight: bold;
  9. @extend %block-label, %label-blue;
  10. + .method-heading { margin-top: -.5em; }
  11. }
  12. > .meta {
  13. @extend %note, %note-blue;
  14. > dd { margin: 0; }
  15. > dd + dt { margin-top: .5em; }
  16. }
  17. a.method-click-advice {
  18. float: right;
  19. font-size: .75rem;
  20. color: $linkColor;
  21. cursor: pointer;
  22. @extend %user-select-none;
  23. &:hover { text-decoration: underline; }
  24. }
  25. .method-description { position: relative; }
  26. .method-source-code {
  27. display: none;
  28. position: absolute;
  29. z-index: 1;
  30. top: 0;
  31. left: -1em;
  32. right: 0;
  33. background: rgba(white, .95);
  34. box-shadow: 0 1em 1em 1em white;
  35. > pre { margin: 0; }
  36. }
  37. }