AdminLTE/build/less/core.less

175 lines
2.8 KiB
Plaintext
Raw Normal View History

2015-02-01 21:25:09 +00:00
/*
2015-06-01 10:18:35 +00:00
* Core: General Layout Style
2015-02-01 21:25:09 +00:00
* -------------------------
*/
html,
body {
min-height: 100%;
.layout-boxed & {
height: 100%;
}
}
2015-07-12 13:42:26 +00:00
body {
2015-02-01 21:25:09 +00:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 400;
overflow-x: hidden;
overflow-y: auto;
}
/* Layout */
.wrapper {
.clearfix();
min-height: 100%;
2015-09-19 18:18:38 +00:00
position: relative;
2015-07-21 02:36:04 +00:00
overflow: hidden;
2015-02-01 21:25:09 +00:00
.layout-boxed & {
max-width: 1250px;
margin: 0 auto;
min-height: 100%;
2015-09-19 18:05:54 +00:00
box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
2015-02-01 21:25:09 +00:00
position: relative;
}
}
.layout-boxed {
background: url('@{boxed-layout-bg-image-path}') repeat fixed;
2015-02-01 21:25:09 +00:00
}
/*
2015-04-22 21:13:31 +00:00
* Content Wrapper - contains the main content
2015-02-28 00:57:17 +00:00
* ```.right-side has been deprecated as of v2.0.0 in favor of .content-wrapper ```
2015-02-01 21:25:09 +00:00
*/
2015-07-12 13:42:26 +00:00
.content-wrapper,
2015-02-01 21:25:09 +00:00
.right-side,
2015-07-12 13:42:26 +00:00
.main-footer {
2015-03-22 21:32:38 +00:00
//Using disposable variable to join statements with a comma
2015-03-22 21:28:38 +00:00
@transition-rule: @transition-speed @transition-fn,
2015-09-19 18:05:54 +00:00
margin @transition-speed @transition-fn;
2015-03-22 21:28:38 +00:00
.transition-transform(@transition-rule);
2015-02-01 21:25:09 +00:00
margin-left: @sidebar-width;
2015-07-12 13:42:26 +00:00
z-index: 820;
2015-02-01 21:25:09 +00:00
//Top nav layout
.layout-top-nav & {
2015-02-11 00:53:16 +00:00
margin-left: 0;
2015-02-01 21:25:09 +00:00
}
2015-07-12 13:42:26 +00:00
@media (max-width: @screen-xs-max) {
2015-02-01 21:25:09 +00:00
margin-left: 0;
}
2015-02-11 00:53:16 +00:00
//When opening the sidebar on large screens
2015-02-01 21:25:09 +00:00
.sidebar-collapse & {
@media (min-width: @screen-sm) {
margin-left: 0;
}
}
2015-02-11 00:53:16 +00:00
//When opening the sidebar on small screens
2015-02-01 21:25:09 +00:00
.sidebar-open & {
@media (max-width: @screen-xs-max) {
.translate(@sidebar-width, 0);
}
}
}
2015-07-12 13:42:26 +00:00
.content-wrapper,
2015-02-01 21:25:09 +00:00
.right-side {
min-height: 100%;
background-color: @body-bg;
2015-07-12 13:42:26 +00:00
z-index: 800;
2015-02-01 21:25:09 +00:00
}
2015-09-19 18:05:54 +00:00
2015-02-01 21:25:09 +00:00
.main-footer {
background: #fff;
padding: 15px;
color: #444;
border-top: 1px solid @gray;
2015-02-01 21:25:09 +00:00
}
/* Fixed layout */
.fixed {
.main-header,
.main-sidebar,
.left-side {
2015-02-01 21:25:09 +00: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%;
}
}
}
2015-08-28 13:55:13 +00:00
body.hold-transition {
2015-09-19 18:05:54 +00:00
.content-wrapper,
.right-side,
.main-footer,
.main-sidebar,
.left-side,
2016-07-01 18:09:03 +00:00
.main-header .navbar,
2015-09-19 18:05:54 +00:00
.main-header .logo {
/* Fix for IE */
.transition(none);
}
2015-08-16 20:31:59 +00:00
}
2015-02-01 21:25:09 +00: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 18:05:54 +00:00
2015-02-01 21:25:09 +00:00
/* General Links */
a {
color: @link-color;
}
2015-09-19 18:05:54 +00:00
2015-03-02 23:41:16 +00:00
a:hover,
a:active,
a:focus {
2015-02-01 21:25:09 +00: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 13:42:26 +00:00
}