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

D
Dennis Neufeld 已提交
13
body {
A
almasaeed2010 已提交
14 15 16 17 18 19 20 21 22 23 24 25
  -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%;
A
Abdullah Almsaeed 已提交
26
  position: relative;
27
  overflow: hidden;
A
almasaeed2010 已提交
28 29 30 31
  .layout-boxed & {
    max-width: 1250px;
    margin: 0 auto;
    min-height: 100%;
A
Abdullah Almsaeed 已提交
32
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
A
almasaeed2010 已提交
33 34 35 36 37
    position: relative;
  }
}

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

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

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

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

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

D
Dennis Neufeld 已提交
115
body.hold-transition {
A
Abdullah Almsaeed 已提交
116 117 118 119 120
  .content-wrapper,
  .right-side,
  .main-footer,
  .main-sidebar,
  .left-side,
A
Abdullah Almsaeed 已提交
121
  .main-header .navbar,
A
Abdullah Almsaeed 已提交
122 123 124 125
  .main-header .logo {
    /* Fix for IE */
    .transition(none);
  }
A
Abdullah Almsaeed 已提交
126 127
}

A
almasaeed2010 已提交
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
/* 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 已提交
150

A
almasaeed2010 已提交
151 152 153 154
/* General Links */
a {
  color: @link-color;
}
A
Abdullah Almsaeed 已提交
155

156 157 158
a:hover,
a:active,
a:focus {
A
almasaeed2010 已提交
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
  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 已提交
174
}