DIR : /home/kozerus/public_html/pn/uize/site-source/js/Uize/Widgets/BoxWithHeading/Css.csst
/home/kozerus/public_html/pn/uize/site-source/js/Uize/Widgets/BoxWithHeading
<%@ required ('Uize.Widgets.CssUtil'); %>
<%
var _cssUtil = Uize.Widgets.CssUtil;
%>
.`` {
margin-bottom: 10px;
font-family: <%= _cssUtil.font.family %>
}
.`contents` {
border: 1px solid <%= _cssUtil.chrome.bgColor %>;
border-radius: 3px;
overflow: hidden;
box-shadow: 0 0 7px rgba(0,0,0,.2);
}
.`heading` {
font-weight: bold;
box-sizing: border-box;
background: <%= _cssUtil.chrome.bgColor %>;
}
.`body` {
background: #fff;
}
/*** styling for different sizes ***/
<%
Uize.forEach (
_cssUtil.sizes,
function (_size,_sizeName) {
var
_sizeFont = _size.font,
_sizeOuter = _size.outer,
_paddingSides = 2 + _size.sizeNo * 2,
_paddingTop = Math.floor ((_sizeOuter - _sizeFont) / 2)
;
%> /*** <%= _sizeName %> ***/
.`<%= _sizeName %>` .`body` {
font-size: <%= _sizeFont %>px;
padding: <%= _paddingSides %>px;
}
.`<%= _sizeName %>` .`heading` {
font-size: <%= _sizeFont %>px;
line-height: <%= _sizeFont %>px;
padding: <%= _paddingTop %>px <%= _paddingSides %>px <%= _sizeOuter - _sizeFont - _paddingTop %>px <%= _paddingSides %>px;
min-height: <%= _sizeOuter %>px;
}
<% }
);
%>
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer