';
- expect(removeLinebreaks(json.sections[1].wrappedMarkup)).eql(wrappedMarkup);
- });
-
- it('should inherit wrapper markup to the subsection', function() {
- var wrappedMarkup = '
Content inside outer wrapper
';
- expect(removeLinebreaks(json.sections[2].wrappedMarkup)).eql(wrappedMarkup);
- });
-
- it('should inherit wrapper markup to the subsection with the current wrapper markup', function() {
- var wrappedMarkup = '
Content inside inner and outer wrapper
';
- expect(removeLinebreaks(json.sections[3].wrappedMarkup)).eql(wrappedMarkup);
- });
-
- it('should inherit all parent wrapper markups to the sub-sub-section', function() {
- var wrappedMarkup = '
Second level content
';
- expect(removeLinebreaks(json.sections[4].wrappedMarkup)).eql(wrappedMarkup);
- });
-});
diff --git a/test/projects/less-project/source/styles/style.less b/test/projects/less-project/source/styles/style.less
index beb884d4..2d7af3d0 100644
--- a/test/projects/less-project/source/styles/style.less
+++ b/test/projects/less-project/source/styles/style.less
@@ -1,68 +1,30 @@
@import "_styleguide_variables";
-// Colors
-//
-// This section demonstrates how to present your color variables using
-// styleguide
-//
-// $color-red - Red test color
-// $color-green - Green test color
-// $color-blue - Blue test color
+// First section
//
// Markup:
-//
+//
Section markup
//
// Styleguide 1.0
-// Typography
+.section {
+ background-color: @color-red;
+ color: @color-green;
+}
+
+// Section with modifiers
//
-// You can also use styleguide to demonstrate your typographic scale etc.
+// $color-red - Red test color
+// $color-green - Green test color
+// $color-blue - Blue test color
//
// Markup:
-//
-//
Quick brown fox
-//
Quick brown fox
-//
Quick brown fox
-//
Quick brown fox
-//
Quick brown fox
-// Quick brown fox
-//
+//
//
// Styleguide 2.0
-// Elements
-//
-// This section contains example documentation of different kinds of html
-// elements
+// Section without markup
//
// Styleguide 3.0
-// Buttons
-//
-// This section demonstrates the use of modifiers
-//
-// default - This is the default state of a button element
-// .green - This is a button with a class modifier
-// .red - This is another button with a class modifier
-// :hover - This is a button with the hover pseudo modifier
-//
-// Markup:
-//
-//
-// Styleguide 3.1
-
-.button {
- border: 1px solid black;
- padding: 1em;
- border-radius: 5px;
-
- &.green {
- background: @color-green;
- }
- &.red {
- background: @color-red;
- }
- &:hover {
- background: yellow;
- }
-}
+.test-css {color: purple;}
\ No newline at end of file
diff --git a/test/projects/scss-project/source/styles/style.scss b/test/projects/scss-project/source/styles/style.scss
index 512701e3..110fe4cb 100644
--- a/test/projects/scss-project/source/styles/style.scss
+++ b/test/projects/scss-project/source/styles/style.scss
@@ -1,147 +1,30 @@
@import "styleguide_variables";
-// Colors
-//
-// This section demonstrates how to present your color variables using
-// styleguide
-//
-// $color-red - Red test color
-// $color-green - Green test color
-// $color-blue - Blue test color
+// First section
//
// Markup:
-//
+//
Section markup
//
// Styleguide 1.0
-// Typography
-//
-// You can also use styleguide to demonstrate your typographic scale etc.
-//
-// Markup:
-//
-//
Quick brown fox
-//
Quick brown fox
-//
Quick brown fox
-//
Quick brown fox
-//
Quick brown fox
-// Quick brown fox
-//
-//
-// Styleguide 2.0
-
-html {font-size: 1em;}
-
-body {
- background-color: white;
- font-family: 'Libre Baskerville', serif;
- font-weight: 400;
- line-height: 1.45;
- color: #333;
+.section {
+ background-color: $color-red;
+ color: $color-green;
}
-p {margin-bottom: 1.3em;}
-
-h1, h2, h3, h4 {
- margin: 1.414em 0 0.5em;
- font-weight: inherit;
- line-height: 1.2;
-}
-
-h1 {
- margin-top: 0;
- font-size: 3.998em;
-}
-
-h2 {font-size: 2.827em;}
-
-h3 {font-size: 1.999em;}
-
-h4 {font-size: 1.414em;}
-
-small, .font_small {font-size: 0.707em;}
-
-// Elements
+// Section with modifiers
//
-// This section contains example documentation of different kinds of html
-// elements
-//
-// Styleguide 3.0
-
-// Buttons
-//
-// This section demonstrates the use of modifiers
-//
-// default - This is the default state of a button element
-// .green - This is a button with a class modifier
-// .red - This is another button with a class modifier
-// :hover - This is a button with the hover pseudo modifier
+// $color-red - Red test color
+// $color-green - Green test color
+// $color-blue - Blue test color
//
// Markup:
-//
+//
//
-// Styleguide 3.1
-
-.button {
- border: 1px solid black;
- padding: 1em;
- border-radius: 5px;
-
- &.green {
- background: $color-green;
- }
- &.red {
- background: $color-red;
- }
- &:hover {
- background: yellow;
- }
-}
+// Styleguide 2.0
-// Grid
-//
-// You can use styleguide visualize your page layouts
+// Section without markup
//
-// Markup:
-//
';
+ expect(removeLinebreaks(json.sections[1].wrappedMarkup)).eql(wrappedMarkup);
+ });
+
+ it('should inherit wrapper markup to the subsection', function() {
+ var wrappedMarkup = '
Content inside outer wrapper
';
+ expect(removeLinebreaks(json.sections[2].wrappedMarkup)).eql(wrappedMarkup);
+ });
+
+ it('should inherit wrapper markup to the subsection with the current wrapper markup', function() {
+ var wrappedMarkup = '
Content inside inner and outer wrapper
';
+ expect(removeLinebreaks(json.sections[3].wrappedMarkup)).eql(wrappedMarkup);
+ });
+
+ it('should inherit all parent wrapper markups to the sub-sub-section', function() {
+ var wrappedMarkup = '