Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
Finish normalising 2-space indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JayPanoz committed Oct 22, 2019
1 parent c97049a commit dd2b501
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
44 changes: 22 additions & 22 deletions Blitz_framework/LESS/extensions/rules.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,38 @@ hr {
.width-center(25);
@computed-margin: (((@body-font-size * @body-line-height) - @border-width) / @body-font-size);
margin-top: (@computed-margin + 0em);
margin-bottom: (@computed-margin + 0em);
margin-bottom: (@computed-margin + 0em);
height: 0;
border: none;
border-top: (((@border-width * 2) / @body-font-size) + 0em) solid @border-color; /* currentColor = color of text (getting around night mode) */
opacity: 0.5; /* Opacity -> grayscale. If opacity is declared for too many elements in a XHTML file, performance of legacy RMSDK takes a hit */
@media @mobi7 {
margin: floor(@base-margin) 0;
}
border-top: (((@border-width * 2) / @body-font-size) + 0em) solid @border-color; /* currentColor = color of text (getting around night mode) */
opacity: 0.5; /* Opacity -> grayscale. If opacity is declared for too many elements in a XHTML file, performance of legacy RMSDK takes a hit */

@media @mobi7 {
margin: floor(@base-margin) 0;
}
}

/* Blank-line context change */
hr.transition {
width: 100%;
margin: 0;
height: @base-margin;
border: none;
background: none; /* Note: overridden in night mode excepted when using linear-gradient */
width: 100%;
margin: 0;
height: @base-margin;
border: none;
background: none; /* Note: overridden in night mode excepted when using linear-gradient */
}

/* Over-engineered asterism with an SVG background
which is legacy RMSDK-compliant, reflows with text and
is night-mode compatible (black asterisk + white border) */
hr.asterism {
width: auto;
border: none;
margin: @base-margin 0;
height: @base-margin;
text-indent: 0;
text-align: center;
background: transparent url("../Images/asterism.svg") no-repeat center; /* Change url if you put asterism in a folder */
background-size: 2.5em 1.25em; /* RMSDK doesn't support -> won't scale but SVG viewport is OK for a wide range of font-sizes */
overflow: hidden; /* Fixes legacy RMSDK bug when contents before hr are invisible */
opacity: 0.7; /* Better border color match in night mode (less disruptive) */
width: auto;
border: none;
margin: @base-margin 0;
height: @base-margin;
text-indent: 0;
text-align: center;
background: transparent url("../Images/asterism.svg") no-repeat center; /* Change url if you put asterism in a folder */
background-size: 2.5em 1.25em; /* RMSDK doesn't support -> won't scale but SVG viewport is OK for a wide range of font-sizes */
overflow: hidden; /* Fixes legacy RMSDK bug when contents before hr are invisible */
opacity: 0.7; /* Better border color match in night mode (less disruptive) */
}
4 changes: 2 additions & 2 deletions Blitz_framework/LESS/utils/utilities.less
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
}
}

/* Font sizes */
/* Font sizes */

.fs-xxs {
.fs(-2);
Expand Down Expand Up @@ -331,7 +331,7 @@
text-decoration: underline;
}

/* Misc */
/* Misc */

.no-list-type { /* Typical usage: hiding numbers in toc */
list-style-type: none;
Expand Down

0 comments on commit dd2b501

Please sign in to comment.