oulu 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +15 -0
- data/Rakefile +1 -0
- data/app/assets/stylesheets/_oulu-base.sass +64 -0
- data/app/assets/stylesheets/_oulu.sass +9 -0
- data/app/assets/stylesheets/helpers/_block.sass +89 -0
- data/app/assets/stylesheets/helpers/_border.sass +16 -0
- data/app/assets/stylesheets/helpers/_font-awsome.sass +11 -0
- data/app/assets/stylesheets/helpers/_margin-padding.sass +110 -0
- data/app/assets/stylesheets/helpers/_position.sass +9 -0
- data/app/assets/stylesheets/helpers/_typoglaphy.sass +26 -0
- data/app/assets/stylesheets/modules/buttons/_button-base.sass +61 -0
- data/app/assets/stylesheets/modules/buttons/_button-helper.sass +33 -0
- data/app/assets/stylesheets/modules/buttons/_buttons.sass +59 -0
- data/app/assets/stylesheets/modules/buttons/styles/_border.sass +24 -0
- data/app/assets/stylesheets/modules/buttons/styles/_flat-emboss.sass +24 -0
- data/app/assets/stylesheets/modules/buttons/styles/_flat-round.sass +23 -0
- data/app/assets/stylesheets/modules/buttons/styles/_material.sass +89 -0
- data/app/assets/stylesheets/modules/buttons/styles/_normal.sass +42 -0
- data/app/assets/stylesheets/modules/navs/_tabs-nav.sass +38 -0
- data/app/assets/stylesheets/options/amazlet/_amazlet.sass +32 -0
- data/app/assets/stylesheets/options/glitch/_glitch.sass +31 -0
- data/app/assets/stylesheets/options/web-fonts/_cousine.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_droid-sans.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_font-awsome.sass +17 -0
- data/app/assets/stylesheets/options/web-fonts/_icomoon.sass +10 -0
- data/app/assets/stylesheets/options/web-fonts/_inconsolata.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_lato.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_merriweather-sans.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_montserrat.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_old-standard.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_open-sans.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_podkova.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_pt-sans.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_raleway.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_roboto-condensed.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_roboto.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_satisfy.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_source-code-pro.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_source-sans-pro.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_special-elite.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_tauri.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_ubuntu-mono.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_ubuntu.sass +11 -0
- data/app/assets/stylesheets/options/web-fonts/_varela-round.sass +12 -0
- data/app/assets/stylesheets/options/web-fonts/_vt323.sass +11 -0
- data/app/assets/stylesheets/settings/functions/_animation.sass +90 -0
- data/app/assets/stylesheets/settings/functions/_background.sass +54 -0
- data/app/assets/stylesheets/settings/functions/_bool.sass +5 -0
- data/app/assets/stylesheets/settings/functions/_border.sass +45 -0
- data/app/assets/stylesheets/settings/functions/_color.sass +79 -0
- data/app/assets/stylesheets/settings/functions/_content.sass +5 -0
- data/app/assets/stylesheets/settings/functions/_cursor.sass +5 -0
- data/app/assets/stylesheets/settings/functions/_display.sass +5 -0
- data/app/assets/stylesheets/settings/functions/_image.sass +8 -0
- data/app/assets/stylesheets/settings/functions/_length.sass +20 -0
- data/app/assets/stylesheets/settings/functions/_list.sass +11 -0
- data/app/assets/stylesheets/settings/functions/_map.sass +5 -0
- data/app/assets/stylesheets/settings/functions/_math.sass +31 -0
- data/app/assets/stylesheets/settings/functions/_number.sass +95 -0
- data/app/assets/stylesheets/settings/functions/_position.sass +80 -0
- data/app/assets/stylesheets/settings/functions/_reverse.sass +22 -0
- data/app/assets/stylesheets/settings/functions/_string.sass +5 -0
- data/app/assets/stylesheets/settings/functions/_text.sass +46 -0
- data/app/assets/stylesheets/settings/initializers/_reset.sass +84 -0
- data/app/assets/stylesheets/settings/initializers/_sanitize.sass +262 -0
- data/app/assets/stylesheets/settings/mixins/_animation.sass +28 -0
- data/app/assets/stylesheets/settings/mixins/_background.sass +33 -0
- data/app/assets/stylesheets/settings/mixins/_balloon-tail.sass +100 -0
- data/app/assets/stylesheets/settings/mixins/_basic-font.sass +30 -0
- data/app/assets/stylesheets/settings/mixins/_block.sass +61 -0
- data/app/assets/stylesheets/settings/mixins/_border-radius.sass +43 -0
- data/app/assets/stylesheets/settings/mixins/_border.sass +28 -0
- data/app/assets/stylesheets/settings/mixins/_filters.sass +5 -0
- data/app/assets/stylesheets/settings/mixins/_form.sass +10 -0
- data/app/assets/stylesheets/settings/mixins/_grid.sass +93 -0
- data/app/assets/stylesheets/settings/mixins/_ie-hacks.sass +8 -0
- data/app/assets/stylesheets/settings/mixins/_image.sass +5 -0
- data/app/assets/stylesheets/settings/mixins/_line.sass +32 -0
- data/app/assets/stylesheets/settings/mixins/_link.sass +39 -0
- data/app/assets/stylesheets/settings/mixins/_list.sass +20 -0
- data/app/assets/stylesheets/settings/mixins/_margin-padding.sass +69 -0
- data/app/assets/stylesheets/settings/mixins/_overlay.sass +5 -0
- data/app/assets/stylesheets/settings/mixins/_positions.sass +33 -0
- data/app/assets/stylesheets/settings/mixins/_rem.sass +56 -0
- data/app/assets/stylesheets/settings/mixins/_resets.sass +49 -0
- data/app/assets/stylesheets/settings/mixins/_responsive-utilities.sass +196 -0
- data/app/assets/stylesheets/settings/mixins/_table.sass +32 -0
- data/app/assets/stylesheets/settings/mixins/_text.sass +44 -0
- data/app/assets/stylesheets/settings/mixins/grid/_grid-framework.scss +81 -0
- data/app/assets/stylesheets/settings/mixins/grid/_grid.scss +122 -0
- data/app/assets/stylesheets/settings/variables/_default.sass +150 -0
- data/bower.json +34 -0
- data/index.js +7 -0
- data/oulu.gemspec +26 -0
- data/package.json +20 -0
- metadata +197 -0
@@ -0,0 +1,93 @@
|
|
1
|
+
//
|
2
|
+
// Grid system
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Container widths
|
7
|
+
//
|
8
|
+
// Set the container width, and override it for fixed navbars in media queries.
|
9
|
+
|
10
|
+
.container
|
11
|
+
+container-fixed
|
12
|
+
|
13
|
+
@media (min-width: $screen-sm-min)
|
14
|
+
width: $container-sm
|
15
|
+
|
16
|
+
@media (min-width: $screen-md-min)
|
17
|
+
width: $container-md
|
18
|
+
|
19
|
+
@media (min-width: $screen-lg-min)
|
20
|
+
width: $container-lg
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
// Fluid container
|
25
|
+
//
|
26
|
+
// Utilizes the mixin meant for fixed width containers, but without any defined
|
27
|
+
// width for fluid, full width layouts.
|
28
|
+
|
29
|
+
.container-fluid
|
30
|
+
+container-fixed
|
31
|
+
|
32
|
+
|
33
|
+
// Row
|
34
|
+
//
|
35
|
+
// Rows contain and clear the floats of your columns.
|
36
|
+
|
37
|
+
.row
|
38
|
+
+make-row
|
39
|
+
|
40
|
+
|
41
|
+
// Columns
|
42
|
+
//
|
43
|
+
// Common styles for small and large grid columns
|
44
|
+
|
45
|
+
+make-grid-columns
|
46
|
+
|
47
|
+
|
48
|
+
// Extra small grid
|
49
|
+
//
|
50
|
+
// Columns, offsets, pushes, and pulls for extra small devices like
|
51
|
+
// smartphones.
|
52
|
+
|
53
|
+
+make-grid(xs)
|
54
|
+
|
55
|
+
|
56
|
+
// Small grid
|
57
|
+
//
|
58
|
+
// Columns, offsets, pushes, and pulls for the small device range, from phones
|
59
|
+
// to tablets.
|
60
|
+
|
61
|
+
@media (min-width: $screen-sm-min)
|
62
|
+
+make-grid(sm)
|
63
|
+
|
64
|
+
|
65
|
+
// Medium grid
|
66
|
+
//
|
67
|
+
// Columns, offsets, pushes, and pulls for the desktop device range.
|
68
|
+
|
69
|
+
@media (min-width: $screen-md-min)
|
70
|
+
+make-grid(md)
|
71
|
+
|
72
|
+
|
73
|
+
// Large grid
|
74
|
+
//
|
75
|
+
// Columns, offsets, pushes, and pulls for the large desktop device range.
|
76
|
+
|
77
|
+
@media (min-width: $screen-lg-min)
|
78
|
+
+make-grid(lg)
|
79
|
+
|
80
|
+
=grid($gutter-size)
|
81
|
+
&.row
|
82
|
+
+margin(horizontal, $gutter-size/2 * -1)
|
83
|
+
>*
|
84
|
+
+padding(horizontal, $gutter-size/2)
|
85
|
+
|
86
|
+
// helper
|
87
|
+
.row
|
88
|
+
@for $i from 0 through 16
|
89
|
+
$gutter-size: $i * 4
|
90
|
+
&.is-gutter-width-#{$gutter-size}px
|
91
|
+
+margin(horizontal, $gutter-size / 2 * -1px)
|
92
|
+
>*
|
93
|
+
+padding(horizontal, $gutter-size / 2 * 1px)
|
@@ -0,0 +1,32 @@
|
|
1
|
+
// +dotted-line(black, 20px 10px 4px)
|
2
|
+
=dotted-line($stripe-color: rgba(#000, 1), $stripe: null)
|
3
|
+
$stripe-width: optional_nth($stripe, 1, 1px)
|
4
|
+
$gatter-width: optional_nth($stripe, 2, 4px)
|
5
|
+
$size: optional_nth($stripe, 3, 1px)
|
6
|
+
@if length($stripe-color) == 1
|
7
|
+
+background-image(linear-gradient(left, color-stops($stripe-color, $stripe-color (strip_unit($stripe-width)/(strip_unit($stripe-width) + strip_unit($gatter-width)))*100%, transparent (strip_unit($stripe-width)/(strip_unit($stripe-width) + strip_unit($gatter-width)))*100%, transparent 100%)))
|
8
|
+
@else
|
9
|
+
@if percent(nth($stripe-color, 2))
|
10
|
+
$mix-stripe-color: darken(nth($stripe-color, 1), nth($stripe-color, 2))
|
11
|
+
+background-image(linear-gradient(left, color-stops($mix-stripe-color, $mix-stripe-color (strip_unit($stripe-width)/(strip_unit($stripe-width) + strip_unit($gatter-width)))*100%, transparent (strip_unit($stripe-width)/(strip_unit($stripe-width) + strip_unit($gatter-width)))*100%, transparent 100%)))
|
12
|
+
background-color: nth($stripe-color, 1)
|
13
|
+
@else if color(nth($stripe-color, 2))
|
14
|
+
+background-image(linear-gradient(left, color-stops(nth($stripe-color, 1), nth($stripe-color, 1) (strip_unit($stripe-width)/(strip_unit($stripe-width) + strip_unit($gatter-width)))*100%, transparent (strip_unit($stripe-width)/(strip_unit($stripe-width) + strip_unit($gatter-width)))*100%, transparent 100%)))
|
15
|
+
background-color: nth($stripe-color, 2)
|
16
|
+
+background-size(($stripe-width + $gatter-width) ($stripe-width + $gatter-width))
|
17
|
+
+rem('height', $size)
|
18
|
+
|
19
|
+
// http://codepen.io/anon/pen/tGhLp を改造
|
20
|
+
=striped-line($stripe-color: #000000, $size: 20px)
|
21
|
+
@if length($stripe-color) == 1
|
22
|
+
+background-image(linear-gradient(-45deg, $stripe-color 25%, transparent 25%, transparent 50%, $stripe-color 50%, $stripe-color 75%, transparent 75%, transparent))
|
23
|
+
@else
|
24
|
+
@if percent(nth($stripe-color, 2))
|
25
|
+
$mix-stripe-color: darken(nth($stripe-color, 1), nth($stripe-color, 2))
|
26
|
+
+background-image(linear-gradient(-45deg, $mix-stripe-color 25%, transparent 25%, transparent 50%, $mix-stripe-color 50%, $mix-stripe-color 75%, transparent 75%, transparent))
|
27
|
+
background-color: nth($stripe-color, 1)
|
28
|
+
@else
|
29
|
+
+background-image(linear-gradient(-45deg, nth($stripe-color, 1) 25%, transparent 25%, transparent 50%, nth($stripe-color, 1) 50%, nth($stripe-color, 1) 75%, transparent 75%, transparent))
|
30
|
+
background-color: nth($stripe-color, 2)
|
31
|
+
+background-size($size $size)
|
32
|
+
+rem('height', $size)
|
@@ -0,0 +1,39 @@
|
|
1
|
+
=link-colors($normal, $hover: false, $active: false, $visited: false, $focus: false)
|
2
|
+
color: $normal
|
3
|
+
@if $visited
|
4
|
+
&:visited
|
5
|
+
color: $visited
|
6
|
+
@if $focus
|
7
|
+
&:focus
|
8
|
+
color: $focus
|
9
|
+
@if $hover
|
10
|
+
&:hover
|
11
|
+
color: $hover
|
12
|
+
@if $active
|
13
|
+
&:active
|
14
|
+
color: $active
|
15
|
+
|
16
|
+
=block-link
|
17
|
+
display: block
|
18
|
+
text-decoration: none
|
19
|
+
|
20
|
+
=inline-block-link($value: null)
|
21
|
+
display: inline-block
|
22
|
+
text-decoration: none
|
23
|
+
vertical-align: $value
|
24
|
+
|
25
|
+
=hover-link($modifire-class: null)
|
26
|
+
text-decoration: none
|
27
|
+
&:hover,
|
28
|
+
&:active
|
29
|
+
text-decoration: underline
|
30
|
+
@if $modifire-class
|
31
|
+
#{$modifire-class}: underline
|
32
|
+
|
33
|
+
=hover-link-reverse($modifire-class: null)
|
34
|
+
text-decoration: underline
|
35
|
+
&:hover,
|
36
|
+
&:active
|
37
|
+
text-decoration: none
|
38
|
+
@if $modifire-class
|
39
|
+
#{$modifire-class}: none
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// +list(12px 24px, fa '\f192', 12px 3px 8px)
|
2
|
+
// +list(margin-left margin-bottom, fa '\f192', icon-size top left)
|
3
|
+
=list($margins: null, $list-style: null, $icon-position: null)
|
4
|
+
+rem('margin-left', optional_nth($margins, 1))
|
5
|
+
+rem('margin-bottom', optional_nth($margins, 2))
|
6
|
+
@for $i from 1 through length($list-style)
|
7
|
+
@if nth($list-style, $i) == "fa"
|
8
|
+
list-style-type: none
|
9
|
+
>li
|
10
|
+
position: relative
|
11
|
+
display: block
|
12
|
+
+rem('padding-left', optional_nth($icon-position, 1) + optional_nth($icon-position, 3))
|
13
|
+
&:before
|
14
|
+
+fa(optional_nth($list-style, $i + 1))
|
15
|
+
+text-block(optional_nth($icon-position, 1) optional_nth($icon-position, 1))
|
16
|
+
+position(absolute, left 0, top optional_nth($icon-position, 2))
|
17
|
+
@else if list_style_type(nth($list-style, $i))
|
18
|
+
list-style-type: nth($list-style, $i)
|
19
|
+
@else if list_style_position(nth($list-style, $i))
|
20
|
+
list-style-position: nth($list-style, $i)
|
@@ -0,0 +1,69 @@
|
|
1
|
+
=margin($value1, $value2: null)
|
2
|
+
@if number(nth($value1, 1)) or nth($value1, 1) == 'auto'
|
3
|
+
@if equal_nth($value1, 1)
|
4
|
+
+rem('margin', $value1)
|
5
|
+
@else if equal_nth($value1, 2)
|
6
|
+
+rem('margin-top', nth($value1, 1))
|
7
|
+
+rem('margin-bottom', nth($value1, 2))
|
8
|
+
@else if equal_nth($value1, 3)
|
9
|
+
+rem('margin-top', nth($value1, 1))
|
10
|
+
+rem('margin-bottom', nth($value1, 3))
|
11
|
+
+margin(horizontal, nth($value1, 2))
|
12
|
+
@else if equal_nth($value1, 4)
|
13
|
+
+rem('margin-top', nth($value1, 1))
|
14
|
+
+rem('margin-right', nth($value1, 2))
|
15
|
+
+rem('margin-bottom', nth($value1, 3))
|
16
|
+
+rem('margin-left', nth($value1, 4))
|
17
|
+
@else if length($value1) == 1 and nth($value1, 1) == 'vertical'
|
18
|
+
+rem('margin-top', if(list($value2), nth($value2, 1), $value2))
|
19
|
+
+rem('margin-bottom', if(list($value2),nth($value2, 2), $value2))
|
20
|
+
@else if length($value1) == 1 and nth($value1, 1) == 'horizontal'
|
21
|
+
+rem('margin-left', if(list($value2), nth($value2, 1), $value2))
|
22
|
+
+rem('margin-right', if(list($value2),nth($value2, 2), $value2))
|
23
|
+
@else
|
24
|
+
@each $position in $value1
|
25
|
+
@if $position == 'all'
|
26
|
+
+rem('margin', $value2)
|
27
|
+
@else if $position == 'vertical'
|
28
|
+
+rem('margin-top', $value2)
|
29
|
+
+rem('margin-bottom', $value2)
|
30
|
+
@else if $position == 'horizontal'
|
31
|
+
+rem('margin-left', $value2)
|
32
|
+
+rem('margin-right', $value2)
|
33
|
+
@else
|
34
|
+
+rem('margin-#{$position}', $value2)
|
35
|
+
|
36
|
+
=padding($value1: null, $value2: null)
|
37
|
+
@if number(nth($value1, 1)) or nth($value1, 1) == 'auto'
|
38
|
+
@if equal_nth($value1, 1)
|
39
|
+
+rem('padding', $value1)
|
40
|
+
@else if equal_nth($value1, 2)
|
41
|
+
+rem('padding-top', nth($value1, 1))
|
42
|
+
+rem('padding-bottom', nth($value1, 2))
|
43
|
+
@else if equal_nth($value1, 3)
|
44
|
+
+rem('padding-top', nth($value1, 1))
|
45
|
+
+rem('padding-bottom', nth($value1, 3))
|
46
|
+
+padding(horizontal, nth($value1, 2))
|
47
|
+
@else if equal_nth($value1, 4)
|
48
|
+
+rem('padding-top', nth($value1, 1))
|
49
|
+
+rem('padding-right', nth($value1, 2))
|
50
|
+
+rem('padding-bottom', nth($value1, 3))
|
51
|
+
+rem('padding-left', nth($value1, 4))
|
52
|
+
@else if length($value1) == 1 and nth($value1, 1) == 'vertical'
|
53
|
+
+rem('padding-top', if(list($value2), nth($value2, 1), $value2))
|
54
|
+
+rem('padding-bottom', if(list($value2),nth($value2, 2), $value2))
|
55
|
+
@else if length($value1) == 1 and nth($value1, 1) == 'horizontal'
|
56
|
+
+rem('padding-left', if(list($value2), nth($value2, 1), $value2))
|
57
|
+
+rem('padding-right', if(list($value2),nth($value2, 2), $value2))
|
58
|
+
@else
|
59
|
+
@each $position in $value1
|
60
|
+
@if $position == 'all'
|
61
|
+
+rem('padding', $value2)
|
62
|
+
@else if $position == 'vertical'
|
63
|
+
+rem('padding-top', $value2)
|
64
|
+
+rem('padding-bottom', $value2)
|
65
|
+
@else if $position == 'horizontal'
|
66
|
+
+rem('padding-left', $value2)
|
67
|
+
+rem('padding-right', $value2)
|
68
|
+
@else
|
69
|
+
+rem('padding-#{$position}', $value2)
|
@@ -0,0 +1,33 @@
|
|
1
|
+
=position-list($value1, $value2, $value3, $value4, $value5, $value6)
|
2
|
+
$values: $value1 $value2 $value3 $value4 $value5 $value6
|
3
|
+
@each $value in $values
|
4
|
+
@if optional_nth($value, 2)
|
5
|
+
+rem(nth($value, 1), nth($value, 2))
|
6
|
+
@else if unitless_number($value)
|
7
|
+
z-index: nth($value, 1)
|
8
|
+
@else
|
9
|
+
position: $value
|
10
|
+
|
11
|
+
=absolute($value1: null, $value2: null, $value3: null, $value4: null, $value5: null, $value6: null)
|
12
|
+
position: absolute
|
13
|
+
+position-list($value1, $value2, $value3, $value4, $value5, $value6)
|
14
|
+
|
15
|
+
=fixed($value1: null, $value2: null, $value3: null, $value4: null, $value5: null, $value6: null)
|
16
|
+
position: fixed
|
17
|
+
+position-list($value1, $value2, $value3, $value4, $value5, $value6)
|
18
|
+
|
19
|
+
=relative($value1: null, $value2: null, $value3: null, $value4: null, $value5: null, $value6: null)
|
20
|
+
position: relative
|
21
|
+
+position-list($value1, $value2, $value3, $value4, $value5, $value6)
|
22
|
+
|
23
|
+
=position($value1: null, $value2: null, $value3: null, $value4: null, $value5: null, $value6: null)
|
24
|
+
+position-list($value1, $value2, $value3, $value4, $value5, $value6)
|
25
|
+
|
26
|
+
=top($position, $z-index: null)
|
27
|
+
+relative(top $position, $z-index)
|
28
|
+
=bottom($position, $z-index: null)
|
29
|
+
+relative(bottom $position, $z-index)
|
30
|
+
=left($position, $z-index: null)
|
31
|
+
+relative(left $position, $z-index)
|
32
|
+
=right($position, $z-index: null)
|
33
|
+
+relative(right $position, $z-index)
|
@@ -0,0 +1,56 @@
|
|
1
|
+
// Baseline, measured in pixels
|
2
|
+
// The value should be the same as the font-size value for the html element
|
3
|
+
// If the html element's font-size is set to 62.5% (of the browser's default font-size of 16px),
|
4
|
+
// then the variable below would be 10px.
|
5
|
+
// original https://github.com/bitmanic/rem
|
6
|
+
// customize by machida
|
7
|
+
|
8
|
+
$baseline-px: 10px !default
|
9
|
+
|
10
|
+
=base-font-size
|
11
|
+
font-size: $baseline-px
|
12
|
+
font-size: strip_unit($baseline-px / 10) * 1rem
|
13
|
+
|
14
|
+
=rem($property, $px-values, $important: null)
|
15
|
+
@if $rem == true and (px($px-values) or list($px-values))
|
16
|
+
@if $property == "font-size" and $px-values < 10px
|
17
|
+
// 9px以下のfont-sizeを使う設定(IE8不可)
|
18
|
+
+base-font-size
|
19
|
+
+transform(scale3d(strip_unit($px-values / strip_unit($baseline-px)), strip_unit($px-values/ strip_unit($baseline-px)), 1))
|
20
|
+
+transform-origin(0 0)
|
21
|
+
@else
|
22
|
+
// Convert the baseline into rems
|
23
|
+
$baseline-rem: $baseline-px / 1rem
|
24
|
+
// remが使えないブラウザ用にpx版を出力
|
25
|
+
@if $important
|
26
|
+
#{$property}: $px-values !important
|
27
|
+
@else
|
28
|
+
#{$property}: $px-values
|
29
|
+
// remで出力
|
30
|
+
@if px($px-values) and $px-values >= 1
|
31
|
+
@if $important
|
32
|
+
#{$property}: $px-values / $baseline-rem !important
|
33
|
+
@else
|
34
|
+
#{$property}: $px-values / $baseline-rem
|
35
|
+
@else
|
36
|
+
// Create an empty list that we can dump values into
|
37
|
+
$rem-values: ()
|
38
|
+
@each $value in $px-values
|
39
|
+
@if px($value)
|
40
|
+
// If the value is zero or not a number, return it
|
41
|
+
@if strip_unit($value) == 0 or type-of( $value ) != "number"
|
42
|
+
$rem-values: append($rem-values, $value)
|
43
|
+
@else
|
44
|
+
$rem-values: append($rem-values, $value / $baseline-rem)
|
45
|
+
@else
|
46
|
+
$rem-values: append($rem-values, $value)
|
47
|
+
// Return the property and its list of converted values
|
48
|
+
@if $important
|
49
|
+
#{$property}: $rem-values !important
|
50
|
+
@else
|
51
|
+
#{$property}: $rem-values
|
52
|
+
@else
|
53
|
+
@if $important
|
54
|
+
#{$property}: $px-values !important
|
55
|
+
@else
|
56
|
+
#{$property}: $px-values
|
@@ -0,0 +1,49 @@
|
|
1
|
+
=reset-select
|
2
|
+
+appearance(none)
|
3
|
+
+border(none)
|
4
|
+
border: none
|
5
|
+
margin: 0
|
6
|
+
padding: 0
|
7
|
+
background: none transparent
|
8
|
+
vertical-align: middle
|
9
|
+
font-size: inherit
|
10
|
+
color: inherit
|
11
|
+
&:active,
|
12
|
+
&:focus
|
13
|
+
outline: none
|
14
|
+
|
15
|
+
=reset-margin($directions: all)
|
16
|
+
@if all($directions)
|
17
|
+
margin: 0
|
18
|
+
@else if horizontal($directions)
|
19
|
+
+margin(horizontal, 0)
|
20
|
+
@else if vertical($directions)
|
21
|
+
+margin(vertical, 0)
|
22
|
+
@else
|
23
|
+
@each $direction in $directions
|
24
|
+
@if horizontal($direction)
|
25
|
+
+margin(horizontal, 0)
|
26
|
+
@else if vertical($direction)
|
27
|
+
+margin(vertical, 0)
|
28
|
+
@else
|
29
|
+
margin-#{$direction}: 0
|
30
|
+
|
31
|
+
=reset-padding($directions: all)
|
32
|
+
@if all($directions)
|
33
|
+
padding: 0
|
34
|
+
@else if horizontal($directions)
|
35
|
+
+padding(horizontal, 0px)
|
36
|
+
@else if vertical($directions)
|
37
|
+
+padding(vertical, 0px)
|
38
|
+
@else
|
39
|
+
@each $direction in $directions
|
40
|
+
@if horizontal($direction)
|
41
|
+
+padding(horizontal, 0px)
|
42
|
+
@else if vertical($direction)
|
43
|
+
+padding(vertical, 0px)
|
44
|
+
@else
|
45
|
+
padding-#{$direction}: 0
|
46
|
+
|
47
|
+
=reset-all
|
48
|
+
margin: 0
|
49
|
+
padding: 0
|
@@ -0,0 +1,196 @@
|
|
1
|
+
// device
|
2
|
+
=screen-xs
|
3
|
+
@media only screen and (max-width: $screen-xs)
|
4
|
+
@content
|
5
|
+
=screen-sm
|
6
|
+
@media only screen and (max-width: $screen-sm)
|
7
|
+
@content
|
8
|
+
=screen-md
|
9
|
+
@media only screen and (max-width: $screen-md)
|
10
|
+
@content
|
11
|
+
=screen-lg
|
12
|
+
@media only screen and (max-width: $screen-lg)
|
13
|
+
@content
|
14
|
+
=screen-xl
|
15
|
+
@media only screen and (min-width: $screen-lg)
|
16
|
+
@content
|
17
|
+
|
18
|
+
|
19
|
+
// https://github.com/twbs/bootstrap-sass/blob/master/assets/stylesheets/bootstrap/_responsive-utilities.scss
|
20
|
+
|
21
|
+
=responsive-visibility($parent)
|
22
|
+
#{$parent}
|
23
|
+
display: block !important
|
24
|
+
table#{$parent}
|
25
|
+
display: table
|
26
|
+
tr#{$parent}
|
27
|
+
display: table-row !important
|
28
|
+
th#{$parent},
|
29
|
+
td#{$parent}
|
30
|
+
display: table-cell !important
|
31
|
+
|
32
|
+
// [converter] $parent hack
|
33
|
+
=responsive-invisibility($parent)
|
34
|
+
#{$parent}
|
35
|
+
display: none !important
|
36
|
+
|
37
|
+
//
|
38
|
+
// Responsive: Utility classes
|
39
|
+
// --------------------------------------------------
|
40
|
+
|
41
|
+
// IE10 in Windows (Phone) 8
|
42
|
+
//
|
43
|
+
// Support for responsive views via media queries is kind of borked in IE10, for
|
44
|
+
// Surface/desktop in split view and for Windows Phone 8. This particular fix
|
45
|
+
// must be accompanied by a snippet of JavaScript to sniff the user agent and
|
46
|
+
// apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at
|
47
|
+
// our Getting Started page for more information on this bug.
|
48
|
+
//
|
49
|
+
// For more information, see the following:
|
50
|
+
//
|
51
|
+
// Issue: https://github.com/twbs/bootstrap/issues/10497
|
52
|
+
// Docs: http://getbootstrap.com/getting-started/#support-ie10-width
|
53
|
+
// Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/
|
54
|
+
// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
|
55
|
+
|
56
|
+
@-ms-viewport
|
57
|
+
width: device-width
|
58
|
+
|
59
|
+
|
60
|
+
// Visibility utilities
|
61
|
+
// Note: Deprecated .visible-xs, .visible-sm, .visible-md, and .visible-lg as of v3.2.0
|
62
|
+
|
63
|
+
+responsive-invisibility(".visible-xs, .visible-sm, .visible-md, .visible-lg, .visible-xl")
|
64
|
+
|
65
|
+
.visible-xs-block,
|
66
|
+
.visible-xs-inline,
|
67
|
+
.visible-xs-inline-block,
|
68
|
+
.visible-sm-block,
|
69
|
+
.visible-sm-inline,
|
70
|
+
.visible-sm-inline-block,
|
71
|
+
.visible-md-block,
|
72
|
+
.visible-md-inline,
|
73
|
+
.visible-md-inline-block,
|
74
|
+
.visible-lg-block,
|
75
|
+
.visible-lg-inline,
|
76
|
+
.visible-lg-inline-block,
|
77
|
+
.visible-xl-block,
|
78
|
+
.visible-xl-inline,
|
79
|
+
.visible-xl-inline-block
|
80
|
+
display: none !important
|
81
|
+
|
82
|
+
@media (max-width: $screen-xs-max)
|
83
|
+
+responsive-visibility(".visible-xs")
|
84
|
+
|
85
|
+
.visible-xs-block
|
86
|
+
@media (max-width: $screen-xs-max)
|
87
|
+
display: block !important
|
88
|
+
|
89
|
+
.visible-xs-inline
|
90
|
+
@media (max-width: $screen-xs-max)
|
91
|
+
display: inline !important
|
92
|
+
|
93
|
+
.visible-xs-inline-block
|
94
|
+
@media (max-width: $screen-xs-max)
|
95
|
+
display: inline-block !important
|
96
|
+
|
97
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max)
|
98
|
+
+responsive-visibility(".visible-sm")
|
99
|
+
|
100
|
+
.visible-sm-block
|
101
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max)
|
102
|
+
display: block !important
|
103
|
+
|
104
|
+
.visible-sm-inline
|
105
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max)
|
106
|
+
display: inline !important
|
107
|
+
|
108
|
+
.visible-sm-inline-block
|
109
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max)
|
110
|
+
display: inline-block !important
|
111
|
+
|
112
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max)
|
113
|
+
+responsive-visibility(".visible-md")
|
114
|
+
|
115
|
+
.visible-md-block
|
116
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max)
|
117
|
+
display: block !important
|
118
|
+
|
119
|
+
.visible-md-inline
|
120
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max)
|
121
|
+
display: inline !important
|
122
|
+
|
123
|
+
.visible-md-inline-block
|
124
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max)
|
125
|
+
display: inline-block !important
|
126
|
+
|
127
|
+
@media (min-width: $screen-lg-min)
|
128
|
+
+responsive-visibility(".visible-lg")
|
129
|
+
|
130
|
+
.visible-lg-block
|
131
|
+
@media (min-width: $screen-md-max) and (max-width: $screen-lg-min)
|
132
|
+
display: block !important
|
133
|
+
|
134
|
+
.visible-lg-inline
|
135
|
+
@media (min-width: $screen-md-max) and (max-width: $screen-lg-min)
|
136
|
+
display: inline !important
|
137
|
+
|
138
|
+
.visible-lg-inline-block
|
139
|
+
@media (min-width: $screen-md-max) and (max-width: $screen-lg-min)
|
140
|
+
display: inline-block !important
|
141
|
+
|
142
|
+
.visible-xl-block
|
143
|
+
@media (min-width: $screen-lg-max)
|
144
|
+
display: block !important
|
145
|
+
|
146
|
+
.visible-xl-inline
|
147
|
+
@media (min-width: $screen-lg-max)
|
148
|
+
display: inline !important
|
149
|
+
|
150
|
+
.visible-xl-inline-block
|
151
|
+
@media (min-width: $screen-lg-max)
|
152
|
+
display: inline-block !important
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
@media (max-width: $screen-xs-max)
|
158
|
+
+responsive-invisibility(".hidden-xs")
|
159
|
+
|
160
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max)
|
161
|
+
+responsive-invisibility(".hidden-sm")
|
162
|
+
|
163
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max)
|
164
|
+
+responsive-invisibility(".hidden-md")
|
165
|
+
|
166
|
+
@media (min-width: $screen-lg-min)
|
167
|
+
+responsive-invisibility(".hidden-lg")
|
168
|
+
|
169
|
+
// Print utilities
|
170
|
+
//
|
171
|
+
// Media queries are placed on the inside to be mixin-friendly.
|
172
|
+
|
173
|
+
// Note: Deprecated .visible-print as of v3.2.0
|
174
|
+
|
175
|
+
+responsive-invisibility(".visible-print")
|
176
|
+
|
177
|
+
@media print
|
178
|
+
+responsive-visibility(".visible-print")
|
179
|
+
|
180
|
+
.visible-print-block
|
181
|
+
display: none !important
|
182
|
+
@media print
|
183
|
+
display: block !important
|
184
|
+
|
185
|
+
.visible-print-inline
|
186
|
+
display: none !important
|
187
|
+
@media print
|
188
|
+
display: inline !important
|
189
|
+
|
190
|
+
.visible-print-inline-block
|
191
|
+
display: none !important
|
192
|
+
@media print
|
193
|
+
display: inline-block !important
|
194
|
+
|
195
|
+
@media print
|
196
|
+
+responsive-invisibility(".hidden-print")
|
@@ -0,0 +1,32 @@
|
|
1
|
+
=table-cell-assign($value)
|
2
|
+
@if list($value)
|
3
|
+
@if unit_number(nth($value, 1))
|
4
|
+
+rem('padding', $value)
|
5
|
+
@if direction(nth($value, 1))
|
6
|
+
+padding(nth($value, 1), nth($value, 2))
|
7
|
+
white-space: if(white_space($value), $value, null)
|
8
|
+
background-color: if(color($value), $value, null)
|
9
|
+
vertical-align: if(vertical_align($value), $value, null)
|
10
|
+
|
11
|
+
// +table-row($white #eeeeee, (bottom, solid 1px black))
|
12
|
+
=table-row($value1: nul, $value2: nul)
|
13
|
+
@if $value1
|
14
|
+
@if list($value1)
|
15
|
+
&:nth-child(odd)
|
16
|
+
background-color: nth($value1, 1)
|
17
|
+
&:nth-child(even)
|
18
|
+
background-color: nth($value1, 2)
|
19
|
+
@else if color($value1)
|
20
|
+
background-color: nth($value1, 1)
|
21
|
+
@if $value2
|
22
|
+
+border(nth($value2, 1), nth($value2, 2))
|
23
|
+
|
24
|
+
// +table-cell(middle (12px 16px) no_wrap $white, (14px 1.8 1.4em, black bold center), (bottom, solid 1px black))
|
25
|
+
=table-cell($value1: null, $value2: null, $value3: null)
|
26
|
+
@if $value1
|
27
|
+
@for $i from 1 through length($value1)
|
28
|
+
+table-cell-assign(nth($value1, $i))
|
29
|
+
@if $value2
|
30
|
+
+text-block(nth($value2, 1), optional_nth($value2, 2, false))
|
31
|
+
@if $value3
|
32
|
+
+border(nth($value3, 1), nth($value3, 2))
|