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-color: @sidebar-light-bg;
A
almasaeed2010 已提交
38 39 40
}

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

72
.content-wrapper  {
73
  min-height: ~"calc(100vh - 101px)";
A
Abdullah Almsaeed 已提交
74
  background-color: @content-bg;
D
Dennis Neufeld 已提交
75
  z-index: 800;
A
almasaeed2010 已提交
76
}
A
Abdullah Almsaeed 已提交
77

78 79 80 81 82 83
@media (max-width: @screen-header-collapse) {
  .content-wrapper  {
    min-height: ~"calc(100vh - 151px)";
  }
}

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

/* Fixed layout */
.fixed {
93 94 95
  .main-header,
  .main-sidebar,
  .left-side {
A
almasaeed2010 已提交
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%;
    }
  }
115 116 117
  .wrapper {
    overflow: hidden;
  }
A
almasaeed2010 已提交
118 119
}

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

A
almasaeed2010 已提交
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
/* 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 已提交
156

A
almasaeed2010 已提交
157 158 159 160
/* General Links */
a {
  color: @link-color;
}
A
Abdullah Almsaeed 已提交
161

162 163 164
a:hover,
a:active,
a:focus {
A
almasaeed2010 已提交
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
  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 已提交
180
}