master
Steve Nyemba 10 months ago
parent 09d5f0a11a
commit 58deea958f

@ -255,6 +255,7 @@ class Getter (Loader):
#return ' '.join(['<div id=":id" class=":id">'.replace(':id',id),_html,'</div>']) #return ' '.join(['<div id=":id" class=":id">'.replace(':id',id),_html,'</div>'])
_html = ' '.join(['<div id=":id" class=":id">'.replace(':id',id),_html,'</div>']) _html = ' '.join(['<div id=":id" class=":id">'.replace(':id',id),_html,'</div>'])
appContext = Environment(loader=BaseLoader()).from_string(_html) appContext = Environment(loader=BaseLoader()).from_string(_html)
_args['system'] = _system
# #
# If the rendering of the HTML happens here we should plugin custom functions (at the very least) # If the rendering of the HTML happens here we should plugin custom functions (at the very least)
# #

@ -50,6 +50,7 @@ def _index ():
# if 'plugins' in _config : # if 'plugins' in _config :
# _args['routes']=_config['plugins'] # _args['routes']=_config['plugins']
# _system = cms.components.get_system(_config) #copy.deepcopy(_config['system']) # _system = cms.components.get_system(_config) #copy.deepcopy(_config['system'])
_html = ""
try: try:
uri = os.sep.join([_config['layout']['root'], _config['layout']['index']]) uri = os.sep.join([_config['layout']['root'], _config['layout']['index']])

@ -0,0 +1,20 @@
/**
* This is the default window and we will have to hide the pane (side)
*/
.main {height:98vh; display:grid; grid-template-columns:75% auto; gap:4px;
grid-template-rows:70px 40px auto 32px;
padding-left:2%; padding-right:2%;
}
.main .header { display:grid; grid-template-columns:64px auto; gap:4px; align-items: center;}
.main .header .title {font-size:28px; font-weight:bold}
.main .header img {width:80px; height:80px;}
.main .index{
align-self:center;
padding:8px;
}
.main .menu {border:1px solid transparent; background-color:#f3f3f3;}
.main .pane {border-left:1px solid #CAD5E0; height:100%; padding:8px; line-height:1.5; font-size: 14px;}
.main .pane div:first-child {margin-top:4px; background-color:#f3f3f3; border-radius: 8px; padding:8px; min-height:150px}
.search-box {display:block; grid-template-columns: none;}
Loading…
Cancel
Save