oulu 0.19.1 → 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +0 -30
- data/app/assets/stylesheets/_oulu-base.sass +1 -3
- data/app/assets/stylesheets/_oulu.sass +9 -24
- data/app/assets/stylesheets/helpers/_block.sass +33 -9
- data/app/assets/stylesheets/helpers/_margin-padding.sass +108 -33
- data/app/assets/stylesheets/helpers/_position.sass +8 -32
- data/app/assets/stylesheets/helpers/_typoglaphy.sass +9 -25
- data/app/assets/stylesheets/modules/buttons/_button-base.sass +35 -89
- data/app/assets/stylesheets/modules/buttons/_button-helper.sass +12 -39
- data/app/assets/stylesheets/modules/buttons/_buttons.sass +6 -22
- data/app/assets/stylesheets/modules/buttons/styles/_border.sass +8 -6
- data/app/assets/stylesheets/modules/buttons/styles/_flat-emboss.sass +10 -8
- data/app/assets/stylesheets/modules/buttons/styles/_flat-round.sass +7 -5
- data/app/assets/stylesheets/modules/buttons/styles/_material.sass +4 -2
- data/app/assets/stylesheets/modules/buttons/styles/_normal.sass +13 -10
- data/app/assets/stylesheets/modules/buttons/styles/_super-bold-border.sass +29 -19
- data/app/assets/stylesheets/modules/glitch/_glitch.sass +2 -3
- data/app/assets/stylesheets/modules/glitch/_glitch.sass~organize-modules +31 -0
- data/app/assets/stylesheets/modules/web-fonts/_font-awsome.sass +17 -0
- data/app/assets/stylesheets/modules/web-fonts/_icomoon.sass +2 -0
- data/app/assets/stylesheets/settings/functions/_animation.sass +90 -0
- data/app/assets/stylesheets/settings/functions/_background.sass +16 -31
- data/app/assets/stylesheets/settings/functions/_color.sass +29 -15
- data/app/assets/stylesheets/settings/functions/_display.sass +1 -1
- data/app/assets/stylesheets/settings/functions/_length.sass +0 -7
- data/app/assets/stylesheets/settings/functions/_map.sass +0 -52
- data/app/assets/stylesheets/settings/functions/_math.sass +0 -12
- data/app/assets/stylesheets/settings/functions/_number.sass +2 -18
- data/app/assets/stylesheets/settings/functions/_string.sass +0 -19
- data/app/assets/stylesheets/settings/initializers/_reboot.sass +2 -24
- data/app/assets/stylesheets/settings/initializers/_sanitize.sass +102 -75
- data/app/assets/stylesheets/settings/mixins/_animation.sass +32 -0
- data/app/assets/stylesheets/settings/mixins/_background.sass +2 -2
- data/app/assets/stylesheets/settings/mixins/_balloon-tail.sass +89 -281
- data/app/assets/stylesheets/settings/mixins/_basic-font.sass +1 -1
- data/app/assets/stylesheets/settings/mixins/_block.sass +1 -29
- data/app/assets/stylesheets/settings/mixins/_form.sass +18 -0
- data/app/assets/stylesheets/settings/mixins/_grid.sass +44 -151
- data/app/assets/stylesheets/settings/mixins/_ie-hacks.sass +1 -7
- data/app/assets/stylesheets/settings/mixins/_link.sass +1 -10
- data/app/assets/stylesheets/settings/mixins/_list.sass +20 -0
- data/app/assets/stylesheets/settings/mixins/_margin-padding.sass +1 -1
- data/app/assets/stylesheets/settings/mixins/_rem.sass +3 -1
- data/app/assets/stylesheets/settings/mixins/_responsive-utilities.sass +151 -62
- data/app/assets/stylesheets/settings/mixins/_text.sass +27 -29
- 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 +115 -29
- data/app/assets/stylesheets/settings/variables/_modules.sass +24 -37
- data/bower.json +1 -1
- data/lib/oulu/version.rb +1 -1
- data/lib/oulu.rb +5 -9
- data/oulu.gemspec +3 -3
- data/package.json +1 -1
- metadata +20 -69
- data/app/assets/stylesheets/_oulu-functions-after-variables.sass +0 -6
- data/app/assets/stylesheets/_oulu-functions-before-variables.sass +0 -20
- data/app/assets/stylesheets/_oulu-functions.sass +0 -21
- data/app/assets/stylesheets/_oulu-helpers.sass +0 -10
- data/app/assets/stylesheets/_oulu-initializers.sass +0 -6
- data/app/assets/stylesheets/_oulu-mixins.sass +0 -28
- data/app/assets/stylesheets/_oulu-variables.sass +0 -7
- data/app/assets/stylesheets/helpers/_margin.sass +0 -36
- data/app/assets/stylesheets/helpers/_padding.sass +0 -35
- data/app/assets/stylesheets/helpers/_visibility.sass +0 -67
- data/app/assets/stylesheets/modules/buttons/_button-sizes.sass +0 -156
- data/app/assets/stylesheets/modules/buttons/styles/_flat.sass +0 -61
- data/app/assets/stylesheets/modules/buttons/styles/_simple.sass +0 -51
- data/app/assets/stylesheets/modules/buttons/styles/_standard.sass +0 -63
- data/app/assets/stylesheets/modules/text-style/_amazlet.sass +0 -38
- data/app/assets/stylesheets/modules/text-style/_disabled-h1.sass +0 -23
- data/app/assets/stylesheets/modules/text-style/_link-card.sass +0 -67
- data/app/assets/stylesheets/modules/text-style/_list.sass +0 -16
- data/app/assets/stylesheets/modules/text-style/_long-text-style.sass +0 -207
- data/app/assets/stylesheets/modules/text-style/_twitter-tweet.sass +0 -9
- data/app/assets/stylesheets/modules/themes/admin/_admin.sass +0 -59
- data/app/assets/stylesheets/modules/themes/admin/_base.sass +0 -34
- data/app/assets/stylesheets/modules/themes/admin/blocks/admin/_admin-page-header.sass +0 -9
- data/app/assets/stylesheets/modules/themes/admin/blocks/form/_admin-actions.sass +0 -36
- data/app/assets/stylesheets/modules/themes/admin/blocks/form/_admin-flash.sass +0 -58
- data/app/assets/stylesheets/modules/themes/admin/blocks/form/_admin-form-file.sass +0 -33
- data/app/assets/stylesheets/modules/themes/admin/blocks/form/_admin-form-inputs.sass +0 -13
- data/app/assets/stylesheets/modules/themes/admin/blocks/form/_admin-form-radio.sass +0 -82
- data/app/assets/stylesheets/modules/themes/admin/blocks/form/_admin-form.sass +0 -117
- data/app/assets/stylesheets/modules/themes/admin/blocks/header/_admin-header-nav.sass +0 -22
- data/app/assets/stylesheets/modules/themes/admin/blocks/header/_admin-header-show-mobile-nav.sass +0 -8
- data/app/assets/stylesheets/modules/themes/admin/blocks/header/_admin-header.sass +0 -19
- data/app/assets/stylesheets/modules/themes/admin/blocks/navs/_admin-breadcrumbs.sass +0 -45
- data/app/assets/stylesheets/modules/themes/admin/blocks/navs/_admin-stack-nav.sass +0 -51
- data/app/assets/stylesheets/modules/themes/admin/blocks/navs/_admin-tabs-nav.sass +0 -49
- data/app/assets/stylesheets/modules/themes/admin/blocks/navs/_pagination.sass +0 -63
- data/app/assets/stylesheets/modules/themes/admin/blocks/table/_admin-table-form.sass +0 -10
- data/app/assets/stylesheets/modules/themes/admin/blocks/table/_admin-table-sort.sass +0 -21
- data/app/assets/stylesheets/modules/themes/admin/blocks/table/_admin-table.sass +0 -82
- data/app/assets/stylesheets/modules/themes/admin/settings/_admin-colors.sass +0 -101
- data/app/assets/stylesheets/modules/themes/style-guide/_base.sass +0 -5
- data/app/assets/stylesheets/modules/themes/style-guide/_style-guide.sass +0 -43
- data/app/assets/stylesheets/modules/themes/style-guide/blocks/_style-guide-color.sass +0 -42
- data/app/assets/stylesheets/modules/themes/style-guide/blocks/_style-guide-global-nav.sass +0 -32
- data/app/assets/stylesheets/modules/themes/style-guide/blocks/_style-guide-header.sass +0 -12
- data/app/assets/stylesheets/modules/themes/style-guide/blocks/_style-guide-section.sass +0 -8
- data/app/assets/stylesheets/modules/themes/style-guide/settings/_style-guide-colors.sass +0 -33
- data/app/assets/stylesheets/modules/web-fonts/_playfair.sass +0 -11
- data/app/assets/stylesheets/settings/functions/_assign-inputs.sass +0 -35
- data/app/assets/stylesheets/settings/functions/_flex.sass +0 -70
- data/app/assets/stylesheets/settings/mixins/_break-points.sass +0 -37
- data/app/assets/stylesheets/settings/mixins/_flex.sass +0 -5
- data/app/assets/stylesheets/settings/mixins/_font-awesome.sass +0 -56
- data/app/assets/stylesheets/settings/mixins/_word-wrap.sass +0 -8
- data/app/assets/stylesheets/settings/mixins/grid/_grid-framework.sass +0 -42
- data/app/assets/stylesheets/settings/mixins/grid/_grid.sass +0 -15
- data/app/assets/stylesheets/settings/variables/_sanitize.sass +0 -20
- data/circle.yml +0 -13
@@ -1,20 +1,20 @@
|
|
1
1
|
// button option
|
2
|
-
[class
|
3
|
-
+button-base
|
4
|
-
white-space: nowrap
|
2
|
+
[class^="is-button"]
|
5
3
|
&.has-image
|
6
4
|
height: auto
|
7
|
-
|
8
|
-
+
|
9
|
-
|
10
|
-
|
5
|
+
.is-button-note
|
6
|
+
+inline-block
|
7
|
+
font-size: 12px
|
8
|
+
margin-left: 6px
|
11
9
|
&.is-block
|
12
|
-
display:
|
10
|
+
display: block
|
13
11
|
width: 100%
|
14
|
-
|
12
|
+
select
|
13
|
+
display: block
|
14
|
+
width: 100%
|
15
15
|
&.is-radio,
|
16
16
|
&.is-checkbox
|
17
|
-
display:
|
17
|
+
display: block
|
18
18
|
input
|
19
19
|
opacity: 0
|
20
20
|
+position(absolute)
|
@@ -26,9 +26,7 @@
|
|
26
26
|
border-radius: 50%
|
27
27
|
&.is-checkbox
|
28
28
|
&:before
|
29
|
-
border-radius:
|
30
|
-
&.is-text-align-left
|
31
|
-
justify-content: flex-start
|
29
|
+
border-radius: 3px
|
32
30
|
&.is-no-move
|
33
31
|
&:active,
|
34
32
|
&.is-checked
|
@@ -45,37 +43,12 @@
|
|
45
43
|
font-size: inherit
|
46
44
|
color: inherit
|
47
45
|
cursor: pointer
|
48
|
-
&.is-multi-lines
|
49
|
-
height: auto
|
50
|
-
line-height: 1.45
|
51
|
-
.is-button-note
|
52
|
-
+inline-block
|
53
|
-
font-size: .75rem
|
54
|
-
margin-left: .375rem
|
55
|
-
select
|
56
|
-
width: 100%
|
57
|
-
|
58
|
-
&[class*="-xs-"]
|
59
|
-
font-size: $xs-button-font-size
|
60
|
-
&[class*="-sm-"]
|
61
|
-
font-size: $sm-button-font-size
|
62
|
-
&[class*="-md-"]
|
63
|
-
font-size: $md-button-font-size
|
64
|
-
&[class*="-lg-"]
|
65
|
-
font-size: $lg-button-font-size
|
66
|
-
&[class*="-xl-"]
|
67
|
-
font-size: $xl-button-font-size
|
68
|
-
|
69
|
-
button[class*="is-button"]
|
70
|
-
display: inline-block
|
71
|
-
&.is-block
|
72
|
-
display: block
|
73
46
|
|
74
47
|
// button-group
|
75
48
|
.is-button-group
|
76
49
|
font-size: 0
|
77
50
|
>li
|
78
|
-
display: inline-
|
51
|
+
display: inline-block
|
79
52
|
letter-spacing: normal
|
80
53
|
font-size: 0
|
81
54
|
@for $i from 1 through 12
|
@@ -3,32 +3,26 @@
|
|
3
3
|
// button styles
|
4
4
|
@import styles/normal
|
5
5
|
@import styles/border
|
6
|
-
@import styles/flat
|
7
6
|
@import styles/flat-emboss
|
8
7
|
@import styles/material
|
9
8
|
@import styles/flat-round
|
10
9
|
@import styles/super-bold-border
|
11
|
-
@import styles/standard
|
12
|
-
@import styles/simple
|
13
10
|
|
14
11
|
@import button-helper
|
15
|
-
@import button-sizes
|
16
12
|
|
17
13
|
=button($style, $size, $color, $options: false)
|
14
|
+
+button-base
|
18
15
|
@if $style == normal
|
19
|
-
+button-size($size,
|
16
|
+
+button-size($size, 1px, 4px)
|
20
17
|
+normal-button($color)
|
21
18
|
@else if $style == border
|
22
|
-
+button-size($size,
|
19
|
+
+button-size($size, 1px, 4px)
|
23
20
|
+border-button($color)
|
24
21
|
@else if $style == bold-border
|
25
|
-
+button-size($size,
|
22
|
+
+button-size($size, 2px, 8px)
|
26
23
|
+border-button($color)
|
27
|
-
@else if $style == flat
|
28
|
-
+button-size($size, .0625rem, .25rem)
|
29
|
-
+flat-button($color)
|
30
24
|
@else if $style == flat-emboss
|
31
|
-
+button-size($size, false,
|
25
|
+
+button-size($size, false, 4px)
|
32
26
|
+flat-emboss-button($color)
|
33
27
|
@else if $style == material
|
34
28
|
+button-size($size, false, false)
|
@@ -37,14 +31,8 @@
|
|
37
31
|
+button-size($size, false, 1000px)
|
38
32
|
+flat-round-button($color)
|
39
33
|
@else if $style == super-bold-border
|
40
|
-
+button-size($size,
|
34
|
+
+button-size($size, false, 3px)
|
41
35
|
+super-bold-border-button($color, $size)
|
42
|
-
@else if $style == standard
|
43
|
-
+button-size($size, .0625rem, .25rem)
|
44
|
-
+standard-button($color)
|
45
|
-
@else if $style == simple
|
46
|
-
+button-size($size, false, .1875rem)
|
47
|
-
+simple-button($color)
|
48
36
|
@each $option in $options
|
49
37
|
@if $option == 'left'
|
50
38
|
text-align: left
|
@@ -70,8 +58,4 @@
|
|
70
58
|
$button-color: $danger
|
71
59
|
@else if $button-color-name == info
|
72
60
|
$button-color: $info
|
73
|
-
@else if $button-color-name == twitter
|
74
|
-
$button-color: $twitter
|
75
|
-
@else if $button-color-name == facebook
|
76
|
-
$button-color: $facebook
|
77
61
|
+button($button-style, $button-size, $button-color)
|
@@ -10,11 +10,13 @@
|
|
10
10
|
&:visited
|
11
11
|
color: $color
|
12
12
|
&:hover,
|
13
|
-
&.hover
|
13
|
+
&.hover,
|
14
|
+
&.is-hover
|
14
15
|
color: $color
|
15
16
|
background-color: rgba($color, .2)
|
16
17
|
&:active,
|
17
|
-
&.active
|
18
|
+
&.active,
|
19
|
+
&.is-active
|
18
20
|
color: luma_contrast_color($color)
|
19
21
|
background-color: $color
|
20
22
|
|
@@ -26,11 +28,11 @@
|
|
26
28
|
|
27
29
|
// checked
|
28
30
|
&.is-checked
|
29
|
-
color: luma_contrast_color($
|
30
|
-
background-color: $
|
31
|
-
border-color: shade($
|
31
|
+
color: luma_contrast_color($checked)
|
32
|
+
background-color: $checked
|
33
|
+
border-color: shade($checked, 20%)
|
32
34
|
&:before
|
33
|
-
box-shadow: luma_contrast_color($
|
35
|
+
box-shadow: luma_contrast_color($checked) 0 0 0 1px
|
34
36
|
|
35
37
|
// select
|
36
38
|
&.is-select
|
@@ -5,14 +5,16 @@
|
|
5
5
|
box-shadow: shade($color, 18%) 0 3px 0
|
6
6
|
text-shadow: if(luma_bright($color), lighten($color, 8%) 0 1px 0, darken($color, 8%) 0 -1px 0)
|
7
7
|
&:hover,
|
8
|
-
&.hover
|
8
|
+
&.hover,
|
9
|
+
&.is-hover
|
9
10
|
$color: lighten($color, 6%)
|
10
11
|
@if luma($color) > 90
|
11
12
|
background-color: #f2f2f2
|
12
13
|
@else
|
13
14
|
background-color: $color
|
14
15
|
&:active,
|
15
|
-
&.active
|
16
|
+
&.active,
|
17
|
+
&.is-active
|
16
18
|
$color: lighten($color, 6%)
|
17
19
|
@if luma($color) > 90
|
18
20
|
background-color: #f2f2f2
|
@@ -30,14 +32,14 @@
|
|
30
32
|
|
31
33
|
// checked
|
32
34
|
&.is-checked
|
33
|
-
color: luma_contrast_color($
|
34
|
-
background-color: $
|
35
|
-
text-shadow: if(luma_bright($
|
36
|
-
box-shadow: shade($
|
35
|
+
color: luma_contrast_color($checked)
|
36
|
+
background-color: $checked
|
37
|
+
text-shadow: if(luma_bright($checked), lighten($checked, 8%) 0 1px 0, darken($checked, 8%) 0 -1px 0)
|
38
|
+
box-shadow: shade($checked, 18%) 0 2px 0
|
37
39
|
+top(1px)
|
38
40
|
&:before
|
39
|
-
box-shadow: rgba(black, 0.3) 0 1px 1px inset, #{if(luma_bright($
|
40
|
-
background-color: #{if(luma_bright($
|
41
|
+
box-shadow: rgba(black, 0.3) 0 1px 1px inset, #{if(luma_bright($checked), shade($checked, 40%), tint($checked, 40%))} 0 0 0 1px
|
42
|
+
background-color: #{if(luma_bright($checked), shade($checked, 30%), tint($checked, 30%))}
|
41
43
|
|
42
44
|
// select
|
43
45
|
&.is-select
|
@@ -4,14 +4,16 @@
|
|
4
4
|
color: luma_contrast_color($color)
|
5
5
|
font-weight: bold
|
6
6
|
&:hover,
|
7
|
-
&.hover
|
7
|
+
&.hover,
|
8
|
+
&.is-hover
|
8
9
|
$color: lighten($color, 6%)
|
9
10
|
@if luma($color) > 90
|
10
11
|
background-color: #f2f2f2
|
11
12
|
@else
|
12
13
|
background-color: $color
|
13
14
|
&:active,
|
14
|
-
&.active
|
15
|
+
&.active,
|
16
|
+
&.is-active
|
15
17
|
$color: lighten($color, 6%)
|
16
18
|
@if luma($color) > 90
|
17
19
|
background-color: #f2f2f2
|
@@ -28,12 +30,12 @@
|
|
28
30
|
|
29
31
|
// checked
|
30
32
|
&.is-checked
|
31
|
-
color: luma_contrast_color($
|
32
|
-
background-color: $
|
33
|
+
color: luma_contrast_color($checked)
|
34
|
+
background-color: $checked
|
33
35
|
+top(1px)
|
34
36
|
&:before
|
35
37
|
box-shadow: rgba(black, 0.3) 0 1px 1px inset
|
36
|
-
background-color: #{if(luma_bright($
|
38
|
+
background-color: #{if(luma_bright($checked), shade($checked, 40%), tint($checked, 40%))}
|
37
39
|
|
38
40
|
// select
|
39
41
|
&.is-select
|
@@ -42,7 +42,8 @@
|
|
42
42
|
letter-spacing: .5px
|
43
43
|
+waves-effect($color)
|
44
44
|
&:hover,
|
45
|
-
.hover
|
45
|
+
.hover,
|
46
|
+
.is-hover
|
46
47
|
$color: lighten($color, 5%)
|
47
48
|
box-shadow: 0 5px 11px 0 rgba(black, .18), 0 4px 15px 0 rgba(black, .15)
|
48
49
|
@if $color == white
|
@@ -50,7 +51,8 @@
|
|
50
51
|
@else
|
51
52
|
background-color: $color
|
52
53
|
&:active,
|
53
|
-
.active
|
54
|
+
.active,
|
55
|
+
.is-active
|
54
56
|
$color: lighten($color, 6%)
|
55
57
|
@if $color == white
|
56
58
|
background-color: #f4f4f4
|
@@ -1,6 +1,6 @@
|
|
1
1
|
=normal-button-color($color, $root-color: true)
|
2
2
|
background-color: $color
|
3
|
-
background-image: linear-gradient(
|
3
|
+
background-image: linear-gradient(top, tint($color, 6%) 0%, shade($color, 6%) 100%)
|
4
4
|
border-style: solid
|
5
5
|
border-color: shade($color, 10%) shade($color, 16%) shade($color, 26%)
|
6
6
|
@if $root-color
|
@@ -8,8 +8,10 @@
|
|
8
8
|
text-shadow: if(luma_bright($color), lighten($color, 18%) 0 1px 0, darken($color, 18%) 0 -1px 0)
|
9
9
|
&:hover,
|
10
10
|
&.hover,
|
11
|
+
&.is-hover,
|
11
12
|
&:active,
|
12
|
-
&.active
|
13
|
+
&.active,
|
14
|
+
&.is-active
|
13
15
|
color: luma_contrast_color($color)
|
14
16
|
|
15
17
|
=normal-button($color: blue)
|
@@ -17,13 +19,15 @@
|
|
17
19
|
+normal-button-color($color)
|
18
20
|
box-shadow: tint($color, 32%) 0 1px 0 inset, shade($color, 26%) 0 1px 0, rgba(black, .15) 0 2px 1px
|
19
21
|
&:hover,
|
20
|
-
&.hover
|
22
|
+
&.hover,
|
23
|
+
&.is-hover
|
21
24
|
@if luma($color) > 90
|
22
25
|
+normal-button-color(lighten(#f2f2f2, 5%), false)
|
23
26
|
@else
|
24
27
|
+normal-button-color(lighten($color, 5%), false)
|
25
28
|
&:active,
|
26
|
-
&.active
|
29
|
+
&.active,
|
30
|
+
&.is-active
|
27
31
|
+top(1px)
|
28
32
|
@if luma($color) > 90
|
29
33
|
$color: lighten(#f2f2f2, 7%)
|
@@ -43,14 +47,14 @@
|
|
43
47
|
|
44
48
|
// checked
|
45
49
|
&.is-checked
|
46
|
-
color: luma_contrast_color($
|
47
|
-
+normal-button-color($
|
48
|
-
border-color: shade($
|
49
|
-
box-shadow: darken($
|
50
|
+
color: luma_contrast_color($checked)
|
51
|
+
+normal-button-color($checked, true)
|
52
|
+
border-color: shade($checked, 10%) shade($checked, 16%) shade($checked, 26%)
|
53
|
+
box-shadow: darken($checked, 12%) 0 1px 0 inset, rgba(white, .3) 0 1px 1px
|
50
54
|
+top(1px)
|
51
55
|
&:before
|
52
56
|
box-shadow: rgba(black, 0.2) 0 1px 1px inset
|
53
|
-
background-color: #{if(luma_bright($
|
57
|
+
background-color: #{if(luma_bright($checked), tint($checked, 20%), shade($checked, 20%))}
|
54
58
|
|
55
59
|
// select
|
56
60
|
&.is-select
|
@@ -64,7 +68,6 @@
|
|
64
68
|
&:disabled
|
65
69
|
$color: if(luma_bright($color), shade($color, 20%), tint($color, 20%))
|
66
70
|
background-color: rgba($color, 7)
|
67
|
-
background-image: none
|
68
71
|
color: rgba(luma_contrast_color($color), .7)
|
69
72
|
border-color: shade($color, 10%) shade($color, 16%) shade($color, 26%)
|
70
73
|
text-shadow: none
|
@@ -1,23 +1,32 @@
|
|
1
1
|
=super-bold-border-button($color, $size)
|
2
|
-
$border-width:
|
3
|
-
$
|
2
|
+
$border-width: ""
|
3
|
+
@if $size == 'xs'
|
4
|
+
$border-width: $xs-button-font-size/3
|
5
|
+
@else if $size == 'sm'
|
6
|
+
$border-width: $sm-button-font-size/3
|
7
|
+
@else if $size == 'md'
|
8
|
+
$border-width: $md-button-font-size/3
|
9
|
+
@else if $size == 'lg'
|
10
|
+
$border-width: $lg-button-font-size/3
|
11
|
+
@else if $size == 'xl'
|
12
|
+
$border-width: $xl-button-font-size/3
|
13
|
+
border: solid $default-text $border-width
|
4
14
|
background-color: $color
|
5
|
-
color: $
|
6
|
-
|
7
|
-
box-shadow: rgba(black, .4) 0 .0625rem 0 0
|
8
|
-
transition: background-color .3s ease-in, box-shadow .3s ease-in
|
9
|
-
font-weight: 800
|
15
|
+
color: luma_contrast_color($color)
|
16
|
+
box-shadow: rgba(black, 0.6) 0 1px 0 1px
|
10
17
|
&:link,
|
11
18
|
&:visited
|
12
|
-
color: $
|
19
|
+
color: luma_contrast_color($color)
|
13
20
|
&:hover,
|
14
|
-
&.hover
|
15
|
-
|
16
|
-
color: $
|
21
|
+
&.hover,
|
22
|
+
&.is-hover
|
23
|
+
$color: if(luma_bright($color), shade($color, 20%), tint($color, 20%))
|
24
|
+
color: luma_contrast_color($color)
|
17
25
|
background-color: $color
|
18
26
|
&:active,
|
19
|
-
&.active
|
20
|
-
|
27
|
+
&.active,
|
28
|
+
&.is-active
|
29
|
+
color: luma_contrast_color($color)
|
21
30
|
background-color: $color
|
22
31
|
+top(1px)
|
23
32
|
box-shadow: none
|
@@ -26,16 +35,16 @@
|
|
26
35
|
&.is-radio,
|
27
36
|
&.is-checkbox
|
28
37
|
&:before
|
29
|
-
box-shadow: $default-text 0 0 0
|
38
|
+
box-shadow: $default-text 0 0 0 2px
|
30
39
|
|
31
40
|
// checked
|
32
41
|
&.is-checked
|
33
|
-
color: $
|
34
|
-
background-color: $
|
42
|
+
color: luma_contrast_color($checked)
|
43
|
+
background-color: $checked
|
35
44
|
+top(1px)
|
36
45
|
box-shadow: none
|
37
46
|
&:before
|
38
|
-
box-shadow: luma_contrast_color($
|
47
|
+
box-shadow: luma_contrast_color($checked) 0 0 0 2px
|
39
48
|
|
40
49
|
// select
|
41
50
|
&.is-select
|
@@ -47,7 +56,8 @@
|
|
47
56
|
// disabled
|
48
57
|
&.is-disabled,
|
49
58
|
&:disabled
|
50
|
-
$color: if(luma_bright($color), shade($color,
|
51
|
-
color: rgba($
|
59
|
+
$color: if(luma_bright($color), shade($color, 20%), tint($color, 20%))
|
60
|
+
color: rgba(luma_contrast_color($color), .7)
|
52
61
|
background-color: rgba($color, .7)
|
53
62
|
border-color: rgba($default-text, .7)
|
63
|
+
box-shadow: none
|
@@ -1,10 +1,9 @@
|
|
1
|
-
|
1
|
+
keyframes noise-anim
|
2
2
|
$steps: 20
|
3
3
|
@for $i from 0 through $steps
|
4
4
|
#{percentage($i * 1 / $steps)}
|
5
5
|
clip: rect(random(100) + px, 9999px, random(100) + px, 0)
|
6
|
-
|
7
|
-
+keyframes(noise-anim-2)
|
6
|
+
keyframes noise-anim-2
|
8
7
|
$steps: 20
|
9
8
|
@for $i from 0 through $steps
|
10
9
|
#{percentage($i * 1 / $steps)}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
keyframes noise-anim
|
2
|
+
$steps: 20
|
3
|
+
@for $i from 0 through $steps
|
4
|
+
#{percentage($i * 1 / $steps)}
|
5
|
+
clip: rect(random(100) + px, 9999px, random(100) + px, 0)
|
6
|
+
keyframes noise-anim-2
|
7
|
+
$steps: 20
|
8
|
+
@for $i from 0 through $steps
|
9
|
+
#{percentage($i * 1 / $steps)}
|
10
|
+
clip: rect(random(100) + px, 9999px, random(100) + px, 0)
|
11
|
+
|
12
|
+
=glitch($cl: white, $bg-col: black)
|
13
|
+
position: relative
|
14
|
+
overflow: hidden
|
15
|
+
display: inline-block
|
16
|
+
color: $cl
|
17
|
+
&:after,
|
18
|
+
&:before
|
19
|
+
content: attr(data-text)
|
20
|
+
color: $cl
|
21
|
+
background-color: $bg-col
|
22
|
+
overflow: hidden
|
23
|
+
clip: rect(0, 900px, 0, 0)
|
24
|
+
&:after
|
25
|
+
+position(absolute, left 1px, top 0)
|
26
|
+
text-shadow: -1px 0 0 rgba(red, 0.4)
|
27
|
+
+animation(noise-anim 2s infinite linear alternate-reverse)
|
28
|
+
&:before
|
29
|
+
+position(absolute, left -1px, top 0)
|
30
|
+
text-shadow: 1px 0 0 rgba(blue, 0.4)
|
31
|
+
+animation(noise-anim-2 3s infinite linear alternate-reverse)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
=fa($icon: null)
|
2
|
+
display: inline-block
|
3
|
+
font-family: FontAwesome
|
4
|
+
font-style: normal
|
5
|
+
font-weight: normal
|
6
|
+
line-height: 1
|
7
|
+
-webkit-font-smoothing: antialiased
|
8
|
+
-moz-osx-font-smoothing: grayscale
|
9
|
+
content: "#{$icon}"
|
10
|
+
|
11
|
+
=fa-icon($icon: '\f105', $size: 16px 12px, $options: null, $position1:null, $position2: null)
|
12
|
+
&:before
|
13
|
+
+fa($icon)
|
14
|
+
@if $position1
|
15
|
+
+position(absolute, if($position1, $position1, null), if($position2, $position2, null))
|
16
|
+
@if $size
|
17
|
+
+text-block($size, $options)
|
@@ -0,0 +1,90 @@
|
|
1
|
+
@function time($value)
|
2
|
+
@if unit_number($value) and unit($value) == s
|
3
|
+
@return true
|
4
|
+
@else
|
5
|
+
@return null
|
6
|
+
|
7
|
+
@function timing_function($value)
|
8
|
+
@if string($value)
|
9
|
+
@if $value == 'ease' or $value == 'linear' or $value == 'ease-in' or $value == 'ease-out' or $value == 'ease-in-out' or str-index($value, cubic-bezier)
|
10
|
+
@return true
|
11
|
+
@else
|
12
|
+
@return null
|
13
|
+
@else
|
14
|
+
@return null
|
15
|
+
|
16
|
+
@function delay($value)
|
17
|
+
@if list($value) and nth($value, 1) == delay
|
18
|
+
@return true
|
19
|
+
@else
|
20
|
+
@return null
|
21
|
+
|
22
|
+
//////////////////
|
23
|
+
// transition
|
24
|
+
//////////////////
|
25
|
+
|
26
|
+
@function transition_duration($value)
|
27
|
+
@return time($value)
|
28
|
+
|
29
|
+
@function transition_timing_function($value)
|
30
|
+
@return timing_function($value)
|
31
|
+
|
32
|
+
@function transition_delay($value)
|
33
|
+
@return delay($value)
|
34
|
+
|
35
|
+
@function transition-property($value)
|
36
|
+
@if string($value)
|
37
|
+
@if not transition_timing_function($value) or not transition_duration($value) or not transition_delay($value)
|
38
|
+
@return true
|
39
|
+
@else
|
40
|
+
@return null
|
41
|
+
@else if list($value)
|
42
|
+
@return true
|
43
|
+
@else
|
44
|
+
@return null
|
45
|
+
|
46
|
+
//////////////////
|
47
|
+
// animation
|
48
|
+
//////////////////
|
49
|
+
|
50
|
+
@function animation_duration($value)
|
51
|
+
@return time($value)
|
52
|
+
|
53
|
+
@function animation_timing_function($value)
|
54
|
+
@return timing_function($value)
|
55
|
+
|
56
|
+
@function animation_delay($value)
|
57
|
+
@return delay($value)
|
58
|
+
|
59
|
+
@function animation_iteration_count($value)
|
60
|
+
@if unitless_number($value) or (string($value) and $value == 'infinite')
|
61
|
+
@return true
|
62
|
+
@else
|
63
|
+
@return null
|
64
|
+
|
65
|
+
@function animation_direction($value)
|
66
|
+
@if string($value) and ($value == 'normal' or $value == 'alternate')
|
67
|
+
@return true
|
68
|
+
@else
|
69
|
+
@return null
|
70
|
+
|
71
|
+
@function animation_fill_mode($value)
|
72
|
+
@if string($value) and ($value == 'nonel' or $value == 'forwards' or $value == 'backwards' or $value == 'both')
|
73
|
+
@return true
|
74
|
+
@else
|
75
|
+
@return null
|
76
|
+
|
77
|
+
@function animation_play_state($value)
|
78
|
+
@if string($value) and ($value == 'running' or $value == 'paused')
|
79
|
+
@return true
|
80
|
+
@else
|
81
|
+
@return null
|
82
|
+
|
83
|
+
@function animation_name($value)
|
84
|
+
@if string($value)
|
85
|
+
@if animation_timing_function($value) or animation_duration($value) or animation_delay($value) or animation_iteration_count($value) or animation_direction($value) or animation_fill_mode($value) or animation_play_state($value)
|
86
|
+
@return null
|
87
|
+
@else
|
88
|
+
@return true
|
89
|
+
@else
|
90
|
+
@return null
|
@@ -5,51 +5,33 @@
|
|
5
5
|
@return null
|
6
6
|
|
7
7
|
@function background_position($value)
|
8
|
-
@if list($value)
|
9
|
-
@
|
10
|
-
@return true
|
11
|
-
@else if string(nth($value, 1)) and not str-index(nth($value, 1), '\/')
|
12
|
-
@return true
|
13
|
-
@else if number(nth($value, 1))
|
14
|
-
@return true
|
15
|
-
@else
|
16
|
-
@return null
|
8
|
+
@if list($value) and nth($value, 1) != size
|
9
|
+
@return true
|
17
10
|
@else
|
18
11
|
@return null
|
19
12
|
|
20
13
|
@function background_size($value)
|
21
|
-
@if $value
|
22
|
-
@
|
23
|
-
|
24
|
-
@if string(nth($value, 1)) and str-index(nth($value, 1), '\/')
|
25
|
-
@return ture
|
26
|
-
@else if string(nth($value, 1)) and str-index(nth($value, 1), '/')
|
27
|
-
@return ture
|
14
|
+
@if string($value)
|
15
|
+
@if $value == 'auto' or $value == 'contain' or $value == 'cover'
|
16
|
+
@return unquote('/') $value
|
28
17
|
@else
|
29
18
|
@return null
|
30
|
-
@else
|
31
|
-
@
|
32
|
-
|
33
|
-
@function background_size_value($value)
|
34
|
-
@if background_size($value)
|
35
|
-
@if list($value)
|
36
|
-
@if string(nth($value, 1)) and str-index(nth($value, 1), '\/')
|
37
|
-
@return unquote(string-replace(nth($value, 1), '\\/', '/') + ' ' + nth($value, 2))
|
38
|
-
@else
|
39
|
-
@return unquote('/' + $value)
|
19
|
+
@else if list($value)
|
20
|
+
@if nth($value, 1) == size
|
21
|
+
@return unquote('/') nth($value, 2) nth($value, 3)
|
40
22
|
@else
|
41
|
-
@return
|
23
|
+
@return null
|
42
24
|
@else
|
43
25
|
@return null
|
44
26
|
|
45
27
|
@function background_repeat($value)
|
46
|
-
@if $value == no-repeat or $value == repeat or $value == repeat-x or $value == repeat-y
|
28
|
+
@if $value == 'no-repeat' or $value == 'repeat' or $value == 'repeat-x' or $value == 'repeat-y'
|
47
29
|
@return true
|
48
30
|
@else
|
49
31
|
@return null
|
50
32
|
|
51
33
|
@function background_attachment($value)
|
52
|
-
@if $value == fixed or $value == scroll
|
34
|
+
@if $value == 'fixed' or $value == 'scroll'
|
53
35
|
@return true
|
54
36
|
@else
|
55
37
|
@return null
|
@@ -70,7 +52,10 @@
|
|
70
52
|
@return null
|
71
53
|
|
72
54
|
@function background_clip($value)
|
73
|
-
@if $value
|
74
|
-
@
|
55
|
+
@if string($value)
|
56
|
+
@if $value == 'border' or $value == 'padding' or $value == 'content' or $value == 'text'
|
57
|
+
@return true
|
58
|
+
@else
|
59
|
+
@return null
|
75
60
|
@else
|
76
61
|
@return null
|