Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Code Block color, Text/Link Color changes & added CSS Build GH Action #2

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/build-css.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build CSS

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603

- name: Install dependencies
run: dart pub get

# Verify the use of 'dart format' on each commit.
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .

- name: Analyze project source
run: dart analyze

- name: Build the CSS File
run: dart scripts/sass_compile.dart src/index.scss result.css

- name: Upload
uses: actions/upload-artifact@v4
with:
name: output
path: result.css
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
.pub/

build/
pubspec.lock
result.css
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
1. Install dependencies:
`pub get`
2. Run build
`sh scripts/build.sh`
`dart scripts/sass_compile.dart src/index.scss result.css`
11 changes: 7 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: pub_dev_dark
publish_to: none

environment:
sdk: '>=2.15.1 <3.0.0'
environment:
sdk: ">=2.15.1 <3.0.0"

dev_dependencies:
sass: ^1.49.9
dev_dependencies:
sass: ^1.49.9

dependency_overrides:
watcher: ^1.1.0
295 changes: 0 additions & 295 deletions result.css

This file was deleted.

1 change: 0 additions & 1 deletion scripts/build.sh

This file was deleted.

3 changes: 2 additions & 1 deletion src/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use 'sass:color';
@use "sass:color";

$backgroundColor: #121212;
$pane01Color: color.mix(#ffffff, $backgroundColor, 5%);
Expand Down Expand Up @@ -27,4 +27,5 @@ $pane24Color: color.mix(#ffffff, $backgroundColor, 16%);
--darkBlue: #151920;
--darkRed: #391f1f;
--activeRed: #ae4b4b;
--linkColor: #5fcefd;
}
Loading