Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
448 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# @figma-export/types | ||
|
||
> Types for [@figma-export](https://github.com/marcomontalbano/figma-export). | ||
## Install | ||
|
||
Using npm: | ||
|
||
```sh | ||
npm install --save-dev @figma-export/types | ||
``` | ||
|
||
or using yarn: | ||
|
||
```sh | ||
yarn add @figma-export/types --dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
// just using variables from the exported Figma Styles | ||
|
||
.color-1 { background: $color-1 } | ||
.color-1-lighter { background: $color-1-lighter } | ||
.color-2 { background: $color-2 } | ||
.color-3 { background: $color-3 } | ||
.color-4 { background: $color-4 } | ||
.color-alpha-50 { background: $color-alpha-50 } | ||
.color-linear-gradient { background: $color-linear-gradient } | ||
.color-linear-gradient-complex { background: $color-linear-gradient-complex } | ||
.color-linear-gradient-alpha { background: $color-linear-gradient-alpha } | ||
.color-multi-gradient { background: $color-multi-gradient } | ||
.inner-shadow { box-shadow: $inner-shadow } | ||
.inner-shadow-bottom { box-shadow: $inner-shadow-bottom } | ||
.drop-shadow { box-shadow: $drop-shadow } | ||
.layer-blur { filter: $layer-blur; background: $color-1 } | ||
.multi-shadows { box-shadow: $multi-shadows } | ||
.mixed-effects { box-shadow: $mixed-effects } | ||
|
||
.h1 { | ||
@each $name, $value in $h1 { | ||
#{$name}: $value; | ||
} | ||
} | ||
|
||
.h2 { | ||
@each $name, $value in $h2 { | ||
#{$name}: $value; | ||
} | ||
} | ||
|
||
.regular-text { | ||
@each $name, $value in $regular-text { | ||
#{$name}: $value; | ||
} | ||
} | ||
|
||
.deleted-text { | ||
@each $name, $value in $deleted-text { | ||
#{$name}: $value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@mixin for-desktop-up { | ||
@media (min-width: 1024px) { | ||
@content; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[data-tooltip] { | ||
@include for-desktop-up { | ||
position: relative; | ||
} | ||
} | ||
|
||
[data-tooltip]::before { | ||
content: attr(data-tooltip); | ||
position: absolute; | ||
font-size: 0.9em; | ||
padding: 1px 5px; | ||
color: white; | ||
background: rgba(0, 0, 0, 0.75); | ||
border-radius: 4px; | ||
transition: opacity 0.1s ease-out; | ||
z-index: 99; | ||
text-align: left; | ||
|
||
opacity: 0; | ||
|
||
white-space: nowrap; | ||
pointer-events: none; | ||
|
||
top: 100%; | ||
left: 50%; | ||
margin-top: 10px; | ||
transform: translate(-50%, 0px); | ||
} | ||
|
||
[data-tooltip]:hover::before { | ||
opacity: 1; | ||
} |
Oops, something went wrong.