Skip to content

Commit 5567536

Browse files
committed
#282 configuration-panel: scss
1 parent eb5cfca commit 5567536

3 files changed

Lines changed: 17 additions & 27 deletions

File tree

apps/covid/view/GalleryContainer.mjs

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import GalleryContainerController from './GalleryContainerController.mjs';
33
import {default as Panel} from '../../../src/container/Panel.mjs';
44
import {default as RangeField} from '../../../src/form/field/Range.mjs';
55
import {default as Container} from '../../../src/container/Viewport.mjs';
6-
import {default as VDomUtil} from "src/util/VDom";
7-
import ComponentManager from "src/manager/Component";
86

97
/**
108
* @class Covid.view.GalleryContainer
@@ -178,37 +176,20 @@ class GalleryContainer extends Container {
178176
}]
179177
}, {
180178
ntype: 'label',
179+
cls : ['neo-details-label'],
181180
text : [
182181
'<b>Navigation Concept</b>',
183182
'<p>You can use the Arrow Keys to walk through the items.</p>'
184-
].join(''),
185-
186-
style: {
187-
backgroundColor: '#323232',
188-
color : '#ddd',
189-
fontSize : '13px',
190-
margin : '10px',
191-
padding : '10px',
192-
whiteSpace : 'normal'
193-
}
183+
].join('')
194184
}, {
195185
ntype: 'label',
196-
cls : ['neo-link-color'],
186+
cls : ['neo-details-label', 'neo-link-color'],
197187
text : [
198188
'<b>Attribution</b>',
199189
'<p>App created with <a href="https://github.com/neomjs/neo">neo.mjs</a>.</p>',
200190
'<p>Data provided by <a href="https://github.com/NovelCOVID/API">NovelCOVID/API</a>.</p>',
201191
'<p>Icons made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a>.</p>'
202-
].join(''),
203-
204-
style: {
205-
backgroundColor: '#323232',
206-
color : '#ddd',
207-
fontSize : '13px',
208-
margin : '10px',
209-
padding : '10px',
210-
whiteSpace : 'normal'
211-
}
192+
].join('')
212193
}]
213194
}]
214195
}}

examples/ConfigurationViewport.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ConfigurationViewport extends Viewport {
5454
style : {padding: '20px'}
5555
}, {
5656
module: Panel,
57-
cls : ['neo-panel', 'neo-container', 'neo-examples-configuration-panel'],
57+
cls : ['neo-panel', 'neo-container', 'neo-configuration-panel'],
5858
flex : me.configPanelFlex,
5959
style : {margin: '20px'},
6060

@@ -78,7 +78,7 @@ class ConfigurationViewport extends Viewport {
7878
module: Container,
7979
layout: {ntype: 'vbox'},
8080
style : {padding: '10px'},
81-
cls : ['neo-examples-configuration-panel-body'],
81+
cls : ['neo-configuration-panel-body'],
8282
itemDefaults: {
8383
clearToOriginalValue: true,
8484
labelWidth : me.configItemLabelWidth,

resources/scss/src/examples/_ConfigurationPanel.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
.neo-examples-configuration-panel {
1+
.neo-configuration-panel {
2+
.neo-details-label {
3+
background-color: #323232;
4+
color : #ddd;
5+
font-size : 13px;
6+
margin : 10px;
7+
padding : 10px;
8+
white-space : normal;
9+
}
10+
211
.neo-toolbar {
312
border : 0;
413
border-bottom: 1px solid v(panel-border-color);
514
}
615
}
716

8-
.neo-examples-configuration-panel-body {
17+
.neo-configuration-panel-body {
918
overflow-y: scroll;
1019
}
1120

0 commit comments

Comments
 (0)