diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 1db3b6de..3e3b502c 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -7,6 +7,13 @@
"type": "npm",
"script": "dev",
"problemMatcher": []
+ },
+ {
+ "type": "npm",
+ "script": "dev-runner",
+ "problemMatcher": [],
+ "label": "npm: dev-runner",
+ "detail": "node _scripts/dev-runner.js"
}
]
}
\ No newline at end of file
diff --git a/src/renderer/components/ft-auto-grid/ft-auto-grid.js b/src/renderer/components/ft-auto-grid/ft-auto-grid.js
new file mode 100644
index 00000000..2befee45
--- /dev/null
+++ b/src/renderer/components/ft-auto-grid/ft-auto-grid.js
@@ -0,0 +1,11 @@
+import Vue from 'vue'
+
+export default Vue.extend({
+ name: 'FtAutoGrid',
+ props: {
+ grid: {
+ type: Boolean,
+ required: true
+ }
+ }
+})
diff --git a/src/renderer/components/ft-auto-grid/ft-auto-grid.sass b/src/renderer/components/ft-auto-grid/ft-auto-grid.sass
new file mode 100644
index 00000000..eb71df3e
--- /dev/null
+++ b/src/renderer/components/ft-auto-grid/ft-auto-grid.sass
@@ -0,0 +1,10 @@
+.ft-auto-grid
+ &.grid
+ display: grid
+ grid-template-columns: repeat(auto-fill, 240px)
+ justify-content: space-evenly
+ grid-gap: 5px
+
+ &.list
+ display: grid
+ grid-gap: 16px
diff --git a/src/renderer/components/ft-auto-grid/ft-auto-grid.vue b/src/renderer/components/ft-auto-grid/ft-auto-grid.vue
new file mode 100644
index 00000000..14e20186
--- /dev/null
+++ b/src/renderer/components/ft-auto-grid/ft-auto-grid.vue
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
diff --git a/src/renderer/components/ft-element-list/ft-element-list.js b/src/renderer/components/ft-element-list/ft-element-list.js
index a410bd37..c9cab911 100644
--- a/src/renderer/components/ft-element-list/ft-element-list.js
+++ b/src/renderer/components/ft-element-list/ft-element-list.js
@@ -1,6 +1,6 @@
import Vue from 'vue'
import FtFlexBox from '../ft-flex-box/ft-flex-box.vue'
-import FtGrid from '../ft-grid/ft-grid.vue'
+import FtAutoGrid from '../ft-auto-grid/ft-auto-grid.vue'
import FtListVideo from '../ft-list-video/ft-list-video.vue'
import FtListChannel from '../ft-list-channel/ft-list-channel.vue'
import FtListPlaylist from '../ft-list-playlist/ft-list-playlist.vue'
@@ -9,7 +9,7 @@ export default Vue.extend({
name: 'FtElementList',
components: {
'ft-flex-box': FtFlexBox,
- 'ft-grid': FtGrid,
+ 'ft-auto-grid': FtAutoGrid,
'ft-list-video': FtListVideo,
'ft-list-channel': FtListChannel,
'ft-list-playlist': FtListPlaylist
diff --git a/src/renderer/components/ft-element-list/ft-element-list.vue b/src/renderer/components/ft-element-list/ft-element-list.vue
index baef15af..58398c57 100644
--- a/src/renderer/components/ft-element-list/ft-element-list.vue
+++ b/src/renderer/components/ft-element-list/ft-element-list.vue
@@ -1,49 +1,30 @@
-
-
+
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
+ appearance="result"
+ :data="result"
+ />
+
+
+
diff --git a/src/renderer/components/ft-icon-button/ft-icon-button.js b/src/renderer/components/ft-icon-button/ft-icon-button.js
index 7449fbfd..c2d6b09c 100644
--- a/src/renderer/components/ft-icon-button/ft-icon-button.js
+++ b/src/renderer/components/ft-icon-button/ft-icon-button.js
@@ -19,6 +19,14 @@ export default Vue.extend({
type: Boolean,
default: true
},
+ padding: {
+ type: Number,
+ default: 10
+ },
+ size: {
+ type: Number,
+ default: 20
+ },
forceDropdown: {
type: Boolean,
default: false
diff --git a/src/renderer/components/ft-icon-button/ft-icon-button.sass b/src/renderer/components/ft-icon-button/ft-icon-button.sass
index 338e9228..0deca696 100644
--- a/src/renderer/components/ft-icon-button/ft-icon-button.sass
+++ b/src/renderer/components/ft-icon-button/ft-icon-button.sass
@@ -3,12 +3,11 @@
flex-flow: row wrap
justify-content: space-evenly
position: relative
+ user-select: none
.iconButton
width: 1em
height: 1em
- padding: 10px
- font-size: 20px
border-radius: 50%
cursor: pointer
transition: background 0.15s ease-out
diff --git a/src/renderer/components/ft-icon-button/ft-icon-button.vue b/src/renderer/components/ft-icon-button/ft-icon-button.vue
index 4b613fff..bafa0c6e 100644
--- a/src/renderer/components/ft-icon-button/ft-icon-button.vue
+++ b/src/renderer/components/ft-icon-button/ft-icon-button.vue
@@ -10,6 +10,10 @@
secondary: theme === 'secondary',
shadow: useShadow
}"
+ :style="{
+ padding: padding + 'px',
+ fontSize: size + 'px'
+ }"
@click="handleIconClick"
/>
-
+
+
+
+
+
+ {{ channelName }}
+
+
+
+ {{ subscriberCount }} subscribers
+
+
+ - {{ videoCount }} videos
+
+
+
+ {{ description }}
+
-
- {{ channelName }}
-
-
- {{ subscriberCount }} subscribers
-
-
- - {{ videoCount }} videos
-
-
- {{ description }}
-
-
+
diff --git a/src/renderer/components/ft-list-playlist/ft-list-playlist.css b/src/renderer/components/ft-list-playlist/ft-list-playlist.css
deleted file mode 100644
index 42d0ca14..00000000
--- a/src/renderer/components/ft-list-playlist/ft-list-playlist.css
+++ /dev/null
@@ -1,106 +0,0 @@
-.videoThumbnail {
- position: relative;
- cursor: pointer;
-}
-
-.videoCountContainer {
- position: absolute;
- top: 0px;
- right: 0px;
- width: 120px;
- background-color: rgba(0,0,0,0.6);
- color: #FFFFFF;
- text-align: center;
- font-size: 20px;
-}
-
-.videoCountContainer span {
- position: absolute;
- top: 40px;
- left: 45px;
-}
-
-.playlistTitle {
- font-weight: bold;
- color: var(--title-color);
- cursor: pointer;
-}
-
-.channelName {
- color: var(--secondary-text-color);
- cursor: pointer;
- font-size: 14px;
-}
-
-.grid {
- width: 240px;
- height: 250px;
- padding: 2px;
- overflow: hidden;
-}
-
-.grid .videoThumbnail {
- width: 100%;
- height: 130px;
- margin-bottom: -5px;
-}
-
-.grid .videoThumbnail img {
- width: 100%;
- height: 130px;
-}
-
-.grid .videoCountContainer {
- height: 130px;
-}
-
-.grid .playlistTitle {
- max-height: 75px;
- overflow-y: hidden;
-}
-
-.grid .channelName {
- width: 275px;
-}
-
-.list {
- height: 140px;
- width: 100%;
- margin-left: 5px;
- margin-top: 15px;
- border-bottom: 1px solid var(--secondary-text-color);
-}
-
-.list .videoThumbnail {
- float: left;
- width: 240px;
- height: 130px;
-}
-
-.list .videoThumbnail img {
- width: 100%;
- height: 130px;
-}
-
-.list .videoCountContainer {
- height: 130px;
-}
-
-.list .playlistTitle {
- margin-left: 250px;
- margin-top: 5px;
- margin-bottom: -10px;
-}
-
-.list .channelName {
- margin-left: 250px;
- width: 275px;
-}
-
-.list .description {
- margin-left: 285px;
- font-size: 13px;
- color: var(--secondary-text-color);
- height: 35px;
- overflow: hidden;
-}
diff --git a/src/renderer/components/ft-list-playlist/ft-list-playlist.js b/src/renderer/components/ft-list-playlist/ft-list-playlist.js
index ca30dab3..06309be5 100644
--- a/src/renderer/components/ft-list-playlist/ft-list-playlist.js
+++ b/src/renderer/components/ft-list-playlist/ft-list-playlist.js
@@ -6,6 +6,10 @@ export default Vue.extend({
data: {
type: Object,
required: true
+ },
+ appearance: {
+ type: String,
+ required: true
}
},
data: function () {
@@ -58,14 +62,6 @@ export default Vue.extend({
this.channelLink = this.data.author.ref
this.playlistLink = this.data.link
this.videoCount = parseInt(this.data.length.split(' ')[0])
- },
-
- goToPlaylist: function (id) {
- this.$router.push({ path: `/playlist/${id}` })
- },
-
- goToChannel: function (id) {
- console.log(id)
}
}
})
diff --git a/src/renderer/components/ft-list-playlist/ft-list-playlist.sass b/src/renderer/components/ft-list-playlist/ft-list-playlist.sass
new file mode 100644
index 00000000..cdebfe2e
--- /dev/null
+++ b/src/renderer/components/ft-list-playlist/ft-list-playlist.sass
@@ -0,0 +1 @@
+@use "../../sass-partials/_ft-list-item"
diff --git a/src/renderer/components/ft-list-playlist/ft-list-playlist.vue b/src/renderer/components/ft-list-playlist/ft-list-playlist.vue
index b842bb01..091d576f 100644
--- a/src/renderer/components/ft-list-playlist/ft-list-playlist.vue
+++ b/src/renderer/components/ft-list-playlist/ft-list-playlist.vue
@@ -1,38 +1,45 @@
-
+
-
- {{ videoCount }}
-
-
-
+
+
+
+
+
+
+ {{ title }}
+
+
+
+ {{ channelName }}
+
-
- {{ title }}
-
-
- {{ channelName }}
-
-
+
diff --git a/src/renderer/components/ft-list-video/ft-list-video.css b/src/renderer/components/ft-list-video/ft-list-video.css
deleted file mode 100644
index 7d8f22d8..00000000
--- a/src/renderer/components/ft-list-video/ft-list-video.css
+++ /dev/null
@@ -1,247 +0,0 @@
-.videoThumbnail {
- position: relative;
- cursor: pointer;
-}
-
-.videoThumbnail:hover .videoWatched {
- visibility: hidden;
-}
-
-.favoritesIcon {
- position: absolute;
- font-size: 15px;
- top: 0px;
- right: 0px;
- color: #FFFFFF;
- padding: 5px;
- background-color: #000000;
- opacity: 0.7;
- cursor: pointer;
-}
-
-.favorited {
- color: yellow;
-}
-
-.videoDuration {
- position: absolute;
- font-size: 13px;
- bottom: -7px;
- right: 0px;
- color: #FFFFFF;
- padding: 2px;
- background-color: #000000;
- opacity: 0.7;
- cursor: pointer;
-}
-
-.videoWatched {
- position: absolute;
- top: 0px;
- left: 0px;
- width: 100%;
- background-color: rgba(0,0,0,0.4);
- color: #FFFFFF;
- pointer-events: none;
-}
-
-.watchedProgressBar {
- background-color: var(--red-500);
- opacity: 0.8;
- height: 3px;
- position: absolute;
- bottom: 0px;
- left: 0px;
- cursor: pointer;
-}
-
-.videoTitle {
- color: var(--title-color);
- font-weight: bold;
- cursor: pointer;
-}
-
-.channelName {
- color: var(--secondary-text-color);
- cursor: pointer;
- font-size: 14px;
-}
-
-.viewCount {
- cursor: pointer;
- font-size: 13px;
-}
-
-.uploadedTime {
- cursor: pointer;
- font-size: 13px;
-}
-
-.liveText {
- color: var(--red-500);
- font-size: 13px;
- cursor: pointer;
-}
-
-/deep/ .iconButton {
- font-size: 15px;
- padding: 8px;
-}
-
-/deep/ .iconDropdown {
- margin-top: 30px;
-}
-
-.grid {
- width: 240px;
- height: 250px;
- padding: 2px;
- overflow: hidden;
-}
-
-.grid .videoThumbnail {
- width: 100%;
- height: 130px;
- margin-bottom: -5px;
-}
-
-.grid .videoThumbnail img {
- width: 100%;
- height: 130px;
-}
-
-.grid .videoWatched {
- height: 110px;
-}
-
-.grid .optionsButton {
- margin-top: 10px;
- margin-left: 210px;
- position: absolute;
-}
-
-.grid .videoTitle {
- max-height: 55px;
- width: 210px;
- overflow-y: hidden;
- margin-bottom: -15px;
-}
-
-.grid .channelName {
- width: 220px;
- height: 17px;
- margin-bottom: 10px;
- overflow-y: hidden;
-}
-
-.grid .liveText {
- float: right;
-}
-
-.list {
- height: 140px;
- width: 100%;
- margin-left: 5px;
- margin-top: 15px;
-}
-
-.list .videoThumbnail {
- float: left;
- width: 240px;
- height: 130px;
-}
-
-.list .videoThumbnail img {
- width: 100%;
- height: 130px;
-}
-
-.list .videoWatched {
- height: 130px;
-}
-
-.list .optionsButton {
- float: right;
-}
-
-.list .videoTitle {
- margin-left: 250px;
- margin-top: 5px;
- margin-bottom: -10px;
-}
-
-.list .channelName {
- margin-left: 250px;
- max-width: 275px;
-}
-
-.list .viewCount {
- margin-left: 10px;
-}
-
-.list .liveText {
- margin-left: 10px;
-}
-
-.list .description {
- margin-left: 250px;
- font-size: 13px;
- color: var(--secondary-text-color);
- height: 35px;
- overflow: hidden;
-}
-
-.videoRecommendation.list {
- height: 110px;
-}
-
-.videoRecommendation.list .videoThumbnail {
- width: 180px;
- height: 100px;
-}
-
-.videoRecommendation.list .videoThumbnail img {
- height: 100px;
-}
-
-.videoRecommendation.list .videoTitle {
- font-size: 12px;
- margin-left: 185px;
-}
-
-.videoRecommendation.list .channelName {
- margin-left: 185px;
-}
-
-.videoRecommendation.list .viewCount {
- margin-left: 5px;
-}
-
-.playlistItem .list {
- height: 60px;
- width: calc(100% - 30px);
-}
-
-.playlistItem .list .videoThumbnail {
- width: 100px;
- height: 60px;
-}
-
-.playlistItem .list .videoThumbnail img {
- height: 60px;
-}
-
-.playlistItem .list .videoTitle {
- font-size: 12px;
- margin-left: 105px;
- margin-right: 30px;
-}
-
-.playlistItem .list .channelName {
- margin-left: 105px;
- margin-right: 30px;
-}
-
-.playlistItem .list .viewCount {
- margin-left: 5px;
-}
diff --git a/src/renderer/components/ft-list-video/ft-list-video.js b/src/renderer/components/ft-list-video/ft-list-video.js
index efddb67b..8b2da219 100644
--- a/src/renderer/components/ft-list-video/ft-list-video.js
+++ b/src/renderer/components/ft-list-video/ft-list-video.js
@@ -18,6 +18,10 @@ export default Vue.extend({
forceListType: {
type: String,
default: null
+ },
+ appearance: {
+ type: String,
+ required: true
}
},
data: function () {
@@ -121,31 +125,6 @@ export default Vue.extend({
}
},
methods: {
- play: function () {
- const playlistInfo = {
- playlistId: this.playlistId
- }
- console.log('playlist info')
- console.log(playlistInfo)
-
- if (this.playlistId !== null) {
- console.log('Sending playlist info')
- this.$router.push(
- {
- path: `/watch/${this.id}`,
- query: playlistInfo
- }
- )
- } else {
- console.log('no playlist found')
- this.$router.push({ path: `/watch/${this.id}` })
- }
- },
-
- goToChannel: function () {
- this.$router.push({ path: `/channel/${this.channelId}` })
- },
-
toggleSave: function () {
console.log('TODO: ft-list-video method toggleSave')
},
diff --git a/src/renderer/components/ft-list-video/ft-list-video.sass b/src/renderer/components/ft-list-video/ft-list-video.sass
new file mode 100644
index 00000000..cdebfe2e
--- /dev/null
+++ b/src/renderer/components/ft-list-video/ft-list-video.sass
@@ -0,0 +1 @@
+@use "../../sass-partials/_ft-list-item"
diff --git a/src/renderer/components/ft-list-video/ft-list-video.vue b/src/renderer/components/ft-list-video/ft-list-video.vue
index 1018a95b..f1ab22f4 100644
--- a/src/renderer/components/ft-list-video/ft-list-video.vue
+++ b/src/renderer/components/ft-list-video/ft-list-video.vue
@@ -1,27 +1,39 @@
-
-
+
-
+
+
- {{ duration }}
-
-
+
@@ -29,7 +41,7 @@
v-if="watched"
class="videoWatched"
>
- WATCHED
+ Watched
-
-
- {{ title }}
-
-
- {{ channelName }}
-
-
- {{ viewCount }} views
-
-
- - {{ uploadedTime }}
-
-
- {{ viewCount }} watching
-
-
- {{ description }}
-
-
- LIVE NOW
-
+
+
+
+ {{ title }}
+
+
+
+ {{ channelName }}
+
+ • {{ viewCount }} views
+ • {{ uploadedTime }}
+ • {{ viewCount }} watching
+
+
+ {{ description }}
+
+
-
+
diff --git a/src/renderer/components/watch-playlist/watch-playlist.css b/src/renderer/components/watch-playlist/watch-playlist.css
deleted file mode 100644
index 4c88fdbd..00000000
--- a/src/renderer/components/watch-playlist/watch-playlist.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.maxWidth {
- width: 100%;
-}
diff --git a/src/renderer/components/watch-playlist/watch-playlist.js b/src/renderer/components/watch-playlist/watch-playlist.js
deleted file mode 100644
index 7a0429e7..00000000
--- a/src/renderer/components/watch-playlist/watch-playlist.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import Vue from 'vue'
-import FtFlexBox from '../ft-flex-box/ft-flex-box.vue'
-import FtGrid from '../ft-grid/ft-grid.vue'
-import FtListVideo from '../ft-list-video/ft-list-video.vue'
-import FtListChannel from '../ft-list-channel/ft-list-channel.vue'
-import FtListPlaylist from '../ft-list-playlist/ft-list-playlist.vue'
-
-export default Vue.extend({
- name: 'WatchPlaylist',
- components: {
- 'ft-flex-box': FtFlexBox,
- 'ft-grid': FtGrid,
- 'ft-list-video': FtListVideo,
- 'ft-list-channel': FtListChannel,
- 'ft-list-playlist': FtListPlaylist
- },
- props: {
- data: {
- type: Array,
- required: true
- }
- },
- data: function () {
- return {
- test: 'hello'
- }
- },
- computed: {
- listType: function () {
- return this.$store.getters.getListType
- }
- }
-})
diff --git a/src/renderer/components/watch-playlist/watch-playlist.vue b/src/renderer/components/watch-playlist/watch-playlist.vue
deleted file mode 100644
index 09cddb3b..00000000
--- a/src/renderer/components/watch-playlist/watch-playlist.vue
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/renderer/components/watch-video-playlist/watch-video-playlist.css b/src/renderer/components/watch-video-playlist/watch-video-playlist.css
index 292fdedd..e15c6f38 100644
--- a/src/renderer/components/watch-video-playlist/watch-video-playlist.css
+++ b/src/renderer/components/watch-video-playlist/watch-video-playlist.css
@@ -37,36 +37,34 @@
.playlistItems {
overflow-y: auto;
height: 395px;
- margin-top: -15px;
- margin-left: -16px;
- margin-right: -16px;
}
.playlistItem {
- height: 75px;
- width: 100%;
+ display: grid;
+ grid-template-columns: 30px 1fr;
+ align-items: center;
transition: background 0.2s ease-out;
}
+.playlistItem:not(:last-child) {
+ margin-bottom: 8px;
+}
+
.playlistItem:hover {
background-color: var(--side-nav-hover-color);
transition: background 0.2s ease-in;
}
+.videoIndexContainer {
+ text-align: center;
+}
+
.videoIndex {
- float: left;
- position: relative;
- top: 15px;
- left: 10px;
color: var(--tertiary-text-color);
}
.videoIndexIcon {
- float: left;
- position: relative;
font-size: 14px;
- top: 32px;
- left: 10px;
color: var(--tertiary-text-color);
}
diff --git a/src/renderer/components/watch-video-playlist/watch-video-playlist.vue b/src/renderer/components/watch-video-playlist/watch-video-playlist.vue
index fdff39a8..460e1674 100644
--- a/src/renderer/components/watch-video-playlist/watch-video-playlist.vue
+++ b/src/renderer/components/watch-video-playlist/watch-video-playlist.vue
@@ -47,7 +47,7 @@
@click="playNextVideo"
/>
-
@@ -56,25 +56,27 @@
:key="index"
class="playlistItem"
>
-
-
- {{ index + 1 }}
-
+
+
+
+ {{ index + 1 }}
+
+
-
+
diff --git a/src/renderer/components/watch-video-recommendations/watch-video-recommendations.css b/src/renderer/components/watch-video-recommendations/watch-video-recommendations.css
index e83928a1..44c3783c 100644
--- a/src/renderer/components/watch-video-recommendations/watch-video-recommendations.css
+++ b/src/renderer/components/watch-video-recommendations/watch-video-recommendations.css
@@ -1,7 +1,4 @@
-.relative {
- position: relative;
-}
-
-.videoRecommendation {
- margin-bottom: -15px;
+.watchVideoRecommendations {
+ display: grid;
+ grid-gap: 8px;
}
diff --git a/src/renderer/components/watch-video-recommendations/watch-video-recommendations.vue b/src/renderer/components/watch-video-recommendations/watch-video-recommendations.vue
index 72a12b8a..bdec1920 100644
--- a/src/renderer/components/watch-video-recommendations/watch-video-recommendations.vue
+++ b/src/renderer/components/watch-video-recommendations/watch-video-recommendations.vue
@@ -1,5 +1,5 @@
-
+
Up Next
@@ -7,8 +7,8 @@
v-for="(video, index) in data"
:key="index"
:data="video"
+ appearance="recommendation"
force-list-type="list"
- class="videoRecommendation"
/>
diff --git a/src/renderer/sass-partials/_ft-list-item.sass b/src/renderer/sass-partials/_ft-list-item.sass
new file mode 100644
index 00000000..cda5536e
--- /dev/null
+++ b/src/renderer/sass-partials/_ft-list-item.sass
@@ -0,0 +1,166 @@
+$thumbnail-overlay-opacity: 0.85
+
+@mixin is-result
+ @at-root
+ .result#{&}
+ @content
+
+@mixin is-watch-playlist-item
+ @at-root
+ .watchPlaylistItem#{&}
+ @content
+
+@mixin is-recommendation
+ @at-root
+ .recommendation#{&}
+ @content
+
+@mixin is-sidebar-item
+ @at-root
+ .watchPlaylistItem#{&}, .recommendation#{&}
+ @content
+
+.ft-list-item
+ .videoThumbnail
+ display: flex
+ position: relative
+
+ .thumbnailLink
+ display: flex
+
+ .thumbnailImage
+ height: 130px
+
+ @include is-sidebar-item
+ height: 75px
+
+ @include is-recommendation
+ width: 163px
+ height: auto
+
+ .videoDuration
+ position: absolute
+ bottom: 4px
+ right: 4px
+ padding: 3px 4px
+ line-height: 1.2
+ font-size: 15px
+ border-radius: 5px
+ margin: 0
+ opacity: $thumbnail-overlay-opacity
+ color: var(--primary-text-color)
+ background-color: var(--card-bg-color)
+ pointer-events: none
+
+ &.live
+ background-color: #f22
+ color: #fff
+
+ @include is-watch-playlist-item
+ font-size: 12px
+
+ .favoritesIcon
+ position: absolute
+ top: 3px
+ right: 3px
+ font-size: 17px
+ opacity: $thumbnail-overlay-opacity
+
+ .videoCountContainer
+ position: absolute
+ right: 0
+ top: 0
+ bottom: 0
+ width: 60px
+ font-size: 20px
+
+ .background, .inner
+ position: absolute
+ top: 0
+ bottom: 0
+ left: 0
+ right: 0
+
+ .background
+ background-color: var(--bg-color)
+ opacity: 0.9
+
+ .inner
+ display: flex
+ flex-direction: column
+ justify-content: center
+ align-items: center
+ color: var(--primary-text-color)
+
+ .channelThumbnail
+ display: flex
+ justify-content: center
+
+ .channelImage
+ height: 130px
+ border-radius: 50%
+
+ .info
+ flex: 1
+ position: relative
+
+ .optionsButton
+ float: right // ohhhh man, float was finally the right choice for something
+
+ .title
+ font-size: 20px
+ color: var(--primary-text-color)
+ text-decoration: none
+
+ @include is-sidebar-item
+ font-size: 15px
+
+ .infoLine
+ margin-top: 5px
+ font-size: 14px
+
+ @include is-sidebar-item
+ font-size: 12px
+
+ &, .channelName
+ color: var(--secondary-text-color)
+
+ .description
+ font-size: 14px
+ color: var(--secondary-text-color)
+
+ &.list
+ display: flex
+ align-items: flex-start
+
+ .videoThumbnail, .channelThumbnail
+ margin-right: 20px
+
+ .channelThumbnail
+ width: 231px
+
+ @include is-sidebar-item
+ .videoThumbnail
+ margin-right: 10px
+
+ &.grid
+ display: flex
+ flex-direction: column
+ min-height: 230px
+ padding-bottom: 20px
+
+ .videoThumbnail, .channelThumbnail
+ margin-bottom: 12px
+
+ .thumbnailImage
+ width: 100%
+
+ .title
+ font-size: 18px
+
+ .infoLine
+ margin-top: 8px
+ font-size: 13px
+
+.videoWatched, .live
+ text-transform: uppercase
diff --git a/src/renderer/views/Channel/Channel.css b/src/renderer/views/Channel/Channel.css
index 5ce595b5..7f9fa85a 100644
--- a/src/renderer/views/Channel/Channel.css
+++ b/src/renderer/views/Channel/Channel.css
@@ -123,4 +123,5 @@
line-height: 45px;
text-align: center;
cursor: pointer;
+ margin-top: 16px;
}
diff --git a/src/renderer/views/Playlist/Playlist.css b/src/renderer/views/Playlist/Playlist.css
index 2f19d247..66087cb7 100644
--- a/src/renderer/views/Playlist/Playlist.css
+++ b/src/renderer/views/Playlist/Playlist.css
@@ -12,4 +12,7 @@
.playlistItems {
float: right;
width: 60%;
+ padding: 10px;
+ display: grid;
+ grid-gap: 10px;
}
diff --git a/src/renderer/views/Playlist/Playlist.vue b/src/renderer/views/Playlist/Playlist.vue
index 4974145c..b4c12fa1 100644
--- a/src/renderer/views/Playlist/Playlist.vue
+++ b/src/renderer/views/Playlist/Playlist.vue
@@ -13,16 +13,14 @@
v-if="!isLoading"
class="playlistItems"
>
-
-
-
+
diff --git a/src/renderer/views/Search/Search.css b/src/renderer/views/Search/Search.css
index 4c84ced8..515423f7 100644
--- a/src/renderer/views/Search/Search.css
+++ b/src/renderer/views/Search/Search.css
@@ -5,6 +5,7 @@
line-height: 45px;
text-align: center;
cursor: pointer;
+ margin-top: 16px;
}
.card {
diff --git a/src/renderer/views/Watch/Watch.sass b/src/renderer/views/Watch/Watch.sass
index 1372bbb7..e07dbf3e 100644
--- a/src/renderer/views/Watch/Watch.sass
+++ b/src/renderer/views/Watch/Watch.sass
@@ -50,8 +50,10 @@
min-width: 380px
.watchVideoPlaylist, .watchVideoSidebar, .theatrePlaylist
- height: 500px
margin: 0 8px 16px
+ .watchVideoSidebar, .theatrePlaylist
+ height: 500px
+
.watchVideoRecommendations, .theatreRecommendations
margin: 0 8px 16px