Skip to content

Commit

Permalink
fix: Removing -NoStop ( Fixes #62 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Apr 22, 2024
1 parent 8d804b1 commit 9ef64b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
31 changes: 2 additions & 29 deletions Commands/Export-4BitCSS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,7 @@ function Export-4BitCSS
# If set, will not generate css classes for each background-color.
[Alias('NoBackgrounColors')]
[switch]
$NoBackgroundColor,

# If set, will not generate css classes for each stop-color.
[Alias('NoGradientStop','NoGradientStops','NoStops')]
[switch]
$NoStop,
$NoBackgroundColor,

# If set, will not generate css classes that correspond to `$psStyle`.
[Alias('NoStyles','NoPSStyle','NoPSStyles')]
Expand Down Expand Up @@ -252,8 +247,7 @@ function Export-4BitCSS
$NoElement = $true
$NoStroke = $true
$NoBackgroundColor = $true
$NoStyle = $true
$NoStop = $true
$NoStyle = $true
}

$rgb = ($Background -replace "#", "0x" -replace ';') -as [UInt32]
Expand Down Expand Up @@ -426,27 +420,6 @@ if (-not $NoStroke) {
"@
}

if (-not $noStop) {
@"
.stop-black, .Stop-Black, .ANSI0-Stop, .ansi0-stop { stop-color: var(--black) }
.stop-red, .Stop-Red, .ANSI1-Stop, .ansi1-stop { stop-color: var(--red) }
.stop-green, .Stop-Green, .ANSI2-Stop, .ansi2-stop { stop-color: var(--green) }
.stop-yellow, .Stop-Yellow, .ANSI3-Stop, .ansi3-stop { stop-color: var(--yellow) }
.stop-blue, .Stop-Blue, .ANSI4-Stop, .ansi4-stop { stop-color: var(--blue) }
.stop-purple, .Stop-Purple, .ANSI5-Stop, .ansi5-stop { stop-color: var(--purple) }
.stop-cyan, .Stop-Cyan, .ANSI6-Stop, .ansi6-stop { stop-color: var(--cyan) }
.stop-white, .Stop-White, .ANSI7-Stop, .ansi7-stop { stop-color: var(--white) }
.stop-brightblack, .Stop-BrightBlack, .BrightBlack-Stop, .ANSI8-Stop, .ansi8-stop { stop-color: var(--brightBlack) }
.stop-brightred, .Stop-BrightRed, .BrightRed-Stop, .ANSI9-Stop, .ansi9-stop { stop-color: var(--brightRed) }
.stop-brightgreen, .Stop-BrightGreen, .BrightGreen-Stop, .ANSI10-Stop, .ansi10-stop { stop-color: var(--brightGreen) }
.stop-brightyellow, .Stop-BrightYellow, .BrightYellow-Stop, .ANSI11-Stop, .ansi11-stop { stop-color: var(--brightYellow) }
.stop-brightblue, .Stop-BrightBlue, .BrightBlue-Stop, .ANSI12-Stop, .ansi12-stop { stop-color: var(--brightBlue) }
.stop-brightpurple, .Stop-BrightPurple, .BrightPurple-Stop, .ANSI13-Stop, .ansi13-stop { stop-color: var(--brightPurple) }
.stop-brightcyan, .Stop-BrightCyan, .BrightCyan-Stop, .ANSI14-Stop, .ansi14-stop { stop-color: var(--brightCyan) }
.stop-brightwhite, .Stop-BrightWhite, .BrightWhite-Stop, .ANSI15-Stop, .ansi15-stop { stop-color: var(--brightWhite) }
"@
}

if (-not $NoStyle) {
@"
/* psStyles */
Expand Down
2 changes: 1 addition & 1 deletion docs/_layouts/default.ps.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<link href='https://fonts.googleapis.com/css?family=Abel' rel='stylesheet'>
<meta name="viewport" content="width=device-width" />
{% if page.stylesheet %}
<link rel="stylesheet" type="text/css" href="/{{page.stylesheet}}" id="4bitcss" />
<link rel="stylesheet" type="text/css" href="{{page.stylesheet}}" id="4bitcss" />
{% else %}
<link rel="stylesheet" type="text/css" href="/Konsolas.css" id="4bitcss" />
{% endif %}
Expand Down

0 comments on commit 9ef64b7

Please sign in to comment.