Code

<pre><code>pick(:love) do |something|
    n.times do
        result = play(something)
        result.publish
    end
end
</code></pre>
import { safe, htmlEncode } from "complate-stream";

<pre><code>{safe(htmlEncode(context.code))}</code></pre>
{
  "code": "pick(:love) do |something|\n    n.times do\n        result = play(something)\n        result.publish\n    end\nend\n"
}
  • Content:
    pre > code {
      @extend %monospace-font-regular;
    
      display: block;
      margin-bottom: $spacer-base;
      border-right: 2px solid $code-snippet-border-color;
      background-color: $code-background-color;
      padding: $spacer-xs $spacer-xs $spacer-xs $spacer-md;
      overflow: auto;
      line-height: $code-snippet-line-height-small;
      font-size: $code-snippet-font-size-small;
    }
    
    @media screen and (min-width: $grid-breakpoint-md) {
      pre > code {
        line-height: $code-snippet-line-height;
        font-size: $code-snippet-font-size;
      }
    }
    
  • URL: /components/raw/code/_code.scss
  • Filesystem Path: components/01-atoms/text/block/code/_code.scss
  • Size: 523 Bytes

There are no notes for this item.