Skip to content

Commit 8fd5270

Browse files
author
Ivan Demidov
committed
fix path to slim-grid css
1 parent 14bf605 commit 8fd5270

2 files changed

Lines changed: 91 additions & 1 deletion

File tree

docs/_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
<title>{{ page.title }}</title>
44

55
<link rel="stylesheet" href="assets/css/demo.css">
6-
<link rel="stylesheet" href="dist/grid-slim.css">
6+
<link rel="stylesheet" href="dist/css/grid-slim.css">

docs/dist/css/slim-grid.css

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/**
2+
* Copyright (c) 2015 GitScrum
3+
* slim-grid - Vanilla CSS grid with support columns and rows
4+
* @version 0.1.0
5+
* @link https://github.com/GitScrum/slim-grid
6+
* @license MIT
7+
**/
8+
[class*="sl-col"],
9+
[class*="sl-row"] {
10+
box-sizing: border-box;
11+
}
12+
[class*="sl-container-row"]:after, [class*="sl-container-row"]:before, [class*="sl-container-col"]:after, [class*="sl-container-col"]:before {
13+
content: "";
14+
display: table;
15+
}
16+
[class*="sl-container-row"]:after, [class*="sl-container-col"]:after {
17+
clear: both;
18+
}
19+
20+
/* row grid */
21+
[class*="sl-container-row"] {
22+
margin-top: -10px;
23+
margin-bottom: -10px;
24+
}
25+
26+
[class*="sl-row"] {
27+
padding-top: 10px;
28+
padding-bottom: 10px;
29+
}
30+
31+
32+
/* col grid */
33+
[class*="sl-container-col"] {
34+
margin-left: -10px;
35+
margin-right: -10px;
36+
}
37+
38+
[class*="sl-col"] {
39+
float: left;
40+
padding-left: 10px;
41+
padding-right: 10px;
42+
}
43+
44+
.sl-col-1 {
45+
width: 8.333%;
46+
}
47+
48+
.sl-col-2 {
49+
width: 16.667%;
50+
}
51+
52+
.sl-col-3 {
53+
width: 25%;
54+
}
55+
56+
.sl-col-4 {
57+
width: 33.333%;
58+
}
59+
60+
.sl-col-5 {
61+
width: 41.667%;
62+
}
63+
64+
.sl-col-6 {
65+
width: 50%;
66+
}
67+
68+
.sl-col-7 {
69+
width: 58.333%;
70+
}
71+
72+
.sl-col-8 {
73+
width: 66.667%;
74+
}
75+
76+
.sl-col-9 {
77+
width: 75%;
78+
}
79+
80+
.sl-col-10 {
81+
width: 83.333%;
82+
}
83+
84+
.sl-col-11 {
85+
width: 91.667%;
86+
}
87+
88+
.sl-col-12 {
89+
width: 100%;
90+
}

0 commit comments

Comments
 (0)