core.less 2.8 KB
Newer Older
A
almasaeed2010 已提交
1
/*
A
Abdullah Almsaeed 已提交
2
 * Core: General Layout Style
A
almasaeed2010 已提交
3 4 5 6
 * -------------------------
 */
html,
body {
A
Abdullah Almsaeed 已提交
7
  height: 100%;
A
almasaeed2010 已提交
8 9 10 11 12
  .layout-boxed & {
    height: 100%;
  }
}

D
Dennis Neufeld 已提交
13
body {
A
almasaeed2010 已提交
14 15 16 17 18 19 20 21 22
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Layout */
.wrapper {
  .clearfix();
A
Abdullah Almsaeed 已提交
23
  height: 100%;
A
Abdullah Almsaeed 已提交
24
  position: relative;
A
Abdullah Almsaeed 已提交
25 26
  overflow-x: hidden;
  overflow-y: auto;
A
almasaeed2010 已提交
27 28 29 30
  .layout-boxed & {
    max-width: 1250px;
    margin: 0 auto;
    min-height: 100%;
A
Abdullah Almsaeed 已提交
31
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
A
almasaeed2010 已提交
32 33 34 35 36
    position: relative;
  }
}

.layout-boxed {
37
  background: url('@{boxed-layout-bg-image-path}') repeat fixed;
A
almasaeed2010 已提交
38 39 40
}

/*
D
Dmitri Suvorov 已提交
41
 * Content Wrapper - contains the main content
A
Abdullah Almsaeed 已提交
42
 * ```.right-side has been deprecated as of v2.0.0 in favor of .content-wrapper  ```
A
almasaeed2010 已提交
43
 */
D
Dennis Neufeld 已提交
44
.content-wrapper,
A
almasaeed2010 已提交
45
.right-side,
D
Dennis Neufeld 已提交
46
.main-footer {
47
  // Using disposable variable to join statements with a comma
48
  @transition-rule: @transition-speed @transition-fn,
A
Abdullah Almsaeed 已提交
49
  margin @transition-speed @transition-fn;
50
  .transition-transform(@transition-rule);
A
almasaeed2010 已提交
51
  margin-left: @sidebar-width;
D
Dennis Neufeld 已提交
52
  z-index: 820;
53
  // Top nav layout
A
almasaeed2010 已提交
54
  .layout-top-nav & {
A
Abdullah Almsaeed 已提交
55
    margin-left: 0;
A
almasaeed2010 已提交
56
  }
D
Dennis Neufeld 已提交
57
  @media (max-width: @screen-xs-max) {
A
almasaeed2010 已提交
58 59
    margin-left: 0;
  }
60
  // When opening the sidebar on large screens
A
almasaeed2010 已提交
61 62 63 64 65
  .sidebar-collapse & {
    @media (min-width: @screen-sm) {
      margin-left: 0;
    }
  }
66
  // When opening the sidebar on small screens
A
almasaeed2010 已提交
67 68 69 70 71 72 73
  .sidebar-open & {
    @media (max-width: @screen-xs-max) {
      .translate(@sidebar-width, 0);
    }
  }
}

D
Dennis Neufeld 已提交
74
.content-wrapper,
A
almasaeed2010 已提交
75 76 77
.right-side {
  min-height: 100%;
  background-color: @body-bg;
D
Dennis Neufeld 已提交
78
  z-index: 800;
A
almasaeed2010 已提交
79
}
A
Abdullah Almsaeed 已提交
80

A
almasaeed2010 已提交
81 82 83 84
.main-footer {
  background: #fff;
  padding: 15px;
  color: #444;
A
Abdullah Almsaeed 已提交
85
  border-top: 1px solid @gray-lte;
A
almasaeed2010 已提交
86 87 88 89
}

/* Fixed layout */
.fixed {
90 91 92
  .main-header,
  .main-sidebar,
  .left-side {
A
almasaeed2010 已提交
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
    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%;
    }
  }
112 113 114
  .wrapper {
    overflow: hidden;
  }
A
almasaeed2010 已提交
115 116
}

117
.hold-transition {
A
Abdullah Almsaeed 已提交
118 119 120 121 122
  .content-wrapper,
  .right-side,
  .main-footer,
  .main-sidebar,
  .left-side,
A
Abdullah Almsaeed 已提交
123
  .main-header .navbar,
124 125
  .main-header .logo,
  .menu-open .fa-angle-left {
A
Abdullah Almsaeed 已提交
126 127 128
    /* Fix for IE */
    .transition(none);
  }
A
Abdullah Almsaeed 已提交
129 130
}

A
almasaeed2010 已提交
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
/* 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;
}
A
Abdullah Almsaeed 已提交
153

A
almasaeed2010 已提交
154 155 156 157
/* General Links */
a {
  color: @link-color;
}
A
Abdullah Almsaeed 已提交
158

159 160 161
a:hover,
a:active,
a:focus {
A
almasaeed2010 已提交
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
  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;
  }
D
Dennis Neufeld 已提交
177
}