From 58deea958fead2c132baa5f8b15fe721d8388a97 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 31 Jan 2024 10:55:30 -0600 Subject: [PATCH] bug fixes --- cms/engine/__init__.py | 1 + index.py | 1 + static/css/themes/hiplab.css | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 static/css/themes/hiplab.css diff --git a/cms/engine/__init__.py b/cms/engine/__init__.py index d3b75b6..31409d7 100644 --- a/cms/engine/__init__.py +++ b/cms/engine/__init__.py @@ -255,6 +255,7 @@ class Getter (Loader): #return ' '.join(['
'.replace(':id',id),_html,'
']) _html = ' '.join(['
'.replace(':id',id),_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) # diff --git a/index.py b/index.py index a6dc883..c08fef1 100644 --- a/index.py +++ b/index.py @@ -50,6 +50,7 @@ def _index (): # if 'plugins' in _config : # _args['routes']=_config['plugins'] # _system = cms.components.get_system(_config) #copy.deepcopy(_config['system']) + _html = "" try: uri = os.sep.join([_config['layout']['root'], _config['layout']['index']]) diff --git a/static/css/themes/hiplab.css b/static/css/themes/hiplab.css new file mode 100644 index 0000000..a2abbea --- /dev/null +++ b/static/css/themes/hiplab.css @@ -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;} \ No newline at end of file