1549469775 4 years ago
parent
commit
566e077285
  1. 47
      src/common/__less/row.less
  2. 4
      src/css/index/index.less
  3. 2
      src/html/__include/header.pug
  4. 3
      src/html/index.pug

47
src/common/__less/row.less

@ -0,0 +1,47 @@
@totalCell: 24;
.col-width(@col: 1, @total: @totalCell){
percentage($col/$total)
}
.row {
@include clearfix;
@include media(xs) {
@for $i from 1 through $totalCell {
.col-xs-#{$i} {
float: left;
}
.col-xs-#{$i} {
width: col-width($i);
}
}
}
@include media(sm) {
@for $i from 1 through $totalCell {
.col-sm-#{$i} {
float: left;
}
.col-sm-#{$i} {
width: col-width($i);
}
}
}
@include media(md) {
@for $i from 1 through $totalCell {
.col-md-#{$i} {
float: left;
}
.col-md-#{$i} {
width: col-width($i);
}
}
}
@include media(lg) {
@for $i from 1 through $totalCell {
.col-lg-#{$i} {
float: left;
}
.col-lg-#{$i} {
width: col-width($i);
}
}
}
}

4
src/css/index/index.less

@ -53,3 +53,7 @@
text-align: center;
font-size: 20px;
}
.panel{
}

2
src/html/__include/header.pug

@ -1,7 +1,7 @@
-
var menulist = [
{text: "首页", path: "#"},
{text: "归档", path: "#"},
{text: "Demo", path: "/demo"},
{text: "关于", path: "/about"},
];
var oplist = [

3
src/html/index.pug

@ -2,6 +2,7 @@
extends __layout/layout.pug
block title
//-标题
- var title = "今生今世"
block content
@ -10,3 +11,5 @@ block content
include __include/person
.line
.motto 衣带渐宽终不悔
.row
.column-3.panel adsdaad
Loading…
Cancel
Save