@iris.interactive/handcook 2.9.20 → 2.9.21

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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Welcome to HandCook 👨‍🍳
2
- ![Version](https://img.shields.io/badge/version-2.9.20-blue.svg?cacheSeconds=2592000)
2
+ ![Version](https://img.shields.io/badge/version-2.9.21-blue.svg?cacheSeconds=2592000)
3
3
  ![Prerequisite](https://img.shields.io/badge/node-%3E%3D%2012.14.0-blue.svg)
4
4
  [![License: UNLICENSED](https://img.shields.io/badge/License-UNLICENSED-yellow.svg)](#)
5
5
  [![Twitter: captain\_iris](https://img.shields.io/twitter/follow/captain\_iris.svg?style=social)](https://twitter.com/captain\_iris)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iris.interactive/handcook",
3
- "version": "2.9.20",
3
+ "version": "2.9.21",
4
4
  "description": "The web cooking by IRIS Interactive",
5
5
  "main": "./public/scripts/index.js",
6
6
  "scripts": {
@@ -131,3 +131,67 @@
131
131
  clip: rect(0, 0, 0, 0);
132
132
  border: 0;
133
133
  }
134
+
135
+ /* Button
136
+ /* ============================================= */
137
+ @mixin button {
138
+ text-decoration: none;
139
+ box-shadow: none;
140
+ display: inline-flex;
141
+ align-items: center;
142
+ line-height: 1.4;
143
+ cursor: pointer;
144
+ border: none;
145
+ font-weight: $button-font-weight;
146
+ font-family: $button-font-family;
147
+ text-transform: $button-text-transform;
148
+ letter-spacing: $button-letter-spacing;
149
+ padding: $button-padding-y $button-padding-x;
150
+ border-radius: $button-border-radius;
151
+ font-size: $button-font-size--rem;
152
+ color: $button-color;
153
+ background-color: $button-background-color;
154
+ background-image: $button-background-image;
155
+ background-size: $button-gradient-background-image-size;
156
+ border: $button-border;
157
+ word-break: normal;
158
+ @include transition;
159
+
160
+ @include breakpoint(small) {
161
+ padding: $button-padding-y-small $button-padding-x-small;
162
+ font-size: $button-font-size-small--rem;
163
+ }
164
+
165
+ &:before,
166
+ &.fi:before,
167
+ .fi:before {
168
+ color: $button-color;
169
+ @include transition;
170
+ }
171
+
172
+ &:visited,
173
+ &:focus,
174
+ &:focus-within {
175
+ color: $button-color;
176
+ background-color: $button-background-color;
177
+ background-image: $button-background-image;
178
+ background-size: $button-gradient-background-image-size;
179
+ border: $button-border;
180
+ }
181
+
182
+ &--small {
183
+ padding: $button-padding-y-small $button-padding-x-small;
184
+ font-size: $button-font-size-small--rem;
185
+ }
186
+
187
+ @include hover {
188
+ color: $button-color-hover;
189
+ background-color: $button-background-color-hover;
190
+ border: $button-border-hover;
191
+ background-position: bottom right, top right;
192
+
193
+ &:before {
194
+ color: $button-color-hover;
195
+ }
196
+ }
197
+ }