Commit 0c03f2e5 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Use @signature to display Singleton label.

parent 40f75e27
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -10,6 +10,13 @@ module JsDuck::Tag
        :large => File.dirname(__FILE__) + "/icons/singleton-large.png",
        :redirect => File.dirname(__FILE__) + "/icons/singleton-redirect.png",
      }
      @signature = {:long => "singleton", :short => "single"}
      @css = <<-EOCSS
        .signature .singleton {
          background-color: transparent;
          color: #929292;
        }
      EOCSS
      super
    end

+0 −3
Original line number Diff line number Diff line
@@ -23,9 +23,6 @@ Ext.define('Docs.view.cls.Header', {
                '<tpl else>',
                    '<strong class="class-source-link">{name}</strong>',
                '</tpl>',
                '<tpl if="singleton">',
                    '<span class="singleton">singleton</span>',
                '</tpl>',
                '<tpl if="values[\'enum\']">',
                    '<span class="enum">enum of <b>{[values["enum"].type]}</b></span>',
                '</tpl>',
+2 −2
Original line number Diff line number Diff line
@@ -22,8 +22,8 @@

    // The auto-generated CSS for class icons also applies here.

    // gray style for xtypes, enum and singleton summary
    .xtype, .enum, .singleton {
    // gray style for xtypes and enum summary
    .xtype, .enum {
      color: #929292;
      letter-spacing: 0;
      margin-left: 10px;