AdminLTE/build/less/core.less

175 lines
2.7 KiB
Plaintext
Raw Normal View History

2015-02-01 22:25:09 +01:00
/*
2015-06-01 12:18:35 +02:00
* Core: General Layout Style
2015-02-01 22:25:09 +01:00
* -------------------------
*/
html,
body {
2016-11-06 19:19:15 +01:00
height: 100%;
2015-02-01 22:25:09 +01:00
.layout-boxed & {
height: 100%;
}
}
2015-07-12 15:42:26 +02:00
body {
2015-02-01 22:25:09 +01:00
font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 400;
overflow-x: hidden;
overflow-y: auto;
}
/* Layout */
.wrapper {
.clearfix();
2016-11-06 19:19:15 +01:00
height: 100%;
2015-09-19 20:18:38 +02:00
position: relative;
2016-11-06 19:19:15 +01:00
overflow-x: hidden;
overflow-y: auto;
2015-02-01 22:25:09 +01:00
.layout-boxed & {
max-width: 1250px;
margin: 0 auto;
min-height: 100%;
2015-09-19 20:05:54 +02:00
box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
2015-02-01 22:25:09 +01:00
position: relative;
}
}
.layout-boxed {
background-color: @sidebar-light-bg;
2015-02-01 22:25:09 +01:00
}
/*
2015-04-22 23:13:31 +02:00
* Content Wrapper - contains the main content
2015-02-01 22:25:09 +01:00
*/
2015-07-12 15:42:26 +02:00
.content-wrapper,
.main-footer {
// Using disposable variable to join statements with a comma
2015-03-22 22:28:38 +01:00
@transition-rule: @transition-speed @transition-fn,
2015-09-19 20:05:54 +02:00
margin @transition-speed @transition-fn;
2015-03-22 22:28:38 +01:00
.transition-transform(@transition-rule);
2015-02-01 22:25:09 +01:00
margin-left: @sidebar-width;
2015-07-12 15:42:26 +02:00
z-index: 820;
// Top nav layout
2015-02-01 22:25:09 +01:00
.layout-top-nav & {
2015-02-11 01:53:16 +01:00
margin-left: 0;
2015-02-01 22:25:09 +01:00
}
2015-07-12 15:42:26 +02:00
@media (max-width: @screen-xs-max) {
2015-02-01 22:25:09 +01:00
margin-left: 0;
}
// When opening the sidebar on large screens
2015-02-01 22:25:09 +01:00
.sidebar-collapse & {
@media (min-width: @screen-sm) {
margin-left: 0;
}
}
// When opening the sidebar on small screens
2015-02-01 22:25:09 +01:00
.sidebar-open & {
@media (max-width: @screen-xs-max) {
.translate(@sidebar-width, 0);
}
}
}
.content-wrapper {
2015-02-01 22:25:09 +01:00
min-height: 100%;
2017-10-09 18:32:18 +02:00
background-color: @content-bg;
2015-07-12 15:42:26 +02:00
z-index: 800;
2015-02-01 22:25:09 +01:00
}
2015-09-19 20:05:54 +02:00
2015-02-01 22:25:09 +01:00
.main-footer {
background: #fff;
padding: 15px;
color: #444;
2017-01-08 21:37:30 +01:00
border-top: 1px solid @gray-lte;
2015-02-01 22:25:09 +01:00
}
/* Fixed layout */
.fixed {
.main-header,
.main-sidebar,
.left-side {
2015-02-01 22:25:09 +01:00
position: fixed;
}
.main-header {
top: 0;
right: 0;
left: 0;
}
.content-wrapper,
.right-side {
padding-top: 50px;
@media (max-width: @screen-header-collapse) {
padding-top: 100px;
}
}
&.layout-boxed {
.wrapper {
max-width: 100%;
}
}
.wrapper {
overflow: hidden;
}
2015-02-01 22:25:09 +01:00
}
.hold-transition {
2015-09-19 20:05:54 +02:00
.content-wrapper,
.right-side,
.main-footer,
.main-sidebar,
.left-side,
2016-07-01 20:09:03 +02:00
.main-header .navbar,
.main-header .logo,
.menu-open .fa-angle-left {
2015-09-19 20:05:54 +02:00
/* Fix for IE */
.transition(none);
}
2015-08-16 22:31:59 +02:00
}
2015-02-01 22:25:09 +01:00
/* Content */
.content {
min-height: 250px;
padding: 15px;
.container-fixed(@grid-gutter-width);
}
/* H1 - H6 font */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
font-family: 'Source Sans Pro', sans-serif;
}
2015-09-19 20:05:54 +02:00
2015-02-01 22:25:09 +01:00
/* General Links */
a {
color: @link-color;
}
2015-09-19 20:05:54 +02:00
2015-03-03 00:41:16 +01:00
a:hover,
a:active,
a:focus {
2015-02-01 22:25:09 +01:00
outline: none;
text-decoration: none;
color: @link-hover-color;
}
/* Page Header */
.page-header {
margin: 10px 0 20px 0;
font-size: 22px;
> small {
color: #666;
display: block;
margin-top: 5px;
}
2015-07-12 15:42:26 +02:00
}