ORIENT/modules/backend/assets/less/layout/layout.less

223 lines
4.1 KiB
Plaintext
Raw Normal View History

2014-05-14 13:24:20 +00:00
//
// Common layout elements
// --------------------------------------------------
html:not(.mobile) body.drag * {
cursor: grab !important;
2014-05-14 13:24:20 +00:00
cursor: -webkit-grab !important;
cursor: -moz-grab !important;
}
// Used by sortable plugin
body.dragging, body.dragging * {
cursor: move !important;
}
body.loading, body.loading * {
cursor: wait !important;
}
body.no-select {
.user-select(none);
cursor: default !important;
}
2014-05-14 13:24:20 +00:00
//
// Layout canvas
//
html,
body {
height: 100%;
/* The html and body elements cannot have any padding or margin. */
}
body {
2015-07-29 09:13:42 +00:00
font-family: @font-family-base;
background: @body-bg;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
2014-05-14 13:24:20 +00:00
}
#layout-canvas {
min-height: 100%;
height: 100%;
}
//
// Font
//
// Removed for performance reasons
//
// @import url(https://fonts.googleapis.com/css?family=Noto+Sans:400,400italic,700,700italic);
//
// body {
// font-family: 'Noto Sans', sans-serif;
// }
//
// Tabs override for Layout
// Primary tabs should use inset by default, unless otherwise specified
// --------------------------------------------------
.control-tabs.primary-tabs {
> ul.nav-tabs, > div > ul.nav-tabs, > div > div > ul.nav-tabs {
2016-02-23 05:52:23 +00:00
margin-left: -(@padding-standard);
margin-right: -(@padding-standard);
}
&.tabs-no-inset {
> ul.nav-tabs, > div > ul.nav-tabs, > div > div > ul.nav-tabs {
margin-left: 0;
margin-right: 0;
}
}
}
2014-05-14 13:24:20 +00:00
//
// Flexible layout system
// --------------------------------------------------
.layout {
.layout-cell() {
display: table-cell;
vertical-align: top;
height: 100%;
&.layout-container, .layout-container, &.padded-container, .padded-container {
2016-02-23 05:52:23 +00:00
padding: @padding-standard @padding-standard 0 @padding-standard;
2015-03-18 08:28:14 +00:00
// Container to sit flush to the element above
.container-flush {
padding-top: 0;
}
}
2014-05-14 13:24:20 +00:00
.layout-relative {
position: relative;
height: 100%;
}
.layout-absolute {
position: absolute;
height: 100%;
width: 100%;
}
&.min-size {
width: 0;
}
2014-07-19 02:05:50 +00:00
&.min-height {
height: 0;
}
2014-05-14 13:24:20 +00:00
&.center {
text-align: center;
}
&.middle {
vertical-align: middle;
}
}
display: table;
table-layout: fixed;
height: 100%;
width: 100%;
2014-05-14 13:24:20 +00:00
> .layout-row {
display: table-row;
vertical-align: top;
height: 100%;
> .layout-cell {
.layout-cell();
}
&.min-size {
height: 0.1px;
2014-05-14 13:24:20 +00:00
}
}
> .layout-cell {
.layout-cell();
}
}
.whiteboard {
background: white;
}
.layout-fill-container {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
//
// Calculated fixed width
//
[data-calculate-width] {
> form, > div {
display: inline-block;
}
}
2014-05-14 13:24:20 +00:00
//
// Layout styles
//
body.compact-container {
.layout {
&.layout-container, .layout-container { padding: 0 !important; }
}
}
body.slim-container {
.layout {
&.layout-container, .layout-container { padding-left: 0 !important; padding-right: 0 !important; }
}
}
//
// Screen specific
//
@media (max-width: @screen-sm) {
.layout {
.hide-on-small {
display: none;
}
//
// Layout with a responsive sidebar
//
&.responsive-sidebar {
> .layout-cell:first-child {
display: table-footer-group;
height: auto;
.control-breadcrumb {
display: none;
}
}
> .layout-cell:last-child {
display: table-header-group;
width: auto;
height: auto;
.layout-absolute {
position: static;
}
}
}
}
}