Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
modified style to support multi-theme and dark-mode (read below)
Browse files Browse the repository at this point in the history
at this point this is still a WIP, and see below PR:

jgthms/bulma#3490
  • Loading branch information
bvandevliet committed Feb 18, 2022
1 parent c09757c commit 1c9989b
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 206 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"root": true,
"ignorePatterns": [
"src/renderer/assets/bulma/"
],
"env": {
"browser": true,
"es6": true
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ package-lock.json

favicon*.ico
favicon*.png
favicon*.svg
favicon*.svg

**/assets/bulma/
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "A simple PDM tool.",
"main": "dist/main/main.js",
"scripts": {
"dist": "( if exist .\\dist\\ rd .\\dist\\ /s /q ) && tsc && tsc --project .\\src\\main\\tsc.cjs.json && ejs -p [ -c ] -w .\\src\\renderer\\index.ejs -o .\\dist\\renderer\\index.html && sass src\\:dist\\ --style=compressed",
"dist": "( if exist .\\dist\\ rd .\\dist\\ /s /q ) && tsc && tsc --project .\\src\\main\\tsc.cjs.json && ejs -p [ -c ] -w .\\src\\renderer\\index.ejs -o .\\dist\\renderer\\index.html && sass src\\renderer\\assets\\css\\style.scss:dist\\renderer\\assets\\css\\style.css --style=compressed",
"start": "npm run dist && .\\node_modules\\electron\\dist\\electron.exe . --dev",
"build": "npm run dist && ( if exist .\\out\\ rd .\\out\\ /s /q ) && electron-builder build --win"
},
Expand Down Expand Up @@ -52,7 +52,6 @@
"@types/tedious": "^4.0.6",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"bulma": "^0.9.3",
"ejs": "^3.1.6",
"electron": "^17.0.1",
"electron-builder": "^22.14.5",
Expand Down
67 changes: 0 additions & 67 deletions src/renderer/assets/css/_vars-_.scss

This file was deleted.

70 changes: 0 additions & 70 deletions src/renderer/assets/css/_vars-derived.sass

This file was deleted.

160 changes: 95 additions & 65 deletions src/renderer/assets/css/style.scss
Original file line number Diff line number Diff line change
@@ -1,69 +1,99 @@
@charset 'utf-8';
@import './_vars-_.scss';
@import './_vars-derived.sass';

// Bulma scripts ..

@import '../../../../node_modules/bulma/sass/utilities/_all.sass';
@import '../../../../node_modules/bulma/sass/base/_all.sass';

// @import '../../../../node_modules/bulma/sass/elements/_all.sass';
// @import '../../../../node_modules/bulma/sass/elements/box.sass';
@import '../../../../node_modules/bulma/sass/elements/button.sass';
// @import '../../../../node_modules/bulma/sass/elements/container.sass';
// @import '../../../../node_modules/bulma/sass/elements/content.sass';
// @import '../../../../node_modules/bulma/sass/elements/icon.sass';
// @import '../../../../node_modules/bulma/sass/elements/image.sass';
// @import '../../../../node_modules/bulma/sass/elements/notification.sass';
// @import '../../../../node_modules/bulma/sass/elements/progress.sass';
@import '../../../../node_modules/bulma/sass/elements/table.sass';
@import '../../../../node_modules/bulma/sass/elements/tag.sass';
@import '../../../../node_modules/bulma/sass/elements/title.sass';
@import '../../../../node_modules/bulma/sass/elements/other.sass';

// @import '../../../../node_modules/bulma/sass/form/_all.sass';
@import '../../../../node_modules/bulma/sass/form/shared.sass';
@import '../../../../node_modules/bulma/sass/form/input-textarea.sass';
// @import '../../../../node_modules/bulma/sass/form/checkbox-radio.sass';
// @import '../../../../node_modules/bulma/sass/form/select.sass';
// @import '../../../../node_modules/bulma/sass/form/file.sass';
@import '../../../../node_modules/bulma/sass/form/tools.sass';

// @import '../../../../node_modules/bulma/sass/components/_all.sass';
// @import '../../../../node_modules/bulma/sass/components/breadcrumb.sass';
// @import '../../../../node_modules/bulma/sass/components/card.sass';
// @import '../../../../node_modules/bulma/sass/components/dropdown.sass';
// @import '../../../../node_modules/bulma/sass/components/level.sass';
// @import '../../../../node_modules/bulma/sass/components/media.sass';
// @import '../../../../node_modules/bulma/sass/components/menu.sass';
// @import '../../../../node_modules/bulma/sass/components/message.sass';
// @import '../../../../node_modules/bulma/sass/components/modal.sass';
// @import '../../../../node_modules/bulma/sass/components/navbar.sass';
// @import '../../../../node_modules/bulma/sass/components/pagination.sass';
// @import '../../../../node_modules/bulma/sass/components/panel.sass';
@import '../../../../node_modules/bulma/sass/components/tabs.sass';

// @import '../../../../node_modules/bulma/sass/grid/_all.sass';
@import '../../../../node_modules/bulma/sass/grid/columns.sass';
// @import '../../../../node_modules/bulma/sass/grid/tiles.sass';

// @import '../../../../node_modules/bulma/sass/helpers/_all.sass';
@import '../../../../node_modules/bulma/sass/helpers/color.sass';
@import '../../../../node_modules/bulma/sass/helpers/flexbox.sass';
@import '../../../../node_modules/bulma/sass/helpers/float.sass';
@import '../../../../node_modules/bulma/sass/helpers/other.sass';
@import '../../../../node_modules/bulma/sass/helpers/overflow.sass';
@import '../../../../node_modules/bulma/sass/helpers/position.sass';
@import '../../../../node_modules/bulma/sass/helpers/spacing.sass';
@import '../../../../node_modules/bulma/sass/helpers/typography.sass';
@import '../../../../node_modules/bulma/sass/helpers/visibility.sass';

// @import '../../../../node_modules/bulma/sass/layout/_all.sass';
// @import '../../../../node_modules/bulma/sass/layout/hero.sass';
@import '../../../../node_modules/bulma/sass/layout/section.sass';
// @import '../../../../node_modules/bulma/sass/layout/footer.sass';

// Local scripts ..


// Typography

$family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
$family-monospace: monospace;
$render-mode: optimizeLegibility;

$size-1: 3rem;
$size-2: 2.5rem;
$size-3: 2rem;
$size-4: 1.5rem;
$size-5: 1.25rem;
$size-6: 1rem;
$size-7: 0.75rem;


// Spacing

$column-gap: 0.75rem;
$block-spacing: 1.5rem;


// Compensate and reset padding (also for input controls with respect to removal of borders).

$control-padding-vertical: .2em;
$control-padding-horizontal: .5em;
$control-height: unset;
$table-cell-padding: $control-padding-vertical $control-padding-horizontal;
$tabs-link-padding: $table-cell-padding;


// Bulma ..

@import './../bulma/sass/utilities/_all.scss';
@import './../bulma/sass/base/_all.sass';

// @import './../bulma/sass/elements/_all.sass';
// @import './../bulma/sass/elements/box.sass';
@import './../bulma/sass/elements/button.sass';
// @import './../bulma/sass/elements/container.sass';
// @import './../bulma/sass/elements/content.sass';
// @import './../bulma/sass/elements/icon.sass';
// @import './../bulma/sass/elements/image.sass';
// @import './../bulma/sass/elements/notification.sass';
// @import './../bulma/sass/elements/progress.sass';
@import './../bulma/sass/elements/table.sass';
@import './../bulma/sass/elements/tag.sass';
@import './../bulma/sass/elements/title.sass';
@import './../bulma/sass/elements/other.sass';

// @import './../bulma/sass/form/_all.sass';
@import './../bulma/sass/form/shared.sass';
@import './../bulma/sass/form/input-textarea.sass';
// @import './../bulma/sass/form/checkbox-radio.sass';
// @import './../bulma/sass/form/select.sass';
// @import './../bulma/sass/form/file.sass';
@import './../bulma/sass/form/tools.sass';

// @import './../bulma/sass/components/_all.sass';
// @import './../bulma/sass/components/breadcrumb.sass';
// @import './../bulma/sass/components/card.sass';
// @import './../bulma/sass/components/dropdown.sass';
// @import './../bulma/sass/components/level.sass';
// @import './../bulma/sass/components/media.sass';
// @import './../bulma/sass/components/menu.sass';
// @import './../bulma/sass/components/message.sass';
// @import './../bulma/sass/components/modal.sass';
// @import './../bulma/sass/components/navbar.sass';
// @import './../bulma/sass/components/pagination.sass';
// @import './../bulma/sass/components/panel.sass';
@import './../bulma/sass/components/tabs.sass';

// @import './../bulma/sass/grid/_all.sass';
@import './../bulma/sass/grid/columns.sass';
// @import './../bulma/sass/grid/tiles.sass';

// @import './../bulma/sass/helpers/_all.sass';
@import './../bulma/sass/helpers/color.sass';
@import './../bulma/sass/helpers/flexbox.sass';
@import './../bulma/sass/helpers/float.sass';
@import './../bulma/sass/helpers/other.sass';
@import './../bulma/sass/helpers/overflow.sass';
@import './../bulma/sass/helpers/position.sass';
@import './../bulma/sass/helpers/spacing.sass';
@import './../bulma/sass/helpers/typography.sass';
@import './../bulma/sass/helpers/visibility.sass';

// @import './../bulma/sass/layout/_all.sass';
// @import './../bulma/sass/layout/hero.sass';
@import './../bulma/sass/layout/section.sass';
// @import './../bulma/sass/layout/footer.sass';


// Customizations ..

@import './extensions/helpers';

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,6 @@
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
// "skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": ["src/**/*"]
"include": ["src/**/*"],
"exclude": ["src/renderer/assets/bulma/"]
}

0 comments on commit 1c9989b

Please sign in to comment.