Commit 9b854956 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Move private class styles to @private Tag class.

parent e2f7ea1e
Loading
Loading
Loading
Loading
+15 −4
Original line number Diff line number Diff line
@@ -6,7 +6,17 @@ module JsDuck::Tag
      @pattern = "private"
      @signature = {:long => "private", :short => "PRI"}
      @html_position = POS_PRIVATE
      @css = ".signature .private { background-color: #FD6B1B }" # Orange
      @css = <<-EOCSS
        .signature .private {
          background-color: #FD6B1B; /* orange */
        }
        .private-box {
          background-color: #fee;
          text-align: center;
          color: #600;
          margin-bottom: 1em;
        }
      EOCSS
      super
    end

@@ -15,9 +25,10 @@ module JsDuck::Tag
      return unless context[:tagname] == :class

      return [
        "<p class='private'><strong>NOTE</strong> ",
        "This is a private utility class for internal use by the framework. ",
        "Don't rely on its existence.</p>",
        "<div class='rounded-box private-box'>",
        "<p><strong>NOTE:</strong> This is a private utility class for internal use ",
        "by the framework. Don't rely on its existence.</p>",
        "</div>",
      ]
    end
  end
+0 −7
Original line number Diff line number Diff line
@@ -60,13 +60,6 @@
    @include guides-h3-heading; } }

.class-overview {
  p.private {
    border: 1px solid #999;
    @include border-radius(5px);
    color: #600;
    background-color: #fee;
    padding: 10px 50px;
    text-align: center; }
  p.enum {
    border: 1px solid #999;
    @include border-radius(5px);