-
Notifications
You must be signed in to change notification settings - Fork 4
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 #5 from last-rev-llc/aharris/style-updates
updated core styles for hover, blur, and background color additions s…
- Loading branch information
Showing
14 changed files
with
515 additions
and
56 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,22 +1,61 @@ | ||
.csk-element { | ||
outline: 1px dashed #00a7f7; | ||
|
||
|
||
[data-init-csk] [data-csk-entry-id] { | ||
cursor: pointer; | ||
position: relative; | ||
transform: scale(1); | ||
} | ||
.csk-element:hover { | ||
outline: 1px solid #00a7f7; | ||
box-shadow: 0 0 0 4px rgba(0, 167, 247, 0.3); | ||
[data-init-csk] [data-csk-entry-id]:hover { | ||
z-index: 1031; | ||
} | ||
|
||
.csk-element:hover:before { | ||
[data-init-csk] [data-csk-entry-id]:hover::before { | ||
content: 'EDIT'; | ||
position: absolute; | ||
padding: 2px 5px; | ||
background-color: #00a4fa; | ||
border-radius: 2px 2px 0 0; | ||
background-color: #00a7f7; | ||
border-radius: 0.25rem 0.25rem 0 0; | ||
color: #FFF; | ||
font-size: 9px; | ||
font-size: 0.75rem; | ||
font-weight: bold; | ||
letter-spacing: 1px; | ||
text-transform: uppercase; | ||
margin-top: -16px; | ||
top: -1.75rem; | ||
left: -2px; | ||
padding: 0.375rem 0.5rem 0.25rem 0.5rem; | ||
} | ||
|
||
[data-init-csk] [data-csk-entry-id]::after { | ||
content: ""; | ||
position: absolute; | ||
outline: 0.125rem dashed #00a7f7; | ||
background-color: var(--bgColor); | ||
width: 100%; | ||
height: 100%; | ||
left: 0; | ||
top: 0; | ||
z-index: -1; | ||
} | ||
|
||
[data-init-csk] [data-csk-entry-id]:hover::after { | ||
outline: 0.125rem solid #00a7f7; | ||
} | ||
|
||
[data-init-csk] #csk-overlay { | ||
transition: background-color 0.25s, backdrop-filter 0.25s; | ||
transition-delay: 0.25s; | ||
height: 100vh; | ||
width: 100vw; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
background-color: rgba(0, 0, 0, 0); | ||
backdrop-filter: blur(0); | ||
z-index: -1; | ||
} | ||
|
||
[data-init-csk] #csk-overlay.show { | ||
background-color: rgba(0, 0, 0, 0.1); | ||
transition-delay: 0s; | ||
backdrop-filter: blur(2px); | ||
z-index: 1; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,23 @@ | ||
/* global chrome */ | ||
// Called when the user clicks on the browser action | ||
|
||
const toggleActive = () => { | ||
chrome.storage.sync.get({ | ||
sideKickEnabled: false, | ||
}, (items) => { | ||
const curEnabled = !items.sideKickEnabled; | ||
chrome.storage.sync.set({ sideKickEnabled: curEnabled }); | ||
|
||
chrome.tabs.query({ active: true, currentWindow: true }, | ||
(tabs) => { | ||
const activeTab = tabs[0]; | ||
chrome.tabs.sendMessage(activeTab.id, | ||
{ message: curEnabled ? 'enable' : 'disable' }); | ||
}); | ||
}); | ||
}; | ||
|
||
|
||
chrome.browserAction.onClicked.addListener((tab) => { | ||
toggleActive(); | ||
}); |
Oops, something went wrong.