File tree Expand file tree Collapse file tree 10 files changed +1869
-13959
lines changed
bobtemplates/plone/theme_barceloneta/src/+package.namespace+/+package.name+/theme
docs/templates/addon/theme_barceloneta Expand file tree Collapse file tree 10 files changed +1869
-13959
lines changed Original file line number Diff line number Diff line change 1111
1212jobs :
1313 build :
14- runs-on : ubuntu-latest
1514 strategy :
16- fail-fast : true
1715 matrix :
18- python-version : ["3.9", "3.10"]
19-
16+ python-version :
17+ - " 3.8"
18+ - " 3.9"
19+ - " 3.10"
20+ - " 3.11"
21+ os :
22+ - ubuntu-latest
23+ runs-on : ${{ matrix.os }}
2024 steps :
21- - uses : actions/setup-python@v2
22- with :
23- python-version : ' 3.10'
24- - uses : actions/checkout@v2
25- - uses : actions/cache@v2
25+ - uses : actions/checkout@v3
26+ - uses : actions/cache@v3
2627 with :
2728 path : ~/.cache/pip
2829 key : ${{ runner.os }}-tox-${{ hashFiles('**/tox.ini') }}-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/constraints.txt') }}-${{ hashFiles('**/setup.py') }}
2930 restore-keys : |
3031 ${{ runner.os }}-pip-
3132 - name : Set up Python ${{ matrix.python-version }}
32- uses : actions/setup-python@v2
33+ uses : actions/setup-python@v4
3334 with :
3435 python-version : ${{ matrix.python-version }}
3536
3637 - name : Install dependencies
3738 run : |
3839 python -m pip install --upgrade pip
39- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
40+ pip install -r requirements.txt
4041 pip install tox-gh-actions>=3.0.0
41- pip install -e .
4242 - name : Black-Check
4343 run : |
4444 tox -r -e black-check
4545 - name : Test with tox
4646 run : |
4747 tox -r
48+ env :
49+ PLATFORM : ${{ matrix.os }}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Breaking changes:
1010
1111New features:
1212
13- - * add item here *
13+ - Fix SCSS imports for latest Bootstrap 5.3.
1414
1515Bug fixes:
1616
Original file line number Diff line number Diff line change 1515 "tinymce": "^5.10.2"
1616 },
1717 "scripts": {
18- "watch": "nodemon --watch styles / --ext scss --exec \"npm run css-main\"",
18+ "watch": "nodemon --watch scss / --ext scss --exec \"npm run css-main\"",
1919 "build": "npm-run-all css-compile-main css-prefix-main css-minify-main",
2020 "css-main": "npm-run-all css-compile-main css-prefix-main css-minify-main",
21- "css-compile-main": "sass --load-path=node_modules --style expanded --source-map --embed-sources --no-error-css styles /theme.scss:styles/theme.css",
21+ "css-compile-main": "sass --load-path=node_modules --style expanded --source-map --embed-sources --no-error-css scss /theme.scss:styles/theme.css",
2222 "css-prefix-main": "postcss --config postcss.config.js --replace \"styles/*.css\" \"!styles/*.min.css\"",
2323 "css-minify-main": "cleancss -O1 --format breakWith=lf --with-rebase --source-map --source-map-inline-sources --output styles/theme.min.css styles/theme.css",
24- "css-lint": "stylelint \"styles /**/*.scss\" --cache --cache-location .cache/.stylelintcache"
24+ "css-lint": "stylelint \"scss /**/*.scss\" --cache --cache-location .cache/.stylelintcache"
2525 },
2626 "dependencies": {
27- "@plone/plonetheme-barceloneta-base": "~3.0 .3"
27+ "@plone/plonetheme-barceloneta-base": "^3.1 .3"
2828 }
2929}
Original file line number Diff line number Diff line change 1+ #portal-logo img {
2+ filter : invert (60% ) sepia (75% ) saturate (503% ) hue-rotate (62deg ) brightness (93% ) contrast (91% );
3+ }
Original file line number Diff line number Diff line change 1+ $theme-plone-colors : (
2+ " link-color-on-dark" : $secondary ,
3+ " link-hover-color" : $tertiary ,
4+ );
5+
6+ $plone-colors : map-merge ($plone-colors , $theme-plone-colors );
7+
8+ $theme-state-colors : (
9+ " published" : $primary ,
10+ );
11+
12+ $state-colors : map-merge ($state-colors , $theme-state-colors );
Original file line number Diff line number Diff line change 1+ $primary : #4AC728 ;
2+ $secondary : #36941D ;
3+ $tertiary : #1B470E ;
Original file line number Diff line number Diff line change 11// Theme import structure is based on Bootstrap documentation
2- // https://getbootstrap.com/docs/5.2 /customize/sass/#importing
2+ // https://getbootstrap.com/docs/5.3 /customize/sass/#importing
33
44// Barceloneta and Bootstrap import are using --load-path=node_modules
55
@@ -10,14 +10,18 @@ $enable-roboto-webfont: false !default;
1010@import " bootstrap/scss/functions" ;
1111
1212// 2. Include any default variable overrides here
13+ @import " variables" ;
1314
1415// 3. Include remainder of required Barceloneta and Bootstrap stylesheets
1516@import " @plone/plonetheme-barceloneta-base/scss/variables.colors.plone" ;
17+ @import " @plone/plonetheme-barceloneta-base/scss/variables.colors.dark.plone" ;
1618@import " @plone/plonetheme-barceloneta-base/scss/variables.properties" ;
1719@import " @plone/plonetheme-barceloneta-base/scss/variables.barceloneta" ;
1820@import " bootstrap/scss/variables" ;
21+ @import " bootstrap/scss/variables-dark" ;
1922
2023// 4. Include any default map overrides here
24+ @import " maps" ;
2125
2226// 5. Include remainder of required parts
2327@import " bootstrap/scss/maps" ;
@@ -93,4 +97,5 @@ $enable-roboto-webfont: false !default;
9397// @import "@plone/plonetheme-barceloneta-base/scss/roboto-webfont";
9498
9599
96- // 9. Add additional custom code here
100+ // 9. Add additional custom code here
101+ @import " custom" ;
You can’t perform that action at this time.
0 commit comments