daiblogs 0.1.0
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/README.md +3 -0
- data/_includes/footer-nav.html +40 -0
- data/_includes/footer.html +47 -0
- data/_includes/head.html +29 -0
- data/_includes/header.html +56 -0
- data/_includes/iehacks.html +18 -0
- data/_includes/svg-defs.html +194 -0
- data/_includes/webfonts.html +9 -0
- data/_layouts/blog.html +0 -0
- data/_layouts/default.html +14 -0
- data/_layouts/home.html +0 -0
- data/_layouts/page.html +0 -0
- data/_layouts/post.html +0 -0
- data/assets/_sass/_blog.scss +1 -0
- data/assets/_sass/_grid.scss +48 -0
- data/assets/_sass/_layout.scss +2 -0
- data/assets/_sass/_legacy.scss +2919 -0
- data/assets/_sass/_mixins.scss +75 -0
- data/assets/_sass/_typesetting.scss +0 -0
- data/assets/_sass/_variables.scss +70 -0
- data/assets/_sass/bourbon/_bourbon-deprecated-upcoming.scss +13 -0
- data/assets/_sass/bourbon/_bourbon.scss +59 -0
- data/assets/_sass/bourbon/addons/_button.scss +273 -0
- data/assets/_sass/bourbon/addons/_clearfix.scss +29 -0
- data/assets/_sass/bourbon/addons/_font-family.scss +5 -0
- data/assets/_sass/bourbon/addons/_hide-text.scss +5 -0
- data/assets/_sass/bourbon/addons/_html5-input-types.scss +56 -0
- data/assets/_sass/bourbon/addons/_position.scss +42 -0
- data/assets/_sass/bourbon/addons/_prefixer.scss +49 -0
- data/assets/_sass/bourbon/addons/_retina-image.scss +32 -0
- data/assets/_sass/bourbon/addons/_size.scss +44 -0
- data/assets/_sass/bourbon/addons/_timing-functions.scss +32 -0
- data/assets/_sass/bourbon/addons/_triangle.scss +45 -0
- data/assets/_sass/bourbon/css3/_animation.scss +52 -0
- data/assets/_sass/bourbon/css3/_appearance.scss +3 -0
- data/assets/_sass/bourbon/css3/_backface-visibility.scss +6 -0
- data/assets/_sass/bourbon/css3/_background-image.scss +48 -0
- data/assets/_sass/bourbon/css3/_background.scss +103 -0
- data/assets/_sass/bourbon/css3/_border-image.scss +55 -0
- data/assets/_sass/bourbon/css3/_border-radius.scss +22 -0
- data/assets/_sass/bourbon/css3/_box-sizing.scss +4 -0
- data/assets/_sass/bourbon/css3/_columns.scss +47 -0
- data/assets/_sass/bourbon/css3/_flex-box.scss +52 -0
- data/assets/_sass/bourbon/css3/_font-face.scss +23 -0
- data/assets/_sass/bourbon/css3/_hidpi-media-query.scss +10 -0
- data/assets/_sass/bourbon/css3/_image-rendering.scss +13 -0
- data/assets/_sass/bourbon/css3/_inline-block.scss +8 -0
- data/assets/_sass/bourbon/css3/_keyframes.scss +43 -0
- data/assets/_sass/bourbon/css3/_linear-gradient.scss +41 -0
- data/assets/_sass/bourbon/css3/_perspective.scss +8 -0
- data/assets/_sass/bourbon/css3/_placeholder.scss +29 -0
- data/assets/_sass/bourbon/css3/_radial-gradient.scss +44 -0
- data/assets/_sass/bourbon/css3/_transform.scss +15 -0
- data/assets/_sass/bourbon/css3/_transition.scss +34 -0
- data/assets/_sass/bourbon/css3/_user-select.scss +3 -0
- data/assets/_sass/bourbon/functions/_compact.scss +11 -0
- data/assets/_sass/bourbon/functions/_flex-grid.scss +39 -0
- data/assets/_sass/bourbon/functions/_grid-width.scss +13 -0
- data/assets/_sass/bourbon/functions/_linear-gradient.scss +13 -0
- data/assets/_sass/bourbon/functions/_modular-scale.scss +40 -0
- data/assets/_sass/bourbon/functions/_px-to-em.scss +8 -0
- data/assets/_sass/bourbon/functions/_radial-gradient.scss +23 -0
- data/assets/_sass/bourbon/functions/_tint-shade.scss +9 -0
- data/assets/_sass/bourbon/functions/_transition-property-name.scss +22 -0
- data/assets/_sass/bourbon/helpers/_deprecated-webkit-gradient.scss +39 -0
- data/assets/_sass/bourbon/helpers/_gradient-positions-parser.scss +13 -0
- data/assets/_sass/bourbon/helpers/_linear-positions-parser.scss +61 -0
- data/assets/_sass/bourbon/helpers/_radial-arg-parser.scss +69 -0
- data/assets/_sass/bourbon/helpers/_radial-positions-parser.scss +18 -0
- data/assets/_sass/bourbon/helpers/_render-gradients.scss +26 -0
- data/assets/_sass/bourbon/helpers/_shape-size-stripper.scss +10 -0
- data/assets/css/site.scss +10 -0
- data/assets/js/site.js +3 -0
- metadata +158 -0
@@ -0,0 +1,75 @@
|
|
1
|
+
.transition-basic {
|
2
|
+
transition: all 0.4s ease;
|
3
|
+
}
|
4
|
+
|
5
|
+
// media queries
|
6
|
+
$breakpoints: (
|
7
|
+
'small': 480px,
|
8
|
+
'medium': 768px,
|
9
|
+
'large': 992px,
|
10
|
+
'x-large': 1200px
|
11
|
+
);
|
12
|
+
|
13
|
+
@mixin respond-to($breakpoint, $min-max:min-width) {
|
14
|
+
@media ($min-max: map-get($breakpoints, $breakpoint)) {
|
15
|
+
@content;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
// Back Image
|
20
|
+
@mixin backImage($image, $opacity: 0) {
|
21
|
+
background-image: linear-gradient(rgba(0, 0, 0, $opacity), rgba(0, 0, 0, $opacity)), url($image);
|
22
|
+
background-repeat: no-repeat;
|
23
|
+
background-position: center center;
|
24
|
+
background-size: cover;
|
25
|
+
}
|
26
|
+
|
27
|
+
// Form Placeholder Color
|
28
|
+
@mixin placeholderColor($color) { // use within form class
|
29
|
+
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
|
30
|
+
color: $color;
|
31
|
+
}
|
32
|
+
::-moz-placeholder { /* Firefox 19+ */
|
33
|
+
color: $color;
|
34
|
+
}
|
35
|
+
:-ms-input-placeholder { /* IE 10+ */
|
36
|
+
color: $color;
|
37
|
+
}
|
38
|
+
:-moz-placeholder { /* Firefox 18- */
|
39
|
+
color: $color;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
// Button Color
|
44
|
+
@mixin buttonColor($bg-color, $text-color) {
|
45
|
+
background: $bg-color;
|
46
|
+
border-color: $bg-color;
|
47
|
+
color: $text-color;
|
48
|
+
&:hover,
|
49
|
+
&:active,
|
50
|
+
&:focus,
|
51
|
+
&:target {
|
52
|
+
background: darken($bg-color, 10%);
|
53
|
+
border-color: darken($bg-color, 10%);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
// Button w/ Icon
|
58
|
+
@mixin buttonAndIcon($bg-color, $color, $icon) {
|
59
|
+
max-width: 210px;
|
60
|
+
width: 100%;
|
61
|
+
text-align: left;
|
62
|
+
background: $bg-color url($icon) no-repeat 95% 50%; /* For more icons visit https://www.iconfinder.com/search/?q=arrow+down&price=free */
|
63
|
+
background-size: 25px 25px;
|
64
|
+
padding: 12px 15px;
|
65
|
+
color: $color;
|
66
|
+
&:hover,
|
67
|
+
&:active,
|
68
|
+
&:focus,
|
69
|
+
&:target {
|
70
|
+
color: $color;
|
71
|
+
background: darken($bg-color, 10%) url($icon) no-repeat 95% 50%; /* For more icons visit https://www.iconfinder.com/search/?q=arrow+down&price=free */
|
72
|
+
background-size: 25px 25px;
|
73
|
+
border-color: darken($bg-color, 10%);
|
74
|
+
}
|
75
|
+
}
|
File without changes
|
@@ -0,0 +1,70 @@
|
|
1
|
+
|
2
|
+
// 🎌 Variables 🎌
|
3
|
+
|
4
|
+
|
5
|
+
// 🎌 Weights 🎌
|
6
|
+
/*
|
7
|
+
thin: 100
|
8
|
+
light: 300
|
9
|
+
regular: 400
|
10
|
+
bold: 700
|
11
|
+
black: 900
|
12
|
+
|
13
|
+
*/
|
14
|
+
// Colors
|
15
|
+
$emphasis: #313437;
|
16
|
+
$nav_black: #1c242b;
|
17
|
+
$nav_gray: #f2f0ed;
|
18
|
+
$link_green: #74BC70;
|
19
|
+
$nav_links: #c8c6c2;
|
20
|
+
$nav_links-main: #aaa7a2;
|
21
|
+
$nav_links-main--current: #323940;
|
22
|
+
$slate: #303B40;
|
23
|
+
$nav_links-footer--blue: #8FC3EA;
|
24
|
+
$button-green: rgb(116, 188, 112);
|
25
|
+
$text-white: rgb(255, 255, 255);
|
26
|
+
$node-nav--inactive: #c8c6c2;
|
27
|
+
|
28
|
+
// Widths
|
29
|
+
$width-tiny: 240px; //4bits
|
30
|
+
$width-small: 480px; //6bits
|
31
|
+
$width-medium: 600px; //8bits
|
32
|
+
$width-wide: 800px; //10bits
|
33
|
+
$width-ultra-wide: 960px; //12bits
|
34
|
+
$width-extra-ultra-wide: 1400px;
|
35
|
+
|
36
|
+
// 🎌 MIXINS 🎌
|
37
|
+
|
38
|
+
// Responsive mixin for bubbled media-querries
|
39
|
+
@mixin responsive($width){
|
40
|
+
@if $width == tiny-screens{
|
41
|
+
@media screen and (min-width: $width-tiny){
|
42
|
+
@content;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
@else if $width == small-screens{
|
46
|
+
@media screen and (min-width: $width-small){
|
47
|
+
@content;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
@else if $width == medium-screens{
|
51
|
+
@media screen and (min-width: $width-medium){
|
52
|
+
@content;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
@else if $width == wide-screens{
|
56
|
+
@media screen and (min-width: $width-wide){
|
57
|
+
@content;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
@else if $width == ultra-wide-screens{
|
61
|
+
@media screen and (min-width: $width-ultra-wide){
|
62
|
+
@content;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
@else if $width == extra-ultra-wide-screens{
|
66
|
+
@media screen and (min-width: $width-extra-ultra-wide){
|
67
|
+
@content;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
//************************************************************************//
|
2
|
+
// These mixins/functions are deprecated
|
3
|
+
// They will be removed in the next MAJOR version release
|
4
|
+
//************************************************************************//
|
5
|
+
@mixin box-shadow ($shadows...) {
|
6
|
+
@include prefixer(box-shadow, $shadows, spec);
|
7
|
+
@warn "box-shadow is deprecated and will be removed in the next major version release";
|
8
|
+
}
|
9
|
+
|
10
|
+
@mixin background-size ($lengths...) {
|
11
|
+
@include prefixer(background-size, $lengths, spec);
|
12
|
+
@warn "background-size is deprecated and will be removed in the next major version release";
|
13
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
// Custom Helpers
|
2
|
+
@import "helpers/deprecated-webkit-gradient";
|
3
|
+
@import "helpers/gradient-positions-parser";
|
4
|
+
@import "helpers/linear-positions-parser";
|
5
|
+
@import "helpers/radial-arg-parser";
|
6
|
+
@import "helpers/radial-positions-parser";
|
7
|
+
@import "helpers/render-gradients";
|
8
|
+
@import "helpers/shape-size-stripper";
|
9
|
+
|
10
|
+
// Custom Functions
|
11
|
+
@import "functions/compact";
|
12
|
+
@import "functions/flex-grid";
|
13
|
+
@import "functions/grid-width";
|
14
|
+
@import "functions/linear-gradient";
|
15
|
+
@import "functions/modular-scale";
|
16
|
+
@import "functions/px-to-em";
|
17
|
+
@import "functions/radial-gradient";
|
18
|
+
@import "functions/tint-shade";
|
19
|
+
@import "functions/transition-property-name";
|
20
|
+
|
21
|
+
// CSS3 Mixins
|
22
|
+
@import "css3/animation";
|
23
|
+
@import "css3/appearance";
|
24
|
+
@import "css3/backface-visibility";
|
25
|
+
@import "css3/background";
|
26
|
+
@import "css3/background-image";
|
27
|
+
@import "css3/border-image";
|
28
|
+
@import "css3/border-radius";
|
29
|
+
@import "css3/box-sizing";
|
30
|
+
@import "css3/columns";
|
31
|
+
@import "css3/flex-box";
|
32
|
+
@import "css3/font-face";
|
33
|
+
@import "css3/hidpi-media-query";
|
34
|
+
@import "css3/image-rendering";
|
35
|
+
@import "css3/inline-block";
|
36
|
+
@import "css3/keyframes";
|
37
|
+
@import "css3/linear-gradient";
|
38
|
+
@import "css3/perspective";
|
39
|
+
@import "css3/radial-gradient";
|
40
|
+
@import "css3/transform";
|
41
|
+
@import "css3/transition";
|
42
|
+
@import "css3/user-select";
|
43
|
+
@import "css3/placeholder";
|
44
|
+
|
45
|
+
// Addons & other mixins
|
46
|
+
@import "addons/button";
|
47
|
+
@import "addons/clearfix";
|
48
|
+
@import "addons/font-family";
|
49
|
+
@import "addons/hide-text";
|
50
|
+
@import "addons/html5-input-types";
|
51
|
+
@import "addons/position";
|
52
|
+
@import "addons/prefixer";
|
53
|
+
@import "addons/retina-image";
|
54
|
+
@import "addons/size";
|
55
|
+
@import "addons/timing-functions";
|
56
|
+
@import "addons/triangle";
|
57
|
+
|
58
|
+
// Soon to be deprecated Mixins
|
59
|
+
@import "bourbon-deprecated-upcoming";
|
@@ -0,0 +1,273 @@
|
|
1
|
+
@mixin button ($style: simple, $base-color: #4294f0) {
|
2
|
+
|
3
|
+
@if type-of($style) == color {
|
4
|
+
$base-color: $style;
|
5
|
+
$style: simple;
|
6
|
+
}
|
7
|
+
|
8
|
+
// Grayscale button
|
9
|
+
@if $base-color == grayscale($base-color) {
|
10
|
+
@if $style == simple {
|
11
|
+
@include simple($base-color, $grayscale: true);
|
12
|
+
}
|
13
|
+
|
14
|
+
@else if $style == shiny {
|
15
|
+
@include shiny($base-color, $grayscale: true);
|
16
|
+
}
|
17
|
+
|
18
|
+
@else if $style == pill {
|
19
|
+
@include pill($base-color, $grayscale: true);
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
// Colored button
|
24
|
+
@else {
|
25
|
+
@if $style == simple {
|
26
|
+
@include simple($base-color);
|
27
|
+
}
|
28
|
+
|
29
|
+
@else if $style == shiny {
|
30
|
+
@include shiny($base-color);
|
31
|
+
}
|
32
|
+
|
33
|
+
@else if $style == pill {
|
34
|
+
@include pill($base-color);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
&:disabled {
|
39
|
+
opacity: 0.5;
|
40
|
+
cursor: not-allowed;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
|
45
|
+
// Simple Button
|
46
|
+
//************************************************************************//
|
47
|
+
@mixin simple($base-color, $grayscale: false) {
|
48
|
+
$color: hsl(0, 0, 100%);
|
49
|
+
$border: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
|
50
|
+
$inset-shadow: adjust-color($base-color, $saturation: -8%, $lightness: 15%);
|
51
|
+
$stop-gradient: adjust-color($base-color, $saturation: 9%, $lightness: -11%);
|
52
|
+
$text-shadow: adjust-color($base-color, $saturation: 15%, $lightness: -18%);
|
53
|
+
|
54
|
+
@if lightness($base-color) > 70% {
|
55
|
+
$color: hsl(0, 0, 20%);
|
56
|
+
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
|
57
|
+
}
|
58
|
+
|
59
|
+
@if $grayscale == true {
|
60
|
+
$border: grayscale($border);
|
61
|
+
$inset-shadow: grayscale($inset-shadow);
|
62
|
+
$stop-gradient: grayscale($stop-gradient);
|
63
|
+
$text-shadow: grayscale($text-shadow);
|
64
|
+
}
|
65
|
+
|
66
|
+
border: 1px solid $border;
|
67
|
+
border-radius: 3px;
|
68
|
+
box-shadow: inset 0 1px 0 0 $inset-shadow;
|
69
|
+
color: $color;
|
70
|
+
display: inline-block;
|
71
|
+
font-size: 11px;
|
72
|
+
font-weight: bold;
|
73
|
+
@include linear-gradient ($base-color, $stop-gradient);
|
74
|
+
padding: 7px 18px;
|
75
|
+
text-decoration: none;
|
76
|
+
text-shadow: 0 1px 0 $text-shadow;
|
77
|
+
background-clip: padding-box;
|
78
|
+
|
79
|
+
&:hover:not(:disabled) {
|
80
|
+
$base-color-hover: adjust-color($base-color, $saturation: -4%, $lightness: -5%);
|
81
|
+
$inset-shadow-hover: adjust-color($base-color, $saturation: -7%, $lightness: 5%);
|
82
|
+
$stop-gradient-hover: adjust-color($base-color, $saturation: 8%, $lightness: -14%);
|
83
|
+
|
84
|
+
@if $grayscale == true {
|
85
|
+
$base-color-hover: grayscale($base-color-hover);
|
86
|
+
$inset-shadow-hover: grayscale($inset-shadow-hover);
|
87
|
+
$stop-gradient-hover: grayscale($stop-gradient-hover);
|
88
|
+
}
|
89
|
+
|
90
|
+
box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
|
91
|
+
cursor: pointer;
|
92
|
+
@include linear-gradient ($base-color-hover, $stop-gradient-hover);
|
93
|
+
}
|
94
|
+
|
95
|
+
&:active:not(:disabled) {
|
96
|
+
$border-active: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
|
97
|
+
$inset-shadow-active: adjust-color($base-color, $saturation: 7%, $lightness: -17%);
|
98
|
+
|
99
|
+
@if $grayscale == true {
|
100
|
+
$border-active: grayscale($border-active);
|
101
|
+
$inset-shadow-active: grayscale($inset-shadow-active);
|
102
|
+
}
|
103
|
+
|
104
|
+
border: 1px solid $border-active;
|
105
|
+
box-shadow: inset 0 0 8px 4px $inset-shadow-active, inset 0 0 8px 4px $inset-shadow-active, 0 1px 1px 0 #eee;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
// Shiny Button
|
111
|
+
//************************************************************************//
|
112
|
+
@mixin shiny($base-color, $grayscale: false) {
|
113
|
+
$color: hsl(0, 0, 100%);
|
114
|
+
$border: adjust-color($base-color, $red: -117, $green: -111, $blue: -81);
|
115
|
+
$border-bottom: adjust-color($base-color, $red: -126, $green: -127, $blue: -122);
|
116
|
+
$fourth-stop: adjust-color($base-color, $red: -79, $green: -70, $blue: -46);
|
117
|
+
$inset-shadow: adjust-color($base-color, $red: 37, $green: 29, $blue: 12);
|
118
|
+
$second-stop: adjust-color($base-color, $red: -56, $green: -50, $blue: -33);
|
119
|
+
$text-shadow: adjust-color($base-color, $red: -140, $green: -141, $blue: -114);
|
120
|
+
$third-stop: adjust-color($base-color, $red: -86, $green: -75, $blue: -48);
|
121
|
+
|
122
|
+
@if lightness($base-color) > 70% {
|
123
|
+
$color: hsl(0, 0, 20%);
|
124
|
+
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
|
125
|
+
}
|
126
|
+
|
127
|
+
@if $grayscale == true {
|
128
|
+
$border: grayscale($border);
|
129
|
+
$border-bottom: grayscale($border-bottom);
|
130
|
+
$fourth-stop: grayscale($fourth-stop);
|
131
|
+
$inset-shadow: grayscale($inset-shadow);
|
132
|
+
$second-stop: grayscale($second-stop);
|
133
|
+
$text-shadow: grayscale($text-shadow);
|
134
|
+
$third-stop: grayscale($third-stop);
|
135
|
+
}
|
136
|
+
|
137
|
+
border: 1px solid $border;
|
138
|
+
border-bottom: 1px solid $border-bottom;
|
139
|
+
border-radius: 5px;
|
140
|
+
box-shadow: inset 0 1px 0 0 $inset-shadow;
|
141
|
+
color: $color;
|
142
|
+
display: inline-block;
|
143
|
+
font-size: 14px;
|
144
|
+
font-weight: bold;
|
145
|
+
@include linear-gradient(top, $base-color 0%, $second-stop 50%, $third-stop 50%, $fourth-stop 100%);
|
146
|
+
padding: 8px 20px;
|
147
|
+
text-align: center;
|
148
|
+
text-decoration: none;
|
149
|
+
text-shadow: 0 -1px 1px $text-shadow;
|
150
|
+
|
151
|
+
&:hover:not(:disabled) {
|
152
|
+
$first-stop-hover: adjust-color($base-color, $red: -13, $green: -15, $blue: -18);
|
153
|
+
$second-stop-hover: adjust-color($base-color, $red: -66, $green: -62, $blue: -51);
|
154
|
+
$third-stop-hover: adjust-color($base-color, $red: -93, $green: -85, $blue: -66);
|
155
|
+
$fourth-stop-hover: adjust-color($base-color, $red: -86, $green: -80, $blue: -63);
|
156
|
+
|
157
|
+
@if $grayscale == true {
|
158
|
+
$first-stop-hover: grayscale($first-stop-hover);
|
159
|
+
$second-stop-hover: grayscale($second-stop-hover);
|
160
|
+
$third-stop-hover: grayscale($third-stop-hover);
|
161
|
+
$fourth-stop-hover: grayscale($fourth-stop-hover);
|
162
|
+
}
|
163
|
+
|
164
|
+
cursor: pointer;
|
165
|
+
@include linear-gradient(top, $first-stop-hover 0%,
|
166
|
+
$second-stop-hover 50%,
|
167
|
+
$third-stop-hover 50%,
|
168
|
+
$fourth-stop-hover 100%);
|
169
|
+
}
|
170
|
+
|
171
|
+
&:active:not(:disabled) {
|
172
|
+
$inset-shadow-active: adjust-color($base-color, $red: -111, $green: -116, $blue: -122);
|
173
|
+
|
174
|
+
@if $grayscale == true {
|
175
|
+
$inset-shadow-active: grayscale($inset-shadow-active);
|
176
|
+
}
|
177
|
+
|
178
|
+
box-shadow: inset 0 0 20px 0 $inset-shadow-active, 0 1px 0 #fff;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
|
182
|
+
|
183
|
+
// Pill Button
|
184
|
+
//************************************************************************//
|
185
|
+
@mixin pill($base-color, $grayscale: false) {
|
186
|
+
$color: hsl(0, 0, 100%);
|
187
|
+
$border-bottom: adjust-color($base-color, $hue: 8, $saturation: -11%, $lightness: -26%);
|
188
|
+
$border-sides: adjust-color($base-color, $hue: 4, $saturation: -21%, $lightness: -21%);
|
189
|
+
$border-top: adjust-color($base-color, $hue: -1, $saturation: -30%, $lightness: -15%);
|
190
|
+
$inset-shadow: adjust-color($base-color, $hue: -1, $saturation: -1%, $lightness: 7%);
|
191
|
+
$stop-gradient: adjust-color($base-color, $hue: 8, $saturation: 14%, $lightness: -10%);
|
192
|
+
$text-shadow: adjust-color($base-color, $hue: 5, $saturation: -19%, $lightness: -15%);
|
193
|
+
|
194
|
+
@if lightness($base-color) > 70% {
|
195
|
+
$color: hsl(0, 0, 20%);
|
196
|
+
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
|
197
|
+
}
|
198
|
+
|
199
|
+
@if $grayscale == true {
|
200
|
+
$border-bottom: grayscale($border-bottom);
|
201
|
+
$border-sides: grayscale($border-sides);
|
202
|
+
$border-top: grayscale($border-top);
|
203
|
+
$inset-shadow: grayscale($inset-shadow);
|
204
|
+
$stop-gradient: grayscale($stop-gradient);
|
205
|
+
$text-shadow: grayscale($text-shadow);
|
206
|
+
}
|
207
|
+
|
208
|
+
border: 1px solid $border-top;
|
209
|
+
border-color: $border-top $border-sides $border-bottom;
|
210
|
+
border-radius: 16px;
|
211
|
+
box-shadow: inset 0 1px 0 0 $inset-shadow, 0 1px 2px 0 #b3b3b3;
|
212
|
+
color: $color;
|
213
|
+
display: inline-block;
|
214
|
+
font-size: 11px;
|
215
|
+
font-weight: normal;
|
216
|
+
line-height: 1;
|
217
|
+
@include linear-gradient ($base-color, $stop-gradient);
|
218
|
+
padding: 5px 16px;
|
219
|
+
text-align: center;
|
220
|
+
text-decoration: none;
|
221
|
+
text-shadow: 0 -1px 1px $text-shadow;
|
222
|
+
background-clip: padding-box;
|
223
|
+
|
224
|
+
&:hover:not(:disabled) {
|
225
|
+
$base-color-hover: adjust-color($base-color, $lightness: -4.5%);
|
226
|
+
$border-bottom: adjust-color($base-color, $hue: 8, $saturation: 13.5%, $lightness: -32%);
|
227
|
+
$border-sides: adjust-color($base-color, $hue: 4, $saturation: -2%, $lightness: -27%);
|
228
|
+
$border-top: adjust-color($base-color, $hue: -1, $saturation: -17%, $lightness: -21%);
|
229
|
+
$inset-shadow-hover: adjust-color($base-color, $saturation: -1%, $lightness: 3%);
|
230
|
+
$stop-gradient-hover: adjust-color($base-color, $hue: 8, $saturation: -4%, $lightness: -15.5%);
|
231
|
+
$text-shadow-hover: adjust-color($base-color, $hue: 5, $saturation: -5%, $lightness: -22%);
|
232
|
+
|
233
|
+
@if $grayscale == true {
|
234
|
+
$base-color-hover: grayscale($base-color-hover);
|
235
|
+
$border-bottom: grayscale($border-bottom);
|
236
|
+
$border-sides: grayscale($border-sides);
|
237
|
+
$border-top: grayscale($border-top);
|
238
|
+
$inset-shadow-hover: grayscale($inset-shadow-hover);
|
239
|
+
$stop-gradient-hover: grayscale($stop-gradient-hover);
|
240
|
+
$text-shadow-hover: grayscale($text-shadow-hover);
|
241
|
+
}
|
242
|
+
|
243
|
+
border: 1px solid $border-top;
|
244
|
+
border-color: $border-top $border-sides $border-bottom;
|
245
|
+
box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
|
246
|
+
cursor: pointer;
|
247
|
+
@include linear-gradient ($base-color-hover, $stop-gradient-hover);
|
248
|
+
text-shadow: 0 -1px 1px $text-shadow-hover;
|
249
|
+
background-clip: padding-box;
|
250
|
+
}
|
251
|
+
|
252
|
+
&:active:not(:disabled) {
|
253
|
+
$active-color: adjust-color($base-color, $hue: 4, $saturation: -12%, $lightness: -10%);
|
254
|
+
$border-active: adjust-color($base-color, $hue: 6, $saturation: -2.5%, $lightness: -30%);
|
255
|
+
$border-bottom-active: adjust-color($base-color, $hue: 11, $saturation: 6%, $lightness: -31%);
|
256
|
+
$inset-shadow-active: adjust-color($base-color, $hue: 9, $saturation: 2%, $lightness: -21.5%);
|
257
|
+
$text-shadow-active: adjust-color($base-color, $hue: 5, $saturation: -12%, $lightness: -21.5%);
|
258
|
+
|
259
|
+
@if $grayscale == true {
|
260
|
+
$active-color: grayscale($active-color);
|
261
|
+
$border-active: grayscale($border-active);
|
262
|
+
$border-bottom-active: grayscale($border-bottom-active);
|
263
|
+
$inset-shadow-active: grayscale($inset-shadow-active);
|
264
|
+
$text-shadow-active: grayscale($text-shadow-active);
|
265
|
+
}
|
266
|
+
|
267
|
+
background: $active-color;
|
268
|
+
border: 1px solid $border-active;
|
269
|
+
border-bottom: 1px solid $border-bottom-active;
|
270
|
+
box-shadow: inset 0 0 6px 3px $inset-shadow-active, 0 1px 0 0 #fff;
|
271
|
+
text-shadow: 0 -1px 1px $text-shadow-active;
|
272
|
+
}
|
273
|
+
}
|