_rdoc.scss 1007 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ._rdoc {
  2. > .description, > .documentation-section { padding-left: 1rem; }
  3. > .description > h2, header > h3, > h2 { @extend %block-heading; }
  4. > .description > h2, header > h3, .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: var(--boldFontWeight);
  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: var(--linkColor);
  21. cursor: pointer;
  22. @extend %user-select-none;
  23. &:hover { text-decoration: underline; }
  24. @include print {
  25. display: none;
  26. }
  27. }
  28. .method-source-code {
  29. display: none;
  30. }
  31. // Rails guides
  32. .note { @extend %note; }
  33. .info { @extend %note, %note-blue; }
  34. .warning { @extend %note, %note-red; }
  35. }