Commit Graph

10 Commits

Author SHA1 Message Date
Joey Parrish c1b109aabc fix: Correct license headers in CSS/LESS
This corrects/normalizes the license headers in CSS and LESS files.
The LESS tool respects the same "/*!" syntax for forcing the inclusion
of a license header, but will not dedup these licenses.  So the LESS
files generally will not use this syntax.  Instead, the build system
prepends a license header after compilation.

The exception is for our SVG spinner, which is based on third-party
CSS from codepen.  The copyright header for this is forced into the
output to give proper credit to the original author.

Issue #2638

Change-Id: I4c58e2b082f2d5e550a6f0a30feaaf9ebf82a53a
2020-06-09 16:19:38 -07:00
Jacob Trimble 326f5cd02a Use short license in more files.
Some of the files still used the old long license.  This increased the
size of the compiled bundle since it had both versions.

Change-Id: Iec137f71547f91369a563145f870eb26ddc96a96
2020-02-11 19:09:44 +00:00
Joey Parrish 4a7aee1daf Customize default UI config for desktop/mobile
To match Chrome native controls, the default controls for desktop will
now contain the small play/pause button, but default controls for
mobile will now contain the large play/pause button.  Mobile controls
will also not contain the volume button.

This removes several CSS-based versions of these things in preference
for configuration.

Apps can still override the defaults, no matter the platform.  Apps
can also make their own mobile-based config choices in JS by checking
video.ui.isMobile() or change styles in CSS using ".shaka-mobile".

Change-Id: I4fb8391f7f3727c7086cd3bca2b1d5c93bd9e856
2020-01-18 23:24:33 +00:00
Joey Parrish 361e39eaa6 Revert recent cast changes
This reverts commits:
 - a43f52caf3
   "Add "noFade" configuration to UI."
 - 08a36e886f
   "Add transparency transition cast app controls."
 - a6b159ffcf
   "Keep controls visible while casting."

Moving the showing/hiding up to the receiver app level can waste CPU
on low-end devices, and puts undue configuration burden on the
receiver app.

We will follow up with a more direct fix for #2314, as well as a
"fadeDelay" option to allow the cast receiver UI to delay fading for a
few seconds.

Related to issue #2314

Change-Id: I0028803432ad028930002b29dd7b94c7d9a0ec56
2020-01-14 03:04:45 +00:00
Theodore Abshire 08a36e886f Add transparency transition cast app controls.
Beforehand, the controls would fade in and out primarily due to an
unintentional interaction with the UI fade transition effect.
With other changes, though, that interaction is no longer working, so
here is an explicitly-defined transition.

Change-Id: I5ec3ef1ab4267affc348d7ed035586ba8c1abc1a
2020-01-10 23:43:47 +00:00
Theodore Abshire f24c4a783f Added stylelint, a linter for our CSS/less files.
Also unified CSS/less style based on that.
This does have to use a forked version of stylelint, since there
is a bug (?) in the globbing library they use that causes it to
fail on our buildbot. I found the simplest solution was just to add
an option to disable globbing, a feature we weren't using anyway.

Closes #1867

Change-Id: I9295b01d5b15d060356e314938b64b551b75de6a
2019-08-08 18:38:19 +00:00
Joey Parrish 6aa35d1433 Fix text display styles
Changes to text styles:
 - Default to 20px instead of 18px
 - Default to a black background (issue #1955)
 - Fix the line height (otherwise set in px by MDL in the demo app)
 - Scale font with the window in fullscreen or cast receiver

Fixes #1955

Change-Id: I98da85030f4b5a40ba1be962b3d1b4fc2c34489e
2019-06-05 20:08:08 +00:00
Joey Parrish 58cedb0367 Add @license to all LESS and CSS files
Change-Id: Ibefe715afcb3676d5a2694032b9c99fe98dd2c44
2019-05-10 17:26:14 +00:00
Joey Parrish 2f6ffabcab Fix cast receiver styling
The cast receiver should not be managing play button state or styles.
Doing this causes the play button to be off-center by interfering with
UI styles.

This also drops all outdated styles that are no longer used with the
new UI.

Reconfiguring the receiver UI controls gets rid of extra elements that
are not used in this context.

Fixes b/131254481
Fixes b/131254837

Change-Id: I25fb34a9b6a3e18fb07f3570181edbbf14a31cd3
2019-05-07 21:28:46 +00:00
Joey Parrish 160dd1d7db [PWA] Move cast receiver code
This makes it easier to compile the demo and receiver apps, which will
make the PWA transition easier.

Issue #876

Change-Id: Iffd335df35c17c7895f763ccf180011dd1d8c14d
2017-06-22 22:51:37 +00:00