Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: third_party/WebKit/Source/core/css/mediaControls.css

Issue 1079323002: Support text track selection in video controls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and lgtm nits Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/mediaControls.css
diff --git a/third_party/WebKit/Source/core/css/mediaControls.css b/third_party/WebKit/Source/core/css/mediaControls.css
index f958d374328e2265dfce5048547ec9388a6ccfb0..79affd91bbbdbc99f5304576169a291bf6b55b21 100644
--- a/third_party/WebKit/Source/core/css/mediaControls.css
+++ b/third_party/WebKit/Source/core/css/mediaControls.css
@@ -44,6 +44,7 @@ video::-webkit-media-controls {
direction: ltr;
display: flex;
flex-direction: column;
+ font-family: Arial, Helvetica, sans-serif;
justify-content: flex-end;
align-items: center;
}
@@ -204,7 +205,6 @@ audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-contr
padding: 0;
line-height: 30px;
- font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
font-style: normal;
@@ -338,6 +338,82 @@ audio::-webkit-media-controls-fullscreen-volume-max-button, video::-webkit-media
display: none;
}
+video::-webkit-scrollbar {
+ width: 12px;
+}
+
+video::-webkit-scrollbar-track {
+ box-shadow: inset 0 0 6px rgba(20, 20, 20, 0.3);
+ border-radius: 10px;
+}
+
+video::-webkit-scrollbar-thumb {
+ border-radius: 10px;
+ background-color: rgba(80, 80, 80, 0.8);
+ box-shadow: inset 0 0 6px rgba(20, 20, 20, 0.5);
+}
+
+video::-internal-media-controls-text-track-list {
+ position: absolute;
+ bottom: 35px;
+ right: 5px;
+ background: rgba(20, 20, 20, 0.8);
+ max-width: 50%;
+ max-height: 250px;
+ border-radius: 5px;
+ overflow-x: hidden;
+ overflow-y: auto;
+ text-overflow: ellipsis;
+ margin-bottom: 5px;
+ white-space: nowrap;
+ padding-top: 10px;
+ font-weight: bold;
+ font-size: 13px;
+}
+
+video::-internal-media-controls-text-track-list-item {
+ display: block;
+ color: white;
+ padding: 4px 30px 4px 10px;
+ border-bottom: 1px solid #555;
+ text-align: start;
+ line-height: 30px;
+}
+
+video::-internal-media-controls-text-track-list-item:hover {
+ background-color: rgba(105, 105, 105, 0.8);
+}
+
+video::-internal-media-controls-text-track-list-item-input {
+ -webkit-appearance: -internal-media-track-selection-checkmark;
+ visibility: hidden;
+ left: 0;
+ vertical-align: middle;
+ margin: 0 5px 0 0;
+ width: 25px;
+ height: 25px;
+}
+
+video::-internal-media-controls-text-track-list-item-input:checked {
+ visibility: visible;
+}
+
+video::-internal-media-controls-text-track-list-kind-captions {
+ -webkit-appearance: -internal-media-closed-captions-icon;
+ height: 24px;
+ width: 24px;
+ margin-left: 10px;
+ vertical-align: middle;
+}
+
+video::-internal-media-controls-text-track-list-kind-subtitles {
+ -webkit-appearance: -internal-media-subtitles-icon;
+ height: 24px;
+ width: 24px;
+ margin-left: 10px;
+ vertical-align: middle;
+}
+
video::-webkit-media-text-track-container {
position: relative;
width: inherit;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValueKeywords.in ('k') | third_party/WebKit/Source/core/css/mediaControlsNew.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698