Skip to content

Commit

Permalink
Update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitahl committed Aug 15, 2024
1 parent 95eca96 commit 7a036b8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
11 changes: 8 additions & 3 deletions css/library.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ h3 {
}

.list.channels li {
gap: 15px;
align-items: center;
}

Expand Down Expand Up @@ -118,6 +119,10 @@ h3 {
.secondary-link {
font-size: 0.8em;
color: var(--color-secondary);
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}

.secondary-link:hover {
Expand Down Expand Up @@ -157,9 +162,9 @@ h3 {
}

.avatar {
flex: 0 0 40px;
width: 40px;
height: 40px;
flex: 0 0 30px;
width: 30px;
height: 30px;
border-radius: 50%;
background: var(--color-secondary);
}
Expand Down
18 changes: 9 additions & 9 deletions js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ browser.runtime.onMessage.addListener((message, sender, sendResponse) => {
});

const popupStyle = `<style id="save-popup-styles">
.save-btn,.close-btn{display:block;background:#eaeaea;border:none;cursor:pointer;padding:8px 24px;color:#333;border-radius:10px;}
.save-btn{margin:0 0 8px;}
.save-btn,.close-btn{display:block;border:none;cursor:pointer;padding:10px 24px;color:#333;background:transparent;}
.save-btn{display:block;width:100%;margin:0 0 8px;text-align:left;}
.option:last-of-type .save-btn{margin:0;}
.save-btn:not(:disabled):hover,.close-btn:hover{background:#dfdfdf;}
.save-btn:not(:disabled):hover{background:rgba(0,0,0,0.05);}
.save-btn:disabled{cursor:not-allowed}
.close-btn{position:absolute;top:5px;right:5px;padding:5px;}
.save-text{display:inline-block;font-size:12px;margin:15px 0 10px;}
.save-input,.save-select{display:inline-block;flex:0 1 40%;max-width:45%;border:1px solid #dfdfdf;border-radius:10px;padding:7px 10px;margin:0 0 10px;}
.playlist-container{display:flex;justify-content:space-between;}
.save-input,.save-select{box-sizing:border-box;display:block;width:100%;border:1px solid #dfdfdf;border-radius:10px;padding:7px 10px;margin:0 0 10px;}
.playlist-container{padding:0 24px}
</style>`;
const channelsBtn = `<div class="option">
<button class="save-btn" id="saveChannel">Save Channel</button>
</div>`;
const playlistBtn = `<div class="option">
<button class="save-btn" id="saveToPlaylist">Save to Playlist</button>
<button class="save-btn" id="saveToPlaylist">Save to playlist</button>
<div id="playlistOptions" style="display: none;">
<div class="playlist-container">
<select class="save-select" id="playlistSelect"></select>
Expand Down Expand Up @@ -60,9 +60,9 @@ function createPopup(link, type, linkText, linkMeta) {
popup.style.right = '10px';
popup.style.top = '10px';
popup.style.zIndex = '10000';
popup.style.backgroundColor = 'rgba(255, 255, 255, 0.95)';
popup.style.backgroundColor = '#fff';
popup.style.borderRadius = '10px';
popup.style.padding = '15px';
popup.style.padding = '30px 0';
popup.style.boxShadow = '0 0 10px rgba(0, 0, 0, 0.1)';
popup.style.width = '300px';

Expand Down Expand Up @@ -184,7 +184,7 @@ function loadPlaylists() {
for (let playlist in playlists) {
let option = document.createElement('option');
option.value = playlist;
option.textContent = playlist;
option.textContent = playlists[playlist].playlistName;
playlistSelect.appendChild(option);
}

Expand Down

0 comments on commit 7a036b8

Please sign in to comment.