Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
15dec2b1
Commit
15dec2b1
authored
Oct 20, 2014
by
Aron Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use numeric column names over descriptive ones
parent
6ef96122
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
grid.scss
h/static/styles/grid.scss
+5
-2
grid.scss
h/static/styles/mixins/grid.scss
+7
-7
No files found.
h/static/styles/grid.scss
View file @
15dec2b1
...
...
@@ -25,12 +25,15 @@
// <div class="column-tablet-1-2 column-desktop-1-4"></div>
// <div class="column-tablet-1-2 column-desktop-1-4"></div>
// </div>
$grid-default-gutter
:
20px
!
default
;
.grid
{
@include
grid-row
;
@include
grid-row
(
$grid-default-gutter
)
;
}
[
class
^=
"column-"
],
[
class
*=
" column-"
]
{
@include
grid-column
;
@include
grid-column
(
$grid-default-gutter
)
;
}
@include
grid-setup
(
"column-"
);
...
...
h/static/styles/mixins/grid.scss
View file @
15dec2b1
...
...
@@ -51,11 +51,11 @@
// Defines selectors for a class based grid system. Only includes a few common
// sizes at the moment, but can be expanded as necessary.
@mixin
grid-setup
(
$
prefix
:
""
)
{
.
#{
$
prefix
}
one-whole
{
width
:
100%
;
}
.
#{
$
prefix
}
one-half
{
width
:
50%
;
}
.
#{
$
prefix
}
one-third
{
width
:
33
.333%
;
}
.
#{
$
prefix
}
two-thirds
{
width
:
66
.666%
;
}
.
#{
$
prefix
}
one-quarter
{
width
:
25%
;
}
.
#{
$
prefix
}
three-quarters
{
width
:
75%
;
}
@mixin
grid-setup
(
$
namespace
:
""
)
{
.
#{
$
namespace
}
1-1
{
width
:
100%
;
}
.
#{
$
namespace
}
1-2
{
width
:
50%
;
}
.
#{
$
namespace
}
1-3
{
width
:
33
.333%
;
}
.
#{
$
namespace
}
2-3
{
width
:
66
.666%
;
}
.
#{
$
namespace
}
1-4
{
width
:
25%
;
}
.
#{
$
namespace
}
3-4
{
width
:
75%
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment