Layout and CSS
Denis Pupin (talk | contribs) No edit summary |
Hans Karlsen (talk | contribs) No edit summary |
||
Line 45: | Line 45: | ||
[[File:TurnkeyContentLayout.png|frameless|832x832px]] | [[File:TurnkeyContentLayout.png|frameless|832x832px]] | ||
Note that we add a css class with the name of the ViewModel high up in the html hierarcy: | |||
[[File:2018-08-27 20h56 37.png|none|thumb]] | |||
This enables you to do css rules that apply only to selected views. | |||
If the ViewModel is named "WorkBoard" a css rule like this: | |||
.WorkBoard .sidebarWrapper{ visibility: hidden;} | |||
The above CSS rule will effectively hide the whole sidebar menu - but only for the WorkBoard view | |||
[[Category:MDriven Turnkey]] | [[Category:MDriven Turnkey]] | ||
[[Category:UI]] | [[Category:UI]] |
Revision as of 19:04, 27 August 2018
This is the layout of the turnkey web client.
The names are the CSS selectors (id's using # in CSS, classes using . in CSS)
Copy from the Site.css file with explanation;
Div and stylesheet structure 1. Body wrapper (#bodyWrapper) 2. Global navigation (#globalNavWrapper) The top menu (MVC generated, modified by Angular JS code) 2. Global content wrapper (#globalContentWrapper) For non-viewmodel views (login for example) Content starts directly under #globalContentWrapper 3. Recover margin from above (#flexLayoutWrapper) * For AngularJS, the AngularJS App starts (ng-app and ng-view) with here with #flexLayoutWrapper * For MVC, definition for form and field posting to server directly below #flexLayoutWrapper. These are both full-height <form> <fieldset> 4. Content wrapper (#contentWrapper) * For AngularJS, html generated serverside, injected into the DOM by AngularJS, and databound client-side * For MVC, this is part of the complete rendered page coming from the server 5. Sidebar wrapper (#sidebarWrapper) For non-flex handling, introduces scrollbars and manual height handling (Safari and Edge) 6. Sidebar (#sidebar) Taking space as needed, using scrollbar for vertical axis 5. Viewmodel wrapper (#viewmodelWrapper) For non-flex handling, introduces scrollbars and manual height handling (Safari and Edge) 6. Section for the viewmodel (#viewmodelSection) Either of * Ordinary one block of content, using scrollbar for both axis, all scrolling * Two, three or more x and/or y -segmented gridboxes, middle sections scrolling First and Last segment taking the space they need Middle segment, using scrollbar for both axis Note that vmGridBox* classes are only present if the design includes splitters. 4. Validation messages wrapper (#validationMessageWrapper) 5. Validation messages formating (#validationMessages) The actual infors, warnings and errors (AngularJS data bound)
Note that we add a css class with the name of the ViewModel high up in the html hierarcy:
This enables you to do css rules that apply only to selected views.
If the ViewModel is named "WorkBoard" a css rule like this:
.WorkBoard .sidebarWrapper{ visibility: hidden;}
The above CSS rule will effectively hide the whole sidebar menu - but only for the WorkBoard view
This page was edited more than 11 months ago on 02/10/2024. What links here