diff --git a/.stylelintrc.json b/.stylelintrc.json
index deadc16c868cb..e32dc52314fb9 100644
--- a/.stylelintrc.json
+++ b/.stylelintrc.json
@@ -1,5 +1,6 @@
{
- "plugins": ["stylelint-use-logical-spec"],
+ "plugins": ["stylelint-use-logical-spec", "@double-great/stylelint-a11y"],
+ "extends": ["stylelint-config-standard", "stylelint-config-sass-guidelines"],
"overrides": [
{
"files": ["**/*.scss"],
@@ -16,6 +17,19 @@
}
],
"rules": {
+ "selector-no-qualifying-type": [
+ true, {
+ "ignore": ["attribute"]
+ }],
+ "selector-class-pattern": null,
+ "selector-id-pattern": null,
+ "selector-pseudo-class-no-unknown": [
+ true,
+ {
+ "ignorePseudoClasses": ["deep"]
+ }
+ ],
+ "a11y/no-outline-none": true,
"liberty/use-logical-spec": ["always", { "except": ["float"] }]
}
}
diff --git a/src/renderer/App.css b/src/renderer/App.css
index 90fc87ab4938e..24b765ca8d13e 100644
--- a/src/renderer/App.css
+++ b/src/renderer/App.css
@@ -1,12 +1,12 @@
@font-face {
font-family: Roboto;
- src: url(assets/font/Roboto-Regular.ttf);
+ src: url("assets/font/Roboto-Regular.ttf");
}
-#app {
+.app {
display: flex;
flex-wrap: wrap;
- font-family: 'Roboto', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
+ font-family: Roboto, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
block-size: 100%;
}
@@ -30,23 +30,23 @@
.flexBox {
display: block;
user-select: unset;
- -webkit-user-select: unset;
}
-#changeLogText {
+.changeLogText {
overflow-y: scroll;
block-size: 40vh;
- display: block
+ display: block;
}
.fade-enter-active, .fade-leave-active {
transition: opacity .15s;
}
+
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
opacity: 0;
}
-@media only screen and (max-width: 680px) {
+@media only screen and (width <= 680px) {
.routerView {
margin-block: 68px;
margin-inline: 8px;
@@ -58,7 +58,6 @@
}
.flexBox {
- margin-block-start: 60px;
- margin-block-end: -75px;
+ margin-block: 60px -75px;
}
}
diff --git a/src/renderer/App.vue b/src/renderer/App.vue
index cb563b887b91f..fb49f342eec88 100644
--- a/src/renderer/App.vue
+++ b/src/renderer/App.vue
@@ -2,6 +2,7 @@
diff --git a/src/renderer/components/distraction-settings/distraction-settings.css b/src/renderer/components/distraction-settings/distraction-settings.css
index d6cefc07134a0..a67117e854298 100644
--- a/src/renderer/components/distraction-settings/distraction-settings.css
+++ b/src/renderer/components/distraction-settings/distraction-settings.css
@@ -1,5 +1,5 @@
-@media only screen and (max-width: 800px) {
- br.hide-on-mobile {
+@media only screen and (width <= 800px) {
+ .hide-on-mobile {
display: none;
}
}
diff --git a/src/renderer/components/experimental-settings/experimental-settings.css b/src/renderer/components/experimental-settings/experimental-settings.css
index 3f20bf0554619..2b20e6e674d38 100644
--- a/src/renderer/components/experimental-settings/experimental-settings.css
+++ b/src/renderer/components/experimental-settings/experimental-settings.css
@@ -1,6 +1,5 @@
.experimental-warning {
text-align: center;
font-weight: bold;
- padding-inline-start: 4%;
- padding-inline-end: 4%
+ padding-inline: 4% 4%
}
diff --git a/src/renderer/components/ft-button/ft-button.css b/src/renderer/components/ft-button/ft-button.css
index 4642a184de499..4a0cc58edf2c5 100644
--- a/src/renderer/components/ft-button/ft-button.css
+++ b/src/renderer/components/ft-button/ft-button.css
@@ -1,5 +1,5 @@
.btn {
- font-family: 'Roboto', sans-serif;
+ font-family: Roboto, sans-serif;
min-inline-size: 100px;
font-size: 0.9rem;
padding-block: 10px;
@@ -18,7 +18,7 @@
font-weight: 500;
vertical-align: middle;
margin: 5px;
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
+ box-shadow: 0 1px 2px rgb(0 0 0 / 50%);
}
.btn:disabled {
@@ -32,7 +32,7 @@
transform: translate3d(0, 0, 0);
}
-.ripple:after {
+.ripple::after {
content: "";
display: block;
position: absolute;
@@ -49,7 +49,7 @@
transition: transform .5s, opacity 1s;
}
-.ripple:active:after {
+.ripple:active::after {
transform: scale(0, 0);
opacity: .3;
transition: 0s;
diff --git a/src/renderer/components/ft-card/ft-card.css b/src/renderer/components/ft-card/ft-card.css
index b9ef73f8b7f41..250d9a851753b 100644
--- a/src/renderer/components/ft-card/ft-card.css
+++ b/src/renderer/components/ft-card/ft-card.css
@@ -3,5 +3,5 @@
margin: 8px;
padding-block: 3px 16px;
padding-inline: 16px;
- box-shadow: 0 1px 2px rgba(0,0,0,.1);
+ box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
}
diff --git a/src/renderer/components/ft-channel-bubble/ft-channel-bubble.css b/src/renderer/components/ft-channel-bubble/ft-channel-bubble.css
index 701c0eb961aff..0dfb0c1148177 100644
--- a/src/renderer/components/ft-channel-bubble/ft-channel-bubble.css
+++ b/src/renderer/components/ft-channel-bubble/ft-channel-bubble.css
@@ -24,18 +24,17 @@
inline-size: 50px;
block-size: 50px;
border-radius: 100%;
- -webkit-border-radius: 100%;
object-fit: cover;
}
.selected {
position: absolute;
inset-block-start: 10px;
- background-color: rgba(0, 0, 0, 0.5);
+ background-color: rgb(0 0 0 / 50%);
}
.icon {
- color: #EEEEEE;
+ color: #EEE;
font-size: 25px;
position: absolute;
inset-block-start: 12px;
diff --git a/src/renderer/components/ft-community-poll/ft-community-poll.css b/src/renderer/components/ft-community-poll/ft-community-poll.css
index c35738a1bff99..3f954536a43c7 100644
--- a/src/renderer/components/ft-community-poll/ft-community-poll.css
+++ b/src/renderer/components/ft-community-poll/ft-community-poll.css
@@ -17,7 +17,7 @@
.filled-circle {
border-radius: 50%;
- background-color: black;
+ background-color: #000;
float: var(--float-left-ltr-rtl-value);
block-size: 6px;
inset-inline-start: 2px;
@@ -33,11 +33,10 @@
.option {
display: flex;
align-items: center;
- padding-block-end: 10px;
+ padding-block: 5px;
border-radius: 5px;
border-style: solid;
border-width: 1px;
- padding-block: 5px;
padding-inline-start: 10px;
margin-block-end: 10px;
}
diff --git a/src/renderer/components/ft-community-post/ft-community-post.scss b/src/renderer/components/ft-community-post/ft-community-post.scss
index 838cb658ba719..bb50bb5b4fb43 100644
--- a/src/renderer/components/ft-community-post/ft-community-post.scss
+++ b/src/renderer/components/ft-community-post/ft-community-post.scss
@@ -1,10 +1,11 @@
/* stylelint-disable property-no-vendor-prefix */
-@use '../../scss-partials/_ft-list-item';
+@use '../../scss-partials/ft-list-item';
.outside {
margin: auto;
inline-size: 40%;
- @media screen and (max-width: 768px) {
+
+ @media screen and (width <= 768px) {
inline-size: 100%;
}
}
@@ -25,7 +26,6 @@
}
.communityThumbnail {
- -webkit-border-radius: 50%;
border-radius: 50%;
block-size: 55px;
margin-inline-end: 5px;
@@ -40,6 +40,7 @@
font-weight: bold;
margin-block: 5px 0;
margin-inline: 5px 6px;
+
.authorNameLink {
color: inherit;
text-decoration: none;
@@ -67,7 +68,7 @@
max-inline-size: 210px;
text-align: start;
- @media screen and (max-width: 680px) {
+ @media screen and (width <= 680px) {
margin-inline-start: 0;
text-align: start;
}
@@ -79,8 +80,7 @@
}
.likeCount {
- margin-inline-start: 5px;
- margin-inline-end: 6px;
+ margin-inline: 5px 6px;
}
}
@@ -89,8 +89,7 @@
.videoThumbnail {
display: flex;
- margin-block-end: auto;
- margin-block-start: auto;
+ margin-block: auto;
position: relative;
inline-size: fit-content;
diff --git a/src/renderer/components/ft-flex-box/ft-flex-box.css b/src/renderer/components/ft-flex-box/ft-flex-box.css
index facb39fff6e40..281b6748999e1 100644
--- a/src/renderer/components/ft-flex-box/ft-flex-box.css
+++ b/src/renderer/components/ft-flex-box/ft-flex-box.css
@@ -3,5 +3,4 @@
flex-flow: row wrap;
justify-content: space-evenly;
user-select: none;
- -webkit-user-select: none;
}
diff --git a/src/renderer/components/ft-icon-button/ft-icon-button.scss b/src/renderer/components/ft-icon-button/ft-icon-button.scss
index 58f776dd6414c..c76e9333fd5b9 100644
--- a/src/renderer/components/ft-icon-button/ft-icon-button.scss
+++ b/src/renderer/components/ft-icon-button/ft-icon-button.scss
@@ -3,8 +3,6 @@
flex-flow: row wrap;
justify-content: space-evenly;
position: relative;
-
- -webkit-user-select: none;
user-select: none;
}
@@ -90,7 +88,6 @@
list-style-type: none;
position: absolute;
text-align: center;
- -webkit-user-select: none;
user-select: none;
z-index: 3;
diff --git a/src/renderer/components/ft-input-tags/ft-input-tags.css b/src/renderer/components/ft-input-tags/ft-input-tags.css
index c1a81925adc13..bdf006aff437c 100644
--- a/src/renderer/components/ft-input-tags/ft-input-tags.css
+++ b/src/renderer/components/ft-input-tags/ft-input-tags.css
@@ -8,7 +8,7 @@
}
.disabledMsg {
- color: rgb(233, 255, 108);
+ color: rgb(233 255 108);
padding-block-end: 10px;
}
@@ -53,7 +53,7 @@
color: var(--primary-text-color);
opacity: 0.5;
padding: 10px;
- padding-inline-start: 0px;
+ padding-inline-start: 0;
}
.removeTagButton:hover {
@@ -64,7 +64,7 @@
margin-block-start: 10px;
}
-@media only screen and (max-width: 576px) {
+@media only screen and (width <= 576px) {
.ft-input-tags-component {
inline-size: 100%;
}
diff --git a/src/renderer/components/ft-input/ft-input.css b/src/renderer/components/ft-input/ft-input.css
index 4d383d327244e..e5f9a17041073 100644
--- a/src/renderer/components/ft-input/ft-input.css
+++ b/src/renderer/components/ft-input/ft-input.css
@@ -1,3 +1,4 @@
+/* stylelint-disable no-descending-specificity */
.ft-input-component {
position: relative;
}
@@ -49,6 +50,7 @@
position: absolute;
inset-block-start: 5px;
inset-inline-start: 0;
+
/* To be higher than `.inputWrapper` */
z-index: 1;
margin-block: 0;
@@ -80,7 +82,7 @@
}
.forceTextColor .clearInputTextButton {
- color: #EEEEEE;
+ color: #EEE;
}
.forceTextColor .clearInputTextButton:active {
@@ -89,12 +91,10 @@
.ft-input {
box-sizing: border-box;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
outline: none;
inline-size: 100%;
padding: 1rem;
- border: none;
+ border: 0;
margin-block-end: 10px;
font-size: 16px;
block-size: 45px;
@@ -103,26 +103,23 @@
background-color: var(--search-bar-color);
}
-.ft-input-component ::-webkit-input-placeholder {
+.ftcomponent ::placeholder {
color: var(--tertiary-text-color);
user-select: none;
- -webkit-user-select: none;
}
.forceTextColor .ft-input {
- color: #EEEEEE;
+ color: #EEE;
background-color: var(--primary-input-color);
}
.forceTextColor .ft-input:focus {
box-shadow: 0 0 1rem 0 var(--primary-input-color);
- -moz-transition: box-shadow 0.2s ease-in-out;
- -o-transition: box-shadow 0.2s ease-in-out;
transition: box-shadow 0.2s ease-in-out;
}
-.forceTextColor ::-webkit-input-placeholder {
- color: #EEEEEE;
+.forceTextColor ::placeholder {
+ color: #EEE;
}
.inputWrapper {
@@ -138,12 +135,14 @@
inset-inline-end: 0;
border-radius: 100%;
color: var(--primary-text-color);
+
/* this should look disabled by default */
- opacity: 50%;
+ opacity: 0.5;
}
.inputAction.enabled {
- opacity: 100%;
+ opacity: 1;
+
/* Only look respond to cursor when enabled */
cursor: pointer;
}
@@ -154,7 +153,7 @@
}
.forceTextColor .inputAction {
- color: #EEEEEE;
+ color: #EEE;
}
.ft-input-component.showActionButton .ft-input {
diff --git a/src/renderer/components/ft-list-channel/ft-list-channel.scss b/src/renderer/components/ft-list-channel/ft-list-channel.scss
index 4fa0fe962cfaa..8f1b55dd7892d 100644
--- a/src/renderer/components/ft-list-channel/ft-list-channel.scss
+++ b/src/renderer/components/ft-list-channel/ft-list-channel.scss
@@ -1,4 +1,11 @@
-@use '../../scss-partials/_ft-list-item';
+@use '../../scss-partials/ft-list-item';
+
+.infoAndSubscribe {
+ display: flex;
+ flex-flow: row wrap;
+ justify-content: center;
+ inline-size: 100%;
+}
.ft-list-channel {
&.grid {
@@ -21,9 +28,6 @@
&.list {
.infoAndSubscribe {
- flex-flow: row wrap;
- justify-content: center;
-
.channelSubscribeButton {
margin-block: auto;
margin-inline: 7px;
@@ -32,13 +36,6 @@
}
}
-.infoAndSubscribe {
- display: flex;
- flex-flow: row wrap;
- justify-content: center;
- inline-size: 100%;
-}
-
.handle {
color: inherit;
text-decoration: none;
diff --git a/src/renderer/components/ft-list-hashtag/ft-list-hashtag.scss b/src/renderer/components/ft-list-hashtag/ft-list-hashtag.scss
index c524018e4b808..b9932da1de4a5 100644
--- a/src/renderer/components/ft-list-hashtag/ft-list-hashtag.scss
+++ b/src/renderer/components/ft-list-hashtag/ft-list-hashtag.scss
@@ -1,4 +1,4 @@
-@use '../../scss-partials/_ft-list-item';
+@use '../../scss-partials/ft-list-item';
.hashtagImage {
color: var(--primary-text-color);
diff --git a/src/renderer/components/ft-list-playlist/ft-list-playlist.scss b/src/renderer/components/ft-list-playlist/ft-list-playlist.scss
index af386ff4b9119..0b80f3851c5ae 100644
--- a/src/renderer/components/ft-list-playlist/ft-list-playlist.scss
+++ b/src/renderer/components/ft-list-playlist/ft-list-playlist.scss
@@ -1 +1 @@
-@use '../../scss-partials/_ft-list-item';
+@use '../../scss-partials/ft-list-item';
diff --git a/src/renderer/components/ft-list-video/ft-list-video.scss b/src/renderer/components/ft-list-video/ft-list-video.scss
index 7512ac8a6d8ac..6a622222d5435 100644
--- a/src/renderer/components/ft-list-video/ft-list-video.scss
+++ b/src/renderer/components/ft-list-video/ft-list-video.scss
@@ -1,4 +1,4 @@
-@use '../../scss-partials/_ft-list-item';
+@use '../../scss-partials/ft-list-item';
.thumbnailLink:hover {
outline: 3px solid var(--side-nav-hover-color);
diff --git a/src/renderer/components/ft-loader/ft-loader.css b/src/renderer/components/ft-loader/ft-loader.css
index 6dabd908c82ac..b27213cf68512 100644
--- a/src/renderer/components/ft-loader/ft-loader.css
+++ b/src/renderer/components/ft-loader/ft-loader.css
@@ -53,34 +53,20 @@
inset-block-start: 0;
inset-inline-start: 0;
background-color: var(--primary-color);
-
- -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
animation: sk-bounce 2.0s infinite ease-in-out;
}
.double-bounce2 {
- -webkit-animation-delay: -1.0s;
animation-delay: -1.0s;
}
-@-webkit-keyframes sk-bounce {
- 0%,
- 100% {
- -webkit-transform: scale(0.0)
- }
- 50% {
- -webkit-transform: scale(1.0)
- }
-}
-
@keyframes sk-bounce {
0%,
100% {
transform: scale(0.0);
- -webkit-transform: scale(0.0);
}
+
50% {
transform: scale(1.0);
- -webkit-transform: scale(1.0);
}
}
diff --git a/src/renderer/components/ft-notification-banner/ft-notification-banner.css b/src/renderer/components/ft-notification-banner/ft-notification-banner.css
index 4bf8377664972..2f8464be3d343 100644
--- a/src/renderer/components/ft-notification-banner/ft-notification-banner.css
+++ b/src/renderer/components/ft-notification-banner/ft-notification-banner.css
@@ -1,6 +1,7 @@
.ftNotificationBanner {
background-color: var(--primary-color);
color: var(--text-with-main-color);
+
/*
background-color: var(--accent-color);
color: var(--text-with-accent-color);
@@ -9,13 +10,13 @@
padding: 16px;
padding-block: 3px 5px;
padding-inline: 16px;
- box-shadow: 0 1px 2px rgba(0,0,0,.1);
+ box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
position: relative;
cursor: pointer;
}
.ftNotificationBanner:focus {
- box-shadow: 20px 20px 20px rgba(0,0,0,.1);
+ box-shadow: 20px 20px 20px rgb(0 0 0 / 10%);
}
.message {
diff --git a/src/renderer/components/ft-playlist-add-video-prompt/ft-playlist-add-video-prompt.css b/src/renderer/components/ft-playlist-add-video-prompt/ft-playlist-add-video-prompt.css
index fa65984ce5534..1824909255479 100644
--- a/src/renderer/components/ft-playlist-add-video-prompt/ft-playlist-add-video-prompt.css
+++ b/src/renderer/components/ft-playlist-add-video-prompt/ft-playlist-add-video-prompt.css
@@ -23,7 +23,8 @@
grid-template-columns: 1fr auto;
column-gap: 16px;
}
-@media only screen and (max-width: 800px) {
+
+@media only screen and (width <= 800px) {
.searchInputsRow {
/* Switch to 2 rows from 2 columns */
grid-template-columns: auto;
@@ -37,7 +38,8 @@
grid-template-rows: 1fr;
align-items: center;
}
-@media only screen and (max-width: 800px) {
+
+@media only screen and (width <= 800px) {
.optionsRow {
/* Switch to 2 rows from 2 columns */
grid-template-columns: auto;
@@ -52,11 +54,10 @@
}
.playlists-container {
- box-shadow: inset 0 0 5px rgba(0,0,0,.5);
+ box-shadow: inset 0 0 5px rgb(0 0 0 / 50%);
/* Use remaining height */
flex-grow: 1;
-
overflow-y: scroll;
}
diff --git a/src/renderer/components/ft-playlist-selector/ft-playlist-selector.scss b/src/renderer/components/ft-playlist-selector/ft-playlist-selector.scss
index f887a9962b92e..ddcce78f0b62b 100644
--- a/src/renderer/components/ft-playlist-selector/ft-playlist-selector.scss
+++ b/src/renderer/components/ft-playlist-selector/ft-playlist-selector.scss
@@ -15,11 +15,9 @@
.videoCountContainer {
position: absolute;
-
inset-inline-end: 0;
inset-block: 0;
inline-size: 60px;
-
font-size: 20px;
.background,
@@ -38,7 +36,6 @@
flex-direction: column;
justify-content: center;
align-items: center;
-
color: var(--primary-text-color);
}
}
@@ -63,7 +60,6 @@
&.grid {
display: flex;
flex-direction: column;
-
inline-size: 245px;
min-block-size: 230px;
padding-block-end: 20px;
@@ -77,6 +73,7 @@
aspect-ratio: 16/9;
}
}
+
.title {
font-size: 22px;
}
@@ -85,9 +82,7 @@
.selectedIcon {
position: absolute;
-
inset-block-start: calc(50% - 25px);
inset-inline-start: calc(50% - 25px);
-
font-size: 50px;
}
diff --git a/src/renderer/components/ft-profile-bubble/ft-profile-bubble.css b/src/renderer/components/ft-profile-bubble/ft-profile-bubble.css
index 024da1567200b..1dda37d0f1420 100644
--- a/src/renderer/components/ft-profile-bubble/ft-profile-bubble.css
+++ b/src/renderer/components/ft-profile-bubble/ft-profile-bubble.css
@@ -19,7 +19,6 @@
margin-block: 20px 5px;
margin-inline: auto;
border-radius: 50%;
- -webkit-border-radius: 50%;
}
.initial {
@@ -29,7 +28,6 @@
padding-block: 17.5px;
padding-inline: 0;
user-select: none;
- -webkit-user-select: none;
}
.profileName {
diff --git a/src/renderer/components/ft-profile-channel-list/ft-profile-channel-list.css b/src/renderer/components/ft-profile-channel-list/ft-profile-channel-list.css
index 50867ea464314..52b828b61ad56 100644
--- a/src/renderer/components/ft-profile-channel-list/ft-profile-channel-list.css
+++ b/src/renderer/components/ft-profile-channel-list/ft-profile-channel-list.css
@@ -8,7 +8,7 @@ h2, .selectedCount {
margin-inline: auto;
}
-@media only screen and (max-width: 680px) {
+@media only screen and (width <= 680px) {
.card {
inline-size: 90%;
}
diff --git a/src/renderer/components/ft-profile-edit/ft-profile-edit.css b/src/renderer/components/ft-profile-edit/ft-profile-edit.css
index 3636a961654de..31d54c310ff0f 100644
--- a/src/renderer/components/ft-profile-edit/ft-profile-edit.css
+++ b/src/renderer/components/ft-profile-edit/ft-profile-edit.css
@@ -45,14 +45,12 @@ h3 {
margin: 2px;
cursor: pointer;
border-radius: 50%;
- -webkit-border-radius: 50%;
}
.initial {
font-size: 37.5px;
text-align: center;
user-select: none;
- -webkit-user-select: none;
}
.colorOption:has(.initial) {
@@ -84,7 +82,7 @@ h3 {
margin-inline: auto;
}
-@media only screen and (max-width: 680px) {
+@media only screen and (width <= 680px) {
.card {
inline-size: 90%;
}
diff --git a/src/renderer/components/ft-profile-filter-channels-list/ft-profile-filter-channels-list.css b/src/renderer/components/ft-profile-filter-channels-list/ft-profile-filter-channels-list.css
index e91ac2a3c1af8..35ee6d14029ab 100644
--- a/src/renderer/components/ft-profile-filter-channels-list/ft-profile-filter-channels-list.css
+++ b/src/renderer/components/ft-profile-filter-channels-list/ft-profile-filter-channels-list.css
@@ -12,7 +12,7 @@ h2 {
margin-inline: auto;
}
-@media only screen and (max-width: 680px) {
+@media only screen and (width <= 680px) {
.card {
inline-size: 90%;
}
diff --git a/src/renderer/components/ft-profile-selector/ft-profile-selector.css b/src/renderer/components/ft-profile-selector/ft-profile-selector.css
index 31e8405e3106b..53c3d41bf491b 100644
--- a/src/renderer/components/ft-profile-selector/ft-profile-selector.css
+++ b/src/renderer/components/ft-profile-selector/ft-profile-selector.css
@@ -6,7 +6,6 @@
display: flex;
justify-content: center;
border-radius: 50%;
- -webkit-border-radius: 50%;
}
.colorOption:hover {
@@ -18,7 +17,6 @@
line-height: 1em;
text-align: center;
user-select: none;
- -webkit-user-select: none;
}
.profileList {
@@ -37,6 +35,7 @@
margin-block-start: 60px;
block-size: auto;
overflow-y: auto;
+
/*
profile list max height: 90% of window size - 100 px. It's scaled to be 340px on 800x600 resolution.
Offset of 100px is to compensate for the fixed size of elements above the list, which takes more screen space on lower resolutions
@@ -47,7 +46,7 @@
/* Navbar changes position to horizontal with this media rule.
Height adjust for profile list so it won't cover navbar. */
-@media only screen and (max-width: 680px){
+@media only screen and (width <= 680px){
.profileWrapper {
max-block-size: calc(95vh - 180px);
}
diff --git a/src/renderer/components/ft-progress-bar/ft-progress-bar.css b/src/renderer/components/ft-progress-bar/ft-progress-bar.css
index 6f14df5af8311..c7ebd6f3ca871 100644
--- a/src/renderer/components/ft-progress-bar/ft-progress-bar.css
+++ b/src/renderer/components/ft-progress-bar/ft-progress-bar.css
@@ -1,8 +1,8 @@
.progressBar {
position: fixed;
block-size: 3px;
- inset-block-end: 0px;
- inset-inline-start: 0px;
+ inset-block-end: 0;
+ inset-inline-start: 0;
background-color: var(--primary-color);
z-index: 1;
transition: inline-size 0.5s;
diff --git a/src/renderer/components/ft-prompt/ft-prompt.css b/src/renderer/components/ft-prompt/ft-prompt.css
index 381fd8c4969cd..06312c5a864ac 100644
--- a/src/renderer/components/ft-prompt/ft-prompt.css
+++ b/src/renderer/components/ft-prompt/ft-prompt.css
@@ -4,7 +4,8 @@
inset-inline-start: 0;
inline-size: 100%;
block-size: 100%;
- background-color: rgba(0, 0, 0, 0.7);
+ background-color: rgb(0 0 0 / 70%);
+
/* Higher than components like playlist info */
z-index: 200;
padding: 15px;
diff --git a/src/renderer/components/ft-radio-button/ft-radio-button.css b/src/renderer/components/ft-radio-button/ft-radio-button.css
index 4efd5aeab7f1b..7a5e14ad680b8 100644
--- a/src/renderer/components/ft-radio-button/ft-radio-button.css
+++ b/src/renderer/components/ft-radio-button/ft-radio-button.css
@@ -1,3 +1,4 @@
+/* stylelint-disable no-descending-specificity */
pure-checkbox input[type="checkbox"], .pure-radiobutton input[type="checkbox"], .pure-checkbox input[type="radio"], .pure-radiobutton input[type="radio"] {
border: 0;
clip: rect(0 0 0 0);
@@ -9,24 +10,22 @@ pure-checkbox input[type="checkbox"], .pure-radiobutton input[type="checkbox"],
inline-size: 1px;
}
-.pure-checkbox input[type="checkbox"]:focus + label:before, .pure-radiobutton input[type="checkbox"]:focus + label:before, .pure-checkbox input[type="radio"]:focus + label:before, .pure-radiobutton input[type="radio"]:focus + label:before, .pure-checkbox input[type="checkbox"]:hover + label:before, .pure-radiobutton input[type="checkbox"]:hover + label:before, .pure-checkbox input[type="radio"]:hover + label:before, .pure-radiobutton input[type="radio"]:hover + label:before {
+.pure-checkbox input[type="checkbox"]:focus + label::before, .pure-radiobutton input[type="checkbox"]:focus + label::before, .pure-checkbox input[type="radio"]:focus + label::before, .pure-radiobutton input[type="radio"]:focus + label::before, .pure-checkbox input[type="checkbox"]:hover + label::before, .pure-radiobutton input[type="checkbox"]:hover + label::before, .pure-checkbox input[type="radio"]:hover + label::before, .pure-radiobutton input[type="radio"]:hover + label::before {
border-color: var(--primary-color);
}
-.pure-checkbox input[type="checkbox"]:active + label:before, .pure-radiobutton input[type="checkbox"]:active + label:before, .pure-checkbox input[type="radio"]:active + label:before, .pure-radiobutton input[type="radio"]:active + label:before { transition-duration: 0s; }
+.pure-checkbox input[type="checkbox"]:active + label::before, .pure-radiobutton input[type="checkbox"]:active + label::before, .pure-checkbox input[type="radio"]:active + label::before, .pure-radiobutton input[type="radio"]:active + label::before { transition-duration: 0s; }
.pure-checkbox input[type="checkbox"] + label, .pure-radiobutton input[type="checkbox"] + label, .pure-checkbox input[type="radio"] + label, .pure-radiobutton input[type="radio"] + label {
position: relative;
padding-inline-start: 2em;
- vertical-align: middle;
- -webkit-user-select: none;
user-select: none;
cursor: pointer;
display: block;
margin-block-end: -20px;
}
-.pure-checkbox input[type="checkbox"] + label:before, .pure-radiobutton input[type="checkbox"] + label:before, .pure-checkbox input[type="radio"] + label:before, .pure-radiobutton input[type="radio"] + label:before {
+.pure-checkbox input[type="checkbox"] + label::before, .pure-radiobutton input[type="checkbox"] + label::before, .pure-checkbox input[type="radio"] + label::before, .pure-radiobutton input[type="radio"] + label::before {
box-sizing: content-box;
content: '';
color: var(--primary-color);
@@ -41,7 +40,7 @@ pure-checkbox input[type="checkbox"], .pure-radiobutton input[type="checkbox"],
transition: all 0.4s ease;
}
-.pure-checkbox input[type="checkbox"] + label:after, .pure-radiobutton input[type="checkbox"] + label:after, .pure-checkbox input[type="radio"] + label:after, .pure-radiobutton input[type="radio"] + label:after {
+.pure-checkbox input[type="checkbox"] + label::after, .pure-radiobutton input[type="checkbox"] + label::after, .pure-checkbox input[type="radio"] + label::after, .pure-radiobutton input[type="radio"] + label::after {
box-sizing: content-box;
content: '';
background-color: var(--primary-color);
@@ -56,13 +55,13 @@ pure-checkbox input[type="checkbox"], .pure-radiobutton input[type="checkbox"],
transition: transform 200ms ease-out;
}
-.pure-checkbox input[type="checkbox"]:disabled + label:before, .pure-radiobutton input[type="checkbox"]:disabled + label:before, .pure-checkbox input[type="radio"]:disabled + label:before, .pure-radiobutton input[type="radio"]:disabled + label:before { border-color: #cccccc; }
+.pure-checkbox input[type="checkbox"]:disabled + label::before, .pure-radiobutton input[type="checkbox"]:disabled + label::before, .pure-checkbox input[type="radio"]:disabled + label::before, .pure-radiobutton input[type="radio"]:disabled + label::before { border-color: #ccc; }
-.pure-checkbox input[type="checkbox"]:disabled:focus + label:before, .pure-radiobutton input[type="checkbox"]:disabled:focus + label:before, .pure-checkbox input[type="radio"]:disabled:focus + label:before, .pure-radiobutton input[type="radio"]:disabled:focus + label:before, .pure-checkbox input[type="checkbox"]:disabled:hover + label:before, .pure-radiobutton input[type="checkbox"]:disabled:hover + label:before, .pure-checkbox input[type="radio"]:disabled:hover + label:before, .pure-radiobutton input[type="radio"]:disabled:hover + label:before { background-color: inherit; }
+.pure-checkbox input[type="checkbox"]:disabled:focus + label::before, .pure-radiobutton input[type="checkbox"]:disabled:focus + label::before, .pure-checkbox input[type="radio"]:disabled:focus + label::before, .pure-radiobutton input[type="radio"]:disabled:focus + label::before, .pure-checkbox input[type="checkbox"]:disabled:hover + label::before, .pure-radiobutton input[type="checkbox"]:disabled:hover + label::before, .pure-checkbox input[type="radio"]:disabled:hover + label::before, .pure-radiobutton input[type="radio"]:disabled:hover + label::before { background-color: inherit; }
-.pure-checkbox input[type="checkbox"]:disabled:checked + label:before, .pure-radiobutton input[type="checkbox"]:disabled:checked + label:before, .pure-checkbox input[type="radio"]:disabled:checked + label:before, .pure-radiobutton input[type="radio"]:disabled:checked + label:before { background-color: #cccccc; }
+.pure-checkbox input[type="checkbox"]:disabled:checked + label::before, .pure-radiobutton input[type="checkbox"]:disabled:checked + label::before, .pure-checkbox input[type="radio"]:disabled:checked + label::before, .pure-radiobutton input[type="radio"]:disabled:checked + label::before { background-color: #ccc; }
-.pure-checkbox input[type="checkbox"] + label:after, .pure-radiobutton input[type="checkbox"] + label:after {
+.pure-checkbox input[type="checkbox"] + label::after, .pure-radiobutton input[type="checkbox"] + label::after {
background-color: transparent;
inset-block-start: 50%;
inset-inline-start: 4px;
@@ -75,26 +74,26 @@ pure-checkbox input[type="checkbox"], .pure-radiobutton input[type="checkbox"],
transform: rotate(-45deg) scale(0);
}
-.pure-checkbox input[type="checkbox"]:checked + label:after, .pure-radiobutton input[type="checkbox"]:checked + label:after {
+.pure-checkbox input[type="checkbox"]:checked + label::after, .pure-radiobutton input[type="checkbox"]:checked + label::after {
content: '';
transform: rotate(-45deg) scale(1);
transition: transform 200ms ease-out;
}
-.pure-checkbox input[type="radio"]:checked + label:before, .pure-radiobutton input[type="radio"]:checked + label:before {
+.pure-checkbox input[type="radio"]:checked + label::before, .pure-radiobutton input[type="radio"]:checked + label::before {
animation: borderscale 300ms ease-in;
}
-.pure-checkbox input[type="radio"]:checked + label:after, .pure-radiobutton input[type="radio"]:checked + label:after { transform: scale(1); }
+.pure-checkbox input[type="radio"]:checked + label::after, .pure-radiobutton input[type="radio"]:checked + label::after { transform: scale(1); }
-.pure-checkbox input[type="radio"] + label:before, .pure-radiobutton input[type="radio"] + label:before, .pure-checkbox input[type="radio"] + label:after, .pure-radiobutton input[type="radio"] + label:after { border-radius: 50%; }
+.pure-checkbox input[type="radio"] + label::before, .pure-radiobutton input[type="radio"] + label::before, .pure-checkbox input[type="radio"] + label::after, .pure-radiobutton input[type="radio"] + label::after { border-radius: 50%; }
-.pure-checkbox input[type="checkbox"]:checked + label:before, .pure-radiobutton input[type="checkbox"]:checked + label:before {
+.pure-checkbox input[type="checkbox"]:checked + label::before, .pure-radiobutton input[type="checkbox"]:checked + label::before {
animation: borderscale 200ms ease-in;
background: var(--primary-color);
}
-.pure-checkbox input[type="checkbox"]:checked + label:after, .pure-radiobutton input[type="checkbox"]:checked + label:after { transform: rotate(-45deg) scale(1); }
+.pure-radiobutton input[type="checkbox"]:checked + label::after { transform: rotate(-45deg) scale(1); }
@keyframes
borderscale { 50% {
diff --git a/src/renderer/components/ft-search-filters/ft-search-filters.css b/src/renderer/components/ft-search-filters/ft-search-filters.css
index cb31aba278150..33ba9f6448f50 100644
--- a/src/renderer/components/ft-search-filters/ft-search-filters.css
+++ b/src/renderer/components/ft-search-filters/ft-search-filters.css
@@ -1,16 +1,12 @@
.searchFilterInner {
max-inline-size: 800px;
- margin-inline-start: auto;
- margin-inline-end: auto;
-
+ margin-inline: auto;
padding-block: 20px 70px;
padding-inline: 20px;
max-block-size: 410px;
overflow-y: auto;
-
background-color: var(--card-bg-color);
- box-shadow: 0 1px 2px rgba(0,0,0,.1);
-
+ box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
opacity: 0.9;
}
@@ -28,7 +24,7 @@
margin-inline: auto;
}
-@media only screen and (max-width: 600px) {
+@media only screen and (width <= 600px) {
.searchRadio {
border-inline-end: 0;
}
diff --git a/src/renderer/components/ft-select/ft-select.css b/src/renderer/components/ft-select/ft-select.css
index 58b328f537bed..d2b0a30f2bcdf 100644
--- a/src/renderer/components/ft-select/ft-select.css
+++ b/src/renderer/components/ft-select/ft-select.css
@@ -20,18 +20,13 @@
* https://codepen.io/pavelvaravko/pen/qjojOr
*/
-/* select starting stylings ------------------------------*/
+/* select starting stylings ------------------------------ */
.select {
position: relative;
inline-size: 200px;
margin-block-start: 30px;
}
-.disabled, .disabled + svg.iconSelect {
- opacity: 0.4;
- cursor: not-allowed;
-}
-
.select-text {
position: relative;
font-family: inherit;
@@ -42,7 +37,7 @@
padding-inline-start: 1rem;
font-size: 16px;
border-radius: 5px;
- border: none;
+ border: 0;
}
.select option {
@@ -50,7 +45,7 @@
background-color: var(--card-bg-color);
}
-/* Remove focus */
+/* stylelint-disable-next-line a11y/no-outline-none */
.select-text:focus {
outline: none;
}
@@ -58,7 +53,6 @@
/* Use custom arrow */
.select .select-text {
appearance: none;
- -webkit-appearance:none;
text-overflow: ellipsis;
padding-inline-end: 1.5rem;
}
@@ -67,6 +61,7 @@
position: absolute;
inset-block-start: 10px;
inset-inline-end: 10px;
+
/* Styling the down arrow */
padding: 0;
content: '';
@@ -76,6 +71,11 @@
color: var(--tertiary-text-color);
}
+.disabled, .disabled + .iconSelect {
+ opacity: 0.4;
+ cursor: not-allowed;
+}
+
.selectTooltip {
position: absolute;
inset-block-start: -22px;
@@ -108,7 +108,7 @@
display: block;
}
-.select-bar:before, .select-bar:after {
+.select-bar::before, .select-bar::after {
content: '';
block-size: 2px;
inline-size: 0;
@@ -118,16 +118,16 @@
transition: 0.2s ease all;
}
-.select-bar:before {
+.select-bar::before {
inset-inline-start: 50%;
}
-.select-bar:after {
+.select-bar::after {
inset-inline-end: 50%;
}
/* active state */
-.select-text:focus ~ .select-bar:before, .select-text:focus ~ .select-bar:after {
+.select-text:focus ~ .select-bar::before, .select-text:focus ~ .select-bar::after {
inline-size: 50%;
}
@@ -142,8 +142,8 @@
opacity: 0.5;
}
-@media only screen and (max-width: 800px) {
+@media only screen and (width <= 800px) {
.select {
inline-size: 100%;
}
-}
\ No newline at end of file
+}
diff --git a/src/renderer/components/ft-settings-section/ft-settings-section.scss b/src/renderer/components/ft-settings-section/ft-settings-section.scss
index 3a0fa62787292..cdf50ffd3296e 100644
--- a/src/renderer/components/ft-settings-section/ft-settings-section.scss
+++ b/src/renderer/components/ft-settings-section/ft-settings-section.scss
@@ -4,7 +4,7 @@
margin-inline: auto;
inline-size: 85%;
- @media only screen and (max-width: 800px) {
+ @media only screen and (width <= 800px) {
inline-size: 100%;
}
@@ -20,7 +20,7 @@
}
> div:not(:last-child, .ft-flex-box) {
- @media only screen and (max-width: 800px) {
+ @media only screen and (width <= 800px) {
margin-block-end: 20px;
}
}
@@ -40,7 +40,6 @@
}
.sectionTitle {
- -webkit-user-select: none;
user-select: none;
margin-inline-start: 2%;
margin-block: 0.5em;
@@ -55,19 +54,23 @@
margin-block: 0.5em;
}
-:deep(.switchGrid) {
+%switch-grid {
align-items: center;
display: grid;
grid-template-columns: auto auto;
justify-content: space-evenly;
- @media only screen and (max-width: 680px) {
+ @media only screen and (width <= 680px) {
grid-template-columns: auto;
}
}
+:deep(.switchGrid) {
+ @extend %switch-grid;
+}
+
:deep(.switchColumnGrid) {
- @extend :deep(.switchGrid);
+ @extend %switch-grid;
align-items: start;
}
@@ -82,19 +85,19 @@
text-align: center;
}
-@media only screen and (max-width: 460px) {
+@media only screen and (width <= 460px) {
:deep(.settingsFlexStart460px) {
justify-content: flex-start;
}
}
-@media only screen and (max-width: 500px) {
+@media only screen and (width <= 500px) {
:deep(.settingsFlexStart500px) {
justify-content: flex-start;
}
}
-@media only screen and (max-width: 680px) {
+@media only screen and (width <= 680px) {
.settingsSection {
> div {
:deep(.text.bottom) {
diff --git a/src/renderer/components/ft-share-button/ft-share-button.scss b/src/renderer/components/ft-share-button/ft-share-button.scss
index cfccc6a6bf3e1..b04bd46799524 100644
--- a/src/renderer/components/ft-share-button/ft-share-button.scss
+++ b/src/renderer/components/ft-share-button/ft-share-button.scss
@@ -1,3 +1,4 @@
+/* stylelint-disable no-descending-specificity */
.shareLinks {
display: grid;
grid-auto-flow: column;
@@ -89,7 +90,7 @@
}
}
-@media only screen and (max-width: 450px) {
+@media only screen and (width <= 450px) {
.shareLinks {
grid-auto-flow: row;
margin-inline: auto;
diff --git a/src/renderer/components/ft-slider/ft-slider.css b/src/renderer/components/ft-slider/ft-slider.css
index a71a5a90c3841..c6463d7c25650 100644
--- a/src/renderer/components/ft-slider/ft-slider.css
+++ b/src/renderer/components/ft-slider/ft-slider.css
@@ -1,11 +1,13 @@
+/* stylelint-disable no-descending-specificity */
.pure-material-slider {
--pure-material-safari-helper1: var(--accent-color-opacity1);
--pure-material-safari-helper2: var(--accent-color-opacity2);
--pure-material-safari-helper3: var(--accent-color-opacity3);
--pure-material-safari-helper4: var(--accent-color-opacity4);
+
display: inline-block;
inline-size: 380px;
- color: rgba(var(--primary-text-color), 0.87);
+ color: rgb(var(--primary-text-color) 0.87);
font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
font-size: 16px;
line-height: 1.5;
@@ -16,7 +18,7 @@
/* Input */
.pure-material-slider > input {
- -webkit-appearance: none;
+ appearance: none;
position: relative;
inset-block-start: 24px;
display: block;
@@ -41,6 +43,7 @@
}
/* Focus */
+/* stylelint-disable-next-line a11y/no-outline-none */
.pure-material-slider > input:focus {
outline: none;
}
@@ -68,8 +71,7 @@
/* Webkit | Thumb */
.pure-material-slider > input::-webkit-slider-thumb {
appearance: none;
- -webkit-appearance: none;
- border: none;
+ border: 0;
border-radius: 50%;
block-size: 2px;
inline-size: 2px;
@@ -98,7 +100,7 @@
/* Webkit | Disabled */
.pure-material-slider > input:disabled::-webkit-slider-runnable-track {
- background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
+ background-color: rgb(var(--pure-material-onsurface-rgb, 0, 0, 0) 0.38);
}
.pure-material-slider > input:disabled::-webkit-slider-thumb {
@@ -111,7 +113,7 @@
/* Moz | Track */
.pure-material-slider > input::-moz-range-track {
margin-block: 0;
- margin-auto: 17px;
+ margin: 17px;
border-radius: 1px;
inline-size: 100%;
block-size: 2px;
@@ -121,8 +123,7 @@
/* Moz | Thumb */
.pure-material-slider > input::-moz-range-thumb {
appearance: none;
- -moz-appearance: none;
- border: none;
+ border: 0;
border-radius: 50%;
block-size: 2px;
inline-size: 2px;
@@ -158,12 +159,13 @@
/* Moz | Disabled */
.pure-material-slider > input:disabled::-moz-range-track {
- background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
+ background-color: rgb(var(--pure-material-onsurface-rgb, 0, 0, 0) 0.38);
}
.pure-material-slider > input:disabled::-moz-range-progress {
- background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
+ background-color: rgb(var(--pure-material-onsurface-rgb, 0, 0, 0) 0.87);
}
+
.pure-material-slider > input:disabled::-moz-range-thumb {
background-color: rgb(var(--pure-material-onsurface-rgb, 0, 0, 0));
box-shadow: 0 0 0 1px rgb(var(--pure-material-surface-rgb, 255, 255, 255)) !important;
@@ -171,7 +173,7 @@
}
.pure-material-slider > input::-moz-focus-outer {
- border: none;
+ border: 0;
}
/* MS | Track */
@@ -179,7 +181,7 @@
box-sizing: border-box;
margin-block: 17px;
margin-inline: 0;
- border: none;
+ border: 0;
border-radius: 1px;
padding-block: 0;
padding-inline: 17px;
@@ -206,7 +208,7 @@
appearance: none;
margin-block: 0;
margin-inline: 17px;
- border: none;
+ border: 0;
border-radius: 50%;
block-size: 2px;
inline-size: 2px;
@@ -235,11 +237,11 @@
/* MS | Disabled */
.pure-material-slider > input:disabled::-ms-fill-lower {
- background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
+ background-color: rgb(var(--pure-material-onsurface-rgb, 0, 0, 0) 0.38);
}
.pure-material-slider > input:disabled::-ms-fill-upper {
- background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
+ background-color: rgb(var(--pure-material-onsurface-rgb, 0, 0, 0) 0.38);
opacity: 0.38;
}
@@ -249,7 +251,7 @@
transform: scale(4, 4);
}
-@media only screen and (max-width: 680px) {
+@media only screen and (width <= 680px) {
.pure-material-slider {
inline-size: 100%;
}
diff --git a/src/renderer/components/ft-sponsor-block-category/ft-sponsor-block-category.scss b/src/renderer/components/ft-sponsor-block-category/ft-sponsor-block-category.scss
index b052038c4443a..a42c9ecee7a1d 100644
--- a/src/renderer/components/ft-sponsor-block-category/ft-sponsor-block-category.scss
+++ b/src/renderer/components/ft-sponsor-block-category/ft-sponsor-block-category.scss
@@ -3,7 +3,7 @@
padding-block: 0;
padding-inline: 10px;
- @media only screen and (max-width: 680px) {
+ @media only screen and (width <= 680px) {
inline-size: 100%;
}
diff --git a/src/renderer/components/ft-subscribe-button/ft-subscribe-button.scss b/src/renderer/components/ft-subscribe-button/ft-subscribe-button.scss
index 467ce117761f0..249281b8a6db6 100644
--- a/src/renderer/components/ft-subscribe-button/ft-subscribe-button.scss
+++ b/src/renderer/components/ft-subscribe-button/ft-subscribe-button.scss
@@ -3,9 +3,10 @@
margin-block-end: 10px;
border-radius: 4px;
block-size: fit-content;
- box-shadow: 0px 1px 2px rgb(0 0 0 / 50%);
+ box-shadow: 0 1px 2px rgb(0 0 0 / 50%);
display: flex;
flex-wrap: nowrap;
+
/* addresses odd clipping behavior when adjusting window size */
background-color: var(--primary-color);
}
@@ -76,7 +77,6 @@
overflow-y: scroll;
position: absolute;
text-align: center;
- -webkit-user-select: none;
user-select: none;
z-index: 3;
// accounts for parent's left and right margins
@@ -112,7 +112,6 @@
justify-content: center;
flex-shrink: 0;
border-radius: 50%;
- -webkit-border-radius: 50%;
}
.initial {
@@ -120,7 +119,6 @@
line-height: 1em;
text-align: center;
user-select: none;
- -webkit-user-select: none;
}
.profileName {
diff --git a/src/renderer/components/ft-toast/ft-toast.css b/src/renderer/components/ft-toast/ft-toast.css
index 8ab713ae98f03..1a5ef01a53ff5 100644
--- a/src/renderer/components/ft-toast/ft-toast.css
+++ b/src/renderer/components/ft-toast/ft-toast.css
@@ -3,6 +3,7 @@
inset-inline-start: 50vw;
transform: translate(calc(-50% * var(--horizontal-directionality-coefficient)), 0);
inset-block-end: 50px;
+
/* Higher than any prompt */
z-index: 300;
display: flex;
@@ -16,8 +17,8 @@
margin: 5px;
text-align: center;
overflow-y: auto;
- background-color: rgba(0, 0, 0, 0.7);
- color: white;
+ background-color: rgb(0 0 0 / 70%);
+ color: #FFF;
opacity: 0;
border-radius: 20px;
cursor: pointer;
diff --git a/src/renderer/components/ft-toggle-switch/ft-toggle-switch.scss b/src/renderer/components/ft-toggle-switch/ft-toggle-switch.scss
index 5d939f8c56656..b96c676fa22ae 100644
--- a/src/renderer/components/ft-toggle-switch/ft-toggle-switch.scss
+++ b/src/renderer/components/ft-toggle-switch/ft-toggle-switch.scss
@@ -74,7 +74,7 @@
}
}
- @media (max-width: 680px) {
+ @media (width <= 680px) {
max-inline-size: 250px;
}
}
diff --git a/src/renderer/components/ft-tooltip/ft-tooltip.css b/src/renderer/components/ft-tooltip/ft-tooltip.css
index 642a65e2ef612..9419eeed1c27c 100644
--- a/src/renderer/components/ft-tooltip/ft-tooltip.css
+++ b/src/renderer/components/ft-tooltip/ft-tooltip.css
@@ -7,30 +7,6 @@
padding: 0;
}
-.button:focus + .text,
-.button:hover + .text {
- opacity: 1;
- visibility: visible;
-}
-
-.button:focus + .text.bottom,
-.button:hover + .text.bottom,
-.button:hover + .text.bottom-left,
-.button:hover + .text.bottom-left,
-.button:focus + .text.top,
-.button:hover + .text.top {
- -webkit-transform: translate(calc(-50% * var(--horizontal-directionality-coefficient)), 0);
- transform: translate(calc(-50% * var(--horizontal-directionality-coefficient)), 0);
-}
-
-.button:focus + .text.left,
-.button:hover + .text.left,
-.button:focus + .text.right,
-.button:hover + .text.right {
- -webkit-transform: translate(0, -50%);
- transform: translate(0, -50%);
-}
-
.text {
background-color: color-mix(in srgb, var(--primary-text-color) 80%, transparent);
border-radius: 20px;
@@ -56,7 +32,6 @@
margin-block-start: 1em;
inset-block-start: 100%;
inset-inline-start: 50%;
- -webkit-transform: translate(calc(-50% * var(--horizontal-directionality-coefficient)), -1em);
transform: translate(calc(-50% * var(--horizontal-directionality-coefficient)), -1em);
}
@@ -64,15 +39,13 @@
margin-block-start: 1em;
inset-block-start: 100%;
inset-inline-start: -100px;
- -webkit-transform: translate(-50%, -1em);
transform: translate(calc(-50% * var(--horizontal-directionality-coefficient)), -1em);
}
.text.left {
- margin-inline-end:1em;
+ margin-inline-end: 1em;
inset-inline-end: 100%;
inset-block-start: 50%;
- -webkit-transform: translate(calc(1em * var(--horizontal-directionality-coefficient)), -50%);
transform: translate(calc(1em * var(--horizontal-directionality-coefficient)), -50%);
}
@@ -80,7 +53,6 @@
inset-inline-start: 100%;
margin-inline-start: 1em;
inset-block-start: 50%;
- -webkit-transform: translate(calc(-1em * var(--horizontal-directionality-coefficient)), -50%);
transform: translate(calc(-1em * var(--horizontal-directionality-coefficient)), -50%);
}
@@ -88,17 +60,37 @@
inset-block-end: 100%;
inset-inline-start: 50%;
margin-block-end: 1em;
- -webkit-transform: translate(calc(-50% * var(--horizontal-directionality-coefficient)), 1em);
transform: translate(calc(-50% * var(--horizontal-directionality-coefficient)), 1em);
}
+.button:focus + .text,
+.button:hover + .text {
+ opacity: 1;
+ visibility: visible;
+}
+
+.button:focus + .text.bottom,
+.button:hover + .text.bottom,
+.button:hover + .text.bottom-left,
+.button:focus + .text.top,
+.button:hover + .text.top {
+ transform: translate(calc(-50% * var(--horizontal-directionality-coefficient)), 0);
+}
+
+.button:focus + .text.left,
+.button:hover + .text.left,
+.button:focus + .text.right,
+.button:hover + .text.right {
+ transform: translate(0, -50%);
+}
+
.text.allowNewlines {
white-space: pre-wrap;
text-align: start;
inline-size: 55vw;
}
-@media only screen and (max-width: 1100px) {
+@media only screen and (width <= 1100px) {
inline-size: 40vw;
}
diff --git a/src/renderer/components/ft-video-player/ft-video-player.css b/src/renderer/components/ft-video-player/ft-video-player.css
index 1eb804c1bc6f8..b098db5badf6d 100644
--- a/src/renderer/components/ft-video-player/ft-video-player.css
+++ b/src/renderer/components/ft-video-player/ft-video-player.css
@@ -30,7 +30,7 @@
}
/* stylelint-enable liberty/use-logical-spec */
-@media only screen and (max-width: 460px) {
+@media only screen and (width <= 460px) {
:deep(.dash-selector .vjs-menu) {
max-block-size: 14em;
}
diff --git a/src/renderer/components/playlist-info/playlist-info.scss b/src/renderer/components/playlist-info/playlist-info.scss
index da6adcef16245..10bf1e6d749d8 100644
--- a/src/renderer/components/playlist-info/playlist-info.scss
+++ b/src/renderer/components/playlist-info/playlist-info.scss
@@ -11,7 +11,7 @@
// Ensure placeholder image displayed at same aspect ratio as most other images
aspect-ratio: 16/9;
- @media only screen and (max-width: 800px) {
+ @media only screen and (width <= 800px) {
display: none;
}
}
@@ -34,7 +34,7 @@
overflow-y: auto;
white-space: break-spaces;
- @media only screen and (max-width: 500px) {
+ @media only screen and (width <= 500px) {
max-block-size: 10vh;
}
}
@@ -77,9 +77,8 @@
margin-block-start: 8px;
}
-@media only screen and (max-width: 1250px) {
+@media only screen and (width <= 1250px) {
:deep(.sharePlaylistIcon .iconDropdown) {
- inset-inline-start: auto;
- inset-inline-end: auto;
+ inset-inline: auto auto;
}
}
diff --git a/src/renderer/components/side-nav-more-options/side-nav-more-options.css b/src/renderer/components/side-nav-more-options/side-nav-more-options.css
index 4945a84ecde27..1126225866802 100644
--- a/src/renderer/components/side-nav-more-options/side-nav-more-options.css
+++ b/src/renderer/components/side-nav-more-options/side-nav-more-options.css
@@ -29,22 +29,19 @@
inset-block-end: 60px;
inline-size: 70px;
z-index: 0;
- -webkit-box-shadow: 3px -3px 5px 0px rgba(0,0,0,0.2);
- -moz-box-shadow: 3px -3px 5px 0px rgba(0,0,0,0.2);
- box-shadow: 3px -3px 5px 0px rgba(0,0,0,0.2);
+ box-shadow: 3px -3px 5px 0 rgb(0 0 0 / 20%);
}
-@media only screen and (max-width: 680px) {
+@media only screen and (width <= 680px) {
.sideNavMoreOptions {
display: block;
}
.sideNav, .closed {
- margin-block-start: 0px;
+ margin-block-start: 0;
block-size: 60px;
inline-size: 100%;
- inset-block-end: 0px;
- inset-block-start: auto;
+ inset-block: auto 0;
overflow-y: inherit;
}
@@ -56,15 +53,15 @@
}
.navLabel {
- margin-inline-start: 0px;
+ margin-inline-start: 0;
inline-size: 100%;
text-align: center;
- inset-inline-start: 0px;
+ inset-inline-start: 0;
font-size: 11px;
}
.navIcon {
- margin-inline-start: 0px;
+ margin-inline-start: 0;
inline-size: 100%;
display: block;
margin-block-start: 0.5em;
diff --git a/src/renderer/components/side-nav/side-nav.css b/src/renderer/components/side-nav/side-nav.css
index a9a869114a770..dec21cf60961c 100644
--- a/src/renderer/components/side-nav/side-nav.css
+++ b/src/renderer/components/side-nav/side-nav.css
@@ -13,14 +13,12 @@
transition-duration: 150ms;
transition-timing-function: ease-in-out;
user-select: none;
- -webkit-user-select: none;
}
.inner {
block-size: 100%;
inline-size: 200px;
- overflow-y: auto;
- overflow-x: hidden;
+ overflow: hidden auto;
}
.closed .inner {
@@ -50,6 +48,19 @@
display: none;
}
+.navOption, .channelLink {
+ display: block;
+ color: inherit;
+ text-decoration: inherit;
+}
+
+
+.navOption .navLabel {
+ margin-inline-start: 40px;
+ overflow: hidden;
+ word-break: break-word;
+}
+
.navOption:hover, .navChannel:hover {
background-color: var(--side-nav-hover-color);
color: var(--side-nav-hover-text-color);
@@ -66,12 +77,6 @@
margin-inline-start: 10px;
}
-.navOption .navLabel {
- margin-inline-start: 40px;
- overflow: hidden;
- word-break: break-word;
-}
-
.navChannel .navLabel {
overflow: hidden;
margin-inline-start: 40px;
@@ -84,16 +89,9 @@
margin: 0;
position: absolute;
inset-block-start: 50%;
- -ms-transform: translateY(-50%);
transform: translateY(-50%);
}
-.navOption, .channelLink {
- display: block;
- color: inherit;
- text-decoration: inherit;
-}
-
.channelThumbnail {
border-radius: 50%;
vertical-align: middle;
@@ -127,22 +125,23 @@
}
.closed .navIcon {
- margin-inline-start: 0px;
+ margin-inline-start: 0;
inline-size: 100%;
display: block;
- margin-block-end: 0px;
+ margin-block-end: 0;
}
+
.closed .navIconExpand{
block-size:1.3em;
}
.closed .navLabel {
- margin-inline-start: 0px;
+ margin-inline-start: 0;
inline-size: 100%;
text-align: center;
- inset-inline-start: 0px;
+ inset-inline-start: 0;
font-size: 11px;
- margin-block-end: 0em;
+ margin-block-end: 0;
}
.closed .navChannel {
@@ -156,16 +155,13 @@
position: static;
display: block;
float: none;
- margin-block: 0;
margin-inline: auto;
- inset-block-start: 0px;
- -ms-transform: none;
+ inset-block-start: 0;
transform: none;
- margin-block-start: 0.3em;
- margin-block-end: 0.3em;
+ margin-block: 0.3em;
}
-@media only screen and (max-width: 680px) {
+@media only screen and (width <= 680px) {
.inner {
display: contents; /* sunglasses emoji */
}
@@ -178,44 +174,41 @@
position: fixed;
inset-inline-start: 0;
inset-block-end: 0;
-
display: flex;
}
.topNavOption {
- margin-block-start: 0px;
- padding-inline-start: 10px;
- padding-inline-end: 10px;
+ margin-block-start: 0;
+ padding-inline: 10px;
}
.sideNav, .closed {
- margin-block-start: 0px;
+ margin-block-start: 0;
block-size: 60px;
inline-size: 100%;
- inset-block-end: 0px;
- inset-block-start: auto;
+ inset-block: auto 0;
overflow-y: hidden;
}
.navOption, .closed .navOption {
inline-size: 70px;
block-size: 40px;
- padding: 0px;
- padding-block-start: 10px;
- padding-block-end: 10px;
+ padding: 0;
+ padding-block: 10px 10px;
}
.navLabel {
- margin-inline-start: 0px;
+ margin-inline-start: 0;
inline-size: 100%;
text-align: center;
- inset-inline-start: 0px;
+ inset-inline-start: 0;
font-size: 11px;
}
.moreOption {
display: block;
}
+
.closed.hiddenLabels{
inline-size: 100%;
}
diff --git a/src/renderer/components/subscriptions-tab-ui/subscriptions-tab-ui.css b/src/renderer/components/subscriptions-tab-ui/subscriptions-tab-ui.css
index 43d037639526c..07025c77f31bb 100644
--- a/src/renderer/components/subscriptions-tab-ui/subscriptions-tab-ui.css
+++ b/src/renderer/components/subscriptions-tab-ui/subscriptions-tab-ui.css
@@ -14,13 +14,13 @@
inset-inline-end: 10px;
}
-@media only screen and (max-width: 350px) {
+@media only screen and (width <= 350px) {
.floatingTopButton {
position: absolute
}
}
-@media only screen and (max-width: 680px) {
+@media only screen and (width <= 680px) {
.card {
inline-size: 90%;
}
diff --git a/src/renderer/components/top-nav/top-nav.scss b/src/renderer/components/top-nav/top-nav.scss
index 943ffce8b3a3b..e53ece4e327e8 100644
--- a/src/renderer/components/top-nav/top-nav.scss
+++ b/src/renderer/components/top-nav/top-nav.scss
@@ -14,15 +14,14 @@
box-shadow: 0 2px 1px 0 var(--primary-shadow-color);
display: flex;
block-size: 60px;
- inset-inline-start: 0;
+ inset-inline: 0;
line-height: 60px;
position: sticky;
- inset-inline-end: 0;
inset-block-start: 0;
inline-size: 100%;
z-index: 4;
- @media only screen and (min-width: 961px) {
+ @media only screen and (width >= 961px) {
display: grid;
grid-template-columns: 1fr 440px 1fr;
}
@@ -31,13 +30,13 @@
background-color: var(--primary-color);
}
- @media only screen and (max-width: 680px) {
+ @media only screen and (width <= 680px) {
position: fixed;
}
}
.menuIcon {
- @media only screen and (max-width: 680px) {
+ @media only screen and (width <= 680px) {
display: none;
}
}
@@ -58,10 +57,9 @@
&.arrowBackwardDisabled,
&.arrowForwardDisabled {
- color: gray;
+ color: #808080;
opacity: 0.5;
pointer-events: none;
- -webkit-user-select: none;
user-select: none;
}
@@ -112,13 +110,13 @@
}
.navSearchIcon {
- @media only screen and (min-width: 681px) {
+ @media only screen and (width >= 681px) {
display: none;
}
}
.navNewWindowIcon {
- @media only screen and (max-width: 680px) {
+ @media only screen and (width <= 680px) {
display: none;
}
}
@@ -173,7 +171,7 @@
inset-block-start: -3px;
inline-size: 100px;
- @media only screen and (max-width: 680px) {
+ @media only screen and (width <= 680px) {
display: none;
}
@@ -192,11 +190,10 @@
align-items: center;
display: flex;
- @media only screen and (max-width: 680px) {
+ @media only screen and (width <= 680px) {
background-color: var(--side-nav-color);
- inset-inline-start: 0;
+ inset-inline: 0;
position: fixed;
- inset-inline-end: 0;
inset-block-start: 60px;
@include top-nav-is-colored {
@@ -210,18 +207,16 @@
}
.searchFilters {
- inset-inline-start: 0;
+ inset-inline: 0;
margin-block: 10px 20px;
margin-inline: 220px 20px;
position: absolute;
- inset-inline-end: 0;
transition: margin 150ms ease-in-out;
- @media only screen and (max-width: 680px) {
- inset-inline-start: 0;
+ @media only screen and (width <= 680px) {
+ inset-inline: 0;
margin-block: 95px 0;
margin-inline: 10px;
- inset-inline-end: 0;
}
}
}
diff --git a/src/renderer/components/watch-video-chapters/watch-video-chapters.css b/src/renderer/components/watch-video-chapters/watch-video-chapters.css
index d37cce5055917..f75e8e5a9cef8 100644
--- a/src/renderer/components/watch-video-chapters/watch-video-chapters.css
+++ b/src/renderer/components/watch-video-chapters/watch-video-chapters.css
@@ -3,8 +3,7 @@
}
.chaptersTitle {
- margin-block-start: 10px;
- margin-block-end: 0;
+ margin-block: 10px 0;
cursor: pointer;
}
@@ -35,11 +34,9 @@
.chapter {
display: grid;
- grid-template-areas:
- 'thumbnail title'
- 'thumbnail timestamp';
- grid-template-columns: auto 1fr;
- grid-template-rows: min(auto, 2fr) 1fr;
+ grid-template:
+ 'thumbnail title' 2fr
+ 'thumbnail timestamp' 2fr / auto 1fr;
column-gap: 10px;
justify-items: start;
cursor: pointer;
diff --git a/src/renderer/components/watch-video-comments/watch-video-comments.css b/src/renderer/components/watch-video-comments/watch-video-comments.css
index a15d4999cfc71..79185b1309f4c 100644
--- a/src/renderer/components/watch-video-comments/watch-video-comments.css
+++ b/src/renderer/components/watch-video-comments/watch-video-comments.css
@@ -31,7 +31,7 @@
float: var(--float-right-ltr-rtl-value);
}
-@media only screen and (max-width: 1000px) {
+@media only screen and (width <= 1000px) {
.commentSort {
float: none;
}
@@ -54,7 +54,6 @@
inline-size: 60px;
block-size: 60px;
border-radius: 200px;
- -webkit-border-radius: 200px;
}
.commentThumbnailHidden {
@@ -70,7 +69,6 @@
color: rgb(0 0 0);
background-color: rgb(235 160 172);
border-radius: 50%;
- -webkit-border-radius: 50%;
}
.commentAuthorWrapper {
@@ -104,9 +102,8 @@
.commentPinned {
font-weight: normal;
font-size: 12px;
- margin-block-start: 0;
+ margin-block: 0 5px;
margin-inline-start: 68px;
- margin-block-end: 5px;
}
.commentDate {
@@ -150,7 +147,6 @@
inline-size: 15px;
block-size: 15px;
border-radius: 50%;
- -webkit-border-radius: 50%;
}
.commentHeartBadgeWhite {
diff --git a/src/renderer/components/watch-video-description/watch-video-description.css b/src/renderer/components/watch-video-description/watch-video-description.css
index 721c263445f69..c7b2a437e55d8 100644
--- a/src/renderer/components/watch-video-description/watch-video-description.css
+++ b/src/renderer/components/watch-video-description/watch-video-description.css
@@ -4,7 +4,7 @@
}
.description {
- font-family: 'Roboto', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
+ font-family: Roboto, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
font-size: 17px;
white-space: pre-wrap;
overflow-wrap: anywhere;
diff --git a/src/renderer/components/watch-video-info/watch-video-info.scss b/src/renderer/components/watch-video-info/watch-video-info.scss
index 09177b58dae35..a6e3252aa2bcf 100644
--- a/src/renderer/components/watch-video-info/watch-video-info.scss
+++ b/src/renderer/components/watch-video-info/watch-video-info.scss
@@ -58,22 +58,22 @@
justify-content: flex-end;
gap: 4px;
- @media screen and (max-width: 680px) {
+ @media screen and (width <= 680px) {
:deep(.iconDropdown) {
- inset-inline-start: auto;
- inset-inline-end: calc(50% - 20px);
+ inset-inline: auto calc(50% - 20px);
}
}
- @media screen and (max-width: 460px) {
+ @media screen and (width <= 460px) {
flex-wrap: nowrap;
+
:deep(.iconDropdown) {
- inset-inline-start: auto;
- inset-inline-end: auto;
+ inset-inline: auto auto;
}
}
}
- @media screen and (max-width: 460px) {
+
+ @media screen and (width <= 460px) {
flex-direction: column;
align-items: flex-start;
margin-block-start: 10px;
@@ -93,7 +93,7 @@
max-inline-size: 210px;
text-align: end;
- @media screen and (max-width: 680px) {
+ @media screen and (width <= 680px) {
margin-inline-start: 0;
text-align: start;
}
@@ -110,8 +110,9 @@
gap: 3px;
}
}
+
.datePublishedAndViewCount {
- @media only screen and (max-width: 460px) {
+ @media only screen and (width <= 460px) {
display: flex;
justify-content: left;
flex-direction: column;
@@ -121,6 +122,7 @@
}
}
}
+
.videoViews {
white-space: nowrap;
}
diff --git a/src/renderer/components/watch-video-live-chat/watch-video-live-chat.css b/src/renderer/components/watch-video-live-chat/watch-video-live-chat.css
index d73676000bbce..722c746329a10 100644
--- a/src/renderer/components/watch-video-live-chat/watch-video-live-chat.css
+++ b/src/renderer/components/watch-video-live-chat/watch-video-live-chat.css
@@ -66,13 +66,11 @@
display: inline-block;
padding: 1px;
padding-inline-end: 10px;
- margin-inline-start: 2px;
- margin-inline-end: 2px;
+ margin-inline: 2px 2px;
block-size: 30px;
cursor: pointer;
background-color: var(--primary-color);
border-radius: 200px;
- -webkit-border-radius: 200px;
}
.superChatContent {
@@ -81,6 +79,17 @@
color: var(--text-with-main-color);
}
+.channelThumbnail {
+ inline-size: 25px;
+ border-radius: 200px;
+}
+
+.channelName {
+ color: var(--tertiary-text-color);
+ font-weight: bold;
+ padding-inline-end: 5px;
+}
+
.superChat .channelThumbnail {
margin-block-start: 3px;
margin-inline-start: 3px;
@@ -92,7 +101,7 @@
}
.openedSuperChat {
- background-color: rgba(0, 0, 0, 0.7);
+ background-color: rgb(0 0 0 / 70%);
inline-size: 100%;
block-size: 415px;
position: absolute;
@@ -103,6 +112,24 @@
z-index: 1;
}
+.superChatMessage {
+ inline-size: 90%;
+ grid-template-columns: auto;
+ margin-inline: 5% 5%;
+ margin-block: 25px 10px;
+ background-color: var(--primary-color);
+ border-radius: 5px;
+ position: relative;
+}
+
+.upperSuperChatMessage {
+ margin-block-start: -15px;
+ inline-size: 100%;
+ block-size: 55px;
+ background-color: var(--primary-color-hover);
+ border-radius: 5px 5px 0 0;
+}
+
.openedSuperChat .superChatMessage {
position: absolute;
}
@@ -112,7 +139,7 @@
}
.comment .upperSuperChatMessage {
- padding: 0px;
+ padding: 0;
}
.comment {
@@ -123,28 +150,6 @@
gap: 5px;
}
-.superChatMessage {
- inline-size: 90%;
- grid-template-columns: auto;
- margin-inline-start: 5%;
- margin-inline-end: 5%;
- margin-block-start: 25px;
- margin-block-end: 10px;
- background-color: var(--primary-color);
- border-radius: 5px;
- -webkit-border-radius: 5px;
- position: relative;
-}
-
-.upperSuperChatMessage {
- margin-block-start: -15px;
- inline-size: 100%;
- block-size: 55px;
- background-color: var(--primary-color-hover);
- border-radius: 5px 5px 0px 0px;
- -webkit-border-radius: 5px 5px 0px 0px;
-}
-
.upperSuperChatMessage .channelThumbnail {
inline-size: 45px;
margin-inline-start: 10px;
@@ -164,7 +169,7 @@
font-weight: bold;
margin-inline-start: 65px;
position: absolute;
- inset-block-start: 0px;
+ inset-block-start: 0;
}
.superChatMessage .chatMessage {
@@ -177,25 +182,12 @@
overflow-y: auto;
}
-.channelThumbnail {
- inline-size: 25px;
- border-radius: 200px;
- -webkit-border-radius: 200px;
-}
-
.chatContent {
- margin-block-start: 5px;
- margin-block-end: 2px;
+ margin-block: 5px 2px;
font-size: 12px;
word-wrap: break-word;
}
-.channelName {
- color: var(--tertiary-text-color);
- font-weight: bold;
- padding-inline-end: 5px;
-}
-
.member {
color: #4CAF50;
}
@@ -223,7 +215,6 @@
inset-block-end: 20px;
cursor: pointer;
border-radius: 200px;
- -webkit-border-radius: 200px;
text-align: center;
transition: background 0.2s ease-out;
}
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 d327b87756ab1..0a632bf00c851 100644
--- a/src/renderer/components/watch-video-playlist/watch-video-playlist.css
+++ b/src/renderer/components/watch-video-playlist/watch-video-playlist.css
@@ -23,20 +23,25 @@
.playlistProgressBar {
margin-inline-start: 10px;
+
/* > In order to let ::-webkit-progress-value take effect, appearance needs to be set to none on the