forked from scratchfoundation/scratch-gui
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #349 from kiharu3112/feat/ruby-download-button
feat: add ruby code download button
- Loading branch information
Showing
4 changed files
with
242 additions
and
32 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
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
Loading
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
@import "../../css/colors.css"; | ||
@import "../../css/units.css"; | ||
@import "../../css/z-index.css"; | ||
|
||
.button { | ||
z-index: $z-index-add-button; | ||
width: 2.75rem; | ||
height: 2.75rem; | ||
border: none; | ||
border-radius: 100%; | ||
background-color: $looks-secondary; | ||
box-shadow: 0 0 0 4px $looks-transparent; | ||
transition: transform, box-shadow 0.5s; | ||
} | ||
.wrapper { | ||
position: absolute; | ||
width: 2.75rem; | ||
height: 2.75rem; | ||
bottom: 1rem; | ||
right: 1rem; | ||
border-radius: 100%; | ||
} | ||
.button:hover { | ||
transform: scale(1.1); | ||
border-radius: 100%; | ||
box-shadow: 0 0 0 6px $looks-transparent; | ||
background-color: $extensions-primary; | ||
} | ||
|
||
.img { | ||
width: 2rem; | ||
} | ||
|
||
.tooltip { | ||
background-color: $extensions-primary !important; | ||
opacity: 1 !important; | ||
border: 1px solid hsla(0, 0%, 0%, .1) !important; | ||
border-radius: $form-radius !important; | ||
box-shadow: 0 0 .5rem hsla(0, 0%, 0%, .25) !important; | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important; | ||
z-index: $z-index-tooltip !important; | ||
} | ||
|
||
.tooltip:after { | ||
background-color: $extensions-primary; | ||
} | ||
|
||
$arrow-size: 0.5rem; | ||
$arrow-inset: -0.25rem; | ||
$arrow-rounding: 0.125rem; | ||
|
||
.tooltip:after { | ||
content: ""; | ||
border-top: 1px solid hsla(0, 0%, 0%, .1) !important; | ||
border-left: 0 !important; | ||
border-bottom: 0 !important; | ||
border-right: 1px solid hsla(0, 0%, 0%, .1) !important; | ||
border-radius: $arrow-rounding; | ||
height: $arrow-size !important; | ||
width: $arrow-size !important; | ||
} | ||
|
||
.tooltip:global(.place-left):after { | ||
margin-top: $arrow-inset !important; | ||
right: $arrow-inset !important; | ||
transform: rotate(45deg) !important; | ||
} |