forked from forkcms/forkcms
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #373 from sumocoders/490-custom-sumo-theme
490 custom sumo theme
- Loading branch information
Showing
65 changed files
with
4,220 additions
and
416 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ module.exports = { | |
warnings: false | ||
} | ||
} | ||
} | ||
}, | ||
'postcss-easing-gradients': {} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "", | ||
"short_name": "", | ||
"icons": [ | ||
{ | ||
"src": "/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"theme_color": "#ffffff", | ||
"background_color": "#ffffff", | ||
"display": "standalone" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// import plugins | ||
import 'bootstrap' | ||
|
||
// component imports | ||
import { Components } from '../../../../../Modules/Frontend/assets/Frontend/webpack/js/_Components' | ||
import NavbarToggler from './components/navbar-toggler' | ||
|
||
export class Fork { | ||
initFrontend () { | ||
this.components = new Components() | ||
this.components.initComponents() | ||
} | ||
} | ||
|
||
$(window).on('load', () => { | ||
window.frontend = new Fork() | ||
window.frontend.initFrontend() | ||
window.navbarToggler = new NavbarToggler() | ||
}) |
6 changes: 6 additions & 0 deletions
6
src/Themes/Custom/assets/webpack/js/components/navbar-toggler.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default function NavbarToggler () { | ||
const toggler = document.querySelector('.navbar-toggler') | ||
toggler.addEventListener('click', function () { | ||
document.querySelector('body').classList.toggle('nav-expanded') | ||
}) | ||
} |
52 changes: 52 additions & 0 deletions
52
src/Themes/Custom/assets/webpack/scss/_bootstrap-imports.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/*! | ||
* Bootstrap v5.0.2 (https://getbootstrap.com/) | ||
* Copyright 2011-2021 The Bootstrap Authors | ||
* Copyright 2011-2021 Twitter, Inc. | ||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) | ||
*/ | ||
|
||
// scss-docs-start import-stack | ||
// Configuration | ||
@import '~bootstrap/scss/mixins'; | ||
@import '~bootstrap/scss/maps'; | ||
@import '~bootstrap/scss/utilities'; | ||
|
||
// Layout & components | ||
@import '~bootstrap/scss/root'; | ||
@import '~bootstrap/scss/reboot'; | ||
@import '~bootstrap/scss/type'; | ||
@import '~bootstrap/scss/images'; | ||
@import '~bootstrap/scss/containers'; | ||
@import '~bootstrap/scss/grid'; | ||
@import '~bootstrap/scss/tables'; | ||
@import '~bootstrap/scss/forms'; | ||
@import '~bootstrap/scss/buttons'; | ||
@import '~bootstrap/scss/transitions'; | ||
@import '~bootstrap/scss/dropdown'; | ||
@import '~bootstrap/scss/button-group'; | ||
@import '~bootstrap/scss/nav'; | ||
@import '~bootstrap/scss/navbar'; | ||
@import '~bootstrap/scss/card'; | ||
@import '~bootstrap/scss/accordion'; | ||
@import '~bootstrap/scss/breadcrumb'; | ||
@import '~bootstrap/scss/pagination'; | ||
@import '~bootstrap/scss/badge'; | ||
@import '~bootstrap/scss/alert'; | ||
@import '~bootstrap/scss/progress'; | ||
@import '~bootstrap/scss/list-group'; | ||
@import '~bootstrap/scss/close'; | ||
@import '~bootstrap/scss/toasts'; | ||
@import '~bootstrap/scss/modal'; | ||
@import '~bootstrap/scss/tooltip'; | ||
@import '~bootstrap/scss/popover'; | ||
@import '~bootstrap/scss/carousel'; | ||
@import '~bootstrap/scss/spinners'; | ||
@import '~bootstrap/scss/offcanvas'; | ||
@import '~bootstrap/scss/placeholders'; | ||
|
||
// Helpers | ||
@import '~bootstrap/scss/helpers'; | ||
|
||
// Utilities | ||
@import '~bootstrap/scss/utilities/api'; | ||
// scss-docs-end import-stack |
Oops, something went wrong.