Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
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
edx
edx-platform
Commits
71ea2fe2
Commit
71ea2fe2
authored
Jun 05, 2014
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating static common/static/sass bourbon/neat files
parent
ae86c2a3
Show whitespace changes
Inline
Side-by-side
Showing
68 changed files
with
1337 additions
and
602 deletions
+1337
-602
common/static/sass/bourbon/_bourbon-deprecated-upcoming.scss
+3
-8
common/static/sass/bourbon/_bourbon.scss
+25
-5
common/static/sass/bourbon/addons/_button.scss
+141
-40
common/static/sass/bourbon/addons/_clearfix.scss
+5
-11
common/static/sass/bourbon/addons/_directional-values.scss
+111
-0
common/static/sass/bourbon/addons/_ellipsis.scss
+7
-0
common/static/sass/bourbon/addons/_font-family.scss
+1
-1
common/static/sass/bourbon/addons/_hide-text.scss
+8
-3
common/static/sass/bourbon/addons/_html5-input-types.scss
+47
-17
common/static/sass/bourbon/addons/_position.scss
+7
-17
common/static/sass/bourbon/addons/_prefixer.scss
+6
-10
common/static/sass/bourbon/addons/_retina-image.scss
+3
-4
common/static/sass/bourbon/addons/_size.scss
+7
-35
common/static/sass/bourbon/addons/_timing-functions.scss
+1
-1
common/static/sass/bourbon/addons/_triangle.scss
+51
-13
common/static/sass/bourbon/addons/_word-wrap.scss
+8
-0
common/static/sass/bourbon/css3/_background-image.scss
+28
-34
common/static/sass/bourbon/css3/_background.scss
+36
-84
common/static/sass/bourbon/css3/_border-image.scss
+43
-39
common/static/sass/bourbon/css3/_calc.scss
+4
-0
common/static/sass/bourbon/css3/_columns.scss
+1
-1
common/static/sass/bourbon/css3/_filter.scss
+5
-0
common/static/sass/bourbon/css3/_flex-box.scss
+269
-0
common/static/sass/bourbon/css3/_font-face.scss
+1
-1
common/static/sass/bourbon/css3/_font-feature-settings.scss
+11
-0
common/static/sass/bourbon/css3/_hyphens.scss
+5
-0
common/static/sass/bourbon/css3/_image-rendering.scss
+4
-3
common/static/sass/bourbon/css3/_inline-block.scss
+0
-8
common/static/sass/bourbon/css3/_keyframes.scss
+9
-17
common/static/sass/bourbon/css3/_linear-gradient.scss
+7
-10
common/static/sass/bourbon/css3/_placeholder.scss
+2
-23
common/static/sass/bourbon/css3/_radial-gradient.scss
+6
-11
common/static/sass/bourbon/css3/_transition.scss
+47
-4
common/static/sass/bourbon/functions/_assign.scss
+12
-0
common/static/sass/bourbon/functions/_color-lightness.scss
+13
-0
common/static/sass/bourbon/functions/_compact.scss
+0
-11
common/static/sass/bourbon/functions/_golden-ratio.scss
+3
-0
common/static/sass/bourbon/functions/_linear-gradient.scss
+0
-13
common/static/sass/bourbon/functions/_modular-scale.scss
+54
-28
common/static/sass/bourbon/functions/_px-to-em.scss
+7
-2
common/static/sass/bourbon/functions/_px-to-rem.scss
+15
-0
common/static/sass/bourbon/functions/_radial-gradient.scss
+0
-23
common/static/sass/bourbon/functions/_strip-units.scss
+5
-0
common/static/sass/bourbon/functions/_unpack.scss
+17
-0
common/static/sass/bourbon/helpers/_convert-units.scss
+15
-0
common/static/sass/bourbon/helpers/_deprecated-webkit-gradient.scss
+0
-39
common/static/sass/bourbon/helpers/_is-num.scss
+8
-0
common/static/sass/bourbon/helpers/_linear-angle-parser.scss
+25
-0
common/static/sass/bourbon/helpers/_linear-gradient-parser.scss
+41
-0
common/static/sass/bourbon/helpers/_linear-side-corner-parser.scss
+31
-0
common/static/sass/bourbon/helpers/_radial-arg-parser.scss
+4
-4
common/static/sass/bourbon/helpers/_radial-gradient-parser.scss
+50
-0
common/static/sass/bourbon/helpers/_str-to-num.scss
+50
-0
common/static/sass/bourbon/settings/_asset-pipeline.scss
+1
-0
common/static/sass/bourbon/settings/_prefixer.scss
+6
-0
common/static/sass/bourbon/settings/_px-to-em.scss
+1
-0
common/static/sass/neat/_neat-helpers.scss
+0
-1
common/static/sass/neat/_neat.scss
+1
-1
common/static/sass/neat/functions/_new-breakpoint.scss
+2
-2
common/static/sass/neat/functions/_private.scss
+18
-0
common/static/sass/neat/functions/_px-to-em.scss
+0
-3
common/static/sass/neat/grid/_media.scss
+19
-32
common/static/sass/neat/grid/_omega.scss
+5
-23
common/static/sass/neat/grid/_private.scss
+2
-9
common/static/sass/neat/grid/_reset.scss
+2
-2
common/static/sass/neat/grid/_row.scss
+3
-3
common/static/sass/neat/grid/_shift.scss
+8
-1
common/static/sass/neat/grid/_span-columns.scss
+10
-5
No files found.
common/static/sass/bourbon/_bourbon-deprecated-upcoming.scss
View file @
71ea2fe2
...
...
@@ -2,12 +2,7 @@
// These mixins/functions are deprecated
// They will be removed in the next MAJOR version release
//************************************************************************//
@mixin
box-shadow
(
$shadows
...
)
{
@include
prefixer
(
box-shadow
,
$shadows
,
spec
);
@warn
"box-shadow is deprecated and will be removed in the next major version release"
;
}
@mixin
background-size
(
$lengths
...
)
{
@include
prefixer
(
background-size
,
$lengths
,
spec
);
@warn
"background-size is deprecated and will be removed in the next major version release"
;
@mixin
inline-block
{
display
:
inline-block
;
@warn
"inline-block mixin is deprecated and will be removed in the next major version release"
;
}
common/static/sass/bourbon/_bourbon.scss
View file @
71ea2fe2
// Settings
@import
"settings/prefixer"
;
@import
"settings/px-to-em"
;
@import
"settings/asset-pipeline"
;
// Custom Helpers
@import
"helpers/
deprecated-webkit-gradient
"
;
@import
"helpers/
convert-units
"
;
@import
"helpers/gradient-positions-parser"
;
@import
"helpers/is-num"
;
@import
"helpers/linear-angle-parser"
;
@import
"helpers/linear-gradient-parser"
;
@import
"helpers/linear-positions-parser"
;
@import
"helpers/linear-side-corner-parser"
;
@import
"helpers/radial-arg-parser"
;
@import
"helpers/radial-positions-parser"
;
@import
"helpers/radial-gradient-parser"
;
@import
"helpers/render-gradients"
;
@import
"helpers/shape-size-stripper"
;
@import
"helpers/str-to-num"
;
// Custom Functions
@import
"functions/compact"
;
@import
"functions/assign"
;
@import
"functions/color-lightness"
;
@import
"functions/flex-grid"
;
@import
"functions/golden-ratio"
;
@import
"functions/grid-width"
;
@import
"functions/linear-gradient"
;
@import
"functions/modular-scale"
;
@import
"functions/px-to-em"
;
@import
"functions/radial-gradient"
;
@import
"functions/px-to-rem"
;
@import
"functions/strip-units"
;
@import
"functions/tint-shade"
;
@import
"functions/transition-property-name"
;
@import
"functions/unpack"
;
// CSS3 Mixins
@import
"css3/animation"
;
...
...
@@ -27,12 +41,15 @@
@import
"css3/border-image"
;
@import
"css3/border-radius"
;
@import
"css3/box-sizing"
;
@import
"css3/calc"
;
@import
"css3/columns"
;
@import
"css3/filter"
;
@import
"css3/flex-box"
;
@import
"css3/font-face"
;
@import
"css3/font-feature-settings"
;
@import
"css3/hyphens"
;
@import
"css3/hidpi-media-query"
;
@import
"css3/image-rendering"
;
@import
"css3/inline-block"
;
@import
"css3/keyframes"
;
@import
"css3/linear-gradient"
;
@import
"css3/perspective"
;
...
...
@@ -45,6 +62,8 @@
// Addons & other mixins
@import
"addons/button"
;
@import
"addons/clearfix"
;
@import
"addons/directional-values"
;
@import
"addons/ellipsis"
;
@import
"addons/font-family"
;
@import
"addons/hide-text"
;
@import
"addons/html5-input-types"
;
...
...
@@ -54,6 +73,7 @@
@import
"addons/size"
;
@import
"addons/timing-functions"
;
@import
"addons/triangle"
;
@import
"addons/word-wrap"
;
// Soon to be deprecated Mixins
@import
"bourbon-deprecated-upcoming"
;
common/static/sass/bourbon/addons/_button.scss
View file @
71ea2fe2
@mixin
button
(
$style
:
simple
,
$base-color
:
#4294f0
)
{
@mixin
button
(
$style
:
simple
,
$base-color
:
#4294f0
,
$text-size
:
inherit
,
$padding
:
7px
18px
)
{
@if
type-of
(
$style
)
==
color
{
@if
type-of
(
$style
)
==
string
and
type-of
(
$base-color
)
==
color
{
@include
buttonstyle
(
$style
,
$base-color
,
$text-size
,
$padding
);
}
@if
type-of
(
$style
)
==
string
and
type-of
(
$base-color
)
==
number
{
$padding
:
$text-size
;
$text-size
:
$base-color
;
$base-color
:
#4294f0
;
@if
$padding
==
inherit
{
$padding
:
7px
18px
;
}
@include
buttonstyle
(
$style
,
$base-color
,
$text-size
,
$padding
);
}
@if
type-of
(
$style
)
==
color
and
type-of
(
$base-color
)
==
color
{
$base-color
:
$style
;
$style
:
simple
;
@include
buttonstyle
(
$style
,
$base-color
,
$text-size
,
$padding
);
}
@if
type-of
(
$style
)
==
color
and
type-of
(
$base-color
)
==
number
{
$padding
:
$text-size
;
$text-size
:
$base-color
;
$base-color
:
$style
;
$style
:
simple
;
@if
$padding
==
inherit
{
$padding
:
7px
18px
;
}
@include
buttonstyle
(
$style
,
$base-color
,
$text-size
,
$padding
);
}
@if
type-of
(
$style
)
==
number
{
$padding
:
$base-color
;
$text-size
:
$style
;
$base-color
:
#4294f0
;
$style
:
simple
;
@if
$padding
==
#4294f0
{
$padding
:
7px
18px
;
}
@include
buttonstyle
(
$style
,
$base-color
,
$text-size
,
$padding
);
}
&
:disabled
{
opacity
:
0
.5
;
cursor
:
not
-
allowed
;
}
}
// Selector Style Button
//************************************************************************//
@mixin
buttonstyle
(
$type
,
$b-color
,
$t-size
,
$pad
)
{
// Grayscale button
@if
$base-color
==
grayscale
(
$base-color
)
{
@if
$style
==
simple
{
@include
simple
(
$base-color
,
$grayscale
:
true
);
@if
$type
==
simple
and
$b-color
==
grayscale
(
$b-color
)
{
@include
simple
(
$b-color
,
true
,
$t-size
,
$pad
);
}
@else
if
$style
==
shiny
{
@include
shiny
(
$base-color
,
$grayscale
:
true
);
@if
$type
==
shiny
and
$b-color
==
grayscale
(
$b-color
)
{
@include
shiny
(
$b-color
,
true
,
$t-size
,
$pad
);
}
@else
if
$style
==
pill
{
@include
pill
(
$base-color
,
$grayscale
:
true
);
@if
$type
==
pill
and
$b-color
==
grayscale
(
$b-color
)
{
@include
pill
(
$b-color
,
true
,
$t-size
,
$pad
);
}
@if
$type
==
flat
and
$b-color
==
grayscale
(
$b-color
)
{
@include
flat
(
$b-color
,
true
,
$t-size
,
$pad
);
}
// Colored button
@else
{
@if
$style
==
simple
{
@include
simple
(
$base-color
);
@if
$type
==
simple
{
@include
simple
(
$b-color
,
false
,
$t-size
,
$pad
);
}
@else
if
$styl
e
==
shiny
{
@include
shiny
(
$base-color
);
@else
if
$typ
e
==
shiny
{
@include
shiny
(
$b-color
,
false
,
$t-size
,
$pad
);
}
@else
if
$style
==
pill
{
@include
pill
(
$base-color
);
}
@else
if
$type
==
pill
{
@include
pill
(
$b-color
,
false
,
$t-size
,
$pad
);
}
&
:disabled
{
opacity
:
0
.5
;
cursor
:
not
-
allowed
;
@else
if
$type
==
flat
{
@include
flat
(
$b-color
,
false
,
$t-size
,
$pad
);
}
}
// Simple Button
//************************************************************************//
@mixin
simple
(
$base-color
,
$grayscale
:
false
)
{
@mixin
simple
(
$base-color
,
$grayscale
:
false
,
$textsize
:
inherit
,
$padding
:
7px
18px
)
{
$color
:
hsl
(
0
,
0
,
100%
);
$border
:
adjust-color
(
$base-color
,
$saturation
:
9%
,
$lightness
:
-14%
);
$inset-shadow
:
adjust-color
(
$base-color
,
$saturation
:
-8%
,
$lightness
:
15%
);
$stop-gradient
:
adjust-color
(
$base-color
,
$saturation
:
9%
,
$lightness
:
-11%
);
$text-shadow
:
adjust-color
(
$base-color
,
$saturation
:
15%
,
$lightness
:
-18%
);
@if
lightness
(
$base-color
)
>
70%
{
@if
is-light
(
$base-color
)
{
$color
:
hsl
(
0
,
0
,
20%
);
$text-shadow
:
adjust-color
(
$base-color
,
$saturation
:
10%
,
$lightness
:
4%
);
}
...
...
@@ -68,15 +120,15 @@
box-shadow
:
inset
0
1px
0
0
$inset-shadow
;
color
:
$color
;
display
:
inline-block
;
font-size
:
11px
;
font-size
:
$textsize
;
font-weight
:
bold
;
@include
linear-gradient
(
$base-color
,
$stop-gradient
);
padding
:
7px
18px
;
padding
:
$padding
;
text-decoration
:
none
;
text-shadow
:
0
1px
0
$text-shadow
;
background-clip
:
padding-box
;
&
:hover:not
(
:disabled
)
,
&
:focus:not
(
:disabled
)
{
&
:hover:not
(
:disabled
)
{
$base-color-hover
:
adjust-color
(
$base-color
,
$saturation
:
-4%
,
$lightness
:
-5%
);
$inset-shadow-hover
:
adjust-color
(
$base-color
,
$saturation
:
-7%
,
$lightness
:
5%
);
$stop-gradient-hover
:
adjust-color
(
$base-color
,
$saturation
:
8%
,
$lightness
:
-14%
);
...
...
@@ -92,7 +144,8 @@
@include
linear-gradient
(
$base-color-hover
,
$stop-gradient-hover
);
}
&
:active:not
(
:disabled
)
{
&
:active:not
(
:disabled
),
&
:focus:not
(
:disabled
)
{
$border-active
:
adjust-color
(
$base-color
,
$saturation
:
9%
,
$lightness
:
-14%
);
$inset-shadow-active
:
adjust-color
(
$base-color
,
$saturation
:
7%
,
$lightness
:
-17%
);
...
...
@@ -102,14 +155,14 @@
}
border
:
1px
solid
$border-active
;
box-shadow
:
inset
0
0
8px
4px
$inset-shadow-active
,
inset
0
0
8px
4px
$inset-shadow-active
,
0
1px
1px
0
#eee
;
box-shadow
:
inset
0
0
8px
4px
$inset-shadow-active
,
inset
0
0
8px
4px
$inset-shadow-active
;
}
}
// Shiny Button
//************************************************************************//
@mixin
shiny
(
$base-color
,
$grayscale
:
false
)
{
@mixin
shiny
(
$base-color
,
$grayscale
:
false
,
$textsize
:
inherit
,
$padding
:
7px
18px
)
{
$color
:
hsl
(
0
,
0
,
100%
);
$border
:
adjust-color
(
$base-color
,
$red
:
-117
,
$green
:
-111
,
$blue
:
-81
);
$border-bottom
:
adjust-color
(
$base-color
,
$red
:
-126
,
$green
:
-127
,
$blue
:
-122
);
...
...
@@ -119,7 +172,7 @@
$text-shadow
:
adjust-color
(
$base-color
,
$red
:
-140
,
$green
:
-141
,
$blue
:
-114
);
$third-stop
:
adjust-color
(
$base-color
,
$red
:
-86
,
$green
:
-75
,
$blue
:
-48
);
@if
lightness
(
$base-color
)
>
70%
{
@if
is-light
(
$base-color
)
{
$color
:
hsl
(
0
,
0
,
20%
);
$text-shadow
:
adjust-color
(
$base-color
,
$saturation
:
10%
,
$lightness
:
4%
);
}
...
...
@@ -140,10 +193,10 @@
box-shadow
:
inset
0
1px
0
0
$inset-shadow
;
color
:
$color
;
display
:
inline-block
;
font-size
:
14px
;
font-size
:
$textsize
;
font-weight
:
bold
;
@include
linear-gradient
(
top
,
$base-color
0%
,
$second-stop
50%
,
$third-stop
50%
,
$fourth-stop
100%
);
padding
:
8px
20px
;
padding
:
$padding
;
text-align
:
center
;
text-decoration
:
none
;
text-shadow
:
0
-1px
1px
$text-shadow
;
...
...
@@ -168,21 +221,22 @@
$fourth-stop-hover
100%
);
}
&
:active:not
(
:disabled
)
{
&
:active:not
(
:disabled
),
&
:focus:not
(
:disabled
)
{
$inset-shadow-active
:
adjust-color
(
$base-color
,
$red
:
-111
,
$green
:
-116
,
$blue
:
-122
);
@if
$grayscale
==
true
{
$inset-shadow-active
:
grayscale
(
$inset-shadow-active
);
}
box-shadow
:
inset
0
0
20px
0
$inset-shadow-active
,
0
1px
0
#fff
;
box-shadow
:
inset
0
0
20px
0
$inset-shadow-active
;
}
}
// Pill Button
//************************************************************************//
@mixin
pill
(
$base-color
,
$grayscale
:
false
)
{
@mixin
pill
(
$base-color
,
$grayscale
:
false
,
$textsize
:
inherit
,
$padding
:
7px
18px
)
{
$color
:
hsl
(
0
,
0
,
100%
);
$border-bottom
:
adjust-color
(
$base-color
,
$hue
:
8
,
$saturation
:
-11%
,
$lightness
:
-26%
);
$border-sides
:
adjust-color
(
$base-color
,
$hue
:
4
,
$saturation
:
-21%
,
$lightness
:
-21%
);
...
...
@@ -191,7 +245,7 @@
$stop-gradient
:
adjust-color
(
$base-color
,
$hue
:
8
,
$saturation
:
14%
,
$lightness
:
-10%
);
$text-shadow
:
adjust-color
(
$base-color
,
$hue
:
5
,
$saturation
:
-19%
,
$lightness
:
-15%
);
@if
lightness
(
$base-color
)
>
70%
{
@if
is-light
(
$base-color
)
{
$color
:
hsl
(
0
,
0
,
20%
);
$text-shadow
:
adjust-color
(
$base-color
,
$saturation
:
10%
,
$lightness
:
4%
);
}
...
...
@@ -208,14 +262,14 @@
border
:
1px
solid
$border-top
;
border-color
:
$border-top
$border-sides
$border-bottom
;
border-radius
:
16px
;
box-shadow
:
inset
0
1px
0
0
$inset-shadow
,
0
1px
2px
0
#b3b3b3
;
box-shadow
:
inset
0
1px
0
0
$inset-shadow
;
color
:
$color
;
display
:
inline-block
;
font-size
:
11px
;
font-size
:
$textsize
;
font-weight
:
normal
;
line-height
:
1
;
@include
linear-gradient
(
$base-color
,
$stop-gradient
);
padding
:
5px
16px
;
padding
:
$padding
;
text-align
:
center
;
text-decoration
:
none
;
text-shadow
:
0
-1px
1px
$text-shadow
;
...
...
@@ -249,7 +303,8 @@
background-clip
:
padding-box
;
}
&
:active:not
(
:disabled
)
{
&
:active:not
(
:disabled
),
&
:focus:not
(
:disabled
)
{
$active-color
:
adjust-color
(
$base-color
,
$hue
:
4
,
$saturation
:
-12%
,
$lightness
:
-10%
);
$border-active
:
adjust-color
(
$base-color
,
$hue
:
6
,
$saturation
:
-2
.5%
,
$lightness
:
-30%
);
$border-bottom-active
:
adjust-color
(
$base-color
,
$hue
:
11
,
$saturation
:
6%
,
$lightness
:
-31%
);
...
...
@@ -267,7 +322,53 @@
background
:
$active-color
;
border
:
1px
solid
$border-active
;
border-bottom
:
1px
solid
$border-bottom-active
;
box-shadow
:
inset
0
0
6px
3px
$inset-shadow-active
,
0
1px
0
0
#fff
;
box-shadow
:
inset
0
0
6px
3px
$inset-shadow-active
;
text-shadow
:
0
-1px
1px
$text-shadow-active
;
}
}
// Flat Button
//************************************************************************//
@mixin
flat
(
$base-color
,
$grayscale
:
false
,
$textsize
:
inherit
,
$padding
:
7px
18px
)
{
$color
:
hsl
(
0
,
0
,
100%
);
@if
is-light
(
$base-color
)
{
$color
:
hsl
(
0
,
0
,
20%
);
}
background-color
:
$base-color
;
border-radius
:
3px
;
border
:
none
;
color
:
$color
;
display
:
inline-block
;
font-size
:
inherit
;
font-weight
:
bold
;
padding
:
7px
18px
;
text-decoration
:
none
;
background-clip
:
padding-box
;
&
:hover:not
(
:disabled
)
{
$base-color-hover
:
adjust-color
(
$base-color
,
$saturation
:
4%
,
$lightness
:
5%
);
@if
$grayscale
==
true
{
$base-color-hover
:
grayscale
(
$base-color-hover
);
}
background-color
:
$base-color-hover
;
cursor
:
pointer
;
}
&
:active:not
(
:disabled
),
&
:focus:not
(
:disabled
)
{
$base-color-active
:
adjust-color
(
$base-color
,
$saturation
:
-4%
,
$lightness
:
-5%
);
@if
$grayscale
==
true
{
$base-color-active
:
grayscale
(
$base-color-active
);
}
background-color
:
$base-color-active
;
cursor
:
pointer
;
}
}
common/static/sass/bourbon/addons/_clearfix.scss
View file @
71ea2fe2
// M
icro clearfix provides an easy way to contain floats without adding additional markup
// M
odern micro clearfix provides an easy way to contain floats without adding additional markup.
//
// Example usage:
//
...
...
@@ -12,18 +12,12 @@
// }
@mixin
clearfix
{
*
zoom
:
1
;
&
:before
,
&
:after
{
content
:
" "
;
display
:
table
;
}
&
:after
{
clear
:
both
;
content
:
""
;
display
:table
;
clear
:both
;
}
}
// Acknowledgements
//
Micro clearfix: [Nicolas Gallagher](http://nicolasgallagher.com/micro-clearfix-hack/
)
//
Beat *that* clearfix: [Thierry Koblentz](http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
)
common/static/sass/bourbon/addons/_directional-values.scss
0 → 100644
View file @
71ea2fe2
// directional-property mixins are shorthands
// for writing properties like the following
//
// @include margin(null 0 10px);
// ------
// margin-right: 0;
// margin-bottom: 10px;
// margin-left: 0;
//
// - or -
//
// @include border-style(dotted null);
// ------
// border-top-style: dotted;
// border-bottom-style: dotted;
//
// ------
//
// Note: You can also use false instead of null
@function
collapse-directionals
(
$vals
)
{
$output
:
null
;
$A
:
nth
(
$vals
,
1
);
$B
:
if
(
length
(
$vals
)
<
2
,
$A
,
nth
(
$vals
,
2
));
$C
:
if
(
length
(
$vals
)
<
3
,
$A
,
nth
(
$vals
,
3
));
$D
:
if
(
length
(
$vals
)
<
2
,
$A
,
nth
(
$vals
,
if
(
length
(
$vals
)
<
4
,
2
,
4
)
));
@if
$A
==
0
{
$A
:
0
}
@if
$B
==
0
{
$B
:
0
}
@if
$C
==
0
{
$C
:
0
}
@if
$D
==
0
{
$D
:
0
}
@if
$A
==
$B
and
$A
==
$C
and
$A
==
$D
{
$output
:
$A
}
@else
if
$A
==
$C
and
$B
==
$D
{
$output
:
$A
$B
}
@else
if
$B
==
$D
{
$output
:
$A
$B
$C
}
@else
{
$output
:
$A
$B
$C
$D
}
@return
$output
;
}
@function
contains-falsy
(
$list
)
{
@each
$item
in
$list
{
@if
not
$item
{
@return
true
;
}
}
@return
false
;
}
@mixin
directional-property
(
$pre
,
$suf
,
$vals
)
{
// Property Names
$top
:
$pre
+
"-top"
+
if
(
$suf
,
"-
#{
$suf
}
"
,
""
);
$bottom
:
$pre
+
"-bottom"
+
if
(
$suf
,
"-
#{
$suf
}
"
,
""
);
$left
:
$pre
+
"-left"
+
if
(
$suf
,
"-
#{
$suf
}
"
,
""
);
$right
:
$pre
+
"-right"
+
if
(
$suf
,
"-
#{
$suf
}
"
,
""
);
$all
:
$pre
+
if
(
$suf
,
"-
#{
$suf
}
"
,
""
);
$vals
:
collapse-directionals
(
$vals
);
@if
contains-falsy
(
$vals
)
{
@if
nth
(
$vals
,
1
)
{
#{
$top
}
:
nth
(
$
vals
,
1
)
;
}
@if
length
(
$vals
)
==
1
{
@if
nth
(
$vals
,
1
)
{
#{
$right
}
:
nth
(
$
vals
,
1
)
;
}
}
@else
{
@if
nth
(
$vals
,
2
)
{
#{
$right
}
:
nth
(
$
vals
,
2
)
;
}
}
// prop: top/bottom right/left
@if
length
(
$vals
)
==
2
{
@if
nth
(
$vals
,
1
)
{
#{
$bottom
}
:
nth
(
$
vals
,
1
)
;
}
@if
nth
(
$vals
,
2
)
{
#{
$left
}
:
nth
(
$
vals
,
2
)
;
}
// prop: top right/left bottom
}
@else
if
length
(
$vals
)
==
3
{
@if
nth
(
$vals
,
3
)
{
#{
$bottom
}
:
nth
(
$
vals
,
3
)
;
}
@if
nth
(
$vals
,
2
)
{
#{
$left
}
:
nth
(
$
vals
,
2
)
;
}
// prop: top right bottom left
}
@else
if
length
(
$vals
)
==
4
{
@if
nth
(
$vals
,
3
)
{
#{
$bottom
}
:
nth
(
$
vals
,
3
)
;
}
@if
nth
(
$vals
,
4
)
{
#{
$left
}
:
nth
(
$
vals
,
4
)
;
}
}
// prop: top/right/bottom/left
}
@else
{
#{
$all
}
:
$
vals
;
}
}
@mixin
margin
(
$vals
...
)
{
@include
directional-property
(
margin
,
false
,
$vals
...
);
}
@mixin
padding
(
$vals
...
)
{
@include
directional-property
(
padding
,
false
,
$vals
...
);
}
@mixin
border-style
(
$vals
...
)
{
@include
directional-property
(
border
,
style
,
$vals
...
);
}
@mixin
border-color
(
$vals
...
)
{
@include
directional-property
(
border
,
color
,
$vals
...
);
}
@mixin
border-width
(
$vals
...
)
{
@include
directional-property
(
border
,
width
,
$vals
...
);
}
common/static/sass/bourbon/addons/_ellipsis.scss
0 → 100644
View file @
71ea2fe2
@mixin
ellipsis
(
$width
:
100%
)
{
display
:
inline-block
;
max-width
:
$width
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
common/static/sass/bourbon/addons/_font-family.scss
View file @
71ea2fe2
$georgia
:
Georgia
,
Cambria
,
"Times New Roman"
,
Times
,
serif
;
$helvetica
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
$helvetica
:
"Helvetica Neue"
,
Helvetica
,
Roboto
,
Arial
,
sans-serif
;
$lucida-grande
:
"Lucida Grande"
,
Tahoma
,
Verdana
,
Arial
,
sans-serif
;
$monospace
:
"Bitstream Vera Sans Mono"
,
Consolas
,
Courier
,
monospace
;
$verdana
:
Verdana
,
Geneva
,
sans-serif
;
common/static/sass/bourbon/addons/_hide-text.scss
View file @
71ea2fe2
@mixin
hide-text
{
color
:
transparent
;
font
:
0
/
0
a
;
text-shadow
:
none
;
overflow
:
hidden
;
&
:before
{
content
:
""
;
display
:
block
;
width
:
0
;
height
:
100%
;
}
}
common/static/sass/bourbon/addons/_html5-input-types.scss
View file @
71ea2fe2
...
...
@@ -20,29 +20,19 @@ $inputs-list: 'input[type="email"]',
'input[type="time"]'
,
'input[type="week"]'
;
$unquoted-inputs-list
:
();
@each
$input-type
in
$inputs-list
{
$unquoted-inputs-list
:
append
(
$unquoted-inputs-list
,
unquote
(
$input-type
)
,
comma
);
}
$all-text-inputs
:
$unquoted-inputs-list
;
// Bare inputs
//************************************************************************//
$all-text-inputs
:
assign-inputs
(
$inputs-list
);
// Hover Pseudo-class
//************************************************************************//
$all-text-inputs-hover
:
();
@each
$input-type
in
$unquoted-inputs-list
{
$input-type-hover
:
$input-type
+
":hover"
;
$all-text-inputs-hover
:
append
(
$all-text-inputs-hover
,
$input-type-hover
,
comma
);
}
$all-text-inputs-hover
:
assign-inputs
(
$inputs-list
,
hover
);
// Focus Pseudo-class
//************************************************************************//
$all-text-inputs-focus
:
();
@each
$input-type
in
$unquoted-inputs-list
{
$input-type-focus
:
$input-type
+
":focus"
;
$all-text-inputs-focus
:
append
(
$all-text-inputs-focus
,
$input-type-focus
,
comma
);
}
$all-text-inputs-focus
:
assign-inputs
(
$inputs-list
,
focus
);
// You must use interpolation on the variable:
// #{$all-text-inputs}
...
...
@@ -54,3 +44,43 @@ $all-text-inputs-focus: ();
// #{$all-text-inputs}, textarea {
// border: 1px solid red;
// }
//************************************************************************//
// Generate a variable ($all-button-inputs) with a list of all html5
// input types that have a button-based input, excluding button.
//************************************************************************//
$inputs-button-list
:
'input[type="button"]'
,
'input[type="reset"]'
,
'input[type="submit"]'
;
// Bare inputs
//************************************************************************//
$all-button-inputs
:
assign-inputs
(
$inputs-button-list
);
// Hover Pseudo-class
//************************************************************************//
$all-button-inputs-hover
:
assign-inputs
(
$inputs-button-list
,
hover
);
// Focus Pseudo-class
//************************************************************************//
$all-button-inputs-focus
:
assign-inputs
(
$inputs-button-list
,
focus
);
// Active Pseudo-class
//************************************************************************//
$all-button-inputs-active
:
assign-inputs
(
$inputs-button-list
,
active
);
// You must use interpolation on the variable:
// #{$all-button-inputs}
// #{$all-button-inputs-hover}
// #{$all-button-inputs-focus}
// #{$all-button-inputs-active}
// Example
//************************************************************************//
// #{$all-button-inputs}, button {
// border: 1px solid red;
// }
common/static/sass/bourbon/addons/_position.scss
View file @
71ea2fe2
@mixin
position
(
$position
:
relative
,
$coordinates
:
0
0
0
0
)
{
@mixin
position
(
$position
:
relative
,
$coordinates
:
null
null
null
null
)
{
@if
type-of
(
$position
)
==
list
{
$coordinates
:
$position
;
$position
:
relative
;
}
$coordinates
:
unpack
(
$coordinates
);
$top
:
nth
(
$coordinates
,
1
);
$right
:
nth
(
$coordinates
,
2
);
$bottom
:
nth
(
$coordinates
,
3
);
...
...
@@ -12,31 +14,19 @@
position
:
$position
;
@if
$top
==
auto
{
top
:
$top
;
}
@else
if
not
(
unitless
(
$top
))
{
@if
(
$top
and
$top
==
auto
)
or
(
type-of
(
$top
)
==
number
)
{
top
:
$top
;
}
@if
$right
==
auto
{
right
:
$right
;
}
@else
if
not
(
unitless
(
$right
))
{
@if
(
$right
and
$right
==
auto
)
or
(
type-of
(
$right
)
==
number
)
{
right
:
$right
;
}
@if
$bottom
==
auto
{
bottom
:
$bottom
;
}
@else
if
not
(
unitless
(
$bottom
))
{
@if
(
$bottom
and
$bottom
==
auto
)
or
(
type-of
(
$bottom
)
==
number
)
{
bottom
:
$bottom
;
}
@if
$left
==
auto
{
left
:
$left
;
}
@else
if
not
(
unitless
(
$left
))
{
@if
(
$left
and
$left
==
auto
)
or
(
type-of
(
$left
)
==
number
)
{
left
:
$left
;
}
}
common/static/sass/bourbon/addons/_prefixer.scss
View file @
71ea2fe2
//************************************************************************//
// Example: @include prefixer(border-radius, $radii, webkit ms spec);
//************************************************************************//
$prefix-for-webkit
:
true
!
default
;
$prefix-for-mozilla
:
true
!
default
;
$prefix-for-microsoft
:
true
!
default
;
$prefix-for-opera
:
true
!
default
;
$prefix-for-spec
:
true
!
default
;
// required for keyframe mixin
// Variables located in /settings/_prefixer.scss
@mixin
prefixer
(
$property
,
$value
,
$prefixes
)
{
@each
$prefix
in
$prefixes
{
...
...
@@ -41,9 +37,9 @@ $prefix-for-spec: true !default; // required for keyframe mixin
}
@mixin
disable-prefix-for-all
()
{
$prefix-for-webkit
:
false
;
$prefix-for-mozilla
:
false
;
$prefix-for-microsoft
:
false
;
$prefix-for-opera
:
false
;
$prefix-for-spec
:
false
;
$prefix-for-webkit
:
false
!
global
;
$prefix-for-mozilla
:
false
!
global
;
$prefix-for-microsoft
:
false
!
global
;
$prefix-for-opera
:
false
!
global
;
$prefix-for-spec
:
false
!
global
;
}
common/static/sass/bourbon/addons/_retina-image.scss
View file @
71ea2fe2
@mixin
retina-image
(
$filename
,
$background-size
,
$extension
:
png
,
$retina-filename
:
null
,
$
asset-pipeline
:
fals
e
)
{
@mixin
retina-image
(
$filename
,
$background-size
,
$extension
:
png
,
$retina-filename
:
null
,
$
retina-suffix
:
_2x
,
$asset-pipeline
:
$asset-pipelin
e
)
{
@if
$asset-pipeline
{
background-image
:
image-url
(
"
#{
$filename
}
.
#{
$extension
}
"
);
}
...
...
@@ -7,13 +7,12 @@
}
@include
hidpi
{
@if
$asset-pipeline
{
@if
$retina-filename
{
background-image
:
image-url
(
"
#{
$retina-filename
}
.
#{
$extension
}
"
);
}
@else
{
background-image
:
image-url
(
"
#{
$filename
}
@2x
.
#{
$extension
}
"
);
background-image
:
image-url
(
"
#{
$filename
}
#{
$retina-suffix
}
.
#{
$extension
}
"
);
}
}
...
...
@@ -22,7 +21,7 @@
background-image
:
url("
#{
$retina-filename
}
.
#{
$extension
}
")
;
}
@else
{
background-image
:
url("
#{
$filename
}
@2x
.
#{
$extension
}
")
;
background-image
:
url("
#{
$filename
}
#{
$retina-suffix
}
.
#{
$extension
}
")
;
}
}
...
...
common/static/sass/bourbon/addons/_size.scss
View file @
71ea2fe2
@mixin
size
(
$size
)
{
@if
length
(
$size
)
==
1
{
@if
$size
==
auto
{
width
:
$size
;
height
:
$size
;
}
@else
if
unitless
(
$size
)
{
width
:
$size
+
px
;
height
:
$size
+
px
;
}
@else
if
not
(
unitless
(
$size
))
{
width
:
$size
;
height
:
$size
;
}
}
$height
:
nth
(
$size
,
1
);
$width
:
$height
;
// Width x Height
@if
length
(
$size
)
==
2
{
$width
:
nth
(
$size
,
1
);
@if
length
(
$size
)
>
1
{
$height
:
nth
(
$size
,
2
);
@if
$width
==
auto
{
width
:
$width
;
}
@else
if
not
(
unitless
(
$width
))
{
width
:
$width
;
}
@else
if
unitless
(
$width
)
{
width
:
$width
+
px
;
}
@if
$height
==
auto
{
height
:
$height
;
}
@else
if
not
(
unitless
(
$height
))
{
@if
$height
==
auto
or
(
type-of
(
$height
)
==
number
and
not
unitless
(
$height
))
{
height
:
$height
;
}
@else
if
unitless
(
$height
)
{
height
:
$height
+
px
;
}
@if
$width
==
auto
or
(
type-of
(
$width
)
==
number
and
not
unitless
(
$width
))
{
width
:
$width
;
}
}
common/static/sass/bourbon/addons/_timing-functions.scss
View file @
71ea2fe2
// CSS cubic-bezier timing functions. Timing functions courtesy of jquery.easie (github.com/jaukia/easie)
// Timing functions are the same as demo'ed here: http://jqueryui.com/demos/effect/easing.html
// Timing functions are the same as demo'ed here: http://jqueryui.com/
resources/
demos/effect/easing.html
// EASE IN
$ease-in-quad
:
cubic-bezier
(
0
.550
,
0
.085
,
0
.680
,
0
.530
);
...
...
common/static/sass/bourbon/addons/_triangle.scss
View file @
71ea2fe2
...
...
@@ -2,44 +2,82 @@
height
:
0
;
width
:
0
;
$width
:
nth
(
$size
,
1
);
$height
:
nth
(
$size
,
length
(
$size
));
$foreground-color
:
nth
(
$color
,
1
);
$background-color
:
if
(
length
(
$color
)
==
2
,
nth
(
$color
,
2
)
,
transparent
);
@if
(
$direction
==
up
)
or
(
$direction
==
down
)
or
(
$direction
==
right
)
or
(
$direction
==
left
)
{
border-color
:
transparent
;
border-style
:
solid
;
border-width
:
$size
/
2
;
$width
:
$width
/
2
;
$height
:
if
(
length
(
$size
)
>
1
,
$height
,
$height
/
2
)
;
@if
$direction
==
up
{
border-bottom-color
:
$color
;
border-left
:
$width
solid
$background-color
;
border-right
:
$width
solid
$background-color
;
border-bottom
:
$height
solid
$foreground-color
;
}
@else
if
$direction
==
right
{
border-left-color
:
$color
;
border-top
:
$width
solid
$background-color
;
border-bottom
:
$width
solid
$background-color
;
border-left
:
$height
solid
$foreground-color
;
}
@else
if
$direction
==
down
{
border-top-color
:
$color
;
border-left
:
$width
solid
$background-color
;
border-right
:
$width
solid
$background-color
;
border-top
:
$height
solid
$foreground-color
;
}
@else
if
$direction
==
left
{
border-right-color
:
$color
;
border-top
:
$width
solid
$background-color
;
border-bottom
:
$width
solid
$background-color
;
border-right
:
$height
solid
$foreground-color
;
}
}
@else
if
(
$direction
==
up-right
)
or
(
$direction
==
up-left
)
{
border-top
:
$
size
solid
$
color
;
border-top
:
$
height
solid
$foreground-
color
;
@if
$direction
==
up-right
{
border-left
:
$
size
solid
transparent
;
border-left
:
$
width
solid
$background-color
;
}
@else
if
$direction
==
up-left
{
border-right
:
$
size
solid
transparent
;
border-right
:
$
width
solid
$background-color
;
}
}
@else
if
(
$direction
==
down-right
)
or
(
$direction
==
down-left
)
{
border-bottom
:
$
size
solid
$
color
;
border-bottom
:
$
height
solid
$foreground-
color
;
@if
$direction
==
down-right
{
border-left
:
$
size
solid
transparent
;
border-left
:
$
width
solid
$background-color
;
}
@else
if
$direction
==
down-left
{
border-right
:
$size
solid
transparent
;
border-right
:
$width
solid
$background-color
;
}
}
@else
if
(
$direction
==
inset-up
)
{
border-width
:
$height
$width
;
border-style
:
solid
;
border-color
:
$background-color
$background-color
$foreground-color
;
}
@else
if
(
$direction
==
inset-down
)
{
border-width
:
$height
$width
;
border-style
:
solid
;
border-color
:
$foreground-color
$background-color
$background-color
;
}
@else
if
(
$direction
==
inset-right
)
{
border-width
:
$width
$height
;
border-style
:
solid
;
border-color
:
$background-color
$background-color
$background-color
$foreground-color
;
}
@else
if
(
$direction
==
inset-left
)
{
border-width
:
$width
$height
;
border-style
:
solid
;
border-color
:
$background-color
$foreground-color
$background-color
$background-color
;
}
}
common/static/sass/bourbon/addons/_word-wrap.scss
0 → 100644
View file @
71ea2fe2
@mixin
word-wrap
(
$wrap
:
break-word
)
{
word-wrap
:
$wrap
;
@if
$wrap
==
break-word
{
overflow-wrap
:
break-word
;
word-break
:
break-all
;
}
}
common/static/sass/bourbon/css3/_background-image.scss
View file @
71ea2fe2
...
...
@@ -4,45 +4,39 @@
//************************************************************************//
@mixin
background-image
(
$images
...
)
{
background-image
:
_add-prefix
(
$images
,
webkit
);
background-image
:
_add-prefix
(
$images
);
}
$webkit-images
:
();
$spec-images
:
();
@each
$image
in
$images
{
$webkit-image
:
();
$spec-image
:
();
@function
_add-prefix
(
$images
,
$vendor
:
false
)
{
$images-prefixed
:
();
$gradient-positions
:
false
;
@for
$i
from
1
through
length
(
$images
)
{
$type
:
type-of
(
nth
(
$images
,
$i
));
// Get type of variable - List or String
// If variable is a list - Gradient
@if
$type
==
list
{
$gradient-type
:
nth
(
nth
(
$images
,
$i
)
,
1
);
// linear or radial
$gradient-pos
:
null
;
$gradient-args
:
null
;
@if
(
$gradient-type
==
linear
)
or
(
$gradient-type
==
radial
)
{
$gradient-pos
:
nth
(
nth
(
$images
,
$i
)
,
2
);
// Get gradient position
$gradient-args
:
nth
(
nth
(
$images
,
$i
)
,
3
);
// Get actual gradient (red, blue)
@if
(
type-of
(
$image
)
==
string
)
{
$url-str
:
str-slice
(
$image
,
0
,
3
);
$gradient-type
:
str-slice
(
$image
,
0
,
6
);
@if
$url-str
==
"url"
{
$webkit-image
:
$image
;
$spec-image
:
$image
;
}
@else
{
$gradient-args
:
nth
(
nth
(
$images
,
$i
)
,
2
);
// Get actual gradient (red, blue)
@else
if
$gradient-type
==
"linear"
{
$gradients
:
_linear-gradient-parser
(
$image
);
$webkit-image
:
map-get
(
$gradients
,
webkit-image
);
$spec-image
:
map-get
(
$gradients
,
spec-image
);
}
$gradient-positions
:
_gradient-positions-parser
(
$gradient-type
,
$gradient-pos
);
$gradient
:
_render-gradients
(
$gradient-positions
,
$gradient-args
,
$gradient-type
,
$vendor
);
$images-prefixed
:
append
(
$images-prefixed
,
$gradient
,
comma
);
@else
if
$gradient-type
==
"radial"
{
$gradients
:
_radial-gradient-parser
(
$image
);
$webkit-image
:
map-get
(
$gradients
,
webkit-image
);
$spec-image
:
map-get
(
$gradients
,
spec-image
);
}
// If variable is a string - Image
@else
if
$type
==
string
{
$images-prefixed
:
join
(
$images-prefixed
,
nth
(
$images
,
$i
)
,
comma
);
}
$webkit-images
:
append
(
$webkit-images
,
$webkit-image
,
comma
);
$spec-images
:
append
(
$spec-images
,
$spec-image
,
comma
);
}
@return
$images-prefixed
;
}
//Examples:
//@include background-image(linear-gradient(top, orange, red));
//@include background-image(radial-gradient(50% 50%, cover circle, orange, red));
//@include background-image(url("/images/a.png"), linear-gradient(orange, red));
//@include background-image(url("image.png"), linear-gradient(orange, red), url("image.png"));
//@include background-image(linear-gradient(hsla(0, 100%, 100%, 0.25) 0%, hsla(0, 100%, 100%, 0.08) 50%, transparent 50%), linear-gradient(orange, red));
background-image
:
$webkit-images
;
background-image
:
$spec-images
;
}
common/static/sass/bourbon/css3/_background.scss
View file @
71ea2fe2
...
...
@@ -3,101 +3,53 @@
// notation.
//************************************************************************//
@mixin
background
(
$background-1
,
$background-2
:
false
,
$background-3
:
false
,
$background-4
:
false
,
$background-5
:
false
,
$background-6
:
false
,
$background-7
:
false
,
$background-8
:
false
,
$background-9
:
false
,
$background-10
:
false
,
$fallback
:
false
)
{
$backgrounds
:
compact
(
$background-1
,
$background-2
,
$background-3
,
$background-4
,
$background-5
,
$background-6
,
$background-7
,
$background-8
,
$background-9
,
$background-10
);
@mixin
background
(
$backgrounds
...
)
{
$webkit-backgrounds
:
();
$spec-backgrounds
:
();
$fallback-color
:
false
;
@if
(
type-of
(
$fallback
)
==
color
)
or
(
$fallback
==
"transparent"
)
{
$fallback-color
:
$fallback
;
}
@else
{
$fallback-color
:
_extract-background-color
(
$backgrounds
);
}
@if
$fallback-color
{
background-color
:
$fallback-color
;
}
background
:
_background-add-prefix
(
$backgrounds
,
webkit
);
background
:
_background-add-prefix
(
$backgrounds
);
}
@function
_extract-background-color
(
$backgrounds
)
{
$final-bg-layer
:
nth
(
$backgrounds
,
length
(
$backgrounds
));
@if
type-of
(
$final-bg-layer
)
==
list
{
@for
$i
from
1
through
length
(
$final-bg-layer
)
{
$value
:
nth
(
$final-bg-layer
,
$i
);
@if
type-of
(
$value
)
==
color
{
@return
$value
;
}
}
}
@return
false
;
}
@each
$background
in
$backgrounds
{
$webkit-background
:
();
$spec-background
:
();
$background-type
:
type-of
(
$background
);
@function
_background-add-prefix
(
$backgrounds
,
$vendor
:
false
)
{
$backgrounds-prefixed
:
(
);
@if
$background-type
==
string
or
list
{
$background-str
:
if
(
$background-type
==
list
,
nth
(
$background
,
1
)
,
$background
);
@for
$i
from
1
through
length
(
$backgrounds
)
{
$shorthand
:
nth
(
$backgrounds
,
$i
);
// Get member for current index
$type
:
type-of
(
$shorthand
);
// Get type of variable - List (gradient) or String (image)
$url-str
:
str-slice
(
$background-str
,
0
,
3
);
$gradient-type
:
str-slice
(
$background-str
,
0
,
6
);
// If shorthand is a list (gradient)
@if
$type
==
list
{
$first-member
:
nth
(
$shorthand
,
1
);
// Get first member of shorthand
// Linear Gradient
@if
index
(
linear
radial
,
nth
(
$first-member
,
1
))
{
$gradient-type
:
nth
(
$first-member
,
1
);
// linear || radial
$gradient-args
:
false
;
$gradient-positions
:
false
;
$shorthand-start
:
false
;
@if
type-of
(
$first-member
)
==
list
{
// Linear gradient plus additional shorthand values - lg(red,orange)repeat,...
$gradient-positions
:
nth
(
$first-member
,
2
);
$gradient-args
:
nth
(
$first-member
,
3
);
$shorthand-start
:
2
;
}
@else
{
// Linear gradient only - lg(red,orange),...
$gradient-positions
:
nth
(
$shorthand
,
2
);
$gradient-args
:
nth
(
$shorthand
,
3
);
// Get gradient (red, blue)
@if
$url-str
==
"url"
{
$webkit-background
:
$background
;
$spec-background
:
$background
;
}
$gradient-positions
:
_gradient-positions-parser
(
$gradient-type
,
$gradient-positions
);
$gradient
:
_render-gradients
(
$gradient-positions
,
$gradient-args
,
$gradient-type
,
$vendor
);
// Append any additional shorthand args to gradient
@if
$shorthand-start
{
@for
$j
from
$shorthand-start
through
length
(
$shorthand
)
{
$gradient
:
join
(
$gradient
,
nth
(
$shorthand
,
$j
)
,
space
);
@else
if
$gradient-type
==
"linear"
{
$gradients
:
_linear-gradient-parser
(
"
#{
$background
}
"
);
$webkit-background
:
map-get
(
$gradients
,
webkit-image
);
$spec-background
:
map-get
(
$gradients
,
spec-image
);
}
@else
if
$gradient-type
==
"radial"
{
$gradients
:
_radial-gradient-parser
(
"
#{
$background
}
"
);
$webkit-background
:
map-get
(
$gradients
,
webkit-image
);
$spec-background
:
map-get
(
$gradients
,
spec-image
);
}
$backgrounds-prefixed
:
append
(
$backgrounds-prefixed
,
$gradient
,
comma
);
}
// Image with additional properties
@else
{
$backgrounds-prefixed
:
append
(
$backgrounds-prefixed
,
$shorthand
,
comma
);
$webkit-background
:
$background
;
$spec-background
:
$background
;
}
}
// If shorthand is a simple string (color or image)
@else
if
$type
==
string
{
$backgrounds-prefixed
:
join
(
$backgrounds-prefixed
,
$shorthand
,
comma
);
@else
{
$webkit-background
:
$background
;
$spec-background
:
$background
;
}
$webkit-backgrounds
:
append
(
$webkit-backgrounds
,
$webkit-background
,
comma
);
$spec-backgrounds
:
append
(
$spec-backgrounds
,
$spec-background
,
comma
);
}
@return
$backgrounds-prefixed
;
}
//Examples:
//@include background(linear-gradient(top, orange, red));
//@include background(radial-gradient(circle at 40% 40%, orange, red));
//@include background(url("/images/a.png") no-repeat, linear-gradient(orange, red));
//@include background(url("image.png") center center, linear-gradient(orange, red), url("image.png"));
background
:
$webkit-backgrounds
;
background
:
$spec-backgrounds
;
}
common/static/sass/bourbon/css3/_border-image.scss
View file @
71ea2fe2
@mixin
border-image
(
$images
)
{
-webkit-border-image
:
_border-add-prefix
(
$images
,
webkit
);
-moz-border-image
:
_border-add-prefix
(
$images
,
moz
);
-o-border-image
:
_border-add-prefix
(
$images
,
o
);
border-image
:
_border-add-prefix
(
$images
);
}
@mixin
border-image
(
$borders
...
)
{
$webkit-borders
:
();
$spec-borders
:
();
@each
$border
in
$borders
{
$webkit-border
:
();
$spec-border
:
();
$border-type
:
type-of
(
$border
);
@if
$border-type
==
string
or
list
{
$border-str
:
if
(
$border-type
==
list
,
nth
(
$border
,
1
)
,
$border
);
$url-str
:
str-slice
(
$border-str
,
0
,
3
);
$gradient-type
:
str-slice
(
$border-str
,
0
,
6
);
@function
_border-add-prefix
(
$images
,
$vendor
:
false
)
{
$border-image
:
null
;
$images-type
:
type-of
(
nth
(
$images
,
1
));
$first-var
:
nth
(
nth
(
$images
,
1
)
,
1
);
// Get type of Gradient (Linear || radial)
// If input is a gradient
@if
$images-type
==
string
{
@if
(
$first-var
==
"linear"
)
or
(
$first-var
==
"radial"
)
{
$gradient-type
:
nth
(
$images
,
1
);
// Get type of gradient (linear || radial)
$gradient-pos
:
nth
(
$images
,
2
);
// Get gradient position
$gradient-args
:
nth
(
$images
,
3
);
// Get actual gradient (red, blue)
$gradient-positions
:
_gradient-positions-parser
(
$gradient-type
,
$gradient-pos
);
$border-image
:
_render-gradients
(
$gradient-positions
,
$gradient-args
,
$gradient-type
,
$vendor
);
@if
$url-str
==
"url"
{
$webkit-border
:
$border
;
$spec-border
:
$border
;
}
// If input is a URL
@else
{
$border-image
:
$images
;
@else
if
$gradient-type
==
"linear"
{
$gradients
:
_linear-gradient-parser
(
"
#{
$border
}
"
);
$webkit-border
:
map-get
(
$gradients
,
webkit-image
);
$spec-border
:
map-get
(
$gradients
,
spec-image
);
}
@else
if
$gradient-type
==
"radial"
{
$gradients
:
_radial-gradient-parser
(
"
#{
$border
}
"
);
$webkit-border
:
map-get
(
$gradients
,
webkit-image
);
$spec-border
:
map-get
(
$gradients
,
spec-image
);
}
// If input is gradient or url + additional args
@else
if
$images-type
==
list
{
$type
:
type-of
(
nth
(
$images
,
1
));
// Get type of variable - List or String
// If variable is a list - Gradient
@if
$type
==
list
{
$gradient
:
nth
(
$images
,
1
);
$gradient-type
:
nth
(
$gradient
,
1
);
// Get type of gradient (linear || radial)
$gradient-pos
:
nth
(
$gradient
,
2
);
// Get gradient position
$gradient-args
:
nth
(
$gradient
,
3
);
// Get actual gradient (red, blue)
$gradient-positions
:
_gradient-positions-parser
(
$gradient-type
,
$gradient-pos
);
$border-image
:
_render-gradients
(
$gradient-positions
,
$gradient-args
,
$gradient-type
,
$vendor
);
@for
$i
from
2
through
length
(
$images
)
{
$border-image
:
append
(
$border-image
,
nth
(
$images
,
$i
));
@else
{
$webkit-border
:
$border
;
$spec-border
:
$border
;
}
}
@else
{
$webkit-border
:
$border
;
$spec-border
:
$border
;
}
@return
$border-image
;
$webkit-borders
:
append
(
$webkit-borders
,
$webkit-border
,
comma
);
$spec-borders
:
append
(
$spec-borders
,
$spec-border
,
comma
);
}
-webkit-border-image
:
$webkit-borders
;
border-image
:
$spec-borders
;
border-style
:
solid
;
}
//Examples:
...
...
@@ -52,4 +57,3 @@
// @include border-image(linear-gradient(45deg, orange, yellow) stretch);
// @include border-image(linear-gradient(45deg, orange, yellow) 20 30 40 50 stretch round);
// @include border-image(radial-gradient(top, cover, orange, yellow, orange));
common/static/sass/bourbon/css3/_calc.scss
0 → 100644
View file @
71ea2fe2
@mixin
calc
(
$property
,
$value
)
{
#{
$property
}
:
-webkit-calc
(
#{
$value
}
)
;
#{
$property
}
:
calc
(
#{
$value
}
)
;
}
common/static/sass/bourbon/css3/_columns.scss
View file @
71ea2fe2
...
...
@@ -15,7 +15,7 @@
@mixin
column-fill
(
$arg
:
auto
)
{
// auto || length
@include
prefixer
(
column
s
-fill
,
$arg
,
webkit
moz
spec
);
@include
prefixer
(
column-fill
,
$arg
,
webkit
moz
spec
);
}
@mixin
column-rule
(
$arg
)
{
...
...
common/static/sass/bourbon/css3/_filter.scss
0 → 100644
View file @
71ea2fe2
@mixin
filter
(
$function
:
none
)
{
// <filter-function> [<filter-function]* | none
@include
prefixer
(
filter
,
$function
,
webkit
spec
);
}
common/static/sass/bourbon/css3/_flex-box.scss
View file @
71ea2fe2
...
...
@@ -11,6 +11,7 @@
@mixin
display-box
{
display
:
-
webkit-box
;
display
:
-
moz-box
;
display
:
-
ms-flexbox
;
// IE 10
display
:
box
;
}
...
...
@@ -22,16 +23,19 @@
@mixin
box-pack
(
$pack
:
start
)
{
// start|end|center|justify
@include
prefixer
(
box-pack
,
$pack
,
webkit
moz
spec
);
-ms-flex-pack
:
$pack
;
// IE 10
}
@mixin
box-align
(
$align
:
stretch
)
{
// start|end|center|baseline|stretch
@include
prefixer
(
box-align
,
$align
,
webkit
moz
spec
);
-ms-flex-align
:
$align
;
// IE 10
}
@mixin
box-direction
(
$direction
:
normal
)
{
// normal|reverse|inherit
@include
prefixer
(
box-direction
,
$direction
,
webkit
moz
spec
);
-ms-flex-direction
:
$direction
;
// IE 10
}
@mixin
box-lines
(
$lines
:
single
)
{
...
...
@@ -41,12 +45,277 @@
@mixin
box-ordinal-group
(
$int
:
1
)
{
@include
prefixer
(
box-ordinal-group
,
$int
,
webkit
moz
spec
);
-ms-flex-order
:
$int
;
// IE 10
}
@mixin
box-flex
(
$value
:
0
.0
)
{
@include
prefixer
(
box-flex
,
$value
,
webkit
moz
spec
);
-ms-flex
:
$value
;
// IE 10
}
@mixin
box-flex-group
(
$int
:
1
)
{
@include
prefixer
(
box-flex-group
,
$int
,
webkit
moz
spec
);
}
// CSS3 Flexible Box Model and property defaults
// Unified attributes for 2009, 2011, and 2012 flavours.
// 2009 - display (box | inline-box)
// 2011 - display (flexbox | inline-flexbox)
// 2012 - display (flex | inline-flex)
@mixin
display
(
$value
)
{
// flex | inline-flex
@if
$value
==
"flex"
{
// 2009
display
:
-
webkit-box
;
display
:
-
moz-box
;
display
:
box
;
// 2012
display
:
-
webkit-flex
;
display
:
-
moz-flex
;
display
:
-
ms-flexbox
;
// 2011 (IE 10)
display
:
flex
;
}
@else
if
$value
==
"inline-flex"
{
display
:
-
webkit-inline-box
;
display
:
-
moz-inline-box
;
display
:
inline-box
;
display
:
-
webkit-inline-flex
;
display
:
-
moz-inline-flex
;
display
:
-
ms-inline-flexbox
;
display
:
inline-flex
;
}
@else
{
display
:
$value
;
}
}
// 2009 - box-flex (integer)
// 2011 - flex (decimal | width decimal)
// 2012 - flex (integer integer width)
@mixin
flex
(
$value
)
{
// Grab flex-grow for older browsers.
$flex-grow
:
nth
(
$value
,
1
);
// 2009
@include
prefixer
(
box-flex
,
$flex-grow
,
webkit
moz
spec
);
// 2011 (IE 10), 2012
@include
prefixer
(
flex
,
$value
,
webkit
moz
ms
spec
);
}
// 2009 - box-orient ( horizontal | vertical | inline-axis | block-axis)
// - box-direction (normal | reverse)
// 2011 - flex-direction (row | row-reverse | column | column-reverse)
// 2012 - flex-direction (row | row-reverse | column | column-reverse)
@mixin
flex-direction
(
$value
:
row
)
{
// Alt values.
$value-2009
:
$value
;
$value-2011
:
$value
;
$direction
:
"normal"
;
@if
$value
==
row
{
$value-2009
:
horizontal
;
}
@else
if
$value
==
"row-reverse"
{
$value-2009
:
horizontal
;
$direction
:
reverse
;
}
@else
if
$value
==
column
{
$value-2009
:
vertical
;
}
@else
if
$value
==
"column-reverse"
{
$value-2009
:
vertical
;
$direction
:
reverse
;
}
// 2009
@include
prefixer
(
box-orient
,
$value-2009
,
webkit
moz
spec
);
@if
$direction
==
"reverse"
{
@include
prefixer
(
box-direction
,
$direction
,
webkit
moz
spec
);
}
// 2012
@include
prefixer
(
flex-direction
,
$value
,
webkit
moz
spec
);
// 2011 (IE 10)
-ms-flex-direction
:
$value
;
}
// 2009 - box-lines (single | multiple)
// 2011 - flex-wrap (nowrap | wrap | wrap-reverse)
// 2012 - flex-wrap (nowrap | wrap | wrap-reverse)
@mixin
flex-wrap
(
$value
:
nowrap
)
{
// Alt values.
$alt-value
:
$value
;
@if
$value
==
nowrap
{
$alt-value
:
single
;
}
@else
if
$value
==
wrap
{
$alt-value
:
multiple
;
}
@else
if
$value
==
"wrap-reverse"
{
$alt-value
:
multiple
;
}
@include
prefixer
(
box-lines
,
$alt-value
,
webkit
moz
spec
);
@include
prefixer
(
flex-wrap
,
$value
,
webkit
moz
ms
spec
);
}
// 2009 - TODO: parse values into flex-direction/flex-wrap
// 2011 - TODO: parse values into flex-direction/flex-wrap
// 2012 - flex-flow (flex-direction || flex-wrap)
@mixin
flex-flow
(
$value
)
{
@include
prefixer
(
flex-flow
,
$value
,
webkit
moz
spec
);
}
// 2009 - box-ordinal-group (integer)
// 2011 - flex-order (integer)
// 2012 - order (integer)
@mixin
order
(
$int
:
0
)
{
// 2009
@include
prefixer
(
box-ordinal-group
,
$int
,
webkit
moz
spec
);
// 2012
@include
prefixer
(
order
,
$int
,
webkit
moz
spec
);
// 2011 (IE 10)
-ms-flex-order
:
$int
;
}
// 2012 - flex-grow (number)
@mixin
flex-grow
(
$number
:
0
)
{
@include
prefixer
(
flex-grow
,
$number
,
webkit
moz
spec
);
-ms-flex-positive
:
$number
;
}
// 2012 - flex-shrink (number)
@mixin
flex-shrink
(
$number
:
1
)
{
@include
prefixer
(
flex-shrink
,
$number
,
webkit
moz
spec
);
-ms-flex-negative
:
$number
;
}
// 2012 - flex-basis (number)
@mixin
flex-basis
(
$width
:
auto
)
{
@include
prefixer
(
flex-basis
,
$width
,
webkit
moz
spec
);
-ms-flex-preferred-size
:
$width
;
}
// 2009 - box-pack (start | end | center | justify)
// 2011 - flex-pack (start | end | center | justify)
// 2012 - justify-content (flex-start | flex-end | center | space-between | space-around)
@mixin
justify-content
(
$value
:
flex-start
)
{
// Alt values.
$alt-value
:
$value
;
@if
$value
==
"flex-start"
{
$alt-value
:
start
;
}
@else
if
$value
==
"flex-end"
{
$alt-value
:
end
;
}
@else
if
$value
==
"space-between"
{
$alt-value
:
justify
;
}
@else
if
$value
==
"space-around"
{
$alt-value
:
center
;
}
// 2009
@include
prefixer
(
box-pack
,
$alt-value
,
webkit
moz
spec
);
// 2012
@include
prefixer
(
justify-content
,
$value
,
webkit
moz
ms
o
spec
);
// 2011 (IE 10)
-ms-flex-pack
:
$alt-value
;
}
// 2009 - box-align (start | end | center | baseline | stretch)
// 2011 - flex-align (start | end | center | baseline | stretch)
// 2012 - align-items (flex-start | flex-end | center | baseline | stretch)
@mixin
align-items
(
$value
:
stretch
)
{
$alt-value
:
$value
;
@if
$value
==
"flex-start"
{
$alt-value
:
start
;
}
@else
if
$value
==
"flex-end"
{
$alt-value
:
end
;
}
// 2009
@include
prefixer
(
box-align
,
$alt-value
,
webkit
moz
spec
);
// 2012
@include
prefixer
(
align-items
,
$value
,
webkit
moz
ms
o
spec
);
// 2011 (IE 10)
-ms-flex-align
:
$alt-value
;
}
// 2011 - flex-item-align (auto | start | end | center | baseline | stretch)
// 2012 - align-self (auto | flex-start | flex-end | center | baseline | stretch)
@mixin
align-self
(
$value
:
auto
)
{
$value-2011
:
$value
;
@if
$value
==
"flex-start"
{
$value-2011
:
start
;
}
@else
if
$value
==
"flex-end"
{
$value-2011
:
end
;
}
// 2012
@include
prefixer
(
align-self
,
$value
,
webkit
moz
spec
);
// 2011 (IE 10)
-ms-flex-item-align
:
$value-2011
;
}
// 2011 - flex-line-pack (start | end | center | justify | distribute | stretch)
// 2012 - align-content (flex-start | flex-end | center | space-between | space-around | stretch)
@mixin
align-content
(
$value
:
stretch
)
{
$value-2011
:
$value
;
@if
$value
==
"flex-start"
{
$value-2011
:
start
;
}
@else
if
$value
==
"flex-end"
{
$value-2011
:
end
;
}
@else
if
$value
==
"space-between"
{
$value-2011
:
justify
;
}
@else
if
$value
==
"space-around"
{
$value-2011
:
distribute
;
}
// 2012
@include
prefixer
(
align-content
,
$value
,
webkit
moz
spec
);
// 2011 (IE 10)
-ms-flex-line-pack
:
$value-2011
;
}
common/static/sass/bourbon/css3/_font-face.scss
View file @
71ea2fe2
// Order of the includes matters, and it is: normal, bold, italic, bold+italic.
@mixin
font-face
(
$font-family
,
$file-path
,
$weight
:
normal
,
$style
:
normal
,
$asset-pipeline
:
false
)
{
@mixin
font-face
(
$font-family
,
$file-path
,
$weight
:
normal
,
$style
:
normal
,
$asset-pipeline
:
$asset-pipeline
)
{
@font-face
{
font-family
:
$font-family
;
font-weight
:
$weight
;
...
...
common/static/sass/bourbon/css3/_font-feature-settings.scss
0 → 100644
View file @
71ea2fe2
// Font feature settings mixin and property default.
// Examples: @include font-feature-settings("liga");
// @include font-feature-settings("lnum" false);
// @include font-feature-settings("pnum" 1, "kern" 0);
// @include font-feature-settings("ss01", "ss02");
@mixin
font-feature-settings
(
$settings
...
)
{
@if
length
(
$settings
)
==
0
{
$settings
:
none
;
}
@include
prefixer
(
font-feature-settings
,
$settings
,
webkit
moz
ms
spec
);
}
\ No newline at end of file
common/static/sass/bourbon/css3/_hyphens.scss
0 → 100644
View file @
71ea2fe2
@mixin
hyphens
(
$hyphenation
:
none
)
{
// none | manual | auto
@include
prefixer
(
hyphens
,
$hyphenation
,
webkit
moz
ms
spec
);
}
\ No newline at end of file
common/static/sass/bourbon/css3/_image-rendering.scss
View file @
71ea2fe2
@mixin
image-rendering
(
$mode
:
optimizeQuality
)
{
@mixin
image-rendering
(
$mode
:
auto
)
{
@if
(
$mode
==
optimize-contrast
)
{
@if
(
$mode
==
crisp-edges
)
{
-ms-interpolation-mode
:
nearest-neighbor
;
// IE8+
image-rendering
:
-
moz-crisp-edges
;
image-rendering
:
-
o-crisp-edges
;
image-rendering
:
-
webkit-optimize-contrast
;
image-rendering
:
optimize-contrast
;
image-rendering
:
crisp-edges
;
}
@else
{
...
...
common/static/sass/bourbon/css3/_inline-block.scss
deleted
100644 → 0
View file @
ae86c2a3
// Legacy support for inline-block in IE7 (maybe IE6)
@mixin
inline-block
{
display
:
inline-block
;
vertical-align
:
baseline
;
zoom
:
1
;
*
display
:
inline
;
*
vertical-align
:
auto
;
}
common/static/sass/bourbon/css3/_keyframes.scss
View file @
71ea2fe2
...
...
@@ -8,36 +8,28 @@
@if
$original-prefix-for-webkit
{
@include
disable-prefix-for-all
();
$prefix-for-webkit
:
true
;
$prefix-for-webkit
:
true
!
global
;
@-webkit-keyframes
#{
$name
}
{
@content
;
}
}
@if
$original-prefix-for-mozilla
{
@include
disable-prefix-for-all
();
$prefix-for-mozilla
:
true
;
$prefix-for-mozilla
:
true
!
global
;
@-moz-keyframes
#{
$name
}
{
@content
;
}
}
@if
$original-prefix-for-opera
{
@include
disable-prefix-for-all
()
;
$prefix-for-opera
:
true
;
@-o-keyframes
#{
$name
}
{
@content
;
}
}
$prefix-for-webkit
:
$original-prefix-for-webkit
!
global
;
$prefix-for-mozilla
:
$original-prefix-for-mozilla
!
global
;
$prefix-for-microsoft
:
$original-prefix-for-microsoft
!
global
;
$prefix-for-opera
:
$original-prefix-for-opera
!
global
;
$prefix-for-spec
:
$original-prefix-for-spec
!
global
;
@if
$original-prefix-for-spec
{
@include
disable-prefix-for-all
();
$prefix-for-spec
:
true
;
@keyframes
#{
$name
}
{
@content
;
}
}
$prefix-for-webkit
:
$original-prefix-for-webkit
;
$prefix-for-mozilla
:
$original-prefix-for-mozilla
;
$prefix-for-microsoft
:
$original-prefix-for-microsoft
;
$prefix-for-opera
:
$original-prefix-for-opera
;
$prefix-for-spec
:
$original-prefix-for-spec
;
}
common/static/sass/bourbon/css3/_linear-gradient.scss
View file @
71ea2fe2
@mixin
linear-gradient
(
$pos
,
$G1
,
$G2
:
false
,
$G3
:
false
,
$G4
:
false
,
$G5
:
false
,
$G6
:
false
,
$G7
:
false
,
$G8
:
false
,
$G9
:
false
,
$G10
:
false
,
$deprecated-pos1
:
left
top
,
$deprecated-pos2
:
left
bottom
,
$fallback
:
false
)
{
@mixin
linear-gradient
(
$pos
,
$G1
,
$G2
:
null
,
$G3
:
null
,
$G4
:
null
,
$G5
:
null
,
$G6
:
null
,
$G7
:
null
,
$G8
:
null
,
$G9
:
null
,
$G10
:
null
,
$fallback
:
null
)
{
// Detect what type of value exists in $pos
$pos-type
:
type-of
(
nth
(
$pos
,
1
));
$pos-spec
:
null
;
...
...
@@ -24,7 +22,7 @@
$pos-spec
:
nth
(
$positions
,
2
);
}
$full
:
compact
(
$G1
,
$G2
,
$G3
,
$G4
,
$G5
,
$G6
,
$G7
,
$G8
,
$G9
,
$G10
)
;
$full
:
$G1
,
$G2
,
$G3
,
$G4
,
$G5
,
$G6
,
$G7
,
$G8
,
$G9
,
$G10
;
// Set $G1 as the default fallback color
$fallback-color
:
nth
(
$G1
,
1
);
...
...
@@ -35,7 +33,6 @@
}
background-color
:
$fallback-color
;
background-image
:
_deprecated-webkit-gradient
(
linear
,
$deprecated-pos1
,
$deprecated-pos2
,
$full
);
// Safari <= 5.0
background-image
:
-webkit-linear-gradient
(
$pos-degree
$full
);
// Safari 5.1+, Chrome
background-image
:
unquote
(
"linear-gradient(
#{
$pos-spec
}#{
$full
}
)"
);
}
common/static/sass/bourbon/css3/_placeholder.scss
View file @
71ea2fe2
$placeholders
:
'-webkit-input-placeholder'
,
'-moz-placeholder'
,
'-ms-input-placeholder'
;
@mixin
placeholder
{
$placeholders
:
":-webkit-input"
":-moz"
"-moz"
"-ms-input"
;
@each
$placeholder
in
$placeholders
{
@if
$placeholder
==
"-webkit-input-placeholder"
{
&
:
:
#{
$placeholder
}
{
&
:
#{
$placeholder
}
-
placeholder
{
@content
;
}
}
@else
if
$placeholder
==
"-moz-placeholder"
{
// FF 18-
&
:
#{
$placeholder
}
{
@content
;
}
// FF 19+
&
:
:
#{
$placeholder
}
{
@content
;
}
}
@else
{
&
:
#{
$placeholder
}
{
@content
;
}
}
}
}
common/static/sass/bourbon/css3/_radial-gradient.scss
View file @
71ea2fe2
// Requires Sass 3.1+
@mixin
radial-gradient
(
$G1
,
$G2
,
$G3
:
false
,
$G4
:
false
,
$G5
:
false
,
$G6
:
false
,
$G7
:
false
,
$G8
:
false
,
$G9
:
false
,
$G10
:
false
,
$G3
:
null
,
$G4
:
null
,
$G5
:
null
,
$G6
:
null
,
$G7
:
null
,
$G8
:
null
,
$G9
:
null
,
$G10
:
null
,
$pos
:
null
,
$shape-size
:
null
,
$deprecated-pos1
:
center
center
,
$deprecated-pos2
:
center
center
,
$deprecated-radius1
:
0
,
$deprecated-radius2
:
460
,
$fallback
:
false
)
{
$fallback
:
null
)
{
$data
:
_radial-arg-parser
(
$G1
,
$G2
,
$pos
,
$shape-size
);
$G1
:
nth
(
$data
,
1
);
...
...
@@ -18,7 +14,7 @@
$pos
:
nth
(
$data
,
3
);
$shape-size
:
nth
(
$data
,
4
);
$full
:
compact
(
$G1
,
$G2
,
$G3
,
$G4
,
$G5
,
$G6
,
$G7
,
$G8
,
$G9
,
$G10
)
;
$full
:
$G1
,
$G2
,
$G3
,
$G4
,
$G5
,
$G6
,
$G7
,
$G8
,
$G9
,
$G10
;
// Strip deprecated cover/contain for spec
$shape-size-spec
:
_shape-size-stripper
(
$shape-size
);
...
...
@@ -38,7 +34,6 @@
$shape-size-spec
:
if
((
$shape-size-spec
!=
' '
)
and
(
$pos
==
null
)
,
'
#{
$shape-size-spec
}
, '
,
'
#{
$shape-size-spec
}
'
);
background-color
:
$fallback-color
;
background-image
:
_deprecated-webkit-gradient
(
radial
,
$deprecated-pos1
,
$deprecated-pos2
,
$full
,
$deprecated-radius1
,
$deprecated-radius2
);
// Safari <= 5.0 && IOS 4
background-image
:
-webkit-radial-gradient
(
unquote
(
#{
$pos
}#{
$shape-size
}#{
$full
}
));
background-image
:
unquote
(
"radial-gradient(
#{
$shape-size-spec
}#{
$pos-spec
}#{
$full
}
)"
);
}
common/static/sass/bourbon/css3/_transition.scss
View file @
71ea2fe2
// Shorthand mixin. Supports multiple parentheses-deliminated values for each variable.
// Example: @include transition (all
, 2.0s,
ease-in-out);
// @include transition (
(opacity, width), (1.0s, 2.0s), ease-in, (0, 2s)
);
// @include transition
($property:(opacity, width), $delay: (1.5s, 2.5s)
);
// Example: @include transition (all
2s
ease-in-out);
// @include transition (
opacity 1s ease-in 2s, width 2s ease-out
);
// @include transition
-property (transform, opacity
);
@mixin
transition
(
$properties
...
)
{
// Fix for vendor-prefix transform property
$needs-prefixes
:
false
;
$webkit
:
();
$moz
:
();
$spec
:
();
// Create lists for vendor-prefixed transform
@each
$list
in
$properties
{
@if
nth
(
$list
,
1
)
==
"transform"
{
$needs-prefixes
:
true
;
$list1
:
-
webkit-transform
;
$list2
:
-
moz-transform
;
$list3
:
();
@each
$var
in
$list
{
$list3
:
join
(
$list3
,
$var
);
@if
$var
!=
"transform"
{
$list1
:
join
(
$list1
,
$var
);
$list2
:
join
(
$list2
,
$var
);
}
}
$webkit
:
append
(
$webkit
,
$list1
);
$moz
:
append
(
$moz
,
$list2
);
$spec
:
append
(
$spec
,
$list3
);
}
// Create lists for non-prefixed transition properties
@else
{
$webkit
:
append
(
$webkit
,
$list
,
comma
);
$moz
:
append
(
$moz
,
$list
,
comma
);
$spec
:
append
(
$spec
,
$list
,
comma
);
}
}
@if
$needs-prefixes
{
-webkit-transition
:
$webkit
;
-moz-transition
:
$moz
;
transition
:
$spec
;
}
@else
{
@if
length
(
$properties
)
>=
1
{
@include
prefixer
(
transition
,
$properties
,
webkit
moz
spec
);
}
@else
{
$properties
:
all
0
.15s
ease-out
0
;
$properties
:
all
0
.15s
ease-out
0s
;
@include
prefixer
(
transition
,
$properties
,
webkit
moz
spec
);
}
}
}
@mixin
transition-property
(
$properties
...
)
{
...
...
common/static/sass/bourbon/functions/_assign.scss
0 → 100644
View file @
71ea2fe2
@function
assign-inputs
(
$inputs
,
$pseudo
:
null
)
{
$list
:
();
@each
$input
in
$inputs
{
$input
:
unquote
(
$input
);
$input
:
if
(
$pseudo
,
$input
+
":"
+
$pseudo
,
$input
);
$list
:
append
(
$list
,
$input
,
comma
);
}
@return
$list
;
}
\ No newline at end of file
common/static/sass/bourbon/functions/_color-lightness.scss
0 → 100644
View file @
71ea2fe2
// Programatically determines whether a color is light or dark
// Returns a boolean
// More details here http://robots.thoughtbot.com/closer-look-color-lightness
@function
is-light
(
$hex-color
)
{
$-local-red
:
red
(
rgba
(
$hex-color
,
1
.0
));
$-local-green
:
green
(
rgba
(
$hex-color
,
1
.0
));
$-local-blue
:
blue
(
rgba
(
$hex-color
,
1
.0
));
$-local-lightness
:
(
$-local-red
*
0
.2126
+
$-local-green
*
0
.7152
+
$-local-blue
*
0
.0722
)
/
255
;
@return
$-local-lightness
>
.6
;
}
common/static/sass/bourbon/functions/_compact.scss
deleted
100644 → 0
View file @
ae86c2a3
// Remove `false` values from a list
@function
compact
(
$vars
...
)
{
$list
:
();
@each
$var
in
$vars
{
@if
$var
{
$list
:
append
(
$list
,
$var
,
comma
);
}
}
@return
$list
;
}
common/static/sass/bourbon/functions/_golden-ratio.scss
0 → 100644
View file @
71ea2fe2
@function
golden-ratio
(
$value
,
$increment
)
{
@return
modular-scale
(
$value
,
$increment
,
$golden
)
}
common/static/sass/bourbon/functions/_linear-gradient.scss
deleted
100644 → 0
View file @
ae86c2a3
@function
linear-gradient
(
$pos
,
$gradients
...
)
{
$type
:
linear
;
$pos-type
:
type-of
(
nth
(
$pos
,
1
));
// if $pos doesn't exist, fix $gradient
@if
(
$pos-type
==
color
)
or
(
nth
(
$pos
,
1
)
==
"transparent"
)
{
$gradients
:
zip
(
$pos
$gradients
);
$pos
:
false
;
}
$type-gradient
:
$type
,
$pos
,
$gradients
;
@return
$type-gradient
;
}
common/static/sass/bourbon/functions/_modular-scale.scss
View file @
71ea2fe2
// Scaling Variables
$golden
:
1
.618
;
$minor-second
:
1
.067
;
$major-second
:
1
.125
;
$minor-third
:
1
.2
;
$major-third
:
1
.25
;
$perfect-fourth
:
1
.333
;
$augmented-fourth
:
1
.414
;
$perfect-fifth
:
1
.5
;
$minor-sixth
:
1
.6
;
$major-sixth
:
1
.667
;
$minor-seventh
:
1
.778
;
$major-seventh
:
1
.875
;
$octave
:
2
;
$major-tenth
:
2
.5
;
$major-eleventh
:
2
.667
;
$major-twelfth
:
3
;
$double-octave
:
4
;
@function
modular-scale
(
$value
,
$increment
,
$ratio
)
{
$v1
:
nth
(
$value
,
1
);
$v2
:
nth
(
$value
,
length
(
$value
));
$value
:
$v1
;
// scale $v2 to just above $v1
@while
$v2
>
$v1
{
$v2
:
(
$v2
/
$ratio
);
// will be off-by-1
}
@while
$v2
<
$v1
{
$v2
:
(
$v2
*
$ratio
);
// will fix off-by-1
}
// check AFTER scaling $v2 to prevent double-counting corner-case
$double-stranded
:
$v2
>
$v1
;
@if
$increment
>
0
{
@for
$i
from
1
through
$increment
{
$value
:
(
$value
*
$ratio
);
@if
$double-stranded
and
(
$v1
*
$ratio
)
>
$v2
{
$value
:
$v2
;
$v2
:
(
$v2
*
$ratio
);
}
@else
{
$v1
:
(
$v1
*
$ratio
);
$value
:
$v1
;
}
}
}
@if
$increment
<
0
{
$increment
:
abs
(
$increment
);
@for
$i
from
1
through
$increment
{
$value
:
(
$value
/
$ratio
);
// adjust $v2 to just below $v1
@if
$double-stranded
{
$v2
:
(
$v2
/
$ratio
);
}
@for
$i
from
$increment
through
-1
{
@if
$double-stranded
and
(
$v1
/
$ratio
)
<
$v2
{
$value
:
$v2
;
$v2
:
(
$v2
/
$ratio
);
}
@else
{
$v1
:
(
$v1
/
$ratio
);
$value
:
$v1
;
}
}
}
@return
$value
;
}
// div {
// Increment Up GR with positive value
// font-size: modular-scale(14px, 1, 1.618); // returns: 22.652px
//
// Increment Down GR with negative value
// font-size: modular-scale(14px, -1, 1.618); // returns: 8.653px
//
// Can be used with ceil(round up) or floor(round down)
// font-size: floor( modular-scale(14px, 1, 1.618) ); // returns: 22px
// font-size: ceil( modular-scale(14px, 1, 1.618) ); // returns: 23px
// }
//
// modularscale.com
@function
golden-ratio
(
$value
,
$increment
)
{
@return
modular-scale
(
$value
,
$increment
,
1
.618
)
}
// div {
// font-size: golden-ratio(14px, 1); // returns: 22.652px
// }
//
// goldenratiocalculator.com
common/static/sass/bourbon/functions/_px-to-em.scss
View file @
71ea2fe2
...
...
@@ -2,7 +2,12 @@
// eg. for a relational value of 12px write em(12) when the parent is 16px
// if the parent is another value say 24px write em(12, 24)
@function
em
(
$pxval
,
$base
:
16
)
{
@function
em
(
$pxval
,
$base
:
$em-base
)
{
@if
not
unitless
(
$pxval
)
{
$pxval
:
strip-units
(
$pxval
);
}
@if
not
unitless
(
$base
)
{
$base
:
strip-units
(
$base
);
}
@return
(
$pxval
/
$base
)
*
1em
;
}
common/static/sass/bourbon/functions/_px-to-rem.scss
0 → 100644
View file @
71ea2fe2
// Convert pixels to rems
// eg. for a relational value of 12px write rem(12)
// Assumes $em-base is the font-size of <html>
@function
rem
(
$pxval
)
{
@if
not
unitless
(
$pxval
)
{
$pxval
:
strip-units
(
$pxval
);
}
$base
:
$em-base
;
@if
not
unitless
(
$base
)
{
$base
:
strip-units
(
$base
);
}
@return
(
$pxval
/
$base
)
*
1rem
;
}
common/static/sass/bourbon/functions/_radial-gradient.scss
deleted
100644 → 0
View file @
ae86c2a3
// This function is required and used by the background-image mixin.
@function
radial-gradient
(
$G1
,
$G2
,
$G3
:
false
,
$G4
:
false
,
$G5
:
false
,
$G6
:
false
,
$G7
:
false
,
$G8
:
false
,
$G9
:
false
,
$G10
:
false
,
$pos
:
null
,
$shape-size
:
null
)
{
$data
:
_radial-arg-parser
(
$G1
,
$G2
,
$pos
,
$shape-size
);
$G1
:
nth
(
$data
,
1
);
$G2
:
nth
(
$data
,
2
);
$pos
:
nth
(
$data
,
3
);
$shape-size
:
nth
(
$data
,
4
);
$type
:
radial
;
$gradient
:
compact
(
$G1
,
$G2
,
$G3
,
$G4
,
$G5
,
$G6
,
$G7
,
$G8
,
$G9
,
$G10
);
$type-gradient
:
$type
,
$shape-size
$pos
,
$gradient
;
@return
$type-gradient
;
}
common/static/sass/bourbon/functions/_strip-units.scss
0 → 100644
View file @
71ea2fe2
// Srtips the units from a value. e.g. 12px -> 12
@function
strip-units
(
$val
)
{
@return
(
$val
/
(
$val
*
0
+
1
));
}
common/static/sass/bourbon/functions/_unpack.scss
0 → 100644
View file @
71ea2fe2
// Convert shorthand to the 4-value syntax
@function
unpack
(
$shorthand
)
{
@if
length
(
$shorthand
)
==
1
{
@return
nth
(
$shorthand
,
1
)
nth
(
$shorthand
,
1
)
nth
(
$shorthand
,
1
)
nth
(
$shorthand
,
1
);
}
@else
if
length
(
$shorthand
)
==
2
{
@return
nth
(
$shorthand
,
1
)
nth
(
$shorthand
,
2
)
nth
(
$shorthand
,
1
)
nth
(
$shorthand
,
2
);
}
@else
if
length
(
$shorthand
)
==
3
{
@return
nth
(
$shorthand
,
1
)
nth
(
$shorthand
,
2
)
nth
(
$shorthand
,
3
)
nth
(
$shorthand
,
2
);
}
@else
{
@return
$shorthand
;
}
}
common/static/sass/bourbon/helpers/_convert-units.scss
0 → 100644
View file @
71ea2fe2
//************************************************************************//
// Helper function for str-to-num fn.
// Source: http://sassmeister.com/gist/9647408
//************************************************************************//
@function
_convert-units
(
$number
,
$unit
)
{
$strings
:
'px'
'cm'
'mm'
'%'
'ch'
'pica'
'in'
'em'
'rem'
'pt'
'pc'
'ex'
'vw'
'vh'
'vmin'
'vmax'
,
'deg'
,
'rad'
,
'grad'
,
'turn'
;
$units
:
1px
1cm
1mm
1%
1ch
1pica
1in
1em
1rem
1pt
1pc
1ex
1vw
1vh
1vmin
1vmax
,
1deg
,
1rad
,
1grad
,
1turn
;
$index
:
index
(
$strings
,
$unit
);
@if
not
$index
{
@warn
"Unknown unit `
#{
$unit
}
`."
;
@return
false
;
}
@return
$number
*
nth
(
$units
,
$index
);
}
common/static/sass/bourbon/helpers/_deprecated-webkit-gradient.scss
deleted
100644 → 0
View file @
ae86c2a3
// Render Deprecated Webkit Gradient - Linear || Radial
//************************************************************************//
@function
_deprecated-webkit-gradient
(
$type
,
$deprecated-pos1
,
$deprecated-pos2
,
$full
,
$deprecated-radius1
:
false
,
$deprecated-radius2
:
false
)
{
$gradient-list
:
();
$gradient
:
false
;
$full-length
:
length
(
$full
);
$percentage
:
false
;
$gradient-type
:
$type
;
@for
$i
from
1
through
$full-length
{
$gradient
:
nth
(
$full
,
$i
);
@if
length
(
$gradient
)
==
2
{
$color-stop
:
color-stop
(
nth
(
$gradient
,
2
)
,
nth
(
$gradient
,
1
));
$gradient-list
:
join
(
$gradient-list
,
$color-stop
,
comma
);
}
@else
if
$gradient
!=
null
{
@if
$i
==
$full-length
{
$percentage
:
100%
;
}
@else
{
$percentage
:
(
$i
-
1
)
*
(
100
/
(
$full-length
-
1
))
+
"%"
;
}
$color-stop
:
color-stop
(
unquote
(
$percentage
)
,
$gradient
);
$gradient-list
:
join
(
$gradient-list
,
$color-stop
,
comma
);
}
}
@if
$type
==
radial
{
$gradient
:
-webkit-gradient
(
radial
,
$deprecated-pos1
,
$deprecated-radius1
,
$deprecated-pos2
,
$deprecated-radius2
,
$gradient-list
);
}
@else
if
$type
==
linear
{
$gradient
:
-webkit-gradient
(
linear
,
$deprecated-pos1
,
$deprecated-pos2
,
$gradient-list
);
}
@return
$gradient
;
}
common/static/sass/bourbon/helpers/_is-num.scss
0 → 100644
View file @
71ea2fe2
//************************************************************************//
// Helper for linear-gradient-parser
//************************************************************************//
@function
_is-num
(
$char
)
{
$values
:
'0'
'1'
'2'
'3'
'4'
'5'
'6'
'7'
'8'
'9'
0
1
2
3
4
5
6
7
8
9
;
$index
:
index
(
$values
,
$char
);
@return
if
(
$index
,
true
,
false
);
}
common/static/sass/bourbon/helpers/_linear-angle-parser.scss
0 → 100644
View file @
71ea2fe2
// Private function for linear-gradient-parser
@function
_linear-angle-parser
(
$image
,
$first-val
,
$prefix
,
$suffix
)
{
$offset
:
null
;
$unit-short
:
str-slice
(
$first-val
,
str-length
(
$first-val
)
-
2
,
str-length
(
$first-val
));
$unit-long
:
str-slice
(
$first-val
,
str-length
(
$first-val
)
-
3
,
str-length
(
$first-val
));
@if
(
$unit-long
==
"grad"
)
or
(
$unit-long
==
"turn"
)
{
$offset
:
if
(
$unit-long
==
"grad"
,
-100grad
*
3
,
-0
.75turn
);
}
@else
if
(
$unit-short
==
"deg"
)
or
(
$unit-short
==
"rad"
)
{
$offset
:
if
(
$unit-short
==
"deg"
,
-90
*
3
,
1
.6rad
);
}
@if
$offset
{
$num
:
_str-to-num
(
$first-val
);
@return
(
webkit-image
:
-
webkit-
+
$prefix
+
(
$offset
-
$num
)
+
$suffix
,
spec-image
:
$image
);
}
}
common/static/sass/bourbon/helpers/_linear-gradient-parser.scss
0 → 100644
View file @
71ea2fe2
@function
_linear-gradient-parser
(
$image
)
{
$image
:
unquote
(
$image
);
$gradients
:
();
$start
:
str-index
(
$image
,
"("
);
$end
:
str-index
(
$image
,
","
);
$first-val
:
str-slice
(
$image
,
$start
+
1
,
$end
-
1
);
$prefix
:
str-slice
(
$image
,
0
,
$start
);
$suffix
:
str-slice
(
$image
,
$end
,
str-length
(
$image
));
$has-multiple-vals
:
str-index
(
$first-val
,
" "
);
$has-single-position
:
unquote
(
_position-flipper
(
$first-val
)
+
""
);
$has-angle
:
_is-num
(
str-slice
(
$first-val
,
0
,
0
));
@if
$has-multiple-vals
{
$gradients
:
_linear-side-corner-parser
(
$image
,
$first-val
,
$prefix
,
$suffix
,
$has-multiple-vals
);
}
@else
if
$has-single-position
!=
""
{
$pos
:
unquote
(
$has-single-position
+
""
);
$gradients
:
(
webkit-image
:
-
webkit-
+
$image
,
spec-image
:
$prefix
+
"to "
+
$pos
+
$suffix
);
}
@else
if
$has-angle
{
// Rotate degree for webkit
$gradients
:
_linear-angle-parser
(
$image
,
$first-val
,
$prefix
,
$suffix
);
}
@else
{
$gradients
:
(
webkit-image
:
-
webkit-
+
$image
,
spec-image
:
$image
);
}
@return
$gradients
;
}
common/static/sass/bourbon/helpers/_linear-side-corner-parser.scss
0 → 100644
View file @
71ea2fe2
// Private function for linear-gradient-parser
@function
_linear-side-corner-parser
(
$image
,
$first-val
,
$prefix
,
$suffix
,
$has-multiple-vals
)
{
$val-1
:
str-slice
(
$first-val
,
0
,
$has-multiple-vals
-
1
);
$val-2
:
str-slice
(
$first-val
,
$has-multiple-vals
+
1
,
str-length
(
$first-val
));
$val-3
:
null
;
$has-val-3
:
str-index
(
$val-2
,
" "
);
@if
$has-val-3
{
$val-3
:
str-slice
(
$val-2
,
$has-val-3
+
1
,
str-length
(
$val-2
));
$val-2
:
str-slice
(
$val-2
,
0
,
$has-val-3
-
1
);
}
$pos
:
_position-flipper
(
$val-1
)
_position-flipper
(
$val-2
)
_position-flipper
(
$val-3
);
$pos
:
unquote
(
$pos
+
""
);
// Use old spec for webkit
@if
$val-1
==
"to"
{
@return
(
webkit-image
:
-
webkit-
+
$prefix
+
$pos
+
$suffix
,
spec-image
:
$image
);
}
// Bring the code up to spec
@else
{
@return
(
webkit-image
:
-
webkit-
+
$image
,
spec-image
:
$prefix
+
"to "
+
$pos
+
$suffix
);
}
}
common/static/sass/bourbon/helpers/_radial-arg-parser.scss
View file @
71ea2fe2
...
...
@@ -22,7 +22,7 @@
$pos
:
$pos
nth
(
$value
,
$i
);
}
}
$G1
:
false
;
$G1
:
null
;
}
// If not spec calculate correct values
...
...
@@ -38,7 +38,7 @@
$pos
:
$value
;
@if
$pos
==
$G1
{
$G1
:
false
;
$G1
:
null
;
}
}
...
...
@@ -55,11 +55,11 @@
$shape-size
:
$value
;
@if
$value
==
$G1
{
$G1
:
false
;
$G1
:
null
;
}
@else
if
$value
==
$G2
{
$G2
:
false
;
$G2
:
null
;
}
}
}
...
...
common/static/sass/bourbon/helpers/_radial-gradient-parser.scss
0 → 100644
View file @
71ea2fe2
@function
_radial-gradient-parser
(
$image
)
{
$image
:
unquote
(
$image
);
$gradients
:
();
$start
:
str-index
(
$image
,
"("
);
$end
:
str-index
(
$image
,
","
);
$first-val
:
str-slice
(
$image
,
$start
+
1
,
$end
-
1
);
$prefix
:
str-slice
(
$image
,
0
,
$start
);
$suffix
:
str-slice
(
$image
,
$end
,
str-length
(
$image
));
$is-spec-syntax
:
str-index
(
$first-val
,
"at"
);
@if
$is-spec-syntax
and
$is-spec-syntax
>
1
{
$keyword
:
str-slice
(
$first-val
,
1
,
$is-spec-syntax
-
2
);
$pos
:
str-slice
(
$first-val
,
$is-spec-syntax
+
3
,
str-length
(
$first-val
));
$pos
:
append
(
$pos
,
$keyword
,
comma
);
$gradients
:
(
webkit-image
:
-
webkit-
+
$prefix
+
$pos
+
$suffix
,
spec-image
:
$image
)
}
@else
if
$is-spec-syntax
==
1
{
$pos
:
str-slice
(
$first-val
,
$is-spec-syntax
+
3
,
str-length
(
$first-val
));
$gradients
:
(
webkit-image
:
-
webkit-
+
$prefix
+
$pos
+
$suffix
,
spec-image
:
$image
)
}
@else
if
str-index
(
$image
,
"cover"
)
or
str-index
(
$image
,
"contain"
)
{
@warn
"Radial-gradient needs to be updated to conform to latest spec."
;
$gradients
:
(
webkit-image
:
null
,
spec-image
:
$image
)
}
@else
{
$gradients
:
(
webkit-image
:
-
webkit-
+
$image
,
spec-image
:
$image
)
}
@return
$gradients
;
}
common/static/sass/bourbon/helpers/_str-to-num.scss
0 → 100644
View file @
71ea2fe2
//************************************************************************//
// Helper function for linear/radial-gradient-parsers.
// Source: http://sassmeister.com/gist/9647408
//************************************************************************//
@function
_str-to-num
(
$string
)
{
// Matrices
$strings
:
'0'
'1'
'2'
'3'
'4'
'5'
'6'
'7'
'8'
'9'
;
$numbers
:
0
1
2
3
4
5
6
7
8
9
;
// Result
$result
:
0
;
$divider
:
0
;
$minus
:
false
;
// Looping through all characters
@for
$i
from
1
through
str-length
(
$string
)
{
$character
:
str-slice
(
$string
,
$i
,
$i
);
$index
:
index
(
$strings
,
$character
);
@if
$character
==
'-'
{
$minus
:
true
;
}
@else
if
$character
==
'.'
{
$divider
:
1
;
}
@else
{
@if
not
$index
{
$result
:
if
(
$minus
,
$result
*
-1
,
$result
);
@return
_convert-units
(
$result
,
str-slice
(
$string
,
$i
));
}
$number
:
nth
(
$numbers
,
$index
);
@if
$divider
==
0
{
$result
:
$result
*
10
;
}
@else
{
// Move the decimal dot to the left
$divider
:
$divider
*
10
;
$number
:
$number
/
$divider
;
}
$result
:
$result
+
$number
;
}
}
@return
if
(
$minus
,
$result
*
-1
,
$result
);
}
common/static/sass/bourbon/settings/_asset-pipeline.scss
0 → 100644
View file @
71ea2fe2
$asset-pipeline
:
false
!
default
;
common/static/sass/bourbon/settings/_prefixer.scss
0 → 100644
View file @
71ea2fe2
// Variable settings for /addons/prefixer.scss
$prefix-for-webkit
:
true
!
default
;
$prefix-for-mozilla
:
true
!
default
;
$prefix-for-microsoft
:
true
!
default
;
$prefix-for-opera
:
true
!
default
;
$prefix-for-spec
:
true
!
default
;
// required for keyframe mixin
common/static/sass/bourbon/settings/_px-to-em.scss
0 → 100644
View file @
71ea2fe2
$em-base
:
16px
!
default
;
common/static/sass/neat/_neat-helpers.scss
View file @
71ea2fe2
// Functions
@import
"functions/private"
;
@import
"functions/new-breakpoint"
;
@import
"functions/px-to-em"
;
// Settings
@import
"settings/grid"
;
...
...
common/static/sass/neat/_neat.scss
View file @
71ea2fe2
// Bourbon Neat
// Bourbon Neat
1.6.0.pre
// MIT Licensed
// Copyright (c) 2012-2013 thoughtbot, inc.
...
...
common/static/sass/neat/functions/_new-breakpoint.scss
View file @
71ea2fe2
...
...
@@ -4,12 +4,12 @@
$query
:
$default-feature
nth
(
$query
,
1
)
$total-columns
;
}
@else
if
length
(
$query
)
==
2
or
length
(
$query
)
==
4
{
@else
if
length
(
$query
)
%
2
==
0
{
$query
:
append
(
$query
,
$total-columns
);
}
@if
not
belongs-to
(
$query
,
$visual-grid-breakpoints
)
{
$visual-grid-breakpoints
:
append
(
$visual-grid-breakpoints
,
$query
,
comma
);
$visual-grid-breakpoints
:
append
(
$visual-grid-breakpoints
,
$query
,
comma
)
!
global
;
}
@return
$query
;
...
...
common/static/sass/neat/functions/_private.scss
View file @
71ea2fe2
...
...
@@ -44,6 +44,24 @@
}
}
@function
container-shift
(
$shift
:
$shift
)
{
$parent-columns
:
$grid-columns
!
global
!
default
;
@if
length
(
$shift
)
==
3
{
$container-columns
:
nth
(
$shift
,
3
);
@return
$container-columns
;
}
@else
if
length
(
$shift
)
==
2
{
$container-columns
:
nth
(
$shift
,
2
);
@return
$container-columns
;
}
@else
{
@return
$parent-columns
;
}
}
// Generates a striped background
@function
gradient-stops
(
$grid-columns
,
$color
:
$visual-grid-color
)
{
$transparent
:
rgba
(
0
,
0
,
0
,
0
);
...
...
common/static/sass/neat/functions/_px-to-em.scss
deleted
100644 → 0
View file @
ae86c2a3
@function
em
(
$pxval
,
$base
:
16
)
{
@return
(
$pxval
/
$base
)
*
1em
;
}
common/static/sass/neat/grid/_media.scss
View file @
71ea2fe2
@mixin
media
(
$query
:
$feature
$value
$columns
,
$total-columns
:
$grid-columns
)
{
@if
length
(
$query
)
==
1
{
@media
screen
and
(
$default-feature
:
nth
(
$query
,
1
))
{
$default-grid-columns
:
$grid-columns
;
$grid-columns
:
$total-columns
;
$grid-columns
:
$total-columns
!
global
;
@content
;
$grid-columns
:
$default-grid-columns
;
$grid-columns
:
$default-grid-columns
!
global
;
}
}
@else
if
length
(
$query
)
==
2
{
@media
screen
and
(
nth
(
$query
,
1
)
:
nth
(
$query
,
2
))
{
@else
{
$loopTo
:
length
(
$query
);
$mediaQuery
:
'screen and '
;
$default-grid-columns
:
$grid-columns
;
$grid-columns
:
$total-columns
;
@content
;
$grid-columns
:
$default-grid-columns
;
}
}
$grid-columns
:
$total-columns
!
global
;
@else
if
length
(
$query
)
==
3
{
@media
screen
and
(
nth
(
$query
,
1
)
:
nth
(
$query
,
2
))
{
$default-grid-columns
:
$grid-columns
;
$grid-columns
:
nth
(
$query
,
3
);
@content
;
$grid-columns
:
$default-grid-columns
;
}
@if
length
(
$query
)
%
2
!=
0
{
$grid-columns
:
nth
(
$query
,
$loopTo
)
!
global
;
$loopTo
:
$loopTo
-
1
;
}
@else
if
length
(
$query
)
==
4
{
@
media
screen
and
(
nth
(
$query
,
1
)
:
nth
(
$query
,
2
))
and
(
nth
(
$query
,
3
)
:
nth
(
$query
,
4
))
{
$
default-grid-columns
:
$grid-columns
;
$grid-columns
:
$total-columns
;
@
content
;
$grid-columns
:
$default-grid-columns
;
$i
:
1
;
@
while
$i
<=
$loopTo
{
$
mediaQuery
:
$mediaQuery
+
'('
+
nth
(
$query
,
$i
)
+
': '
+
nth
(
$query
,
$i
+
1
)
+
') '
;
@
if
(
$i
+
1
)
!=
$loopTo
{
$mediaQuery
:
$mediaQuery
+
'and '
;
}
$i
:
$i
+
2
;
}
@else
if
length
(
$query
)
==
5
{
@media
screen
and
(
nth
(
$query
,
1
)
:
nth
(
$query
,
2
))
and
(
nth
(
$query
,
3
)
:
nth
(
$query
,
4
))
{
$default-grid-columns
:
$grid-columns
;
$grid-columns
:
nth
(
$query
,
5
);
@media
#{
$mediaQuery
}
{
@content
;
$grid-columns
:
$default-grid-columns
;
}
$grid-columns
:
$default-grid-columns
!
global
;
}
@else
{
@warn
"Wrong number of arguments for breakpoint(). Read the documentation for more details."
;
}
}
common/static/sass/neat/grid/_omega.scss
View file @
71ea2fe2
...
...
@@ -9,6 +9,10 @@
$direction
:
get-direction
(
$layout-direction
,
$default-layout-direction
);
}
@if
$table
{
@warn
"The omega mixin no longer removes padding in table layouts."
}
@if
length
(
$query
)
==
1
{
@if
$auto
{
&
:last-child
{
...
...
@@ -16,15 +20,9 @@
}
}
@else
if
contains-display-value
(
$query
)
{
@if
$table
{
padding-
#{
$direction
}
:
0
;
}
@else
{
@else
if
contains-display-value
(
$query
)
and
$table
==
false
{
margin-
#{
$direction
}
:
0
;
}
}
@else
{
@include
nth-child
(
$query
,
$direction
);
...
...
@@ -32,21 +30,6 @@
}
@else
if
length
(
$query
)
==
2
{
@if
$table
{
@if
$auto
{
&
:last-child
{
padding-
#{
$direction
}
:
0
;
}
}
@else
{
&
:nth-child
(
#{
nth
(
$query
,
1
)
}
)
{
padding-
#{
$direction
}
:
0
;
}
}
}
@else
{
@if
$auto
{
&
:last-child
{
margin-
#{
$direction
}
:
0
;
...
...
@@ -57,7 +40,6 @@
@include
nth-child
(
nth
(
$query
,
1
)
,
$direction
);
}
}
}
@else
{
@warn
"Too many arguments passed to the omega() mixin."
...
...
common/static/sass/neat/grid/_private.scss
View file @
71ea2fe2
...
...
@@ -22,9 +22,9 @@ $layout-direction: nil !default;
@function
get-parent-columns
(
$columns
)
{
@if
$columns
!=
$grid-columns
{
$parent-columns
:
$columns
;
$parent-columns
:
$columns
!
global
;
}
@else
{
$parent-columns
:
$grid-columns
;
$parent-columns
:
$grid-columns
!
global
;
}
@return
$parent-columns
;
...
...
@@ -41,10 +41,3 @@ $layout-direction: nil !default;
@return
$display-table
;
}
@function
get-padding-for-table-layout
(
$columns
,
$total-columns
)
{
$total-padding
:
flex-gutter
(
$total-columns
)
*
(
$columns
-
1
);
$padding
:
$total-padding
/
$columns
;
@return
$padding
;
}
common/static/sass/neat/grid/_reset.scss
View file @
71ea2fe2
@mixin
reset-display
{
$container-display-table
:
false
;
$container-display-table
:
false
!
global
;
}
@mixin
reset-layout-direction
{
$layout-direction
:
$default-layout-direction
;
$layout-direction
:
$default-layout-direction
!
global
;
}
@mixin
reset-all
{
...
...
common/static/sass/neat/grid/_row.scss
View file @
71ea2fe2
@mixin
row
(
$display
:
block
,
$direction
:
$default-layout-direction
)
{
@include
clearfix
;
$layout-direction
:
$direction
;
$layout-direction
:
$direction
!
global
;
@if
$display
==
table
{
display
:
table
;
@include
fill-parent
;
table-layout
:
fixed
;
$container-display-table
:
true
;
$container-display-table
:
true
!
global
;
}
@else
{
display
:
block
;
$container-display-table
:
false
;
$container-display-table
:
false
!
global
;
}
}
common/static/sass/neat/grid/_shift.scss
View file @
71ea2fe2
@mixin
shift
(
$n-columns
:
1
)
{
@include
shift-in-context
(
$n-columns
);
}
@mixin
shift-in-context
(
$shift
:
$columns
of
$container-columns
)
{
$n-columns
:
nth
(
$shift
,
1
);
$parent-columns
:
container-shift
(
$shift
)
!
global
;
$direction
:
get-direction
(
$layout-direction
,
$default-layout-direction
);
$opposite-direction
:
get-opposite-direction
(
$direction
);
margin-
#{
$opposite-direction
}
:
$
n-columns
*
flex-grid
(
1
,
$
parent-columns
)
+
$
n-columns
*
flex-gutter
(
$
parent-columns
)
;
// Reset nesting context
$parent-columns
:
$grid-columns
;
$parent-columns
:
$grid-columns
!
global
;
}
common/static/sass/neat/grid/_span-columns.scss
View file @
71ea2fe2
...
...
@@ -3,7 +3,7 @@
$container-columns
:
container-span
(
$span
);
// Set nesting context (used by shift())
$parent-columns
:
get-parent-columns
(
$container-columns
);
$parent-columns
:
get-parent-columns
(
$container-columns
)
!
global
;
$direction
:
get-direction
(
$layout-direction
,
$default-layout-direction
);
$opposite-direction
:
get-opposite-direction
(
$direction
);
...
...
@@ -11,15 +11,20 @@
$display-table
:
is-display-table
(
$container-display-table
,
$display
);
@if
$display-table
{
$padding
:
get-padding-for-table-layout
(
$columns
,
$container-columns
);
display
:
table-cell
;
padding-
#{
$direction
}
:
$
padding
;
width
:
flex-grid
(
$columns
,
$container-columns
)
+
$padding
;
width
:
percentage
(
$columns
/
$container-columns
);
}
@else
{
display
:
block
;
float
:
#{
$opposite-direction
}
;
@if
$display
!=
no-display
{
display
:
block
;
}
@if
$display
==
collapse
{
@warn
"The 'collapse' argument will be deprecated. Use 'block-collapse' instead."
}
@if
$display
==
collapse
or
$display
==
block-collapse
{
width
:
flex-grid
(
$columns
,
$container-columns
)
+
flex-gutter
(
$container-columns
);
&
:last-child
{
...
...
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