-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/sveltejs/svelte-devtools …
…into highlight
- Loading branch information
Showing
50 changed files
with
1,678 additions
and
1,672 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,99 @@ | ||
:root { | ||
--background: rgb(255, 255, 255); | ||
--color: rgb(74, 74, 79); | ||
|
||
--t-duration: 240ms; | ||
} | ||
|
||
html { | ||
height: 100%; | ||
font-size: 12px; | ||
} | ||
|
||
body { | ||
display: flex; | ||
margin: 0; | ||
height: 100%; | ||
color: rgb(74, 74, 79); | ||
background: var(--background); | ||
color: var(--color); | ||
font-family: monospace; | ||
} | ||
|
||
body.dark { | ||
background-color: rgb(36, 36, 36); | ||
color: rgb(177, 177, 179); | ||
--color: rgb(177, 177, 179); | ||
--background: rgb(36, 36, 36); | ||
scrollbar-color: rgb(115, 115, 115) rgb(60, 60, 61); | ||
} | ||
|
||
/* dark mode scrollbar */ | ||
body.dark ::-webkit-scrollbar { | ||
width: 14px; | ||
height: 14px; | ||
width: 0.875rem; | ||
height: 0.875rem; | ||
background-color: transparent; | ||
box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.5); | ||
} | ||
|
||
body.dark ::-webkit-scrollbar-thumb { | ||
background-color: rgb(51, 51, 51); | ||
box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.5); | ||
border: 1px solid rgba(255, 255, 255, 0.2); | ||
} | ||
|
||
/* basic resets */ | ||
ul { | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
} | ||
|
||
/* expandable arrows */ | ||
.expandable::before { | ||
content: ''; | ||
position: absolute; | ||
top: 0; | ||
left: calc(var(--left, 3px) - 3px); | ||
|
||
border-top: 0.375rem solid rgba(135, 135, 137, 0.9); | ||
border-right: 0.25rem solid transparent; | ||
border-left: 0.25rem solid transparent; | ||
transition-duration: var(--t-duration); | ||
transform: translate3d(0%, calc(50% + 0.25rem + var(--y-pad, 0px)), 0) rotate(-90deg); | ||
/* transform: translate3d(-150%, calc(50% + 0.25rem + var(--y-pad, 0px)), 0) rotate(-90deg); */ | ||
} | ||
.expandable.expanded::before { | ||
transform: translate3d(0%, calc(50% + 0.25rem + var(--y-pad, 0px)), 0) rotate(0deg); | ||
/* transform: translate3d(-150%, calc(50% + 0.25rem + var(--y-pad, 0px)), 0) rotate(0deg); */ | ||
} | ||
|
||
/* tooltip pseudo-elements */ | ||
[data-tooltip]:hover::after, | ||
[data-tooltip]:hover::before { | ||
opacity: 1; | ||
pointer-events: auto; | ||
} | ||
[data-tooltip]::before { | ||
content: ''; | ||
opacity: 0; | ||
pointer-events: none; | ||
|
||
[data-tooltip]::after { | ||
position: absolute; | ||
bottom: -0.167rem /* -2px */; | ||
left: 0; | ||
z-index: 1; | ||
display: block; | ||
padding: 0.5rem /* 6px */ 1.333rem /* 16px */; | ||
border-radius: 0.417rem /* 5px */; | ||
background-color: rgb(48, 64, 81); | ||
color: white; | ||
bottom: -0.2rem; | ||
left: 2.5rem; | ||
border-right: 0.5rem solid transparent; | ||
border-bottom: 0.5rem solid rgb(48, 64, 81); | ||
border-left: 0.5rem solid transparent; | ||
transition: opacity 0.2s; | ||
} | ||
[data-tooltip]::after { | ||
content: attr(data-tooltip); | ||
white-space: pre; | ||
opacity: 0; | ||
transition: opacity 0.2s; | ||
transform: translateY(100%); | ||
pointer-events: none; | ||
} | ||
|
||
[data-tooltip]::before { | ||
z-index: 1; | ||
position: absolute; | ||
bottom: -0.167rem /* -2px */; | ||
left: 2.5rem /* 30px */; | ||
display: block; | ||
width: 0; | ||
height: 0; | ||
border-right: 0.417rem /* 5px */ solid transparent; | ||
border-bottom: 0.417rem /* 5px */ solid rgb(48, 64, 81); | ||
border-left: 0.417rem /* 5px */ solid transparent; | ||
content: ''; | ||
opacity: 0; | ||
bottom: 0; | ||
left: 0; | ||
|
||
display: flex; | ||
padding: 0.25rem 0.375rem; | ||
border-radius: 0.25rem; | ||
transition: opacity 0.2s; | ||
pointer-events: none; | ||
transform: translateY(100%); | ||
|
||
background-color: rgb(48, 64, 81); | ||
color: white; | ||
} |
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
Oops, something went wrong.