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

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

.layout-boxed {
  background: url('../img/boxed-bg.jpg') repeat fixed;
}

/*
 * Content Wrapper - contins main content
A
Abdullah Almsaeed 已提交
43
 * ```.right-side has been deprecated as of v2.0.0 in favor of .content-wrapper  ```
A
almasaeed2010 已提交
44 45 46
 */
.content-wrapper, 
.right-side,
47
.main-footer {    
48
  .transition-transform(@transition-speed @transition-fn);
A
Abdullah Almsaeed 已提交
49
  .transition(margin-left @transition-speed @transition-fn);
A
almasaeed2010 已提交
50
  margin-left: @sidebar-width;
A
Abdullah Almsaeed 已提交
51
  z-index: 820;
A
almasaeed2010 已提交
52 53
  //Top nav layout
  .layout-top-nav & {
A
Abdullah Almsaeed 已提交
54
    margin-left: 0;
A
almasaeed2010 已提交
55
  }
56
  @media (max-width: @screen-xs-max) {    
A
almasaeed2010 已提交
57 58
    margin-left: 0;
  }
A
Abdullah Almsaeed 已提交
59
  //When opening the sidebar on large screens
A
almasaeed2010 已提交
60 61 62 63 64
  .sidebar-collapse & {
    @media (min-width: @screen-sm) {
      margin-left: 0;
    }
  }
A
Abdullah Almsaeed 已提交
65
  //When opening the sidebar on small screens
A
almasaeed2010 已提交
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
  .sidebar-open & {
    @media (max-width: @screen-xs-max) {
      .translate(@sidebar-width, 0);
    }
  }
}

.content-wrapper, 
.right-side {
  min-height: 100%;
  background-color: @body-bg;
  z-index: 800;  
}
.main-footer {
  background: #fff;
  padding: 15px;
  color: #444;
  border-top: 1px solid #eee;
}

/* Fixed layout */
.fixed {
88 89 90
  .main-header,
  .main-sidebar,
  .left-side {
A
almasaeed2010 已提交
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
    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%;
    }
  }
}

/* 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;
}
/* General Links */
a {
  color: @link-color;
}
138 139 140
a:hover,
a:active,
a:focus {
A
almasaeed2010 已提交
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
  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;
  }
}