style updated: introduced themes, accessibility controlling, other

This commit is contained in:
tmshv committed 2017-02-20 02:30:25 +03:00
1 parent f27cc4003f
commit ee9919b39d
55 files changed
+188 -1784

No files matched your search

+3 -1
View File
@@ -21,6 +21,7 @@ import ArticlePageControl from './components/ArticlePageControl'
import Album from './components/Album'
import Parallax from './components/Parallax'
import ThemeSelector from './components/ThemeSelector'
import AccessibilityControl from './components/AccessibilityControl'
import Page from './components/CloudPage'
import PageSchool from './components/PageSchool'
@@ -313,5 +314,6 @@ app.run(($location, $rootScope, $http) => {
ScheduleSlide,
ScheduleRecord,
FooterLinks,
ThemeSelector
ThemeSelector,
AccessibilityControl,
].map(i => i(app))
@@ -0,0 +1,19 @@
import template from '../../templates/components/accessibility-control.html'
export default function (app) {
app.component('accessibilityControl', {
template,
controller: ($scope, theme) => {
//const update = () => {
// $scope.isMainTheme = theme.currentTheme === theme.mainTheme
//}
//
//$scope.toggleTheme = () => {
// theme.toggle()
// update()
//}
//
//update()
},
})
}
+2 -2
View File
@@ -1,6 +1,6 @@
const themes = {
main: 'style.css',
accessibility: 'style-accessibility.css',
main: 'theme-default',
accessibility: 'accessibility theme-accessibility-bw',
}
const defaultTheme = 'main'