Commit 838c7efd authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Wrap signature labels inside additional span.

First step in generalizing the styling of these things.
parent b6586266
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -26,10 +26,10 @@ module JsDuck
        TagRegistry.signatures.each do |s|
          if member[s[:tagname]]
            title = s[:tooltip] ? "title='#{s[:tooltip]}'" : ""
            html << "<strong class='#{s[:tagname]} signature' #{title}>#{s[:long]}</strong>"
            html << "<span class='#{s[:tagname]} signature' #{title}>#{s[:long]}</span>"
          end
        end
        html.join
        '<span class="signature-container">' + html.join + "</span>"
      end

    end
+2 −1
Original line number Diff line number Diff line
@@ -13,8 +13,9 @@ Ext.define('Docs.view.Signature', {
     */
    render: function(meta, format) {
        format = format || "short";
        return Ext.Array.map(Docs.data.signatures, function(s) {
        var spans = Ext.Array.map(Docs.data.signatures, function(s) {
            return meta[s.tagname] ? '<span class="signature '+s.tagname+'">'+(s[format])+'</span>' : '';
        }).join(' ');
        return '<span class="signature-container">' + spans + '</span>';
    }
});
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ Ext.define('Docs.view.cls.Header', {
                    });

                    if (r.length > 0) {
                        return "<span>" + r.join(", ") + "</span>";
                        return "<span class='xtype'>" + r.join(", ") + "</span>";
                    }
                    else {
                        return "";
+3 −3
Original line number Diff line number Diff line
@@ -28,14 +28,14 @@
      background: url(../images/singleton-m.png) no-repeat 0 -5px; }

    // gray style for xtypes listing
    span {
    .xtype {
      color: #929292;
      letter-spacing: 0;
      margin-left: 10px;
      font-size: 0.5em; }

    // View source... tooltip when hovering class name
    span.class-source-tip {
    .class-source-tip {
      font-size: 0.5em;
      position: absolute;
      top: 35px;
@@ -45,7 +45,7 @@
      &.hover {
        color: #929292; } }

    .signature {
    .signature-container > span {
      font-weight: bold;
      text-transform: uppercase;
      font-size: 0.4em;
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@
    background-color: #efe;
    padding: 10px 50px;
    text-align: center; }
  .signature {
  .signature-container > span {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.7em;
Loading